joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44547b
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov edx, ebx
test edi, edi
je 0x4454dd
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x4454a5
cmp edi, 2
jb 0x4454a5
cmp byte [esi], al
jne 0x4454a5
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x48e640]
test edi, edi
jne 0x44548e
jmp 0x4454e4
cmp al, 0x23
jne 0x4454cb
cmp byte [esi], al
jne 0x4454cb
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x48e640]
mov al, byte [esi]
inc esi
test al, al
jne 0x4454bd
pop edi
not edx
pop esi
mov eax, edx
pop ebx
ret

Function at 0x4455c7
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
test ebx, ebx
je 0x4455d6
and dword [ebx], 0
mov edx, 0x494de4
call fcn.004454ec
mov esi, eax
test esi, esi
je 0x445670
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
pop ecx
cmp ebp, 0xffffffff
je 0x445669
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x445669
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
pop ecx
cmp edi, 0xffffffff
je 0x445669
push 0
push ebp
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x445669
mov ecx, edi
call fcn.00448aea
mov ebp, eax
test ebp, ebp
je 0x445669
push esi
push edi
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov ecx, esi
cmp eax, edi
je 0x44565a
call fcn.004455b8
mov ecx, ebp
call fcn.00448b02
jmp 0x445670
call fcn.004455b8
test ebx, ebx
je 0x445665
mov dword [ebx], edi
mov eax, ebp
jmp 0x445672
mov ecx, esi
call fcn.004455b8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4567c2
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
cmp dword [esi + 0x5aac], 0
lea edi, [esi + 0x5ab0]
mov ecx, edi
je 0x45681d
push 0
call fcn.00458441
push dword [esp + 0x10]
mov ecx, edi
push ebx
call fcn.00445d55
mov edx, dword [edi]
mov ecx, 0x5d4942
push dword [esi + 0x5aac]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x5ab8]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x456827
push dword [esp + 0x10]
push ebx
call fcn.00445d55
pop edi
pop esi
pop ebx
ret

Function at 0x456e0f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5d4b58]
push esi
mov esi, ecx
push edi
and dword [eax + 0x5a44], 0
test esi, esi
je 0x456e5e
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
call fcn.00456e62
mov edx, 0x494de8
mov ecx, esi
mov edi, eax
call fcn.004454ec
mov esi, eax
test esi, esi
je 0x456e5e
push esi
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, esi
call fcn.004455b8
pop edi
pop esi
leave
ret
Function at 0x45e48c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45e4a6
mov dword [esi + 4], edi
mov dword [esi], edi
call fcn.00448b02
mov dword [esi + 8], edi
lea ecx, [esi + 0xc]
call fcn.00458025
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x45e4c3
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
call fcn.00448b02
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x45e4e4
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
call fcn.00448b02
mov dword [esi + 0x44], edi
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x45e4f9
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
call fcn.00448b02
mov dword [esi + 0x50], edi
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x45e50e
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], edi
call fcn.00448b02
mov dword [esi + 0x5c], edi
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00460bbe
Function at 0x466161
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x5d4b58]
push esi
push 0x11
lea esi, [eax + 8]
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, esi
and al, 1
movzx eax, al
push eax
push 0x1000
call fcn.00444eaf
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, esi
and al, 1
movzx eax, al
push eax
push 0x2000
call fcn.00444eaf
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, esi
and al, 1
movzx eax, al
push eax
push 0x4000
call fcn.00444eaf
push 0x5d
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, esi
and al, 1
movzx eax, al
push eax
push 0x8000
call fcn.00444eaf
pop esi
ret
Function at 0x46cd4c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x78]
shl ebp, 4
push edi
mov dword [esp + 0x10], edx
add ebp, 0x4928f8
call fcn.0046cbfd
mov edi, eax
cmp byte [edi], 0x25
jne 0x46cda9
mov ecx, edi
call fcn.0046cc13
mov ecx, eax
cmp byte [ecx], 0
je 0x46cdac
sub ecx, edi
mov edx, edi
inc ecx
push 0x20
pop eax
cmp ecx, eax
cmovb eax, ecx
lea ecx, [esp + 0x48]
push eax
call fcn.004452cd
cmp byte [esp + 0x4c], 0
lea edi, [esp + 0x4c]
pop ecx
jne 0x46cdac
mov edi, dword [ebp + 8]
push edi
push dword [esp + 0x7c]
lea ecx, [esp + 0x30]
push dword [esp + 0x7c]
push 0x20
pop edx
call fcn.0046b82b
add esp, 0xc
lea esi, [esp + 0x28]
mov al, byte [esi]
cmp al, 0x20
je 0x46cdd2
cmp al, 9
jne 0x46cdd5
inc esi
jmp 0x46cdc8
mov ebx, esi
test al, al
je 0x46cdf3
inc esi
cmp byte [esi], 0
jne 0x46cddb
jmp 0x46cdef
mov al, byte [esi - 1]
cmp al, 0x20
je 0x46cdee
cmp al, 9
jne 0x46cdf3
dec esi
cmp esi, ebx
ja 0x46cde3
lea eax, [esp + 0x28]
cmp ebx, eax
je 0x46ce0e
mov eax, esi
sub eax, ebx
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
sub esi, ebx
mov edx, edi
mov ebx, dword [esp + 0x74]
mov ecx, ebx
mov byte [esp + esi + 0x28], 0
call fcn.0046cd13
mov esi, dword [0x5d4b58]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x598c]
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x10]
je 0x46ce45
xor edx, edx
xor ecx, ecx
call fcn.0044864c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x3e48]
mov dword [eax + 0xf0], ecx
mov dword [eax + 0xf4], edx
xor edx, edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
movss xmm0, dword [eax + 8]
subss xmm0, dword [eax]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [eax + 0xc]
subss xmm0, dword [eax + 4]
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x24]
or eax, 0x18000010
movss dword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x38]
push 0x20
push eax
call fcn.0046e809
mov ecx, dword [esp + 0x3c]
add esp, 0x18
cmp ecx, dword [esp + 0x10]
je 0x46cec1
mov ecx, dword [esi + 0x3e94]
mov dword [esi + 0x598c], ecx
test al, al
je 0x46cf56
mov eax, dword [ebp]
mov ebp, dword [esp + 0x78]
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0x28]
mov edx, ebx
push edi
push ebp
call fcn.0046b8d2
mov edi, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
pop ecx
pop ecx
test edi, edi
jne 0x46cf0a
test esi, esi
je 0x46cf30
jmp 0x46cf23
test esi, esi
je 0x46cf23
push esi
mov edx, edi
mov ecx, ebx
call fcn.0046ba98
pop ecx
test eax, eax
jle 0x46cf23
mov eax, edi
mov edi, esi
mov esi, eax
push esi
push edi
mov edx, ebp
mov ecx, ebx
call fcn.0046bbc0
pop ecx
pop ecx
push dword [esp + 0x24]
lea eax, [esp + 0x20]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
setne bl
test bl, bl
je 0x46cf58
mov ecx, dword [esp + 0x10]
call fcn.004487c5
jmp 0x46cf58
xor ebx, ebx
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x5c
ret
Function at 0x47fc42
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x47fc6d
cmp eax, edi
jge 0x47fc5d
call fcn.0047f656
mov eax, dword [esi + 0xc]
mov ecx, edi
shr eax, cl
sub dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
xor edx, edx
mov ecx, eax
test eax, eax
jle 0x47fc90
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub ecx, 8
mov byte [ebp + edx - 4], al
inc edx
shr edi, 8
mov dword [esi + 0xc], edi
test ecx, ecx
jg 0x47fc78
mov dword [esi + 8], ecx
test ecx, ecx
jns 0x47fcad
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.zlib_corrupt
xor eax, eax
jmp 0x47fd41
cmp edx, 4
jge 0x47fccc
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x47fcbd
xor cl, cl
jmp 0x47fcc2
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + edx - 4], cl
inc edx
cmp edx, 4
jl 0x47fcb4
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
jne 0x47fc94
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x47fd0f
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.read_past_buffer
jmp 0x47fca6
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x47fd2b
push edi
mov ecx, esi
call fcn.0047f745
pop ecx
test eax, eax
je 0x47fca6
push edi
push dword [esi]
push dword [esi + 0x10]
call sub.VCRUNTIME140.dll_memcpy
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x487124
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x48714b
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x48714e
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00487100
pop esi
leave
ret 8

Function at 0x487d52
Capabilities:
Parse pe header

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

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ed0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4d016401
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x107a284c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x405e04
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 0x405e6a
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.00404450
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ea4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e54
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e71
lea eax, [ebp - 0x10]
call fcn.004041e0
ret

Function at 0x40ae60
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 0x40ae99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042d0
jmp 0x40aea2
mov eax, ebx
mov edx, esi
call fcn.00404234
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b564
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3cc
mov eax, dword [0x44ffa8]
cmp byte [eax], 0
je 0x40b5e0
mov eax, dword [0x44fde0]
call fcn.00402d10
call fcn.00402bb4
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.00408650
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 0x40b628
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b616
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44fd94]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x451664]
call fcn.00405270
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 0x40be84
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 0x40bf5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404278
lea eax, [ebp - 8]
call fcn.004046f0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046a0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf44
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf3d
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.004046a0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bf27
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf6c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bf27
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 0x40bf44
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf61
lea eax, [ebp - 8]
call fcn.004041e0
ret

Function at 0x40c434
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 0x40c498
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.00404450
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004081cc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c49f
lea eax, [ebp - 0xc]
call fcn.004041e0
ret
Function at 0x41a760
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, 0x451884
cmp dword [esi], 0
jne 0x41a806
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 [0x451880]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x44f3ec
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a738
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041a758
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.0041a758
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 0x41a7cd
mov eax, dword [ebp - 8]
mov dword [0x451880], 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 0x41b9dc
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 0x41b9e2
ret

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