joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52a840
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x52a8ff
cmp dword [esi + 4], 0xffffffff
jne 0x52a8ff
lea edi, [esi + 0x140]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + esi + 0x13f]
mov cl, byte [ecx + esi + 0x13f]
cmp cl, 0x5c
je 0x52a895
cmp cl, 0x2f
je 0x52a895
mov byte [eax + 1], 0x2f
mov byte [eax + 2], 0
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp ebx, 1
jne 0x52a8bc
push edi
call fcn.005268f0
add esp, 4
cmp eax, 0xffffffff
jne 0x52a8bc
pop edi
pop esi
mov eax, 0x2000000
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push ebx
push ecx
push edi
call fcn.005293d0
add esp, 0x10
test eax, eax
jne 0x52a8df
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret 0xc
push eax
call fcn.005299a0
add esp, 4
mov dword [esi], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebx
pop ecx
ret 0xc

Function at 0x52af50
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
push edi
test ebx, ebx
je 0x52afca
push 0x104
lea eax, [esp + 0x114]
push ebx
push eax
call fcn.00534681
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52afa6
mov al, byte [esp + ecx + 0x10f]
lea ecx, [esp + ecx + 0x10f]
cmp al, 0x2f
je 0x52afa3
cmp al, 0x5c
jne 0x52afa6
mov byte [ecx], 0
lea ecx, [esp + 0x110]
push ecx
call fcn.005269c0
add esp, 4
test al, al
jne 0x52afca
lea edx, [esp + 0x110]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x21c]
mov al, byte [ebp]
test al, al
je 0x52b099
mov edx, ebp
mov ecx, ebp
cmp al, 0x2f
je 0x52afe8
cmp al, 0x5c
jne 0x52afea
mov edx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x52afe0
cmp edx, ebp
je 0x52b02e
mov eax, edx
push esi
sub eax, ebp
mov esi, ebp
mov ecx, eax
lea edi, [esp + 0x114]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x114], 0
lea eax, [esp + 0x114]
push eax
push ebx
call fcn.0052af50
add esp, 8
pop esi
test ebx, ebx
mov byte [esp + 0xc], 0
je 0x52b04a
push 0x104
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.00534681
add esp, 0xc
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10f], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 0x104
sub edx, ecx
push edx
lea eax, [esp + ecx + 0x10]
push ebp
push eax
call fcn.00534681
lea ecx, [esp + 0x18]
mov byte [esp + 0x11b], 0
push ecx
call fcn.005269c0
add esp, 0x10
test al, al
jne 0x52b099
lea edx, [esp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x52e760
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x59e55c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x52e773
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x52e7b4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x59e604]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x52e7e6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x52e7ea
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x52e7db
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x52e808
mov bl, byte [esp + ecx + 0x4c]
jmp 0x52e80c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x52e7fd
xor ecx, ecx
mov eax, 0x59e56c
xor ebx, ebx
mov bl, byte [ecx + 0x59e614]
cmp byte [esp + ebx + 0x14], 0
je 0x52e837
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x59e62c]
cmp byte [esp + ebx + 0x14], 0
je 0x52e84e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x52e81e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x52e7a7
lea edx, [esp + 0x84]
push edx
call fcn.0052e890
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x401436
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 4], 0
mov dword [esp], str.ConsoleWindowClass
call sub.USER32.dll_FindWindowA
push edx
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push ecx
push ecx
leave
ret

Function at 0x401615
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea edx, [eax - 1]
cmp edx, 1
jbe 0x40166d
cmp dword [0x408074], 0
je 0x40166d
cmp eax, 0x2e
jg 0x401664
cmp eax, 0xf
jg 0x401642
cmp eax, 9
jg 0x401656
cmp eax, 7
jle 0x401664
jmp 0x40165b
lea ecx, [eax - 0x10]
mov edx, 1
shl edx, cl
and edx, 0x41f90803
je 0x401664
jmp 0x40165b
cmp eax, 0xd
jne 0x401664
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00401466
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00401597
pop ebp
ret

Function at 0x40166f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, 8
mov dword [esp], ebx
call sub.USER32.dll_GetAsyncKeyState
push edx
cmp ax, 0x8001
jne 0x401692
mov dword [esp], ebx
call fcn.00401615
inc ebx
cmp ebx, 0xbf
jne 0x40167b
mov dword [esp], 0xa
call sub.KERNEL32.dll_Sleep
push eax
jmp 0x401676
Function at 0x401df0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401e3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401e34
test esi, esi
je 0x401e34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e10
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402020
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402144
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x4020ae
cmp eax, 4
jne 0x4020d0
test esi, esi
je 0x4020c2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x4020b4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40210f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x402101
cmp ecx, 0x40
je 0x4020c2
cmp ecx, 4
je 0x4020c2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402020
lea esi, [esi]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1397c
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 8]
cmp word [edx], 0x5a4d
push ebx
push esi
push edi
jne 0x13a5a
mov eax, dword [edx + 0x3c]
add eax, edx
mov ecx, dword [eax]
cmp ecx, 0x4550
je 0x139b0
cmp ecx, 0x50450000
jne 0x13a5a
and dword [ebp - 8], 0
lea ecx, [eax + 0xf8]
movzx eax, word [eax + 6]
test eax, eax
mov dword [ebp + 8], ecx
mov dword [ebp - 0x14], eax
jbe 0x13a5a
mov esi, dword [ebp + 8]
push 7
mov edi, 0x13970
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x13a47
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
and dword [ebp - 4], 0
add eax, edx
mov ecx, dword [eax + 0x1c]
lea esi, [ecx + edx]
mov ecx, dword [eax + 0x14]
test ecx, ecx
mov dword [ebp - 0x10], ecx
jbe 0x13a47
mov eax, dword [eax + 0x20]
sub eax, esi
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi]
mov edi, dword [ebp + 0xc]
add eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [edi]
jne 0x13a30
test cl, cl
je 0x13a2c
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [edi + 1]
jne 0x13a30
inc eax
inc eax
inc edi
inc edi
test cl, cl
jne 0x13a0e
xor eax, eax
jmp 0x13a35
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x13a63
add esi, 4
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jb 0x13a03
add dword [ebp + 8], 0x28
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x139cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [esi]
add eax, edx
jmp 0x13a5c
Function at 0xa63f10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x465000]
mov dword [edi + 0x4d211c], 0xab92d39
push edi
jmp 0xa63f3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa63f41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa63f30
mov eax, 1
add ebx, ebx
jne 0xa63f53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa63f64
jne 0xa63f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa63f83
dec eax
add ebx, ebx
jne 0xa63f70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa63f48
add ebx, ebx
jne 0xa63f7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa63fd5
xor ecx, ecx
sub eax, 3
jb 0xa63f9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa6400a
sar eax, 1
mov ebp, eax
jmp 0xa63fa6
add ebx, ebx
jne 0xa63fa6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa63f74
inc ecx
add ebx, ebx
jne 0xa63fb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa63f74
add ebx, ebx
jne 0xa63fc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa63fb6
jne 0xa63fd2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa63fb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa63ff4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa63fe6
jmp 0xa63f36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa63ff4
add edi, ecx
jmp 0xa63f36
pop esi
mov edi, esi
mov ecx, 0x1b1eb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa64012
cmp byte [edi], 0xaf
jne 0xa64012
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 0xa64017
lea edi, [esi + 0x65f000]
mov eax, dword [edi]
or eax, eax
je 0xa6408f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x669cc0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x669e8c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa64044
mov ecx, edi
jns 0xa64073
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 + 0x669e90]
or eax, eax
je 0xa64089
mov dword [ebx], eax
add ebx, 4
jmp 0xa64061
call dword [esi + 0x669ea0]
mov ebp, dword [esi + 0x669e94]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0xa640c3
sub esp, 0xffffff80
jmp 0x40262c
Function at 0x402b20
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.00404308
test esi, esi
jne 0x402b56
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.004043f8
jmp 0x402b74
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029d4
mov edi, eax
test esi, esi
je 0x402b74
cmp dword [ebx], 0
je 0x402b74
dec esi
jmp 0x402b5d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403258
Capabilities:
Query or enumerate registry value

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

Function at 0x404108
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48804c], 0
je 0x404169
cmp word [0x488220], 0xd7b2
jne 0x404131
cmp dword [0x488228], 0
jbe 0x404131
mov eax, 0x48821c
call dword [0x488238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x486070
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 0x404190
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x486034], 0
jne 0x404185
push 0
push 0x486068
push 0x486070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4042bc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402798
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404284
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406388
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 0x4063ee
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.00404578
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e10
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4063d8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063f5
lea eax, [ebp - 0x10]
call fcn.00404308
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004047c8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408f25
test al, 0x10
jne 0x408f29
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40be08
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 0x40be41
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043f8
jmp 0x40be4a
mov eax, ebx
mov edx, esi
call fcn.0040435c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c4fc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c374
mov eax, dword [0x487714]
cmp byte [eax], 0
je 0x40c578
mov eax, dword [0x4874c0]
call fcn.00402c60
call fcn.00402900
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.004093f0
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 0x40c5c0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c5ae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x487450]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x488668]
call fcn.00405830
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 0x40ce68
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 0x40cf3e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004043a0
lea eax, [ebp - 8]
call fcn.00404818
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004047c8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cf28
mov eax, ebx
call fcn.00402798
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cf21
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.004047c8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cf0b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cf50
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cf0b
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 0x40cf28
mov eax, dword [ebp - 0x10]
call fcn.004027b8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf45
lea eax, [ebp - 8]
call fcn.00404308
ret

Function at 0x40d540
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 0x40d5a4
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.00404578
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408b38
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d5ab
lea eax, [ebp - 0xc]
call fcn.00404308
ret

Function at 0x4210b0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00420f08
dec esi
jne 0x4210d2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x422214
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x488890
cmp dword [edi], 0
jne 0x422290
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x48888c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4865b0
mov ecx, 2
call fcn.00402994
mov edx, 0x4221ec
lea eax, [esi + 5]
call fcn.0042220c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042220c
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 0x422265
mov dword [0x48888c], 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 0x424d50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x424de4
push 0
mov eax, ebx
call fcn.004047c8
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x424dbf
mov eax, esi
call fcn.004045c8
inc eax
push eax
mov eax, esi
call fcn.004047c8
push eax
push 1
push 0
mov eax, edi
call fcn.004047c8
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x424dda
mov ecx, dword [0x4874d8]
mov dl, 1
mov eax, dword [0x423a68]
call fcn.0040c68c
call fcn.00403c38
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4