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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
call fcn.004551d0
add esp, 4
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x455060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [section..data]
jbe 0x45507d
mov ecx, dword [section..data]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.004551d0
add esp, 4
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x455130
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push eax
call fcn.004551d0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x457f90
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040f880
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
je 0x457fb1
mov dword [ebp - 4], 1
jmp 0x457fb8
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040f880
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x457fe1
mov dword [ebp - 4], 1
jmp 0x457fe8
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x45fcc0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x45fcd9
mov al, 1
jmp 0x45fcdb
xor al, al
pop ebp
ret

Function at 0x460090
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00464fc0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4600d7
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x4600d7
mov edx, dword [ebp - 4]
and edx, 1
je 0x4600d7
mov eax, dword [ebp - 4]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045fcc0
add esp, 8
movzx edx, al
test edx, edx
jne 0x4600d7
xor al, al
jmp 0x4600eb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4600e9
mov al, 1
jmp 0x4600eb
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x460540
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4c40e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.00460f40
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x21c], ecx
cmp dword [ebp - 0x21c], 0x20c
jae 0x460577
jmp 0x46057c
call fcn.00499da9
xor edx, edx
mov eax, dword [ebp - 0x21c]
mov word [ebp + eax - 0x210], dx
lea ecx, [ebp - 0x210]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00462e70
cmp dword [ebp - 0x214], 0
jbe 0x4605d4
cmp dword [ebp - 0x214], 0x104
ja 0x4605d4
mov dword [ebp - 0x218], 1
jmp 0x4605de
mov dword [ebp - 0x218], 0
mov al, byte [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499716
mov esp, ebp
pop ebp
ret

Function at 0x4609f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a095d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4c40e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x460a29
mov al, 1
jmp 0x460a91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x460a3a
xor al, al
jmp 0x460a91
lea ecx, [ebp - 0x48]
call fcn.00460cd0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004643e0
movzx edx, al
test edx, edx
jne 0x460a74
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00460dc0
mov al, byte [ebp - 0xd]
jmp 0x460a91
lea ecx, [ebp - 0x48]
call fcn.00460f90
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00460dc0
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x464fc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x464fdc
mov eax, dword [ebp - 4]
jmp 0x464fdf
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x466840
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4c40e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.00460f40
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x21c], ecx
cmp dword [ebp - 0x21c], 0x20c
jae 0x466877
jmp 0x46687c
call fcn.00499da9
xor edx, edx
mov eax, dword [ebp - 0x21c]
mov word [ebp + eax - 0x210], dx
lea ecx, [ebp - 0x210]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00462e70
cmp dword [ebp - 0x214], 0
jbe 0x4668d4
cmp dword [ebp - 0x214], 0x104
ja 0x4668d4
mov dword [ebp - 0x218], 1
jmp 0x4668de
mov dword [ebp - 0x218], 0
mov al, byte [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499716
mov esp, ebp
pop ebp
ret
Function at 0x482b80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3022
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4c40e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
call fcn.0047f540
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.Json::BuiltStyledStreamWriter.0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004109a0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.0040f010
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0x4a
lea edx, [ebp + 8]
push edx
call fcn.00418320
add esp, 4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0040f120
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0x48], ecx
lea edx, [ebp + 0x24]
push edx
call fcn.00418320
add esp, 4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.0040f120
lea eax, [ebp + 0x3c]
push eax
call fcn.00418320
add esp, 4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.0040f120
lea ecx, [ebp + 0x54]
push ecx
call fcn.00418320
add esp, 4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x7c
call fcn.0040f120
mov edx, dword [ebp - 0x10]
mov al, byte [edx + 0x94]
and al, 0xfe
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x94], al
mov edx, dword [ebp - 0x10]
mov al, byte [edx + 0x94]
and al, 0xfd
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x94], al
mov dl, byte [ebp + 0x6c]
and dl, 1
shl dl, 2
mov eax, dword [ebp - 0x10]
mov cl, byte [eax + 0x94]
and cl, 0xfb
or cl, dl
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x94], cl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x70]
mov dword [eax + 0x98], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x74]
mov dword [edx + 0x9c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.0040f220
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x24]
call fcn.0040f220
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x3c]
call fcn.0040f220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x54]
call fcn.0040f220
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x70
Function at 0x4847c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a32de
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c40e4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 1
push dword [esp + 0x30]
call fcn.00484480
mov eax, dword [esp + 0x20]
mov dword [edi], vtable.CryptoPP::ProxyFilter.0
mov dword [edi + 4], vtable.CryptoPP::ProxyFilter.1.0
mov dword [esp + 0x18], 0
mov dword [edi + 0x4c], eax
mov byte [esp + 0x18], 1
test eax, eax
je 0x48486c
push 0x18
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov byte [esp + 0x18], 2
test esi, esi
je 0x484859
push 0
mov ecx, esi
call fcn.00486390
mov dword [esi], vtable.CryptoPP::OutputProxy.0
mov dword [esi + 4], vtable.CryptoPP::OutputProxy.1.0
mov dword [esi + 0x10], edi
mov byte [esi + 0x14], 0
jmp 0x48485b
xor esi, esi
mov ecx, dword [edi + 0x4c]
push esi
mov byte [esp + 0x1c], 1
mov eax, dword [ecx]
call dword [eax + 0xb0]
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10
Function at 0x488600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a3860
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x4c40e4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x58]
lea ecx, [esp + 0x44]
push ecx
push 0x4c6528
push str.GroupSize
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
xor ecx, ecx
mov dword [esp + 0x1c], 0xffffffff
test al, al
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
cmovne ecx, dword [esp + 0x44]
mov dword [edi + 0x3c], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov byte [esp + 0xc], 0
mov dword [esp + 0x50], 3
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x50], 7
test ecx, ecx
je 0x4886d2
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push str.Separator
push str.Grouper
call fcn.004882c0
jmp 0x4886e8
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push 0x4c58cc
push str.Separator
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push 0x4c58cc
push str.Terminator
mov ecx, esi
call dword [eax + 4]
cmp byte [esp + 0xc], 0
je 0x48870f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
jmp 0x488717
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea ecx, [edi + 0x1c]
call fcn.004102f0
cmp byte [esp + 0x28], 0
je 0x488732
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
jmp 0x48873a
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea ecx, [edi + 0x2c]
call fcn.004102f0
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x3c]
cmp eax, dword [esp + 0x3c]
lea ecx, [esp + 0x38]
mov dword [edi + 0x40], 0
cmovae ecx, edx
mov byte [esp + 0x50], 3
mov edx, dword [esp + 0x40]
test edx, edx
je 0x48877c
mov ecx, dword [ecx]
mov edi, edx
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.MSVCR120.dll_free
add esp, 4
mov edx, dword [esp + 0x24]
mov dword [esp + 0x50], 0xffffffff
test edx, edx
je 0x4887b0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmp eax, dword [esp + 0x20]
lea esi, [esp + 0x20]
mov edi, edx
cmovae ecx, esi
xor al, al
push edx
mov ecx, dword [ecx]
rep stosb byte es:[edi], al
call sub.MSVCR120.dll_free
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x48
ret 4
Function at 0x488ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a3891
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4c40e4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4c40e4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x10
push str.BER_decode_error
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00414820
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_void_]
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 1
lea eax, [esp + 0x10]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x3c], 1
mov byte [ecx], 0
call fcn.00414770
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.CryptoPP::InvalidArgument.0
jb 0x488d97
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::BERDecodeErr.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00499716
add esp, 0x2c
ret

Function at 0x494d60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a3be8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4c40e4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x38]
push ecx
push 0x4c5974
push str.Uppercase
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
movzx ecx, byte [esp + 0x38]
test al, al
mov esi, dword [esi + 0x4c]
mov edx, 1
cmovne edx, ecx
mov dword [esp + 0xc], 4
test dl, dl
mov ecx, str.0123456789abcdef
mov eax, str.0123456789ABCDEF
cmove eax, ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push 0
push eax
lea eax, [esp + 0x24]
push str.EncodingLookupArray
push eax
call fcn.00494bc0
add esp, 0x10
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0
push ecx
push str.Log2Base
mov ecx, eax
call fcn.0041f7f0
mov dword [esp + 0x10], vtable.CryptoPP::CombinedNameValuePairs.0
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
push ecx
mov ecx, esi
mov byte [esp + 0x38], 1
call dword [eax + 0x2c]
mov dword [esp + 0x10], vtable.CryptoPP::NameValuePairs.0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], 2
test ecx, ecx
je 0x494e45
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 4
Function at 0x495560
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 8], ebx
push edi
mov edi, dword [esp + 0x14]
cmp esi, 4
jb 0x495596
mov edx, esi
shr edx, 2
mov ecx, dword [edi]
sub esi, 4
xor ecx, dword [eax]
add edi, 4
or ebx, ecx
add eax, 4
dec edx
jne 0x495580
mov dword [esp + 0xc], ebx
mov edx, dword [esp + 0xc]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
shr ebx, 0x18
or ebx, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
or ebx, ecx
movzx ecx, dl
or ebx, ecx
test esi, esi
je 0x4955d2
sub edi, eax
lea esp, [esp]
movzx edx, byte [edi + eax]
lea eax, [eax + 1]
movzx ecx, byte [eax - 1]
xor edx, ecx
or ebx, edx
dec esi
jne 0x4955c0
xor eax, eax
test ebx, ebx
pop edi
pop esi
sete al
pop ebx
pop ecx
ret
Function at 0x40456c
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.00407124
test esi, esi
jne 0x4045a4
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.00407260
jmp 0x4045c2
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404450
mov edi, eax
test esi, esi
je 0x4045c2
cmp dword [ebx], 0
je 0x4045c2
dec esi
jmp 0x4045ab
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x406020
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ae04c], 0
je 0x406081
cmp word [0x4ae328], 0xd7b2
jne 0x406049
cmp dword [0x4ae330], 0
jbe 0x406049
mov eax, 0x4ae324
call dword [0x4ae340]
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 0x4060ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a9030], 0
jne 0x40609d
push 0
push 0x4a9798
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40620c
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 [0x4a9034], 0
je 0x406232
mov edx, esi
mov eax, ebx
call dword [0x4a9034]
jmp 0x406241
mov eax, 8
call fcn.004041b8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ae04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4061d4
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 0x407b24
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x407b66
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407b86
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040730c
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x4090c0
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 0x409227
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407124
cmp si, word [0x4a97e0]
jb 0x40915a
cmp si, word [0x4a99e0]
ja 0x40915a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40915a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4a97e0]
jae 0x409134
mov edi, ebx
dec edi
jmp 0x409155
cmp si, word [ebx*8 + 0x4a97e0]
jbe 0x409144
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409155
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4a97e4]
call fcn.00408fd0
jmp 0x40915a
cmp edi, dword [ebp - 0xc]
jae 0x40911e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409209
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409209
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.0040730c
push dword [ebp - 0x164]
push 0x409244
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0040730c
push dword [ebp - 0x168]
push 0x409254
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040730c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004076c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40922e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040711c
ret
Function at 0x4093e0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4094e5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b0b54
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b0b6c]
jne 0x40942c
mov eax, esi
mov edx, 0x4b0b70
mov ecx, 0x55
call fcn.0040730c
push 0x4b0b54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4094cf
push 0x4b0b54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407124
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40949d
cmp byte [0x4b0b50], 0
je 0x409462
mov edx, esi
mov eax, ebx
call fcn.004092c0
jmp 0x40949d
mov edx, esi
mov eax, ebx
call fcn.004090c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40949d
cmp dword [esi], 0
je 0x409486
mov eax, esi
mov edx, 0x409500
call fcn.00407520
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004090c0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407520
push 0x4b0b54
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b0b6c], bx
push 0xaa
mov eax, dword [esi]
call fcn.004071b0
push eax
push 0x4b0b70
call sub.kernel32.dll_lstrcpynW
push 0x4b0b54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094ec
lea eax, [ebp - 4]
call fcn.00407114
ret