joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a47ec
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4a49c2
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4c2600]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4a49c2
test cl, 0x48
je 0x4a4857
cmp byte [eax + 5], 0xa
je 0x4a4857
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4a48a9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4a4891
call fcn.00496e27
mov dword [eax], 9
call fcn.00496e30
mov dword [eax], esi
jmp 0x4a48a1
cmp eax, 0x6d
je 0x4a49c2
push eax
call fcn.00496e39
pop ecx
or eax, 0xffffffff
jmp 0x4a49c4
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4a49bd
test eax, eax
je 0x4a48d0
cmp byte [ebx], 0xa
jne 0x4a48d0
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4a48d9
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4a49b7
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4a49a7
cmp al, 0xd
je 0x4a490b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4a4999
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4a4925
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4a4920
add dword [ebp + 0x10], 2
jmp 0x4a4979
mov dword [ebp + 0x10], eax
jmp 0x4a4995
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4a494d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4a4995
cmp dword [ebp - 0xc], 0
je 0x4a4995
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4a496e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4a4979
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4a4998
cmp ebx, dword [ebp + 0xc]
jne 0x4a497e
cmp byte [ebp - 1], 0xa
jne 0x4a497e
mov byte [ebx], 0xa
jmp 0x4a4998
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049ff07
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a4999
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4a48ef
jmp 0x4a49b7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4a49b7
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4a49c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a5345
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4a535e
or eax, 0xffffffff
jmp 0x4a53bf
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4a53bb
push 0x3d
push esi
call fcn.004a5546
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4a53bb
cmp esi, eax
je 0x4a53bb
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4c1db0]
sete cl
cmp eax, dword [0x4c1db4]
mov dword [ebp - 4], ecx
jne 0x4a53a1
mov edi, eax
call fcn.004a52e4
mov dword [0x4c1db0], eax
cmp eax, ebx
jne 0x4a53fa
cmp dword [ebp + 0xc], ebx
je 0x4a53c3
cmp dword [0x4c1db8], ebx
je 0x4a53c3
call fcn.004a475c
test eax, eax
je 0x4a53fa
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4a53cc
xor eax, eax
jmp 0x4a53be
push 4
call fcn.00494374
cmp eax, ebx
pop ecx
mov dword [0x4c1db0], eax
je 0x4a53bb
mov dword [eax], ebx
cmp dword [0x4c1db8], ebx
jne 0x4a53fa
push 4
call fcn.00494374
cmp eax, ebx
pop ecx
mov dword [0x4c1db8], eax
je 0x4a53bb
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4c1db0]
sub edi, esi
push esi
call fcn.004a5297
mov edi, eax
test edi, edi
pop ecx
jl 0x4a5461
cmp dword [ebx], 0
je 0x4a5461
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00493f13
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4a5441
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4a54a2
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4a5438
mov eax, edi
shl eax, 2
push eax
push dword [0x4c1db0]
call fcn.00495f2a
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4a54a2
jmp 0x4a549d
cmp dword [ebp - 4], 0
jne 0x4a5509
test edi, edi
jge 0x4a5471
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4c1db0]
call fcn.00495f2a
test eax, eax
pop ecx
pop ecx
je 0x4a53bb
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4c1db0], eax
cmp dword [ebp + 0xc], 0
je 0x4a54f4
push esi
call fcn.00497120
inc eax
inc eax
push eax
call fcn.00494374
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4a54f4
push esi
push edi
call fcn.00492f50
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x4a54ed
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00493f13
pop ecx
cmp dword [ebp - 4], 0
je 0x4a5501
push esi
call fcn.00493f13
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4a53be
push esi
call fcn.00493f13
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4a53c8
Function at 0x4c5d78
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push eax
push eax
push dword [esi]
call fcn.004d1fd5
push dword [esi]
mov ebx, 0xd0
lea edi, [esi + 8]
push 1
push ebx
push edi
call fcn.004d1bea
add esp, 0x20
cmp eax, 1
jae 0x4c5dab
push 0x42dc48
jmp 0x4c5dda
cmp dword [edi], 0x4957534d
jne 0x4c5dd5
cmp dword [edi + 4], 0x4d
jne 0x4c5dd5
cmp dword [esi + 0x10], ebx
jne 0x4c5dd5
cmp dword [esi + 0x14], 0xe00
jne 0x4c5dd5
cmp dword [esi + 0x18], 0x80082
jne 0x4c5dd5
xor eax, eax
inc eax
jmp 0x4c5dec
push 0x42dcb0
push 2
call fcn.004c8cba
pop ecx
push eax
call fcn.004c5cb0
pop ecx
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
ret

Function at 0x4c5df0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x58]
mov edx, dword [esi + 0x54]
mov dword [esi + 0xe0], eax
and edx, 0xffffff
mov eax, dword [esi + 0x5c]
mov dword [esi + 0xe4], eax
mov eax, dword [esi + 0x50]
mov dword [esi + 0xd8], eax
add eax, 2
push eax
mov dword [esi + 0xdc], edx
call fcn.004d1ff0
push 0
push dword [esi + 0xe4]
mov edi, eax
push dword [esi + 0xe0]
push dword [esi]
call fcn.004d1fd5
push dword [esi]
push 1
push dword [esi + 0xd8]
push edi
call fcn.004d1bea
add esp, 0x24
cmp eax, 1
jae 0x4c5e77
push edi
call fcn.004d0343
mov dword [esp], 0x42dd20
push 2
call fcn.004c8cba
pop ecx
push eax
call fcn.004c5cb0
pop ecx
pop ecx
xor eax, eax
jmp 0x4c5e98
mov edx, dword [esi + 0xd8]
xor eax, eax
mov ecx, dword [esi + 0xdc]
shrd edx, ecx, 1
shr ecx, 1
xor ecx, ecx
inc eax
mov word [edi + edx*2], cx
mov dword [esi + 0xe8], edi
pop edi
pop esi
ret
Function at 0x4c6177
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x431410]
push ebx
push esi
xor esi, esi
mov ebx, ecx
xor ecx, ecx
inc esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ecx
push edi
cmp eax, 0x80
jne 0x4c61f3
push 0xf0000000
push 0x18
push ecx
push ecx
lea eax, [ebp - 4]
push eax
call dword [0x421024]
test eax, eax
je 0x4c61ec
mov edi, dword [0x421010]
lea eax, [ebp - 8]
push eax
push 0x41
push 0
push 0x494
lea eax, [ebx + 0xf0]
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x4c61ec
lea eax, [ebp - 0x10]
push eax
push 0x41
push dword [ebp - 8]
lea eax, [ebx + 0x690]
push 0x8c
jmp 0x4c6248
xor esi, esi
jmp 0x4c631f
cmp eax, 0x100
jne 0x4c6254
push 0xf0000000
push 0x18
push ecx
push ecx
lea eax, [ebp - 4]
push eax
call dword [0x421024]
test eax, eax
je 0x4c61ec
mov edi, dword [0x421010]
lea eax, [ebp - 8]
push eax
push 0x41
push 0
push 0x494
lea eax, [ebx + 0xf0]
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x4c61ec
lea eax, [ebp - 0x10]
push eax
push 0x41
push dword [ebp - 8]
lea eax, [ebx + 0x584]
push 0x10c
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x4c61ec
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x71c], ecx
jle 0x4c631f
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x720]
push esi
mov edi, dword [eax + ecx + 8]
shr edi, 4
lea eax, [edi + 1]
shl eax, 4
push eax
mov dword [ebp - 0x18], eax
call fcn.004c8be7
mov ecx, dword [ebp - 0xc]
mov esi, eax
mov eax, dword [ebx + 0x720]
push 0
push dword [eax + ecx + 4]
push dword [eax + ecx]
push dword [ebx]
call fcn.004d1fd5
push dword [ebx]
mov eax, dword [ebx + 0x720]
mov ecx, dword [ebp - 0xc]
push 1
push dword [eax + ecx + 8]
push esi
call fcn.004d1bea
add esp, 0x28
lea eax, [ebp - 0x18]
push eax
push esi
push 0
push 1
push 0
push dword [ebp - 0x10]
call dword [0x421020]
mov eax, dword [ebx + 0x720]
mov ecx, dword [ebp - 0xc]
push 0
push dword [eax + ecx + 4]
push dword [eax + ecx]
push dword [ebx]
call fcn.004d1fd5
push dword [ebx]
push edi
push 0x10
push esi
call fcn.004d0089
push dword [ebx]
call fcn.004c8ecc
push esi
call fcn.004d0343
mov eax, dword [ebp - 0x14]
add esp, 0x28
mov ecx, dword [ebp - 0xc]
inc eax
add ecx, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
push 1
pop esi
cmp eax, dword [ebx + 0x71c]
jl 0x4c6266
cmp dword [ebp - 8], 0
mov edi, dword [0x421004]
je 0x4c6330
push dword [ebp - 8]
call edi
cmp dword [ebp - 0x10], 0
je 0x4c633b
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 4], 0
je 0x4c634c
push 0
push dword [ebp - 4]
call dword [0x421008]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c6659
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
inc ebx
call fcn.004c6355
test eax, eax
je 0x4c6751
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.004c6583
test eax, eax
je 0x4c6751
mov eax, dword [edi + 0xd8]
push 0
push dword [edi + 0xe4]
mov dword [edi + 0x60], eax
mov eax, dword [edi + 0xdc]
push dword [edi + 0xe0]
mov ecx, dword [edi + 0x60]
xor ecx, dword [edi + 0x50]
push dword [edi]
xor dword [edi + 0x50], ecx
mov dword [edi + 0x64], eax
xor eax, dword [edi + 0x54]
and eax, 0xffffff
xor dword [edi + 0x54], eax
call fcn.004d1fd5
push dword [edi]
push ebx
push dword [edi + 0xd8]
push dword [edi + 0xe8]
call fcn.004d0089
push dword [edi]
call fcn.004d1a08
mov esi, dword [ebp - 4]
add esp, 0x24
mov dword [edi + 0x8c], eax
mov dword [edi + 0x90], edx
push dword [edi]
push ebx
push dword [esi]
push esi
call fcn.004d0089
push dword [edi]
call fcn.004c8ecc
add esp, 0x14
push esi
call fcn.004d0343
pop ecx
xor eax, eax
push eax
push eax
push eax
push dword [edi]
call fcn.004d1fd5
push dword [edi]
lea eax, [edi + 8]
push ebx
push 0xd0
push eax
call fcn.004d0089
push dword [edi]
call fcn.004c8ecc
add esp, 0x24
push dword [edi]
call fcn.004cfe2b
pop ecx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
call fcn.004c8b4c
add esp, 0xc
jmp 0x4c6753
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4dbf12
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dbd91
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4108
mov esi, 0x20900c00
xor ecx, esi
mov edx, 0x2cbeed35
mov edi, 0x35bfedb6
in eax, dx
mov edi, 0x31d73135
stc
mov edx, 0
xor edx, ecx
mov edi, edx
push edi
pop ecx
jmp 0x403f54

Function at 0x40520c
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
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
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
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x402dfc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040449c
test esi, esi
jne 0x402e33
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040458c
jmp 0x402e54
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402e54
cmp dword [ebx], 0
je 0x402e54
dec esi
jmp 0x402e3b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403500
Capabilities:
Query or enumerate registry value

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

Function at 0x404294
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x480048], 0
je 0x4042f5
cmp word [0x48021c], 0xd7b2
jne 0x4042bd
cmp dword [0x480224], 0
jbe 0x4042bd
mov eax, 0x480218
call dword [0x480234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47e06c
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 0x40431c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47e030], 0
jne 0x404311
push 0
push 0x47e064
push 0x47e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404450
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.00402a38
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x480049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404418
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4060f0
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 0x406156
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.0040470c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030c4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406140
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40615d
lea eax, [ebp - 0x10]
call fcn.0040449c
ret

Function at 0x40b50c
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 0x40b545
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040458c
jmp 0x40b54e
mov eax, ebx
mov edx, esi
call fcn.004044f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bc10
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba78
mov eax, dword [0x47fb90]
cmp byte [eax], 0
je 0x40bc8c
mov eax, dword [0x47f998]
call fcn.00402f30
call fcn.00402bc4
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.00408b88
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 0x40bcd4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bcc2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47f940]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x480664]
call fcn.0040555c
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 0x40c530
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 0x40c606
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404534
lea eax, [ebp - 8]
call fcn.004049ac
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040495c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c5f0
mov eax, ebx
call fcn.00402a38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c5e9
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.0040495c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c5d3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c618
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c5d3
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 0x40c5f0
mov eax, dword [ebp - 0x10]
call fcn.00402a68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c60d
lea eax, [ebp - 8]
call fcn.0040449c
ret

Function at 0x40cb6c
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 0x40cbd0
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.0040470c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408688
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbd7
lea eax, [ebp - 0xc]
call fcn.0040449c
ret

Function at 0x41a260
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.0041a08c
dec esi
jne 0x41a282
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41b3c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x480888
cmp dword [edi], 0
jne 0x41b440
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x480884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47e488
mov ecx, 2
call fcn.00402c58
mov edx, 0x41b39c
lea eax, [esi + 5]
call fcn.0041b3bc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b3bc
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 0x41b415
mov dword [0x480884], 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 0x41c9dc
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 0x41c9e2
ret

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