joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4291f8
Capabilities:
Query or enumerate registry key

Disassembly:
lea eax, [ebp - 8]
and dword [ebp - 8], 0
and dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4292c7
and dword [ebp - 4], eax
lea eax, [ebp - 0x17c]
push edi
push eax
call dword [edi + 0x50]
push 0
add bh, bh
jne 0x4291f4
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4292b5
lea eax, [ebp - 0x17c]
push str.HELPDIR
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x429285
lea eax, [ebp - 0x17c]
push str.FLAGS
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x429285
lea eax, [ebp - 0x10]
and dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x429285
lea eax, [ebp - 0x28]
push eax
push str.win16
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x429298
push dword [ebp - 0x28]
call ebx
push str.win32
push dword [ebp - 0x10]
call fcn.00428dde
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 1
call ebx
inc dword [ebp - 4]
lea eax, [ebp - 0x17c]
push edi
push eax
push dword [ebp - 4]
jmp 0x4291f9
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 8]
call fcn.00428dde
test eax, eax
jne 0x429285
and dword [ebp - 4], eax
jmp 0x429288
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0x20], 0
je 0x429304
mov dword [ebp - 0x24], 1
inc dword [ebp - 0xc]
lea eax, [ebp - 0x280]
push edi
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x4291c8
push dword [ebp - 0x18]
call ebx
cmp dword [ebp - 0x24], 0
jne 0x42931c
xor ebx, ebx
lea eax, [ebp - 0x384]
push eax
push SysReAllocStringLen
call fcn.00428dde
mov esi, eax
jmp 0x429321
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x18]
call fcn.00428dde
test eax, eax
jne 0x4292c7
and dword [ebp - 0xc], eax
jmp 0x4292ca
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
cmp esi, ebx
mov edi, 0x3f2
je 0x429333
cmp esi, edi
je 0x429333
cmp esi, 2
jne 0x429372
cmp dword [ebp - 0x14], ebx
je 0x429372
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
test eax, eax
jge 0x429360
push dword [ebp - 0x14]
call fcn.00428e23
pop ecx
jmp 0x429369
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp esi, ebx
je 0x429383
cmp esi, edi
je 0x429383
cmp esi, 2
je 0x429383
xor eax, eax
jmp 0x429386
push 1
pop eax
lea esp, [ebp - 0x390]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42bc85
Capabilities:
Accept command line arguments

Disassembly:
add byte [ebx + 0x565358ec], al
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4632f8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4632f4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4632f0], ecx
shr eax, 0x10
mov dword [0x4632ec], eax
push 1
call fcn.0042fe8a
pop ecx
test eax, eax
jne 0x42bcd4
push 0x1c
call fcn.0042bd96
pop ecx
call fcn.0042ed2c
test eax, eax
jne 0x42bce5
push 0x10
call fcn.0042bd96
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00431cb1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x464c10], eax
call fcn.00431b7f
mov dword [0x46332c], eax
sub al, 0x33
inc esi
add al, ch
sub dword [eax + eax], ebx
call fcn.00431879
call fcn.0042ae46
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00431821
mov dword [ebp - 0x64], eax
test byte [ebp - 0x30], 1
je 0x42bd34
movzx eax, word [ebp - 0x2c]
jmp 0x42bd37
push 0xa
pop eax
push eax
push dword [ebp - 0x64]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call 0x3fdbf6
mov dword [ebp - 0x60], eax
push eax
call fcn.0042ae73
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.004316a9
pop ecx
pop ecx
ret

Function at 0x42e050
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
push 0x455e24
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x174]
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x24], 0x44
mov word [esp + 0x54], ax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x168]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x60]
push edx
push eax
call esi
lea ecx, [esp + 0x60]
push 0x45b028
push ecx
call esi
mov eax, dword [esp + 0x16c]
test eax, eax
je 0x42e0c1
lea edx, [esp + 0x60]
push eax
push edx
call esi
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x7c]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x42e109
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.0042f920
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x158
ret 0x10
mov eax, dword [esp + 0x174]
test eax, eax
je 0x42e121
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
mov eax, 0x20
pop ebx
add esp, 0x158
ret 0x10
Function at 0x42e830
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44a1f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x45baa0]
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0042e150
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.0042e150
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.0042e150
lea ecx, [esp + 4]
mov byte [esp + 0x28], 4
mov dword [esp + 4], 0x44d5d4
call fcn.0042e620
mov eax, dword [esp + 0x30]
lea ecx, [esp + 4]
push eax
call fcn.0042e680
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 5
sub byte [0x51000000], al

Function at 0x42f920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44a5cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0x14]
push edi
mov dword [esp + 8], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], 0x44d5cc
mov dword [esp + 0x10], 0x44d5c4
mov dword [esp + 8], eax
call fcn.0042e150
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0
call fcn.0042e150
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.0042e150
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 2
call fcn.0042e150
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 3
call fcn.0042e150
mov dword [esp + 0x18], 0x44d5d4
mov dword [esp + 0x30], 0
mov dword [esp + 8], 1
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 4
call fcn.0042e1d0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 5
call fcn.0042e2c0
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x48]
push edi
mov byte [esp + 0x40], 6
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x10], 0x44d59c
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax - 0xc]
mov dword [esp + eax + 0xc], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x10]
call fcn.0042e680
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], 7
lea eax, [ecx - 2]
cmp eax, 0x9f
ja case.0x426a33.6
xor edx, edx
mov dl, byte [eax + 0x42fb28]
jmp dword [edx*4 + 0x42fb14]
Function at 0x431932
Capabilities:
Resolve function by parsing pe exports

Disassembly:
dec dword [ebx + 0x2484c600]
js 0x43193e
add byte [eax], al
or byte [eax - 0x75], dl
inc esp
and al, 0x20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x20]
call fcn.0042e740
lea ecx, [esp + 0x10]
mov byte [esp + 0x478], 6
call fcn.004428f5
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x20]
call fcn.0042e980
mov edx, dword [eax]
mov ecx, dword [edx - 8]
test ecx, ecx
lea ecx, [esp + 0x10]
sete bl
call fcn.004428f5
test bl, bl
jne 0x431c1b
mov eax, dword [edi]
push 0x45b884
push eax
call fcn.0043346d
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x431c1b
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x20]
call fcn.0042e980
mov eax, dword [eax]
push 0x45b880
push eax
call fcn.0043346d
mov esi, eax
add esp, 8
test esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], esi
sete bl
call fcn.004428f5
test bl, bl
jne 0x431c05
push ebp
lea eax, [esp + 0x74]
push 0x3ff
push eax
call fcn.004366a9
mov esi, eax
add esp, 0xc
test esi, esi
je 0x431bc6
Function at 0x433247
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]

Function at 0x433251
Capabilities:
Set file attributes

Disassembly:
cmp eax, 0xffffffff
je 0x433272
test byte [esp + 8], 0x80
je 0x433261
and al, 0xfe
jmp 0x433263
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x433283
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00436450
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x433b28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x433b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00436450
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x433b6b
test byte [esp + 8], 2
je 0x433b6b
call fcn.004364c3
mov dword [eax], 0xd
call fcn.004364cc
mov dword [eax], 5
jmp 0x433b44
xor eax, eax
ret

Function at 0x43e40c
Capabilities:
Set environment variable

Disassembly:
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
push edi
call fcn.00434dba
pop ecx
test eax, eax
pop ecx
je 0x43e35c
mov ecx, dword [ebp + 8]
mov dword [eax + esi*4], ecx
and dword [eax + esi*4 + 4], 0
mov dword [0x463308], eax
cmp dword [ebp + 0xc], 0
je 0x43e478
push dword [ebp + 8]
call fcn.004335a0
inc eax
inc eax
push eax
call fcn.00433b6e
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x43e478
push dword [ebp + 8]
push esi
call fcn.00433480
mov eax, esi
pop ecx
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 8]
and byte [eax], 0
inc eax
neg ebx
sbb ebx, ebx
not ebx
and ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call fcn.00433a3f
pop ecx
xor eax, eax
jmp 0x43e35f
Function at 0x46b780
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x46b7e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x46b7f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x46b8de
lea eax, [esp + 0x10]
mov byte [esp + 0x10], 0
push eax
push str..htm
push 0x80000000
call fcn.0046b780
add esp, 0xc
test eax, eax
jne 0x46b8de
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call fcn.0046b780
add esp, 0xc
test eax, eax
jne 0x46b8de
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call fcn.00503c5a
mov esi, eax
add esp, 8
test esi, esi
jne 0x46b8b8
lea edx, [esp + 0x10]
push 0x58ec70
push edx
call fcn.00501f70
mov esi, eax
add esp, 8
test esi, esi
jne 0x46b8b8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x46b8bb
mov byte [esi], 0
push 0x588608
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x402bdc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404c94
test esi, esi
jne 0x402c12
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404d84
jmp 0x402c30
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a90
mov edi, eax
test esi, esi
je 0x402c30
cmp dword [ebx], 0
je 0x402c30
dec esi
jmp 0x402c19
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x6e4008], 0x8088405
inc edx
mov dword [ebx + 0x6e4008], edx
fld qword [ebx + 0x6e406c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403c74
Capabilities:
Query or enumerate registry value

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

Function at 0x404af8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6f104c], 0
je 0x404b59
cmp word [0x6f1220], 0xd7b2
jne 0x404b21
cmp dword [0x6f1228], 0
jbe 0x404b21
mov eax, 0x6f121c
call dword [0x6f1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x6e407c
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 0x404b80
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6e4034], 0
jne 0x404b75
push 0
push 0x6e4074
push 0x6e407c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4067d0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406853
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406853
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4068dc
xor eax, eax
push ebp
push 0x4068d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406618
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4068ba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406a3c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4068ba
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4068dc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4069f6
cmp byte [ebp - 0xd], 0
jne 0x406923
cmp byte [ebp - 0x12], 0
je 0x4069f6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40693c
dec ebx
cmp byte [ebx], 0x2e
je 0x40694b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40693b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4069f6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406988
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4069f6
cmp byte [ebp - 0xd], 0
je 0x4069f6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4069f6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4070fc
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 0x407162
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.00404f04
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403644
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40714c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407169
lea eax, [ebp - 0x10]
call fcn.00404c94
ret

Function at 0x40a7a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405170
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a7c1
test al, 0x10
jne 0x40a7c5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ddf8
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 0x40de31
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d84
jmp 0x40de3a
mov eax, ebx
mov edx, esi
call fcn.00404ce8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ee7c
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 0x40ef52
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d2c
lea eax, [ebp - 8]
call fcn.004051c0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405170
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ef3c
mov eax, ebx
call fcn.00402848
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ef35
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.00405170
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ef1f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ef64
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ef1f
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 0x40ef3c
mov eax, dword [ebp - 0x10]
call fcn.00402868
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef59
lea eax, [ebp - 8]
call fcn.00404c94
ret
Function at 0x40f568
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 0x40f5cc
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.00404f04
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a390
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f5d3
lea eax, [ebp - 0xc]
call fcn.00404c94
ret

Function at 0x42d2d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6f1888
cmp dword [edi], 0
jne 0x42d34c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x6f1884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x6e46e4
mov ecx, 2
call fcn.00402a50
mov edx, 0x42d2a8
lea eax, [esi + 5]
call fcn.0042d2c8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042d2c8
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 0x42d321
mov dword [0x6f1884], 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 0x42ea40
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 0x42ea46
ret

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