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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x404e18
cmp byte [esi + ebx - 1], 0xa
je 0x404dec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4142d8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x405bd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetKeyboardState]
movsx eax, byte [ebx + 0x10]
sub esp, 4
shr eax, 0x1f
shl eax, 4
cmp byte [ebx + 0xa2], 0
jns 0x405bfb
or eax, 8
cmp byte [ebx + 0xa3], 0
jns 0x405c07
or eax, 4
cmp byte [ebx + 0xa4], 0
jns 0x405c13
or eax, 2
cmp byte [ebx + 0xa5], 0
jns 0x405c1f
or eax, 1
mov edx, eax
or dl, 0x80
test byte [ebx + 0x14], 1
cmovne eax, edx
mov edx, eax
or edx, 0x20
test byte [ebx + 0x90], 1
cmovne eax, edx
mov edx, eax
or edx, 0x40
test byte [ebx + 0x91], 1
mov ebx, dword [ebp - 4]
leave
cmovne eax, edx
ret
Function at 0x40af90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [eax + 0xb8]
test eax, eax
je 0x40aff3
mov edx, dword [ebx + 0x10bc]
test edx, edx
je 0x40aff3
lea esi, [ebx + 0xbc]
test byte [0x413024], 8
jne 0x40b040
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x40b000
mov dword [ebx + 0x10bc], 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test byte [0x413024], 4
je 0x40afe9
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.write_failed:__lu_n
mov dword [esp + 8], str.tty_flush
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x413024
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x40afe9
mov eax, esi
call sym._wine_dbgstr_an
mov dword [esp + 0xc], 0x4150aa
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.tty_flush
mov dword [esp + 4], 0x413024
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebx + 0x10bc]
mov eax, dword [ebx + 0xb8]
jmp 0x40afc1
Function at 0x40ba10
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [eax + 0xb8]
test edx, edx
je 0x40bad0
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov edx, dword [eax + 8]
mov ecx, dword [edx + 0x18]
test ecx, ecx
jne 0x40ba48
mov edx, dword [eax + 0x10cc]
test edx, edx
jne 0x40baa0
mov ebx, dword [ebp - 4]
leave
jmp sym._tty_flush
mov ecx, dword [edx + 0xc]
mov ebx, dword [edx + 0x20]
mov dword [ebp - 8], eax
mov edx, dword [edx + 0x1c]
dec ecx
cmp ecx, edx
cmovbe edx, ecx
mov ecx, ebx
call sym._set_tty_cursor
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x10cc]
test ebx, ebx
jne 0x40ba39
mov ecx, dword [eax + 0xb8]
test ecx, ecx
je 0x40ba8a
mov ecx, 6
mov edx, str.e__25h
call sym._tty_write.part.0
mov eax, dword [ebp - 8]
mov dword [eax + 0x10cc], 1
mov ebx, dword [ebp - 4]
leave
jmp sym._tty_flush
mov ecx, 6
mov edx, str.e__25l
mov dword [ebp - 8], eax
call sym._tty_write.part.0
mov eax, dword [ebp - 8]
mov dword [eax + 0x10cc], 0
mov ebx, dword [ebp - 4]
leave
jmp sym._tty_flush
ret

Function at 0x40bae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [eax + 0x10bc]
lea edx, [eax + ecx]
cmp edx, 0x1000
ja 0x40bb28
lea eax, [ebx + eax + 0xbc]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._memcpy
add dword [ebx + 0x10bc], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call sym._tty_flush
mov eax, dword [ebx + 0x10bc]
lea edx, [esi + eax]
cmp edx, 0x1000
jbe 0x40bb00
test eax, eax
jne 0x40bbb4
mov eax, dword [ebx + 0xb8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x40bb1d
test byte [0x413024], 4
je 0x40bb1d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.write_failed:__lu_n
mov dword [esp + 8], str.tty_write
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x413024
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xb6
mov dword [esp + 4], str..._src_wine_programs_conhost_conhost.c
mov dword [esp], str._console__tty_buffer_count
call dword [sym.imp.ucrtbase.dll__assert]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x411c10
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x412050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
test byte [0x413024], 8
jne 0x412098
test ecx, ecx
je 0x412088
mov dword [ebp + 8], esi
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop ebp
jmp sym._write_console_input.part.0
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x415252
mov dword [esp + 8], str.write_console_input
mov dword [esp + 4], 0x413024
mov dword [esp], 3
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
jmp 0x41206d
Function at 0x4120d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x44
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x20]
add edx, ecx
cmp edx, eax
ja 0x412270
mov eax, dword [esi + 4]
and eax, 1
mov dword [ebp - 0x28], eax
je 0x412230
xor edi, edi
test ecx, ecx
jne 0x41214a
jmp 0x4121f0
mov eax, dword [esi + 0x1c]
lea edx, [eax + 1]
lea eax, [eax + eax*4]
mov dword [esi + 0x1c], edx
mov edx, dword [esi + 0x18]
lea eax, [edx + eax*4]
mov edx, dword [ebx]
mov dword [eax], edx
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x10], edx
inc edi
add ebx, 0x14
cmp ecx, edi
je 0x4121f0
cmp word [ebx], 1
jne 0x412110
movzx eax, word [ebx + 0xe]
cmp ax, 3
je 0x412208
test ax, ax
jne 0x412110
cmp word [ebx + 0xa], 3
jne 0x412110
cmp dword [ebx + 0x10], 8
jne 0x412110
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 0x28]
test edx, edx
je 0x41213e
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
inc edi
add ebx, 0x14
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 8
mov dword [esp + 0x14], 0x50004c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ecx, dword [ebp - 0x24]
sub esp, 0x28
cmp ecx, edi
jne 0x41214a
lea esi, [esi]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x412262
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x10]
and eax, 0x100
jne 0x412110
mov edx, dword [ebx + 4]
test edx, edx
je 0x41213e
jmp 0x41217a
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], ebx
mov dword [ebp - 0x24], ecx
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x18]
lea edx, [eax + edx*4]
lea eax, [ecx + ecx*4]
shl eax, 2
mov dword [esp], edx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
add dword [esi + 0x1c], ecx
test eax, eax
je 0x4121f7
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp sym._process_console_input
lea eax, [ecx + eax*2]
mov dword [ebp - 0x24], ecx
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x4122a4
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [esi + 0x20]
lea eax, [ecx + eax*2]
mov dword [esi + 0x20], eax
jmp 0x4120f3
mov dword [ebp - 0x20], 0xc0000017
jmp 0x4121f7
Function at 0x402ce4
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 0x402d7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d5c
xor eax, eax
push ebp
push 0x402d55
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 0x402d98
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 0x402d5c
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 0x403804
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x415044], 0
je 0x403865
cmp word [0x415218], 0xd7b2
jne 0x40382d
cmp dword [0x415220], 0
jbe 0x40382d
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 0x40388c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41402c], 0
jne 0x403881
push 0
push 0x414060
push 0x414068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404a34
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 0x404c64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ab7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404c64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ab7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404c80
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404b40
xor eax, eax
push ebp
push 0x404b39
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040487c
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 0x404b1e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404ca0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404b1e
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 0x404b40
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 0x404c5a
cmp byte [ebp - 0xd], 0
jne 0x404b87
cmp byte [ebp - 0x12], 0
je 0x404c5a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404ba0
dec ebx
cmp byte [ebx], 0x2e
je 0x404baf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404b9f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404c5a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404bec
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 0x404c5a
cmp byte [ebp - 0xd], 0
je 0x404c5a
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 0x404c5a
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 0x404b40
Capabilities:
Get geographical location

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 0x404c64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ab7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404c64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ab7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404c80
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404b40
xor eax, eax
push ebp
push 0x404b39
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040487c
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 0x404b1e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404ca0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404b1e
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 0x404b40
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 0x404c5a
cmp byte [ebp - 0xd], 0
jne 0x404b87
cmp byte [ebp - 0x12], 0
je 0x404c5a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404ba0
dec ebx
cmp byte [ebx], 0x2e
je 0x404baf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404b9f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404c5a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404bec
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 0x404c5a
cmp byte [ebp - 0xd], 0
je 0x404c5a
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 0x404c5a
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 0x4052f0
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 0x405356
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.00403bf0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004028d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405340
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40535d
lea eax, [ebp - 0x10]
call fcn.00403980
ret

Function at 0x4095fc
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 0x409635
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a70
jmp 0x40963e
mov eax, ebx
mov edx, esi
call fcn.004039d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x409cf0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409b68
mov eax, dword [0x4147e8]
cmp byte [eax], 0
je 0x409d6c
mov eax, dword [0x414704]
call fcn.00402854
call fcn.0040271c
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.00406f8c
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 0x409db4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409da2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4146e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415660]
call fcn.00404840
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 0x40aa50
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 0x40aab4
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.00403bf0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406b4c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aabb
lea eax, [ebp - 0xc]
call fcn.00403980
ret
Function at 0x402f34
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402f70
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402f90
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ce8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403934
Capabilities:
Query or enumerate registry value

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

Function at 0x404844
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f204c], 0
je 0x4048a5
cmp word [0x4f2220], 0xd7b2
jne 0x40486d
cmp dword [0x4f2228], 0
jbe 0x40486d
mov eax, 0x4f221c
call dword [0x4f2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x4048cc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4eb02c], 0
jne 0x4048c1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4049fc
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 [0x4eb030], 0
je 0x404a22
mov edx, esi
mov eax, ebx
call dword [0x4eb030]
jmp 0x404a31
mov eax, 8
call fcn.00402d2c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4f204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4049c4
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