joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408440
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4638dc]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov esi, ecx
push 0x1f8
xor edi, edi
lea eax, [esi + 0x58]
push edi
push eax
call fcn.00432710
push 0x90
lea ecx, [esp + 0x1c]
push edi
push ecx
mov dword [esi + 0x54], edi
mov dword [esi + 0x250], edi
mov dword [esi + 0x254], 1
mov dword [esi + 0x258], 1
mov dword [esi + 0x298], edi
mov dword [esi + 0x29c], 1
mov dword [esi + 0x25c], edi
mov dword [esi + 0x27c], edi
mov dword [esi + 0x294], edi
mov dword [esi + 0x264], edi
mov dword [esi + 0x2a0], edi
mov dword [esp + 0x20], 0x94
call fcn.00432710
add esp, 0x18
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [esp + 0x18], 2
jne 0x40850a
cmp dword [esp + 0xc], 5
jb 0x40850a
mov eax, 1
pop edi
mov dword [esi + 0x260], eax
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004326b1
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
mov dword [esi + 0x260], edi
pop edi
pop esi
xor ecx, esp
call fcn.004326b1
add esp, 0x98
ret

Function at 0x408e00
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x24
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x408e37
push edi
mov edi, dword [esp + 0x30]
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push 0x408d40
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
pop esi
add esp, 0x24
ret
lea eax, [esp + 4]
push eax
push 5
mov dword [esp + 0xc], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x408eac
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.default.0x408e59
jmp dword [eax*4 + 0x408ed8]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 8], edx
pop esi
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
pop esi
add esp, 0x24
ret
mov esi, dword [esp + 0x2c]
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, 0x96
sub ecx, 0x1e
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
add esp, 0x24
ret
Function at 0x40a250
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4638dc]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [esp + 8]
cmp eax, 5
ja 0x40a291
jne 0x40a28a
cmp dword [esp + 0xc], 1
jae 0x40a291
mov esi, 0x80
jmp 0x40a293
xor esi, esi
call fcn.004203e0
mov eax, dword [eax + 0xc]
push esi
push 0x10
push 0x10
push 1
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
push 0xa
push 0
push 0
push 0
push 0
push 0x89
push eax
push 0x44e53c
push 0x8001
push 0
mov ecx, 0x465208
call fcn.00408730
push 0
push 0x800f
mov ecx, 0x465208
call fcn.004089b0
mov ecx, dword [esp + 0x98]
pop esi
xor ecx, esp
call fcn.004326b1
add esp, 0x98
ret

Function at 0x40a6e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x4638dc]
xor eax, esp
mov dword [esp + 0x420], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov ecx, 0x80
lea esi, [ebp + 0xc]
lea edi, [esp + 0x228]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x20c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], edi
lea esi, [esp + 0x3ea]
mov ebx, 4
nop
mov al, byte [esi]
test al, al
je 0x40a760
cmp al, 5
je 0x40a760
cmp al, 0xf
je 0x40a760
mov ecx, dword [esi - 4]
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], edx
mov edx, dword [esi + 8]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [eax + 0xc], edx
call fcn.0040a5a0
add esi, 0x10
sub ebx, 1
jne 0x40a730
mov dword [esp + 0x10], ebx
lea ebx, [esp + 0x3ee]
mov al, byte [ebx - 4]
cmp al, 5
je 0x40a782
cmp al, 0xf
jne 0x40a842
mov esi, dword [ebx]
mov ecx, 0x200
push 0
mov eax, esi
mul ecx
push 0x8000000
push 3
push 0
push 0
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x20]
push SysReAllocStringLen
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ecx, dword [esp + 0x18]
mov edi, eax
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea edx, [esp + 0x28]
push edx
push 0x200
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esp + 0x226], 0x55
jne 0x40a859
cmp byte [esp + 0x227], 0xaa
jne 0x40a859
mov ecx, dword [esp + 0x20]
add dword [esp + 0x1ee], esi
add dword [esp + 0x1fe], esi
add dword [esp + 0x20e], esi
add dword [esp + 0x21e], esi
mov edx, dword [esp + 0xc]
push ecx
sub esp, 0x200
mov edi, esp
mov ecx, 0x80
lea esi, [esp + 0x22c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x218]
push edx
call fcn.0040a6e0
mov eax, dword [esp + 0x10]
add eax, 1
add ebx, 0x10
cmp eax, 4
mov dword [esp + 0x10], eax
jl 0x40a773
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004326b1
mov esp, ebp
pop ebp
ret 0x208
Function at 0x40aaa0
Capabilities:
Access peb ldr_data
Delete service
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x44bb00
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4638dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x1ac], 0
je 0x40abf7
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x40abf7
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
jne 0x40ab58
call edi
cmp eax, 0x426
je 0x40ab58
push str.Failed_to_stop_service.
add esi, 0x17c
call edi
push eax
push esi
call fcn.00402e90
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00401a10
mov eax, dword [eax]
push 0
push 0
push eax
mov dword [esp + 0x44], 0
call fcn.0041d02a
lea ecx, [esp + 0xc]
call fcn.00401410
or eax, 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
mov ecx, dword [esi + 0x1b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40abdf
push str.Failed_to_uninstall_service.
add esi, 0x17c
call edi
push eax
push esi
call fcn.00402e90
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00401a10
mov eax, dword [eax]
push 0
push 0
push eax
mov dword [esp + 0x44], 1
call fcn.0041d02a
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40abc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
mov ecx, dword [esi + 0x1b0]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call edi
mov edx, dword [esi + 0x1ac]
push edx
call edi
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x40b0f0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x44bb90
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4638dc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
call fcn.0041591e
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b137
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], ebx
call fcn.0041591e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b165
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x30], 1
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x40b253
xor edi, edi
jmp 0x40b194
mov eax, dword [esp + 0x1c]
mov ecx, edi
shr eax, cl
test al, 1
je 0x40b247
lea ecx, [edi + 0x41]
push ecx
lea edx, [esp + 0x1c]
push 0x44f480
push edx
call fcn.00402cf0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov ebp, 0x400
sub eax, ebp
add esp, 0xc
or eax, ecx
jge 0x40b1da
push ebp
lea ecx, [esp + 0x18]
call fcn.00401490
mov esi, dword [esp + 0x14]
cmp dword [esi - 8], ebp
jl 0x40b2a7
push ebp
mov dword [esi - 0xc], ebp
mov ebp, dword [esp + 0x1c]
push esi
push ebp
mov byte [esi + 0x400], bl
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
test eax, eax
je 0x40b247
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40b202
sub eax, edx
js 0x40b2a7
cmp eax, dword [esi - 8]
jg 0x40b2a7
mov dword [esi - 0xc], eax
mov byte [eax + esi], bl
cmp dword [esi - 0xc], ebx
jl 0x40b247
push str.DeviceVirtualDrive
push esi
call fcn.00431da6
add esp, 8
cmp eax, ebx
je 0x40b247
sub eax, esi
jne 0x40b247
mov ecx, dword [esp + 0x20]
push ebp
call fcn.0040acc0
add edi, 1
cmp edi, 0x1a
jl 0x40b190
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x30], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b273
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x30], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.00401010
int3
Function at 0x411250
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push eax
mov esi, ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 4]
push ecx
push edx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebx - 0x10]
mov dword [esi + 8], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411296
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x4112a0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
mov esi, ecx
mov ecx, dword [esi + 4]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebx - 0x10]
mov dword [esi + 8], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4112e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x4112f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push edi
mov edi, dword [esp + 0x1c]
push edi
push 0
push 0
push 0
mov esi, ecx
mov dword [edi], 0
mov eax, dword [esi + 4]
push ebx
push eax
call ebp
test eax, eax
mov dword [esi + 8], eax
jne 0x411353
mov ecx, dword [edi]
push ecx
call fcn.00432fbf
mov edx, dword [esp + 0x1c]
add esp, 4
push edi
push eax
push 0
push 0
mov dword [edx], eax
mov eax, dword [esi + 4]
push ebx
push eax
call ebp
test eax, eax
mov dword [esi + 8], eax
je 0x411353
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00432ee2
add esp, 4
cmp dword [esi + 8], 0
je 0x411369
mov eax, dword [esp + 0x18]
mov dword [eax], 0
mov dword [edi], 0
mov esi, dword [esi + 8]
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411388
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4113a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push ebx
push 0
push 0
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esi + 8], eax
je 0x4113d8
mov edx, dword [esp + 0x1c]
mov dword [ebx], edx
mov esi, dword [esi + 8]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4113f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x411400
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, eax
test ebx, ebx
mov dword [esi + 8], ebx
je 0x411441
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411439
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
mov ecx, dword [esi + 4]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
mov dword [esi + 8], eax
je 0x41147e
or eax, 0xf000000
mov esi, eax
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411476
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41149a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x4114b0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44c2f0
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4638dc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x28]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
mov dword [esp + 0x1c], 1
jge 0x411504
push edi
lea ecx, [esp + 0x2c]
call fcn.00401490
mov esi, dword [esp + 0x28]
test edi, edi
jl 0x411596
cmp edi, dword [esi - 8]
jg 0x411596
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov eax, dword [ebx + 4]
add edi, 1
push edi
mov edi, dword [esp + 0x28]
push esi
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, eax
lea eax, [edi - 0x10]
mov dword [ebx + 8], ebp
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41155a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41157e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
push 0x80070057
call fcn.00401010
int3
Function at 0x411750
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44c350
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4638dc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x2c]
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x20], ecx
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ebx, 0x401
sub eax, ebx
or eax, ecx
jge 0x4117aa
push ebx
mov ecx, edi
call fcn.00401490
mov eax, dword [edi]
cmp dword [eax - 8], ebx
jl 0x4118af
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [eax - 0xc], ebx
mov ecx, dword [edi]
mov ebx, dword [esp + 0x30]
push 0
push 0
mov byte [ecx + 0x401], 0
mov eax, dword [esi + 4]
push ebx
push eax
call ebp
cmp eax, 0xea
mov dword [esi + 8], eax
jne 0x411809
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
add edx, 1
push edx
mov ecx, edi
call fcn.00406d10
push eax
mov eax, dword [esi + 4]
push 0
push 0
push ebx
push eax
call ebp
mov dword [esi + 8], eax
cmp dword [esi + 8], 0
je 0x41181b
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call fcn.00401bd0
mov ecx, dword [edi]
test ecx, ecx
jne 0x411825
xor eax, eax
jmp 0x41183d
mov eax, ecx
lea ebp, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x411830
sub eax, ebp
js 0x4118af
cmp eax, dword [ecx - 8]
jg 0x4118af
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
mov byte [eax + edx], 0
mov esi, dword [esi + 8]
lea eax, [ebx - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41186f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411897
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
push 0x80070057
call fcn.00401010
int3
Function at 0x419fe9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41a022
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00406d10
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00406cc0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x41bc39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41bc7c
call fcn.004203e0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x41bc7c
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x41bc97
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041b7f0
test ebx, ebx
mov esi, eax
je 0x41bc95
test edi, edi
je 0x41bc95
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x421440
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4638dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x421480
push 0x453b08
push 4
push eax
call fcn.004377de
push eax
call fcn.00402fc0
add esp, 0x10
jmp 0x421492
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
je 0x421500
push edi
call fcn.00435d72
mov edi, dword [eax]
call fcn.00435d72
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00435e54
add esp, 0x18
mov ebx, eax
call fcn.00435d72
cmp dword [eax], 0
je 0x4214e0
call fcn.00435d72
push dword [eax]
call fcn.00415322
pop ecx
jmp 0x4214e7
call fcn.00435d72
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x421500
cmp ebx, esi
jae 0x421500
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x421502
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004326b1
leave
ret
Function at 0x42273f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x422785
call fcn.004203e0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x422785
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4227c8
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4227b1
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4227b1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4227c5
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4326b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4638dc]
jne 0x4326bb
repz ret
jmp fcn.0043bfbc
Function at 0x402973
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00402b23
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x402a71
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x402a14
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x402a57
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x402a2b
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x402a46
test al, 0x40
je 0x402a3d
mov ecx, dword [edi + 0x20]
jmp 0x402a44
test al, 0x80
je 0x402a57
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x402a57
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4029e3
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret