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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4201ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x648
mov dword [ebp - 0x634], ecx
lea eax, [ebp - 0x40c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x61c], eax
mov ecx, dword [ebp - 0x61c]
mov byte [ebp + ecx - 0x40c], 0x5c
mov edx, dword [ebp - 0x61c]
mov byte [ebp + edx - 0x40b], 0
push 0x104
lea eax, [ebp - 0x510]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x618]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
push str.__C
lea ecx, [ebp - 0x618]
call fcn.0041eabe
push 0x4277c8
push 0x429fdc
lea ecx, [ebp - 0x620]
push ecx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x638], eax
mov edx, dword [ebp - 0x638]
mov dword [ebp - 0x63c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x618]
call fcn.0041eaa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x620]
call sub.MFC42.DLL_CString::CString
push str.__C1
lea ecx, [ebp - 0x618]
call fcn.0041eabe
lea ecx, [ebp - 0x510]
push ecx
lea ecx, [ebp - 0x618]
call fcn.0041eabe
mov ecx, 0x429fec
call fcn.00401a90
test eax, eax
jne 0x40b03f
push 0x429fec
push str.__Q
lea edx, [ebp - 0x624]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x640], eax
mov eax, dword [ebp - 0x640]
mov dword [ebp - 0x644], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x644]
push ecx
lea ecx, [ebp - 0x618]
call fcn.0041eaa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x624]
call sub.MFC42.DLL_CString::CString
mov ecx, 0x429ff8
call fcn.00401a90
test eax, eax
jne 0x40b09a
push 0x429ff8
push 0x4277e8
lea edx, [ebp - 0x628]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x648], eax
mov eax, dword [ebp - 0x648]
mov dword [ebp - 0x64c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x64c]
push ecx
lea ecx, [ebp - 0x618]
call fcn.0041eaa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x628]
call sub.MFC42.DLL_CString::CString
push 0x4277f0
push 0x429fdc
lea edx, [ebp - 0x62c]
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x650], eax
mov eax, dword [ebp - 0x650]
mov dword [ebp - 0x654], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x654]
call fcn.00401ab0
push eax
lea ecx, [ebp - 0x614]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x62c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x618]
call fcn.00401ab0
push eax
lea edx, [ebp - 0x614]
push edx
mov ecx, 0x429fc8
call fcn.00404d5b
mov byte [ebp - 0x630], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x618]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x630]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x417835
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x417845
xor eax, eax
jmp 0x417a0e
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4179c6
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x422d64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x422d64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x422d64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x422d64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x422d64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x422d64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x422d64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x422d64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x41784e
cmp dword [ebp + 0x10], 0
je 0x417a08
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x422d64]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x4179cc
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x418910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
je 0x418960
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x418956
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x4189ba
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x14]
jbe 0x418980
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x14]
sub edx, dword [ecx + 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x18]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x41a19e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x41a1b8
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 4], 0xffffffff
je 0x41a1c2
mov eax, 0x1000000
jmp 0x41a246
mov edx, dword [ebp - 0x10]
add edx, 0x138
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x428708
mov eax, dword [ebp - 0x10]
add eax, 0x138
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x41a20d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
je 0x41a20d
mov eax, 0x2000000
jmp 0x41a246
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004185f9
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41a233
mov eax, dword [ebp - 4]
jmp 0x41a246
mov eax, dword [ebp - 8]
push eax
call fcn.00418d92
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a9bf
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [ebp + 0xc], 0
je 0x41a9d8
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x41a9dd
jmp 0x41aabf
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x41aa23
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x41aa0f
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x41aa18
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x41a9ef
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x10c]
cmp ecx, dword [ebp + 0xc]
je 0x41aa8a
mov edx, dword [ebp - 0x10c]
sub edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.0041bad0
add esp, 0xc
mov edx, dword [ebp - 0x10c]
sub edx, dword [ebp + 0xc]
mov byte [ebp + edx - 0x214], 0
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041a9bf
add esp, 8
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x108]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esp, ebp
pop ebp
ret
Function at 0x41aac3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2198
call fcn.0041ee00
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x108]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
mov ax, word [0x428710]
mov word [ebp - 0x10c], ax
mov cl, byte [0x428712]
mov byte [ebp - 0x10a], cl
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
mov dword [ebp - 4], eax
mov dword [ebp - 0x2190], 0
jmp 0x41ab41
mov ecx, dword [ebp - 0x2190]
add ecx, 1
mov dword [ebp - 0x2190], ecx
cmp dword [ebp - 0x2190], 0x20
jge 0x41ab8d
cmp dword [ebp - 4], 0
je 0x41ab8d
push 0x104
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x2190]
imul eax, eax, 0x104
lea ecx, [ebp + eax - 0x218c]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea edx, [ebp - 0x10c]
push edx
push 0
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
mov dword [ebp - 4], eax
jmp 0x41ab32
mov byte [ebp - 0x108], 0
mov dword [ebp - 0x2194], 0
jmp 0x41abaf
mov eax, dword [ebp - 0x2194]
add eax, 1
mov dword [ebp - 0x2194], eax
mov ecx, dword [ebp - 0x2194]
cmp ecx, dword [ebp - 0x2190]
jge 0x41ac87
mov edx, dword [ebp - 0x2194]
imul edx, edx, 0x104
lea eax, [ebp + edx - 0x218c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x428714
lea edx, [ebp - 0x108]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
cmp dword [ebp - 0x2194], 0
jne 0x41ac53
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 3
jne 0x41ac53
movsx ecx, byte [ebp - 0x108]
cmp ecx, 0x41
jl 0x41ac2d
movsx edx, byte [ebp - 0x108]
cmp edx, 0x5a
jle 0x41ac45
movsx eax, byte [ebp - 0x108]
cmp eax, 0x61
jl 0x41ac53
movsx ecx, byte [ebp - 0x108]
cmp ecx, 0x7a
jg 0x41ac53
movsx edx, byte [ebp - 0x107]
cmp edx, 0x3a
jne 0x41ac53
jmp 0x41ac82
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41ac82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2198], eax
cmp dword [ebp - 0x2198], 0xb7
je 0x41ac82
xor al, al
jmp 0x41ac89
jmp 0x41aba0
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x402ae4
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.004046ac
test esi, esi
jne 0x402b1a
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.0040479c
jmp 0x402b38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f8
mov edi, eax
test esi, esi
je 0x402b38
cmp dword [ebx], 0
je 0x402b38
dec esi
jmp 0x402b21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403708
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x507024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037a0
push reloc.shell32.dll_SHChangeNotifyRegister
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403780
xor eax, eax
push ebp
push 0x403779
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 0x4037bc
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 0x403780
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x507024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x507024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50a04c], 0
je 0x40450d
cmp word [0x50a220], 0xd7b2
jne 0x4044d5
cmp dword [0x50a228], 0
jbe 0x4044d5
mov eax, 0x50a21c
call dword [0x50a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x507074
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 0x404534
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x507034], 0
jne 0x404529
push 0
push 0x50706c
push 0x507074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404660
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.004027bc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x50a04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404628
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405e24
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406054
push SHChangeNotifyDeregister
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ea7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406054
push reloc.shell32.dll_SHChangeNotifyRegister
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ea7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406070
push SHChangeNotifyDeregister
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405f30
xor eax, eax
push ebp
push 0x405f29
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c6c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f0e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406090
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f0e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f30
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40604a
cmp byte [ebp - 0xd], 0
jne 0x405f77
cmp byte [ebp - 0x12], 0
je 0x40604a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f90
dec ebx
cmp byte [ebx], 0x2e
je 0x405f9f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f8f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40604a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405fdc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40604a
cmp byte [ebp - 0xd], 0
je 0x40604a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40604a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406738
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 0x40679e
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.0040491c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403140
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406788
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067a5
lea eax, [ebp - 0x10]
call fcn.004046ac
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b6c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409719
test al, 0x10
jne 0x40971d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40980c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40982e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c93c
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 0x40c975
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040479c
jmp 0x40c97e
mov eax, ebx
mov edx, esi
call fcn.00404700
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c988
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 0x40c9a9
mov al, byte [esp]
jmp 0x40c9ab
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d030
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cea8
mov eax, dword [0x509588]
cmp byte [eax], 0
je 0x40d0ac
mov eax, dword [0x5092e8]
call fcn.00402f48
call fcn.00402924
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.00409c64
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 0x40d0f4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d0e2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x50927c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x50a668]
call fcn.00405c30
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 0x40d99c
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 0x40da72
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404744
lea eax, [ebp - 8]
call fcn.00404bbc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b6c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40da5c
mov eax, ebx
call fcn.004027bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40da55
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.00404b6c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40da3f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40da84
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40da3f
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 0x40da5c
mov eax, dword [ebp - 0x10]
call fcn.004027dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da79
lea eax, [ebp - 8]
call fcn.004046ac
ret

Function at 0x40e034
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 0x40e098
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.0040491c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409360
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e09f
lea eax, [ebp - 0xc]
call fcn.004046ac
ret