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

Disassembly:
push 0xffffffffffffffff
push 0x4b22d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
mov eax, dword [0x4e3a40]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [edi + reloc.MSVCRT.dll_strncpy]
add eax, 0x30
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x7e1fca
xor eax, eax
jmp 0x7e1fdc
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp eax, 6
jle 0x7e1fdc
mov eax, 6
mov ecx, dword [esp + 0x30]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x2d]
push eax
mov eax, dword [esp + 0x38]
push 0x1e0
push eax
push ecx
mov esi, edi
call fcn.007de3c8
mov eax, dword [edi + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
call dword [int.004b46ec]
push 0x3e8
push edi
lea ecx, [esp + 0x18]
push ecx
lea ebx, [edi + 0xac]
push 0x50000405
mov ecx, ebx
call fcn.0080498d
push 0x105
lea esi, [esp + 0x38]
call fcn.00795fd8
add esp, 4
or ebp, reloc.MSVCRT.dll_strncpy
push ebp
push 0xb4
mov dword [esp + 0x30], 0
mov eax, dword [eax]
push 2
push eax
push 0
mov ecx, ebx
call fcn.00804cd0
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x7e207c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x106
lea esi, [esp + 0x38]
call fcn.00795fd8
add esp, 4
push ebp
push 0x6e
mov dword [esp + 0x30], 1
mov eax, dword [eax]
push 2
push eax
push 1
mov ecx, ebx
call fcn.00804cd0
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x7e20c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x108
lea esi, [esp + 0x38]
call fcn.00795fd8
add esp, 4
push ebp
push 0x6e
mov dword [esp + 0x30], 2
mov eax, dword [eax]
push 2
push eax
push 2
mov ecx, ebx
call fcn.00804cd0
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x7e2116
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x107
lea esi, [esp + 0x34]
call fcn.00795fd8
add esp, 4
push ebp
push 0x50
mov dword [esp + 0x30], 3
mov eax, dword [eax]
push 2
push eax
push 3
mov ecx, ebx
call fcn.00804cd0
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x7e2161
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
call fcn.007ed808
mov ecx, dword [edi + reloc.MSVCRT.dll_strncpy]
push ecx
push ebx
call fcn.007e2a28
mov ecx, ebx
call fcn.007ffbab
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x7e2e78
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4af65d
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e3a40]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
mov dword [edi], 0x4c9964
call fcn.007a7be8
lea esi, [edi + 0x34]
mov dword [esp + 0x14], 0
call fcn.007a7be8
lea esi, [edi + 0x60]
call fcn.007a7be8
lea esi, [edi + 0x8c]
call fcn.007a7be8
lea esi, [edi + 0xb8]
call fcn.007a7be8
lea esi, [edi + 0xe4]
push esi
mov byte [esp + 0x18], 4
call fcn.007a7e08
mov dword [esi], 0x4c1288
mov dword [esi + 0x30], 0
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x7e3b48
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4adf32
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3a40]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebp, ebp
push 0x48
mov dword [esp + 0x18], ebp
call fcn.007f7ca4
add esp, 4
cmp eax, ebp
je 0x7e3b8e
mov edi, eax
call fcn.007e38d8
mov edi, eax
jmp 0x7e3b90
xor edi, edi
mov eax, dword [esp + 0x34]
cmp eax, 5
mov dword [edi + 4], eax
jne 0x7e3bb8
push 0x1a0
lea esi, [esp + 0x20]
call fcn.00795fd8
add esp, 4
mov dword [esp + 0x28], ebp
mov ebx, 1
jmp 0x7e3bd3
push 0x7a
lea esi, [esp + 0x1c]
call fcn.00795fd8
add esp, 4
mov dword [esp + 0x28], 1
mov ebx, 2
mov esi, dword [eax]
cmp esi, ebp
mov dword [esp + 0x14], ebx
lea ecx, [edi + 0x38]
jne 0x7e3be4
xor eax, eax
jmp 0x7e3bfa
mov eax, esi
lea ebp, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x7e3be9
sub eax, ebp
sar eax, 1
xor ebp, ebp
push eax
push esi
call fcn.00792db8
test bl, 2
mov dword [esp + 0x28], ebp
je 0x7e3c31
mov eax, dword [esp + 0x18]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, reloc.MSVCRT.dll_strncpy
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x7e3c31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 1
mov dword [esp + 0x28], reloc.MSVCRT.dll_strncpy
je 0x7e3c5e
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.MSVCRT.dll_strncpy
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x7e3c5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi + 0x14]
mov eax, dword [esp + 0x34]
mov edx, dword [edx + 0xc]
lea ecx, [edi + 0x14]
push eax
mov dword [edi + 0x3c], 0x3a5aca
mov dword [edi + 0x34], 1
call edx
mov esi, dword [esp + 0x30]
push ebp
push ebp
push ebp
push ebp
push 0x4bddd4
push ebp
push 1
mov ecx, esi
call fcn.00804d23
push edi
push ebp
push ebp
push ebp
push ebp
push 4
push ebp
push eax
mov ecx, esi
call fcn.00804d6f
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x7e3cc8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4adf32
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3a40]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
push 0x48
mov dword [esp + 0x18], ebx
call fcn.007f7ca4
add esp, 4
cmp eax, ebx
je 0x7e3d0e
mov edi, eax
call fcn.007e38d8
mov edi, eax
jmp 0x7e3d10
xor edi, edi
mov ebp, dword [esp + 0x34]
cmp ebp, 6
mov dword [edi + 4], ebp
jne 0x7e3d38
push 0x1a1
lea esi, [esp + 0x20]
call fcn.00795fd8
add esp, 4
mov dword [esp + 0x28], ebx
mov ebx, 1
jmp 0x7e3d56
push 0xdc
lea esi, [esp + 0x1c]
call fcn.00795fd8
add esp, 4
mov dword [esp + 0x28], 1
mov ebx, 2
mov esi, dword [eax]
test esi, esi
mov dword [esp + 0x14], ebx
lea ecx, [edi + 0x38]
jne 0x7e3d67
xor eax, eax
jmp 0x7e3d7f
mov eax, esi
lea ebp, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x7e3d6c
sub eax, ebp
mov ebp, dword [esp + 0x34]
sar eax, 1
push eax
push esi
call fcn.00792db8
test bl, 2
mov dword [esp + 0x28], 0
je 0x7e3dba
mov eax, dword [esp + 0x18]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, reloc.MSVCRT.dll_strncpy
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x7e3dba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 1
mov dword [esp + 0x28], reloc.MSVCRT.dll_strncpy
je 0x7e3de7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.MSVCRT.dll_strncpy
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x7e3de7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0xc]
lea ecx, [edi + 0x14]
push ebp
mov dword [edi + 0x3c], 0x760b3
mov dword [edi + 0x34], 1
call eax
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x1004
push ecx
call dword [fcn.004b462c]
push 0
push 0
push 0
push 0
push 0x4bddd4
push eax
push 1
mov ecx, esi
call fcn.00804d23
push edi
push 0
push 0
push 0
push 0
push 4
push 0
push eax
mov ecx, esi
call fcn.00804d6f
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0xa735e0
Capabilities:
Check for trap flag exception

Disassembly:
push ebx
jmp 0xa58192
pushfd
or dword [esp], reloc.MSVCRT.dll_strncpy
popfd
cpuid
nop
jmp 0xa581a9
pop ebx
ret
push ebx
lea esp, [esp + 8]
jmp 0xa58186

Function at 0xb0eb57
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [esp + 4], esi
mov dword [esp], edi
jmp 0xb0eb72
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0xb0eba3

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x36366791
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
mov eax, section..pdata_1
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x315c501b
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402e58
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402eb1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402cf4
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402cf4
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e9b
inc ebx
jmp 0x402e84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402eb8
lea eax, [ebp - 8]
call fcn.004045d8
ret

Function at 0x402ec0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045d8
test esi, esi
jne 0x402ef7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004046c8
jmp 0x402f18
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cf4
mov dword [esp], eax
test esi, esi
je 0x402f18
cmp dword [ebx], 0
je 0x402f18
dec esi
jmp 0x402eff
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4031d4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4a0008], 0x8088405
inc edx
mov dword [ebx + 0x4a0008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40362c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a0024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036a4
xor eax, eax
push ebp
push 0x40369d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4036e0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a0024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a0024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a304c], 0
je 0x404411
cmp word [0x4a3220], 0xd7b2
jne 0x4043d9
cmp dword [0x4a3228], 0
jbe 0x4043d9
mov eax, 0x4a321c
call dword [0x4a3238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a0070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404438
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a0034], 0
jne 0x40442d
push 0
push 0x4a0068
push 0x4a0070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40458c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a94
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404554
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4064d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406536
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404858
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031f0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406520
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40653d
lea eax, [ebp - 0x10]
call fcn.004045d8
ret

Function at 0x40c274
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c2ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004046c8
jmp 0x40c2b6
mov eax, ebx
mov edx, esi
call fcn.0040462c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c2c0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c2e1
mov al, byte [esp]
jmp 0x40c2e3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c978
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c7e0
mov eax, dword [0x4a2938]
cmp byte [eax], 0
je 0x40c9f4
mov eax, dword [0x4a259c]
call fcn.00403004
call fcn.00402c20
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409150
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ca3c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ca2a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a2520]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a3668]
call fcn.0040593c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d304
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d3da
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404670
lea eax, [ebp - 8]
call fcn.00404af8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404aa8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d3c4
mov eax, ebx
call fcn.00402a94
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d3bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404aa8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d3a7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d3ec
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d3a7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3c4
mov eax, dword [ebp - 0x10]
call fcn.00402ac4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3e1
lea eax, [ebp - 8]
call fcn.004045d8
ret

Function at 0x40d928
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d98c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404858
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408b84
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d993
lea eax, [ebp - 0xc]
call fcn.004045d8
ret

Function at 0x41f8e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41f92d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041f70c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41f945
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41f94c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041f70c
dec esi
jne 0x41f96e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x420ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a388c
cmp dword [edi], 0
jne 0x420b2c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a3888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a041c
mov ecx, 2
call fcn.00402cb4
mov edx, 0x420a88
lea eax, [esi + 5]
call fcn.00420aa8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420aa8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x420b01
mov dword [0x4a3888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x434f44
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x434f4a
ret

Function at 0x4373bc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x43740d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4373f4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4373e4
jmp 0x43740d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4373f5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f5a4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004031b4
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4a2b0c]
cmp byte [edx + 0xc], 0
je 0x43f608
mov edx, dword [0x4a2afc]
cmp dword [edx], 2
jne 0x43f608
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret

Function at 0x43f60c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x43f6c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0043f5a4
test al, al
je 0x43f6a6
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004046c8
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x43f6a6
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404aa8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404aa8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004047e0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x43f65f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f6cb
lea eax, [ebp - 0x2c]
call fcn.004045d8
lea eax, [ebp - 0xc]
call fcn.004045d8
ret

Function at 0x43f7c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404aa8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x43f81c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a2b18]
mov dl, 1
mov eax, dword [0x43f1b8]
call fcn.0040cb5c
call fcn.00403f48
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0043f2c0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4410f4
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x441040
call sub.user32.dll_EnumWindows
ret