joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68f3ba
Capabilities:
Encode data using xor

Disassembly:
or al, 0x61
insb byte es:[edi], dx
mov al, 0xc
popal
dec eax
xor byte [ebp - 0x30], cl
in eax, dx
add al, 0x6c
add dword [ecx + esi], ebx
cwde
mov dl, 0xb8
retf
nop
pushal
xor byte [eax], 0x34
arpl word [ecx], bp
cmp dword [eax + ebp*2 + 0x4c], eax
adc dh, byte [edi]
fldenv [eax]
cmp al, 0x2f
sub eax, 0xa6be8c02
cmpsd dword [esi], dword es:[edi]
mov esi, 0x5c505c81
xchg ecx, eax
mov eax, 0x7d70fda0
std
sbb dword [eax + 0xe], edx
xor al, 0x3e
inc esp
sub al, 0x41
dec eax
and byte [edx + ebp*4], cl
jl 0x68f3bf
mov esp, 0x8df05f90
popal
pushfd
imul ebp, dword [ecx + ebx*8 - 0x5f4c4a2b], 0xfffffffd
mov bl, 0xa0
std
mov bl, 0xa0
std
stosb byte es:[edi], al
and edx, ebp
cld
aad 0xfc
mov cl, 0x10
popal
and byte [0x21fd3720], bh
fldenv [edi]
fdiv qword [edi + 0x35f3113a]
loopne 0x68f37d
push ss
push ss
rcr ch, 1
jecxz 0x68f362
pushfd
insb byte es:[edi], dx
inc edx
mov cl, 0x92
bswap edi
sbb dword [eax + esi*8 + 0x47], edi
pop eax
aas
inc eax
shl byte [edx + 0x1d], 0xb5
add eax, 0xfa88b161
pop esi
cmp ebp, dword [ebp + 0x499bb01a]
movsb byte es:[edi], byte [esi]
invalid

Function at 0x76f16a
Capabilities:
Encode data using xor

Disassembly:
jae 0x76f114
and dword [edx], edx
adc esi, dword [0x1d1c3ca4]
or byte [ecx], ch
cmc
fsincos
insb byte es:[edi], dx
sahf
sbb eax, 0x5985ed7f
or al, 0xac
add eax, 0x7f69961e
cmp esi, ebp
and eax, dword [eax + 0x51]
ljmp 0x36e
or eax, 0x287e3d4c
sub ecx, dword [ecx - 0x57]
push ebp
mov ebx, 0x4845afa2
pop edx
jbe 0x76f097
jg 0x76f126
push ebx
mov word [esi], es
ficomp word [edx]
dec esi
invalid
fisub word ds:[ebp - 0x4a]
inc ecx
xchg esi, eax
in al, dx
mov esp, 0xac0f01b6
pop ebp
sbb al, 0x89
test al, 0xb6
hlt
test dword [esi], esi
pop edi
pop edi
mov esp, 0x37ef3f2e
cld
cli
jecxz 0x76f106
sbb eax, 0x920b5fac
pop ebp
add al, 0x52
or al, 0x3c
test al, 0xa1
outsd dx, dword [esi]
pop ds
invalid
Function at 0x403060
Capabilities:
Query or enumerate registry value

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

Function at 0x403b28
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x415044], 0
je 0x403b89
cmp word [0x415218], 0xd7b2
jne 0x403b51
cmp dword [0x415220], 0
jbe 0x403b51
mov eax, 0x415214
call dword [0x415230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x414068
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 0x403bb0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41402c], 0
jne 0x403ba5
push 0
push 0x414060
push 0x414068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405738
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 0x40579e
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.00403f1c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c54
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405788
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4057a5
lea eax, [ebp - 0x10]
call fcn.00403cac
ret

Function at 0x409980
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 0x4099b9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d9c
jmp 0x4099c2
mov eax, ebx
mov edx, esi
call fcn.00403d00
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a084
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409eec
mov eax, dword [0x414514]
cmp byte [eax], 0
je 0x40a100
mov eax, dword [0x414430]
call fcn.00402bd0
call fcn.00402a98
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.004072d4
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 0x40a148
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a136
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41440c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415660]
call fcn.00404be0
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 0x40ae48
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 0x40aeac
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.00403f1c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406e88
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aeb3
lea eax, [ebp - 0xc]
call fcn.00403cac
ret

Function at 0x41282c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x412995
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403d44
mov eax, dword [ebp - 0x10]
call fcn.00412600
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x41287e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.004041d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00412b60
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x412953
xor eax, eax
push ebp
push 0x41294c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0041274c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004129a4
test al, al
je 0x41292a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403d9c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x41292a
mov eax, dword [ebp - 0x34]
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 - 0x14]
call fcn.00404138
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x412924
mov eax, dword [ebp - 0x14]
call fcn.00404138
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00403ea4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0041282c
dec ebx
cmp ebx, 0xffffffff
jne 0x4128dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412953
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0041274c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404138
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00412738
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41299c
lea eax, [ebp - 0x3c]
call fcn.00403cac
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403cd0
ret
Function at 0x4129a4
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.00402c34
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 [0x41458c]
cmp byte [edx + 0xc], 0
je 0x412a08
mov edx, dword [0x414584]
cmp dword [edx], 2
jne 0x412a08
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 0x412a84
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00412614
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404138
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x412ae2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41449c]
mov dl, 1
mov eax, dword [0x412538]
call fcn.0040a244
call fcn.004036e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x412aec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404138
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x412b44
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x414598]
mov dl, 1
mov eax, dword [0x412538]
call fcn.0040a244
call fcn.004036e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00412644
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412d84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x412e9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.0041274c
xor eax, eax
push ebp
push 0x412e76
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004129a4
test al, al
je 0x412e5a
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00412c64
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403d9c
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x412e5a
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
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.00404138
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueA
test eax, eax
jne 0x412e56
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404138
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00403ea4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00412c64
pop ecx
inc edi
dec ebx
jne 0x412e0b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412e7d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.0041274c
ret
Function at 0x412eac
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4130ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
call fcn.0041274c
xor eax, eax
push ebp
push 0x4130c3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004129a4
test al, al
je 0x4130a7
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403d9c
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x4130a7
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404138
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x41309b
mov eax, dword [ebp - 0x14]
call fcn.00404138
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00403ea4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00412b60
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41309b
xor eax, eax
push ebp
push 0x413094
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.0041274c
xor eax, eax
push ebp
push 0x413076
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00404138
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00403ea4
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00412750
mov eax, dword [ebp - 0x14]
call fcn.00404138
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.00403ea4
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00412b60
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x413053
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00412d84
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00412eac
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41305a
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x412f37
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4130ca
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0041274c
ret
Function at 0x404584
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004070a8
test esi, esi
jne 0x4045bc
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004071e4
jmp 0x4045da
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044c8
mov edi, eax
test esi, esi
je 0x4045da
cmp dword [ebx], 0
je 0x4045da
dec esi
jmp 0x4045c3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406638
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ad050], 0
je 0x406699
cmp word [0x4ad32c], 0xd7b2
jne 0x406661
cmp dword [0x4ad334], 0
jbe 0x406661
mov eax, 0x4ad328
call dword [0x4ad344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x4066c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4aa030], 0
jne 0x4066b5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406824
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4aa038], 0
je 0x40684a
mov edx, esi
mov eax, ebx
call dword [0x4aa038]
jmp 0x406859
mov eax, 8
call fcn.00404204
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ad051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4067ec
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408e44
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408fab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004070a8
cmp si, word [0x4aa820]
jb 0x408ede
cmp si, word [0x4aaa20]
ja 0x408ede
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408ede
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4aa820]
jae 0x408eb8
mov edi, ebx
dec edi
jmp 0x408ed9
cmp si, word [ebx*8 + 0x4aa820]
jbe 0x408ec8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408ed9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4aa824]
call fcn.00408d54
jmp 0x408ede
cmp edi, dword [ebp - 0xc]
jae 0x408ea2
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408f8d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f8d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407290
push dword [ebp - 0x164]
push 0x408fc8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407290
push dword [ebp - 0x168]
push 0x408fd8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407290
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407648
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fb2
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004070a0
ret
Function at 0x408fdc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x4091c2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4afb58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x4afb70]
cmp ax, word [ebp - 2]
jne 0x409034
mov eax, dword [ebp - 6]
mov edx, 0x4afb74
mov ecx, 0x55
call fcn.00407290
push 0x4afb58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4091ac
push 0x4afb58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.004070a8
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409174
cmp byte [0x4afb54], 0
je 0x40912a
call dword [0x4afb4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4afb50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x409123
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4afb48]
test al, al
je 0x4090fc
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404204
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4afb48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4090f1
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4090ed
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4090da
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00407254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409174
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4afb50]
cmp dword [ebp - 0x10], 0
je 0x409122
mov eax, dword [ebp - 0x10]
call fcn.00404220
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408e44
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x409174
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x409159
mov eax, dword [ebp - 6]
mov edx, 0x4091dc
call fcn.004074a4
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408e44
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.004074a4
mov eax, dword [ebp - 6]
push 0x4afb58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4afb70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00407134
push eax
push 0x4afb74
call sub.kernel32.dll_lstrcpynW
push 0x4afb58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091c9
lea eax, [ebp - 0x1c]
call fcn.00407098
ret