joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4090e0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4090f3
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4090ee
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
xor byte [eax], al
add byte [ebp + 0x13], dh
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp fcn.004090e0
cmp edx, ebx
jne 0x40922e
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4090af
add eax, dword [eax + 4]
jmp 0x40909c
mov dword [ebp + 0xc], ebx
jmp 0x4090fe
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x409116
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x409134
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x409192
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x409179
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x409182
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40918c
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40916e
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4090f8
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4091df
dec eax
je 0x4091d6
sub eax, 3
je 0x4091cd
mov dword [ebp - 4], 0x40
jmp 0x4091fc
mov dword [ebp - 4], 4
jmp 0x4091e2
mov dword [ebp - 4], 0x20
jmp 0x4091e2
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40922e
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4091ae
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00408a3f
salc
sbb al, 0xb8
stosb byte es:[edi], al
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x40923a
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4098d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esp, 0xfffffa
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.00408a3f
insb byte es:[edi], dx
push esp
jge 0x409923
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00408a1d
invalid
invalid
invalid

Function at 0x40a860
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add eax, 0xfffffdd0
push eax
call fcn.004089b0
add esp, 0xc
jmp 0x40a9b7
Function at 0x40b7c0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x328
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x324], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x125]
push ebx
push eax
mov byte [esp + 0x12c], bl
call fcn.00418e90
add esp, 0xc
push 0x103
lea ecx, [esp + 0x22d]
push ebx
push ecx
mov byte [esp + 0x234], bl
call fcn.00418e90
add esp, 0xc
push 0x103
lea edx, [esp + 0x1d]
push ebx
push edx
mov byte [esp + 0x24], bl
call fcn.00418e90
mov ebp, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
add esp, 0xc
mov dword [esp + 0x14], 5
lea esp, [esp]
mov esi, 0x61
lea edi, [esi - 0x47]
jmp 0x40b850
push esi
push 0x4266b8
lea eax, [esp + 0x128]
push 0x104
push eax
call fcn.00414784
add esp, 0x10
push 0x104
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x128]
push edx
call ebp
test eax, eax
je 0x40b90c
push str.Harddisk
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x40b90c
lea ecx, [esp + 0x120]
call fcn.0040fce0
lea ecx, [esp + 0x18]
cmp eax, 1
jne 0x40b8fe
push esi
push str.._c:
push 0x104
push ecx
call fcn.00414784
push str.ResetDevice_enter..
call fcn.00412950
lea edx, [esp + 0x2c]
add esp, 0x14
test edx, edx
jne 0x40b8eb
push str.ResetDevice_parameter_is_invalid
call fcn.004129d0
add esp, 4
jmp 0x40b90c
mov ebx, dword [esp + 0x33c]
lea eax, [esp + 0x18]
push eax
call fcn.0040b660
jmp 0x40b90c
push ecx
push str._s_is_not_huawei_SD_Card
call fcn.00412950
add esp, 8
inc esi
sub edi, 1
jne 0x40b850
sub dword [esp + 0x14], 1
jne 0x40b840
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00413017
add esp, 0x328
ret 4
Function at 0x40e890
Capabilities:
Terminate thread

Disassembly:
cmp byte [esi + 0x18], 0
je 0x40e8a2
mov eax, dword [esi + 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x10], 0
jne 0x40e8be
cmp byte [esi + 0x18], 0
je 0x40e8b8
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 0xfffffffc
ret
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov byte [esi + 0x10], 0
cmp byte [esi + 0x18], 0
je 0x40e8de
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
ret

Function at 0x40ede0
Capabilities:
Query service configuration

Disassembly:
push ecx
cmp dword [edi + 4], 0
jne 0x40ee23
cmp dword [0x42d160], 0x10
mov eax, dword [0x42d14c]
jae 0x40edfa
mov eax, 0x42d14c
push 0x10020
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [edi + 4], eax
test eax, eax
jne 0x40ee23
push str.Couldnt_open_service
call fcn.004129d0
add esp, 4
xor al, al
pop ecx
ret 4
push esi
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x40ee4b
push str.Allocate_failed.
call fcn.004129d0
add esp, 4
xor al, al
pop esi
pop ecx
ret 4
mov edx, dword [edi + 4]
lea ecx, [esp + 4]
push ecx
push 0x1000
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x40ee7f
push str.QueryServiceConfig_failed.
call fcn.004129d0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
pop esi
pop ecx
ret 4
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0xc]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.QueryServiceConfig_successfully.
call fcn.00412950
add esp, 4
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x40f860
Capabilities:
Modify service

Disassembly:
push ecx
cmp dword [edi + 4], 0
je 0x40f98c
mov eax, dword [edi]
test eax, eax
je 0x40f98c
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ebp, eax
test ebp, ebp
jne 0x40f91e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
je 0x40f8a1
push str.LockServiceDatabase_fail
call fcn.004129d0
add esp, 4
push ebx
push esi
push 0x10c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x40f8c3
push str.LocalAlloc_is_fail
call fcn.004129d0
add esp, 4
mov ecx, dword [edi]
lea eax, [esp + 0xc]
push eax
push 0x10c
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceLockStatusA]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x40f969
push str.QueryServiceLockStatus
call fcn.00412950
add esp, 4
test esi, esi
je 0x40f8fb
push esi
call ebx
xor esi, esi
push str.No_longer_locked_n
call fcn.00412950
add esp, 4
test esi, esi
je 0x40f90f
push esi
call ebx
push str.Could_not_lock_database
call fcn.00412950
add esp, 4
pop esi
pop ebx
mov ecx, dword [edi + 4]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x40f94d
push str.ChangeServiceConfig_fail
call fcn.004129d0
add esp, 4
push str.ChangeServiceConfig_SUCCESS_n
call fcn.00412950
add esp, 4
push ebp
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov eax, 1
pop ebp
pop ecx
ret
test esi, esi
je 0x40f8fb
cmp dword [esi], 0
je 0x40f8fb
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
push str.Locked_by:__s__duration:__d_seconds_n
call fcn.00412950
add esp, 0xc
jmp 0x40f908
xor eax, eax
pop ecx
ret
Function at 0x40f990
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x1c
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov ecx, dword [ebp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc]
push eax
xor ebx, ebx
push ecx
mov dword [esp + 0x34], ebx
call esi
test eax, eax
jne 0x40f9eb
push str.Query_Services_status_fail
call fcn.004129d0
add esp, 4
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret 4
cmp dword [esp + 0x10], 4
jne 0x40fa0a
push str.Service_has_been_started
call fcn.00412950
add esp, 4
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp + 4]
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40fa55
cmp dword [0x42d160], 0x10
mov esi, dword [0x42d14c]
jae 0x40fa35
mov esi, 0x42d14c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.error_happens_during_starting_a_service:__s_Error_Code:_d
call fcn.004129d0
add esp, 0xc
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret 4
mov ecx, dword [ebp + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call esi
test eax, eax
je 0x40f9d3
cmp dword [esp + 0x10], 2
jne 0x40fafc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [ebx]
mov eax, 0xcccccccd
mul dword [esp + 0x28]
mov esi, edx
shr esi, 3
cmp esi, 0x3e8
jae 0x40fa9d
mov esi, 0x3e8
jmp 0x40faaa
cmp esi, 0x2710
jbe 0x40faaa
mov esi, 0x2710
push esi
push str.ChangeSrvStatusToRuning_sleep_:_d
call fcn.00412950
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 4]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40fafb
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x24], ecx
jbe 0x40faea
call edi
mov edx, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x30], edx
jmp 0x40faf4
call edi
sub eax, ebx
cmp eax, dword [esp + 0x28]
ja 0x40fafb
cmp dword [esp + 0x14], 2
je 0x40fa80
pop edi
cmp dword [esp + 0x10], 4
jne 0x40fb1b
push str.StartService_SUCCESS.
call fcn.00412950
add esp, 4
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret 4
push str.StartService_fail._n
call fcn.004129d0
add esp, 4
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret 4
Function at 0x40fce0
Capabilities:
Get disk information
Get storage device properties

Disassembly:
sub esp, 0x144
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp esi, ebp
jne 0x40fd12
push str.IsHuaWeiSDCard_parameter_is_invalid
call fcn.004129d0
add esp, 4
jmp 0x40feb2
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x40feb2
push 0xff
lea eax, [esp + 0x4d]
push ebp
push eax
mov byte [esp + 0x54], 0
call fcn.00418e90
push esi
push str.._s
push 0xffffffffffffffff
lea ecx, [esp + 0x60]
push 0x100
push ecx
call fcn.004147a2
add esp, 0x20
push ebp
push ebp
push 3
push ebp
push 3
push 0xc0000000
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40feb2
push ebp
lea eax, [esp + 0x18]
push eax
push 8
lea ecx, [esp + 0x24]
push ecx
push 0xc
lea edx, [esp + 0x34]
push edx
push 0x2d1400
push ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40feab
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x40feab
push esi
call fcn.00414c62
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x40feab
mov edx, esi
mov eax, esi
mov ecx, edi
call fcn.00412eb0
push ebp
lea eax, [esp + 0x18]
push eax
push esi
push edi
push 0xc
lea ecx, [esp + 0x34]
push ecx
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40fe0d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00414b85
add esp, 4
jmp 0x40feb2
push esi
call fcn.00414c62
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40fdf8
mov edx, esi
mov eax, esi
mov ecx, ebp
call fcn.00412eb0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40fe8e
lea edx, [esi - 1]
push edx
add eax, edi
push eax
push esi
push ebp
call fcn.0041464f
push esi
push ebp
call fcn.0041377b
add esp, 0x18
push ebp
lea ecx, [esp + 0x30]
call fcn.00406f70
lea eax, [esp + 0x2c]
push eax
mov edx, str.huawei
call fcn.004070f0
cmp eax, 0xffffffff
jne 0x40fe85
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00414b85
push ebp
call fcn.00414b85
add esp, 8
lea ecx, [esp + 0x2c]
call fcn.00406fe0
jmp 0x40feb2
lea ecx, [esp + 0x2c]
call fcn.00406fe0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00414b85
push ebp
call fcn.00414b85
add esp, 8
mov eax, 1
jmp 0x40feb4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00413017
add esp, 0x144
ret
Function at 0x40fed0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x421488
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x42c070]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
jne 0x40ff1a
push str.MyDeleteFile_parameter_is_invalid
call fcn.004129d0
add esp, 4
xor al, al
jmp 0x410011
push esi
push str.Delete_file__s.
call fcn.00412950
push 0xfde9
push esi
lea edi, [esp + 0x1c]
call fcn.00410220
add esp, 0x10
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x10]
mov esi, 8
cmp dword [esp + 0x24], esi
jae 0x40ff52
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ff7e
push str.This_file_didnt_exists__delete_file_function_exit.
call fcn.00412950
add esp, 4
cmp dword [esp + 0x24], esi
jb 0x41000f
mov eax, dword [esp + 0x10]
push eax
jmp 0x410007
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], esi
jae 0x40ff8c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x40ffb0
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x24], esi
jae 0x40ffa5
lea ecx, [esp + 0x10]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], esi
jae 0x40ffc6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40fffc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteFile_error__d
call fcn.004129d0
add esp, 8
cmp dword [esp + 0x24], esi
jb 0x40fff8
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041300c
add esp, 4
xor al, al
jmp 0x410011
cmp dword [esp + 0x24], esi
jb 0x41000f
mov edx, dword [esp + 0x10]
push edx
call fcn.0041300c
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00413017
add esp, 0x2c
ret

Function at 0x410030
Capabilities:
Create directory

Disassembly:
test eax, eax
jne 0x410044
push str.CreatePCFolder_parameter_is_invalid
call fcn.004129d0
add esp, 4
xor al, al
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41006e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41006e
push str.CreatePCFolder_failed.
call fcn.004129d0
add esp, 4
xor al, al
ret
push str.CreatePCFolder_successfully.
call fcn.00412950
add esp, 4
mov al, 1
ret
Function at 0x410520
Capabilities:
Check os version

Disassembly:
push edi
push 0x11c
call fcn.00414c62
mov edi, eax
add esp, 4
test edi, edi
jne 0x410539
lea eax, [edi + 4]
pop edi
ret
push esi
push 0x11c
push 0
push edi
call fcn.00418e90
add esp, 0xc
push edi
mov dword [edi], 0x11c
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x410628
mov eax, dword [edi + 4]
cmp eax, 5
jne 0x41061e
cmp dword [edi + 8], esi
je 0x41061e
lea esi, [edi + 0x14]
mov ecx, str.Service_Pack_3
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4105a6
test dx, dx
je 0x4105a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4105a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x410580
xor eax, eax
jmp 0x4105ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4105c0
push edi
lea esi, [eax + 3]
call fcn.00414b85
add esp, 4
mov eax, esi
pop esi
pop edi
ret
mov ecx, str.Service_Pack_2
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410602
test dx, dx
je 0x4105e9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410602
add eax, 4
add ecx, 4
test dx, dx
jne 0x4105c7
xor eax, eax
neg eax
sbb eax, eax
add eax, 2
push edi
mov esi, eax
call fcn.00414b85
add esp, 4
mov eax, esi
pop esi
pop edi
ret
sbb eax, eax
sbb eax, 0xffffffff
neg eax
sbb eax, eax
add eax, 2
push edi
mov esi, eax
call fcn.00414b85
add esp, 4
mov eax, esi
pop esi
pop edi
ret
cmp eax, 6
jb 0x410628
mov esi, 4
push edi
call fcn.00414b85
add esp, 4
mov eax, esi
pop esi
pop edi
ret

Function at 0x410640
Capabilities:
Check os version

Disassembly:
push esi
push edi
push 0x11c
xor edi, edi
call fcn.00414c62
mov esi, eax
add esp, 4
test esi, esi
jne 0x41065a
pop edi
pop esi
ret
push 0x11c
push 0
push esi
call fcn.00418e90
add esp, 0xc
push esi
mov dword [esi], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41068c
cmp dword [esi + 4], 6
jb 0x41068c
cmp dword [esi + 8], 2
jb 0x41068c
mov edi, 1
push esi
call fcn.00414b85
add esp, 4
mov eax, edi
pop edi
pop esi
ret
Function at 0x4106a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421408
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push edi
mov eax, dword [0x42c070]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
xor ebx, ebx
cmp esi, ebx
jne 0x4106f6
push str.RunProgram_parameter_is_invalid
call fcn.004129d0
add esp, 4
xor eax, eax
jmp 0x41083e
push 0x44
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.00418e90
add esp, 0xc
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, esi
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
lea edx, [eax + 1]
jmp 0x410740
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410740
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x74]
call fcn.00407f80
mov dword [esp + 0x98], ebx
mov eax, dword [esp + 0x70]
mov edi, 0x10
cmp dword [esp + 0x84], edi
jae 0x410771
lea eax, [esp + 0x70]
push eax
push str.CreateProcess_Path__s
call fcn.00412950
mov eax, dword [esp + 0x78]
add esp, 8
cmp dword [esp + 0x84], edi
jae 0x410790
lea eax, [esp + 0x70]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4107da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FTRACE:_CreateProcess_error..._d
call fcn.00412950
add esp, 8
cmp dword [esp + 0x84], edi
jb 0x4107d6
mov eax, dword [esp + 0x70]
push eax
call fcn.0041300c
add esp, 4
xor eax, eax
jmp 0x41083e
cmp dword [ebp + 8], 1
mov dword [esp + 0x20], ebx
jne 0x410801
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebx
push esi
push str.Run__s__SUC...
call fcn.00412950
add esp, 8
cmp dword [esp + 0x84], edi
jb 0x410839
mov eax, dword [esp + 0x70]
push eax
call fcn.0041300c
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.00413017
mov esp, ebp
pop ebp
ret
Function at 0x410860
Capabilities:
Get common file path

Disassembly:
sub esp, 0x130
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x12c], eax
push 0x12b
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00418e90
add esp, 0xc
push 0x12c
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4108b6
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00413017
add esp, 0x130
ret
lea eax, [esp]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4108c0
sub eax, edx
push eax
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.00407f80
mov ecx, dword [esp + 0x12c]
xor ecx, esp
mov eax, 1
call fcn.00413017
add esp, 0x130
ret
Function at 0x411170
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x138
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
test edi, edi
jne 0x4111ae
push str.FindProcess_parameter_is_invalid
call fcn.004129d0
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00413017
add esp, 0x138
ret
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4111f1
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.0041320c
add esp, 8
test eax, eax
je 0x411210
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4111d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00413017
add esp, 0x138
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00413017
add esp, 0x138
ret

Function at 0x4118a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
mov ebp, dword [esp + 0x110]
push edi
mov edi, ecx
test esi, esi
je 0x411947
test ebx, ebx
je 0x411947
test ebp, ebp
je 0x411947
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00418e90
add esp, 0xc
push esi
push 0x104
lea ecx, [esp + 0x10]
push ecx
push str.This_value_is_not_found
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411907
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
mov ecx, edi
call fcn.00407f80
mov ecx, str.This_value_is_not_found
call fcn.0040c9d0
xor ecx, ecx
test al, al
sete cl
pop edi
pop ebp
mov eax, ecx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00413017
add esp, 0x108
ret
push str.ReadIniString_parameter_is_invalid
call fcn.004129d0
mov ecx, dword [esp + 0x110]
add esp, 4
pop edi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00413017
add esp, 0x108
ret