joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004e70
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [esp], edx
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x30], eax
call dword [ecx]
cmp dword [0x10017144], 0
jne 0x10004f63
lea eax, [esp + 0x2c]
lea esi, [esp + 4]
lea edx, [esp + 0x28]
mov ecx, esi
push eax
call fcn.10003af0
add esp, 4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
lea ebx, [esp + 8]
push ebx
call fcn.10002cc0
add esp, 4
lea edx, [esp + 0x2c]
mov ecx, ebx
call fcn.10002c60
movzx ebx, byte [esp + 0x2c]
lea edx, [esp + 0x2c]
mov ecx, esi
call fcn.10002cd0
movzx edx, byte [esp + 0x2c]
mov ecx, ebx
call fcn.10002d20
test al, 1
je 0x10004f52
lea ebx, [esp + 0x18]
lea esi, [esp + 0x2c]
mov ecx, ebx
mov edx, esi
call fcn.10003b30
mov ecx, dword [esp + 0x2c]
lea ebp, [esp + 0x1c]
mov edx, ebp
push esi
push ebx
call fcn.10003ad0
add esp, 8
mov ecx, dword [esp + 0x2c]
lea edi, [esp + 0x20]
mov edx, edi
call fcn.10002d10
mov ecx, ebx
mov edx, edi
push esi
call fcn.10002ca0
add esp, 4
mov ecx, dword [esp + 0x2c]
mov edx, ebp
push esi
lea eax, [esp + 0x2c]
push eax
call fcn.10002cf0
add esp, 8
mov ecx, dword [esp + 0x2c]
movzx edx, byte [esp + 0x28]
call fcn.10002d30
test al, 1
jne 0x10004f63
mov ecx, 0x2fa62ca8
call fcn.100026d0
mov dword [0x10017144], eax
jmp 0x10004eeb
lea esi, [esp + 0x24]
lea edi, [esp + 0x2c]
lea ebx, [esp + 0x28]
mov ecx, esi
mov edx, ebx
push edi
call fcn.10003af0
add esp, 4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push ebx
call fcn.10002cc0
add esp, 4
lea edx, [esp + 0x2c]
mov ecx, ebx
call fcn.10002c60
lea edx, [esp + 0x2c]
mov ecx, esi
call fcn.10002cd0
lea ebp, [esp + 0x10]
lea esi, [esp + 0x14]
nop dword [eax + eax]
lea ecx, [esp + 0xc]
mov edx, ebp
push edi
call fcn.10003b10
add esp, 4
mov ecx, dword [esp + 0x2c]
mov edx, esi
call fcn.10002cb0
mov ecx, esi
mov edx, edi
call fcn.10002c60
movzx ebx, byte [esp + 0x2c]
mov ecx, ebp
mov edx, edi
call fcn.10002cd0
movzx edx, byte [esp + 0x2c]
mov ecx, ebx
call fcn.10002d20
test al, 1
je 0x10004fb0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
mov dword [ecx], eax
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10005190
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407180
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 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..retplne
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x1000e470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x10089280]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0x426c8ca5
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
sub eax, 0xcbc00a15
je 0x1000e570
jmp 0x1000e4ac
mov eax, dword [ebp - 0x28]
sub eax, 0x2faf7a5
je 0x1000e61b
jmp 0x1000e4bf
mov eax, dword [ebp - 0x28]
sub eax, 0xf84f9d6
je 0x1000e5ca
jmp 0x1000e4d2
mov eax, dword [ebp - 0x28]
sub eax, 0x1cd6b7fa
je 0x1000e5d6
jmp 0x1000e4e5
mov eax, dword [ebp - 0x28]
sub eax, 0x426c8ca5
je 0x1000e4fd
jmp 0x1000e4f8
jmp 0x1000e630
mov ecx, dword [0x1008a754]
mov eax, dword [0x1008a750]
mov edx, ecx
add edx, 0x8ccda63b
sub edx, 1
sub edx, 0x8ccda63b
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0x2faf7a5
mov ecx, 0xcbc00a15
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x1000e630
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push eax
mov edx, esp
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [0x1008a754]
mov ecx, dword [0x1008a750]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x2faf7a5
mov ecx, 0xf84f9d6
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x1000e630
mov dword [ebp - 0x1c], 0x1cd6b7fa
jmp 0x1000e630
mov edx, dword [ebp - 0x18]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0x14]
mov edi, dword [edx]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x63
sub byte [edi], 0x27
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x1000e5e8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10029320
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push eax
mov eax, esp
mov dword [ebp - 0x14], edx
mov dword [eax], ecx
mov dword [ebp - 0x1c], 0xcbc00a15
jmp 0x1000e496
Function at 0x1002e33a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002e379
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002e379
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002e379
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1002e379
cmp dword [ecx + 0x74], 0xe
jbe 0x1002e379
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10030d04
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10030da1
push ebx
push esi
call fcn.10030ccd
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10030c61
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10030d4e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10030da0
push edi
push eax
call fcn.1002f602
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10030d6e
call fcn.1002f650
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10030d9f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10030c61
add esp, 0x20
test eax, eax
jne 0x10030d8d
push edi
call fcn.1002f650
jmp 0x10030d95
push ebx
call fcn.1002f650
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1003100e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100393e0
push 0x100393d8
push str.FlsAlloc
push 0x1f
call fcn.10030f2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10031042
push dword [ebp + 8]
mov ecx, esi
call dword [0x10037150]
call esi
jmp 0x10031048
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003108c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100393f0
push 0x100393e8
push str.FlsGetValue
push 0x21
call fcn.10030f2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100310c3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10037150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100310cb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100393f8
push 0x100393f0
push str.FlsSetValue
push 0x22
call fcn.10030f2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10031105
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10037150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10036610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003663d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003663d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4029a4
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.0040469c
test esi, esi
jne 0x4029da
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.0040478c
jmp 0x4029f8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402858
mov edi, eax
test esi, esi
je 0x4029f8
cmp dword [ebx], 0
je 0x4029f8
dec esi
jmp 0x4029e1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4038e4
Capabilities:
Query or enumerate registry value

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

Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x439044], 0
je 0x404581
cmp word [0x439218], 0xd7b2
jne 0x404549
cmp dword [0x439220], 0
jbe 0x404549
mov eax, 0x439214
call dword [0x439230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x43629c
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 0x4045a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x436030], 0
jne 0x40459d
push 0
push 0x436294
push 0x43629c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405dd0
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 0x406000
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e53
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406000
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e53
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40601c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405edc
xor eax, eax
push ebp
push 0x405ed5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c18
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 0x405eba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40603c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405eba
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 0x405edc
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 0x405ff6
cmp byte [ebp - 0xd], 0
jne 0x405f23
cmp byte [ebp - 0x12], 0
je 0x405ff6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f3c
dec ebx
cmp byte [ebx], 0x2e
je 0x405f4b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f3b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405ff6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f88
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 0x405ff6
cmp byte [ebp - 0xd], 0
je 0x405ff6
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 0x405ff6
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 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.0040490c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ffc
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.0040469c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b5c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4086b5
test al, 0x10
jne 0x4086b9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b5b8
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 0x40b5f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040478c
jmp 0x40b5fa
mov eax, ebx
mov edx, esi
call fcn.004046f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bdf8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc70
mov eax, dword [0x438114]
cmp byte [eax], 0
je 0x40be74
mov eax, dword [0x438008]
call fcn.00402e28
call fcn.00402784
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.00408c80
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 0x40bebc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40beaa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x437fd8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x439660]
call fcn.00405bdc
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 0x40cc08
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 0x40cc6c
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.0040490c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004082e8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc73
lea eax, [ebp - 0xc]
call fcn.0040469c
ret

Function at 0x4154d8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b4c
mov eax, dword [ebp - 8]
call fcn.00404b4c
xor eax, eax
push ebp
push 0x41554a
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0
mov eax, dword [ebp - 8]
call fcn.00404b5c
push eax
mov eax, dword [ebp - 4]
call fcn.00404b5c
push eax
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415551
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046c0
ret
Function at 0x4179e8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404b4c
xor eax, eax
push ebp
push 0x417b76
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x417b2e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
call fcn.0040469c
cmp dword [ebp - 4], 0
jne 0x417a40
lea edx, [ebp - 4]
xor eax, eax
call fcn.00418b34
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b5c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
push 0
push 0x4000
call fcn.004156e4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00404ce8
lea eax, [ebp - 0x10]
call fcn.00404bb4
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x417b88
lea eax, [ebp - 0x10]
call fcn.00404bb4
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 0xc]
push ebx
mov eax, esi
call fcn.00406e68
movzx eax, ax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
movzx eax, si
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, edi
call fcn.00406e68
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
movzx eax, di
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
mov ecx, 3
mov eax, 0x417b94
call fcn.0040921c
cmp dword [ebp - 8], 1
jg 0x417b09
cmp dword [ebp - 0xc], 4
jge 0x417b24
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00417864
mov edx, dword [ebp - 0x40]
mov eax, ebx
call fcn.004046f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x417b50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417b7d
lea eax, [ebp - 0x40]
call fcn.0040469c
lea eax, [ebp - 0x10]
call fcn.0040469c
lea eax, [ebp - 4]
call fcn.0040469c
ret