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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.004032c7
lea eax, [ebp - 0x184]
push 0x4093b8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x402a3f
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Cant_open__s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x402a8f
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x402a83
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x402a59
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x403698
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, 0x104
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [ebp - 0x114]
xor eax, eax
push esi
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call edi
test eax, eax
jne 0x403737
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
push dword [eax + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.00404748
pop ecx
test eax, eax
pop ecx
je 0x40371c
cmp dword [ebp - 8], 0
je 0x40370b
push dword [ebp - 8]
lea eax, [ebp - 0x114]
push eax
call fcn.00404679
pop ecx
test eax, eax
pop ecx
jle 0x40371c
push dword [ebp - 8]
call ebx
pop ecx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x114]
push esi
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x4036cf
mov edi, dword [ebp - 8]
test edi, edi
jne 0x40373b
xor eax, eax
jmp 0x4037b1
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
push edi
je 0x40375e
call ebx
cmp dword [ebp - 4], 0
pop ecx
jmp 0x403788
call ebx
pop ecx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x114]
xor esi, esi
push eax
push esi
push esi
push str.JavaHome
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403795
cmp dword [ebp - 4], esi
je 0x403737
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403737
cmp dword [ebp - 4], esi
je 0x4037a3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f52
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
test eax, eax
jl 0x40404d
mov eax, dword [esi + 4]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40404d
mov edi, dword [esi + 4]
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, edi
je 0x403fae
push ebx
call dword [sym.imp.MSVCRT.dll_free]
jmp 0x40404c
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp eax, ecx
jne 0x403fc1
and byte [edi + ebx], cl
mov eax, ebx
jmp 0x40404f
cmp eax, 8
jne 0x40404d
push 0x38
push 0x409c28
lea eax, [ebp - 0x38]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edi
call fcn.00404a8a
add esp, 0x10
test eax, eax
jl 0x403fa2
mov eax, dword [esi]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x403fa2
mov eax, dword [esi]
push 1
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x2c], edi
call fcn.00404b74
pop ecx
test eax, eax
pop ecx
jge 0x40402b
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
call esi
push edi
call esi
pop ecx
jmp 0x40404c
mov eax, dword [esi]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
and byte [eax + edi], 0
call esi
lea eax, [ebp - 0x38]
push eax
call fcn.00404a4c
pop ecx
test eax, eax
pop ecx
jge 0x404054
push edi
call esi
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, edi
jmp 0x40404f
Function at 0x4042df
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__lseek]
push edi
push 2
push 0xffffffffffffffea
push dword [ebp + 8]
call esi
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jl 0x404413
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__read]
push 0x16
push ebx
push dword [ebp + 8]
call edi
add esp, 0xc
test eax, eax
jl 0x404413
movzx ecx, byte [ebx + 1]
xor eax, eax
mov ah, byte [ebx + 3]
mov al, byte [ebx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebx]
shl eax, 8
or eax, ecx
cmp eax, 0x6054b50
jne 0x404349
mov eax, dword [ebp - 4]
jmp 0x404416
push 2
push 0
push dword [ebp + 8]
call esi
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x404413
mov ebx, 0x10015
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x40436f
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
push 2
neg eax
push eax
push dword [ebp + 8]
call esi
add esp, 0xc
test eax, eax
jl 0x404413
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
mov dword [ebp - 8], esi
je 0x404413
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call edi
add esp, 0xc
test eax, eax
jl 0x40440b
add eax, esi
mov dword [ebp + 8], eax
lea ebx, [eax - 0x16]
cmp ebx, esi
jb 0x40440b
cmp byte [ebx], 0x50
jne 0x4043e8
movzx edx, byte [ebx + 1]
xor ecx, ecx
mov ch, byte [ebx + 3]
mov cl, byte [ebx + 2]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x4043e8
xor ecx, ecx
mov ch, byte [ebx + 0x15]
mov cl, byte [ebx + 0x14]
lea ecx, [ecx + ebx + 0x16]
cmp ecx, eax
je 0x4043eb
dec ebx
jmp 0x4043b0
mov edi, dword [ebp + 0xc]
push 5
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 8]
movsw word es:[edi], word [esi]
call dword [sym.imp.MSVCRT.dll_free]
mov eax, ebx
pop ecx
sub eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
jmp 0x404416
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406afa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407398
push 0x406c30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40b118], 0xffffffff
or dword [0x40b11c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40b114]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40b110]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40b120], eax
call fcn.004069c5
cmp dword [0x40b0b0], 0
jne 0x406b7d
push 0x406c28
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00406c16
push 0x40800c
push 0x408008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40b10c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40b108]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x408004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x10031b2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [0x100ad24]
xor ebx, ebx
cmp eax, ebx
je 0x100322a
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10031de
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push dword [ebp + 8]
push dword [0x100ad24]
call esi
test eax, eax
je 0x100322d
mov ecx, 0x100229c
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100320d
push ebx
lea edx, [ebp - 4]
push edx
sub eax, edi
push eax
push ecx
push dword [0x100ad24]
call esi
test eax, eax
pop edi
je 0x100322d
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x408769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c190
cmp edx, dword [eax]
je 0x40878b
add eax, 8
inc ecx
cmp eax, 0x40c220
jl 0x40877c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c190]
jne 0x4088b9
mov eax, dword [0x40cbb0]
cmp eax, 1
je 0x408893
test eax, eax
jne 0x4087bc
cmp dword [0x40c0e4], 1
je 0x408893
cmp edx, 0xfc
je 0x4088b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4087f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b45c
push edi
call fcn.00409f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409680
lea eax, [ebp - 0xa0]
push 0x40b43c
push eax
call fcn.00409680
push dword [esi + 0x40c194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409e75
add esp, 0x2c
pop edi
jmp 0x4088b9
lea eax, [ebp + 8]
lea esi, [esi + 0x40c194]
push 0
push eax
push dword [esi]
call fcn.00409490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x406492
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4064b6
xor eax, eax
test eax, eax
je 0x4064c8
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4064c8
xor ecx, ecx
jmp 0x4064cb
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4065b7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce24], 0
push esi
jne 0x4065ee
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065c8
mov dword [ecx*4 + 0x42ce20], eax
inc ecx
cmp ecx, 0x100
jl 0x4065c3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40661f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce20]
xor eax, esi
inc ecx
dec edx
jne 0x406601
pop edi
not eax
pop esi
ret 0xc

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x402a84
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.004046ec
test esi, esi
jne 0x402aba
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.004047dc
jmp 0x402ad8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402998
mov edi, eax
test esi, esi
je 0x402ad8
cmp dword [ebx], 0
je 0x402ad8
dec esi
jmp 0x402ac1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40380c
Capabilities:
Query or enumerate registry value

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

Function at 0x404570
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c04c], 0
je 0x4045d1
cmp word [0x46c220], 0xd7b2
jne 0x404599
cmp dword [0x46c228], 0
jbe 0x404599
mov eax, 0x46c21c
call dword [0x46c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46a070
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 0x4045f8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46a030], 0
jne 0x4045ed
push 0
push 0x46a068
push 0x46a070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c54
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 0x405e84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cd7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e84
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cd7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ea0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d60
xor eax, eax
push ebp
push 0x405d59
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405a9c
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 0x405d3e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ec0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d3e
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 0x405d60
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 0x405e7a
cmp byte [ebp - 0xd], 0
jne 0x405da7
cmp byte [ebp - 0x12], 0
je 0x405e7a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405dc0
dec ebx
cmp byte [ebx], 0x2e
je 0x405dcf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405dbf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e7a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e0c
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 0x405e7a
cmp byte [ebp - 0xd], 0
je 0x405e7a
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 0x405e7a
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 0x40654c
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 0x4065b2
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.0040495c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403274
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40659c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4065b9
lea eax, [ebp - 0x10]
call fcn.004046ec
ret

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

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

Function at 0x40b988
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 0x40b9c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047dc
jmp 0x40b9ca
mov eax, ebx
mov edx, esi
call fcn.00404740
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c07c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bef4
mov eax, dword [0x46b260]
cmp byte [eax], 0
je 0x40c0f8
mov eax, dword [0x46b054]
call fcn.00402ecc
call fcn.004028c4
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.004091b4
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 0x40c140
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c12e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46b000]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46c668]
call fcn.00405a60
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