joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015e7
Capabilities:
Encrypt data using rc4 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
xor eax, eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0x18
push ebx
mov ebx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
jae 0x401613
mov ebx, 0x8007000b
jmp 0x40179b
push esi
push edi
push 6
pop ecx
mov esi, edx
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x30], 0xb0b5f11e
jne 0x40175b
cmp dword [ebp - 0x2c], eax
jne 0x40175b
mov ecx, dword [ebp - 0x20]
mov eax, 0x1000
cmp ecx, eax
ja 0x40175b
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x40175b
cmp edi, eax
ja 0x40175b
lea eax, [ecx + 0x18]
add eax, edi
cmp eax, dword [ebp + 8]
ja 0x40175b
add edx, 0x18
lea eax, [edx + ecx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
sub eax, 0
je 0x4016cf
sub eax, 1
je 0x4016ba
sub eax, 1
je 0x40168b
mov ebx, 0x8007000b
jmp 0x401799
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
push edx
mov edx, 0x6602
push dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00402563
mov ebx, eax
test ebx, ebx
js 0x401760
jmp 0x4016d2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
push edx
mov edx, 0x6801
jmp 0x40169e
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov esi, dword [ebp - 8]
test eax, eax
jne 0x40174a
test esi, esi
je 0x40172c
lea eax, [ebp - 0xc]
push eax
push 1
push esi
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov edi, dword [ebp - 4]
test eax, eax
jne 0x40174d
test edi, edi
je 0x40172f
lea eax, [ebp - 0xc]
push eax
push 1
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40174d
jmp 0x40172f
mov edi, dword [ebp - 4]
and dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x401766
movzx ebx, bx
or ebx, 0x80070000
jmp 0x401766
mov edi, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x401766
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
jmp 0x401766
mov ebx, 0x8007000b
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 0
je 0x401775
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test edi, edi
je 0x401780
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test esi, esi
je 0x40178b
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x401799
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x402563
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x20]
push esi
xor esi, esi
mov dword [ebp - 0x14], edx
push edi
mov edi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
cmp dword [ebp + 8], esi
je 0x402687
cmp dword [ebp + 0xc], esi
jbe 0x402687
lea eax, [ebp - 4]
mov edi, ecx
push eax
push esi
push esi
push 0x8004
push edi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4025f6
cmp dword [ebp + 0x10], esi
je 0x4025cc
cmp dword [ebp + 0x14], esi
jbe 0x4025cc
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4025f6
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4025f6
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x40263a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40260b
movzx esi, si
or esi, 0x80070000
cmp dword [ebp - 8], 0
je 0x40261a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0xc], 0
je 0x402629
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x10], 0
je 0x4026a1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x4026a1
cmp dword [ebp + 0x1c], esi
je 0x40265c
lea eax, [ebp - 0xc]
push eax
push 0x280000
push dword [ebp - 4]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
neg eax
sbb eax, eax
and dword [ebp - 0xc], eax
test ebx, ebx
je 0x402684
lea eax, [ebp - 8]
push eax
push 0x800000
push dword [ebp - 4]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov edi, eax
neg edi
sbb edi, edi
and edi, dword [ebp - 8]
mov dword [ebp - 8], edi
jmp 0x402687
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x40269b
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
test ebx, ebx
je 0x4026a1
mov dword [ebx], edi
cmp dword [ebp - 4], 0
je 0x4026b0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x402b03
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x403268
call fcn.00403068
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x404364
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402b48
cmp eax, esi
jne 0x402b3b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402b4b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402b1f
xor esi, esi
inc esi
cmp dword [0x404368], esi
jne 0x402b5d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402b97
cmp dword [0x404368], ebx
jne 0x402b91
mov dword [0x404368], esi
push 0x4010cc
push 0x4010c0
call fcn.00402c7c
pop ecx
pop ecx
test eax, eax
je 0x402b97
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402c6c
mov dword [0x404014], esi
cmp dword [0x404368], esi
jne 0x402bba
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x404368], 2
test edi, edi
jne 0x402bc7
xor eax, eax
mov ecx, 0x404364
xchg dword [ecx], eax
cmp dword [0x40436c], 0
je 0x402bf3
push 0x40436c
call fcn.00402ec0
pop ecx
test eax, eax
je 0x402bf3
push ebx
push 2
push ebx
mov esi, dword [0x40436c]
mov ecx, esi
call dword [0x405140]
call esi
push dword [0x404020]
push dword [0x40401c]
push dword [0x404018]
call fcn.004027bb
add esp, 0xc
mov dword [0x404010], eax
cmp dword [0x404028], 0
jne 0x402c51
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404014], 0
jne 0x402c65
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00494000
jmp 0x402b03

Function at 0x402da4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x403288
call fcn.00403068
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402e04
cmp eax, 0xffffffff
je 0x402e04
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402dfd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402dfd
cmp edx, 0x10000000
jae 0x402dfd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402dfa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402e70
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x402eae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x402ea6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x402eb0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x402e96
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402f80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402fb1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402fb1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x402fb1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x182a6ae6
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xd837274
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x44a410
Capabilities:
Accept command line arguments
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
mov edi, eax
clc
call ebx
test ax, ax
jge 0x44a43a
or dword [esi], 0x2000000
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x11
mov edi, eax
call ebx
test ax, ax
jge 0x44a457
or dword [esi], 0x4000000
test edi, edi
je 0x44a46d
mov ecx, dword [0x651cf4]
push 0x651a28
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0x12
call ebx
test ax, ax
jge 0x44a47c
or dword [esi], 0x8000000
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x48f568
Capabilities:
Encode data using xor

Disassembly:
push esp
dec ebx
add byte [ebx], bh
sub ebp, dword [ebp + 0x11109e08]
adc byte [ecx], dl
stosb byte es:[edi], al
in al, dx
stc
lodsd eax, dword [esi]
and eax, 0xab9d31f4
stosd dword es:[edi], eax
cmp al, 0xa7
adc esp, dword [edx]
mov ebx, 0x1972480a
pop ebp
mov bh, 0x59
outsb dx, byte [esi]
mov ch, 0xfe
jge 0x48f572
xor al, 0x83
push cs
loopne 0x48f584

Function at 0x80614c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x806152
pop ebp
sub ebp, 6
sub ebp, 0x40614c
jmp 0x8061b0
jmp 0x8061b9
mov eax, 0x40614c
add eax, ebp
add eax, 0x93
mov ecx, 0x62f
mov edx, 0xed9080a9
xor byte [eax], dl
inc eax
dec ecx
jne 0x8061d0
jmp 0x8061e3
ret

Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x781113f1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x332f61a8
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x8e0f6c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e0f72
pop ebp
sub ebp, 6
sub ebp, 0x4e0f6c
jmp 0x8e0fd0
jmp 0x8e0fd9
mov eax, 0x4e0f6c
add eax, ebp
add eax, 0x93
mov ecx, 0x616
mov edx, 0xa5d4c5ff
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e0ff0
jmp 0x8e1003
xchg ebp, eax
mov edi, 0xffefff97
call dword [edi - 0x2ccc01]
int3
Function at 0x402e7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044fc
test esi, esi
jne 0x402eb3
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.004045ec
jmp 0x402ed4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d18
mov dword [esp], eax
test esi, esi
je 0x402ed4
cmp dword [ebx], 0
je 0x402ed4
dec esi
jmp 0x402ebb
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4035dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403674
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403654
xor eax, eax
push ebp
push 0x40364d
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 0x403690
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 0x403654
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x48e020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404378
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49004c], 0
je 0x4043d9
cmp word [0x490220], 0xd7b2
jne 0x4043a1
cmp dword [0x490228], 0
jbe 0x4043a1
mov eax, 0x49021c
call dword [0x490238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48e06c
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 0x404400
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48e030], 0
jne 0x4043f5
push 0
push 0x48e064
push 0x48e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406514
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 0x40657a
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.0040476c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031a0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406564
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406581
lea eax, [ebp - 0x10]
call fcn.004044fc
ret

Function at 0x40bc50
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 0x40bc89
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045ec
jmp 0x40bc92
mov eax, ebx
mov edx, esi
call fcn.00404550
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bc9c
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 0x40bcbd
mov al, byte [esp]
jmp 0x40bcbf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c354
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c1bc
mov eax, dword [0x48fe28]
cmp byte [eax], 0
je 0x40c3d0
mov eax, dword [0x48fba8]
call fcn.00402fd0
call fcn.00402c44
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.00408fdc
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 0x40c418
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c406
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48fb48]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x490668]
call fcn.00405980
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 0x40ccbc
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 0x40cd92
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404594
lea eax, [ebp - 8]
call fcn.00404a0c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049bc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cd7c
mov eax, ebx
call fcn.00402ab8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cd75
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.004049bc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cd5f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cda4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cd5f
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 0x40cd7c
mov eax, dword [ebp - 0x10]
call fcn.00402ae8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd99
lea eax, [ebp - 8]
call fcn.004044fc
ret

Function at 0x40d2f8
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 0x40d35c
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.0040476c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408af0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d363
lea eax, [ebp - 0xc]
call fcn.004044fc
ret
Function at 0x421694
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x490888
cmp dword [esi], 0
jne 0x42173a
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x490884]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x48e508
mov ecx, 2
call fcn.00402cd8
mov edx, 0x42166c
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0042168c
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0042168c
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x421701
mov eax, dword [ebp - 8]
mov dword [0x490884], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x422cd8
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 0x422cde
ret

Function at 0x425204
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 0x425255
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42523c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42522c
jmp 0x425255
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 0x42523d
pop ebx
mov esp, ebp
pop ebp
ret