joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040b40
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x10053978
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x1007ff50]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, dword [esp + 0x78]
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10040bb0
xor esi, esi
push esi
xor eax, eax
push esi
push 1
push esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x44], eax
cmp eax, esi
mov dword [esp + 0x70], esi
jne 0x10040bc5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x64
ret
mov bl, byte [esp + 0x7c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov al, bl
neg al
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
sbb eax, eax
and eax, ecx
push eax
push edx
push 0x20
lea eax, [esp + 0x54]
push eax
push 0x10
lea ecx, [esp + 0x38]
push ecx
push 0x940cf
push edi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x10040c7c
cmp eax, esi
jne 0x10040ca7
call ebx
cmp eax, 0x3e5
jne 0x10040c80
lea ecx, [esp + 0x1c]
call fcn.10021d50
lea edx, [esp + 0x1c]
push edx
push edi
lea ecx, [esp + 0x3c]
call fcn.10040a00
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
neg eax
sbb eax, eax
test eax, 0x10021dd0
je 0x10040ca7
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x10040c67
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x64
ret
cmp eax, esi
jne 0x10040ca7
call ebx
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x10040c67
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x64
ret
cmp dword [esp + 0x10], 0x10
mov eax, dword [esp + 0x44]
setne bl
cmp eax, 0xffffffff
je 0x10040cbf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x64
ret
Function at 0x100411e0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [ecx + 4]
sub esp, 8
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10041218
push esi
call fcn.1004b610
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
or eax, 0xffffffff
mov dword [ecx + 4], esi
or edx, eax
pop esi
add esp, 8
ret 4
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret 4

Function at 0x10041cd0
Capabilities:
Clear file content
Get file size

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x24]
mov ebx, ecx
test byte [ebx + 0x24], 4
push edi
mov edi, dword [esp + 0x2c]
je 0x10041da6
mov eax, dword [0x1008034c]
test eax, eax
jne 0x10041cfd
call fcn.100380f0
mov dword [0x1008034c], eax
add eax, 0xffffffff
cdq
and eax, esi
and edx, edi
or eax, edx
je 0x10041da6
mov eax, dword [0x10080360]
test eax, eax
jne 0x10041d58
cmp byte [0x1008035c], al
jne 0x10041dcf
push str.ntdll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10041d46
push str.NtSetInformationFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x10080360], eax
jne 0x10041d58
pop edi
pop esi
mov byte [0x1008035c], 1
xor al, al
pop ebx
add esp, 0x18
ret 0xc
cmp byte [0x1008035c], 0
jne 0x10041dcf
test eax, eax
je 0x10041dcf
push 0x14
push 8
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x28]
push edx
push ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
call eax
test eax, eax
jns 0x10041e17
call fcn.1004b610
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov dword [ecx + 4], eax
mov dword [ecx], 0xffffffff
xor al, al
pop ebx
add esp, 0x18
ret 0xc
mov eax, dword [ebx + 4]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10041dda
call fcn.1004b610
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], esi
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 0xc
mov ecx, dword [esp + 0xc]
cmp ecx, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
jne 0x10041df2
mov edx, dword [esp + 0x10]
cmp edx, edi
je 0x10041e17
mov ecx, dword [ebx + 4]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10041db9
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10041db9
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x18
ret 0xc
Function at 0x10045cb0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret

Function at 0x1004a1cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007ff50]
jne 0x1004a1d6
repz ret
jmp fcn.1004acbf

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3c4f4fe2
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
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
pop eax
nop
nop
nop
nop
mov esi, 0xe743367
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4010b2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4010ff
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x804]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x404]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40170c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40171b
pop dword [ebp - 0x3c]
mov eax, 0x40171b
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x1c68fd32
add dword [ebp - 0x4c], 0x31e94819
mov dword [ebp - 0x48], 0x822f4294
sub dword [ebp - 0x48], 0x4ffbf64f
mov dword [ebp - 0x44], 0x9eb62540
sub dword [ebp - 0x44], 0x5269e112
mov dword [ebp - 0x40], 0x863f5d96
add dword [ebp - 0x40], 0x79c0a26a
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xc0fbcde
sub eax, 0xbceec8a
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xb9e7df9d
sub dword [ebp - 0x4c], 0x45757647
mov dword [ebp - 0x48], 0x2dd83324
add dword [ebp - 0x48], 0x13942e51
mov dword [ebp - 0x44], 0x7e0cb6be
sub dword [ebp - 0x44], 0x1a9d4a52
mov dword [ebp - 0x40], 0x92228bb7
sub dword [ebp - 0x40], 0x92228bb7
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x35e22
push 0
call eax
mov ecx, 0x822134f0
add ecx, 0x7ddf03ab
xor edx, edx
add edx, eax
mov edi, 0x41b000
add edi, dword [ebp - 0x3c]
mov esi, 0x64b7834a
sub dword [ebp - 0x20], 0x12c5bbfb
mov ebx, dword [edi]
add ebx, esi
xor dword [ebp - 0x24], eax
mov dword [edx], ebx
xor dword [ebp - 0x28], esi
add edx, 0x97769dea
sub edx, 0x97769de6
add edi, 4
loop 0x401829
add eax, 0xd53f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe99a0b21
sub ecx, 0xe95a0b21
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x403644
Capabilities:
Query or enumerate registry value

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

Function at 0x404490
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0xc2e04c], 0
je 0x4044f1
cmp word [0xc2e220], 0xd7b2
jne 0x4044b9
cmp dword [0xc2e228], 0
jbe 0x4044b9
mov eax, 0xc2e21c
call dword [0xc2e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0xc2c06c
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 0x404518
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0xc2c030], 0
jne 0x40450d
push 0
push 0xc2c064
push 0xc2c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40668c
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 0x4066f2
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.00404884
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031e4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066dc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066f9
lea eax, [ebp - 0x10]
call fcn.00404614
ret
Function at 0x4094b8
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40970c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404668
cmp dword [0xc2c0d4], 1
jne 0x409503
cmp dword [0xc2c0d8], 4
jle 0x409542
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x424]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.00404ad4
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x4096ee
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x424]
mov edx, dword [edx]
call fcn.0040480c
jmp 0x4096ee
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.00402f20
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0x41
jb 0x4096ee
cmp byte [ebp - 0x19], 0x5a
ja 0x4096ee
mov eax, dword [ebp - 4]
call fcn.004048d4
cmp eax, 3
jl 0x4096ee
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x4096ee
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x4096ee
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x4096ee
xor eax, eax
push ebp
push 0x4096e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.00402a7c
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4096c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.mpr.dll_WNetEnumResourceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xea
jne 0x409616
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00402acc
jmp 0x4095d5
cmp dword [ebp - 0x10], 0
je 0x40962b
call fcn.0040404c
call fcn.0040404c
jmp 0x4096ee
mov esi, dword [ebp - 0x14]
dec esi
test esi, esi
jl 0x4095d5
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x24]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x4096a7
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.00402f20
cmp al, byte [ebp - 0x19]
jne 0x4096a7
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp - 4]
call fcn.004048d4
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00404b34
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, dword [ebx + 0x14]
call fcn.0040480c
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00404920
call fcn.0040404c
call fcn.0040404c
jmp 0x4096ee
inc edi
dec esi
jne 0x409636
jmp 0x4095d5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409713
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00404638
ret
Function at 0x40c13c
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 0x40c175
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404704
jmp 0x40c17e
mov eax, ebx
mov edx, esi
call fcn.00404668
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c840
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c6a8
mov eax, dword [0xc2d60c]
cmp byte [eax], 0
je 0x40c8bc
mov eax, dword [0xc2d3dc]
call fcn.00403014
call fcn.00402c08
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.00409824
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 0x40c904
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c8f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0xc2d378]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0xc2e668]
call fcn.00405af8
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 0x40d1a8
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 0x40d27e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004046ac
lea eax, [ebp - 8]
call fcn.00404b24
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ad4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d268
mov eax, ebx
call fcn.00402a7c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d261
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.00404ad4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d24b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d290
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d24b
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 0x40d268
mov eax, dword [ebp - 0x10]
call fcn.00402aac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d285
lea eax, [ebp - 8]
call fcn.00404614
ret

Function at 0x40d848
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 0x40d8ac
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.00404884
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408e54
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d8b3
lea eax, [ebp - 0xc]
call fcn.00404614
ret

Function at 0x423454
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0xc2e88c
cmp dword [edi], 0
jne 0x4234d0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0xc2e888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0xc2c4b0
mov ecx, 2
call fcn.00402c9c
mov edx, 0x42342c
lea eax, [esi + 5]
call fcn.0042344c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042344c
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 0x4234a5
mov dword [0xc2e888], 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 0x4246fc
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 0x424702
ret
Function at 0x426d44
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 0x426d95
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x426d7c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x426d6c
jmp 0x426d95
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 0x426d7d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434cc0
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.004031c4
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 [0xc2d744]
cmp byte [edx + 0xc], 0
je 0x434d24
mov edx, dword [0xc2d738]
cmp dword [edx], 2
jne 0x434d24
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 0x434d28
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 0x434de0
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.00434cc0
test al, al
je 0x434dc2
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404704
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x434dc2
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.00404ad4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404ad4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040480c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x434d7b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434de7
lea eax, [ebp - 0x2c]
call fcn.00404614
lea eax, [ebp - 0xc]
call fcn.00404614
ret