joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406780
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 8
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 8]
lea esi, [edi + 0x18]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
lock sub dword [ebx + 0xc], 1
jne 0x4067ac
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x4067c0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
sub esp, 8
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp], ebx
call sym._free_service_entry
jmp 0x4067ac

Function at 0x406960
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
mov edi, dword [esi + 8]
lea eax, [edi + 0x18]
add edi, 0x10
mov dword [ebp - 0x10], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov ebx, dword [edi]
sub esp, 8
cmp edi, ebx
jne 0x4069ae
jmp 0x4069d3
mov ebx, dword [ebx]
cmp ebx, edi
je 0x4069d3
cmp dword [ebx + 0x68], esi
jne 0x4069a8
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x68], 0
sub dword [esi + 0x10], 1
mov dword [esp], esi
call sym._release_process
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x4069ae
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408630
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x10]
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [eax], 0
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x4086a8
mov edi, eax
cmp eax, 2
je 0x408780
xor ecx, ecx
test byte [0x40b080], 2
jne 0x4086c8
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x408708
cmp eax, 2
jne 0x4086bc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x408708
mov edi, 0x70c
jmp 0x408687
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], 0x40e830
mov dword [esp + 4], 0x40b080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
mov ecx, dword [ebp - 0x18]
jmp 0x408692
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x1c], eax
call eax
mov dword [esp + 0xc], esi
mov ecx, eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x18]
sub esp, 0x18
test eax, eax
mov edi, eax
jne 0x408689
mov eax, dword [ebp - 0x14]
xor edx, edx
and eax, 0xfffffffe
cmp dword [ebp - 0x10], 2
mov word [ecx + eax], dx
je 0x408790
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov dword [esp], ecx
mov esi, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call esi
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x14], eax
mov ebx, eax
jne 0x4087d0
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
jmp 0x408689
lea eax, [eax + eax]
mov dword [ebp - 0x18], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov ecx, dword [ebp - 0x18]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x1c], eax
call esi
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
jmp 0x40869b
Function at 0x408810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x14]
lea esi, [ebp - 0x10]
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [ebp - 0x18], eax
call eax
sub esp, 0x18
test eax, eax
je 0x408890
mov ebx, eax
xor edx, edx
cmp eax, 2
je 0x408960
test byte [0x40b080], 2
jne 0x4088b4
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
cmp eax, 7
je 0x4088f0
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4088a4
cmp eax, 1
je 0x4088f0
mov ebx, 0x70c
xor edx, edx
test byte [0x40b080], 2
je 0x408874
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], str.load_reg_multisz
mov dword [esp + 4], 0x40b080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x18]
jmp 0x408874
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x18]
call eax
mov edx, dword [ebp - 0x1c]
sub esp, 0x18
test eax, eax
mov ebx, eax
jne 0x40886b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
xor esi, esi
xor edx, edx
and eax, 0xfffffffe
mov word [ecx + eax], dx
mov word [ecx + eax + 2], si
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 2
xor ebx, ebx
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea edx, [ebp - 0x10]
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 4
mov dword [eax], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], edx
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x408a38
cmp eax, 2
je 0x408a60
test byte [0x40b080], 2
jne 0x4089f8
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], str.load_reg_dword
mov dword [esp + 4], 0x40b080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0xc]
sub eax, 3
cmp eax, 1
ja 0x408a49
cmp dword [ebp - 0x10], 4
je 0x4089ec
mov ebx, 0x70c
test byte [0x40b080], 2
je 0x4089ec
jmp 0x4089f8
lea esp, [ebp - 8]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x408b40
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 0x408b98
cmp byte [esi + ebx - 1], 0xa
je 0x408b6c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x411164], 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 0x4091e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x4093b8
mov edi, dword [0x411164]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x4092c7
test byte [0x40b1a8], 8
jne 0x409360
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x40b1b8], 8
jne 0x409320
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x409269
cmp esi, 3
jbe 0x4092d8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x40927a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x410268]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x409269
mov dword [esp], 0x40b1b8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x409240
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x409240
mov dword [esp], 0x40b1a8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x40922b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x409233
mov eax, 0xffffffff
jmp 0x4092c7

Function at 0x409450
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_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_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
add eax, 1
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._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x403078
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.004047e0
test esi, esi
jne 0x4030ae
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.004048d0
jmp 0x4030cc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f7c
mov edi, eax
test esi, esi
je 0x4030cc
cmp dword [ebx], 0
je 0x4030cc
dec esi
jmp 0x4030b5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037bc
Capabilities:
Query or enumerate registry value

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

Function at 0x404660
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d048], 0
je 0x4046c1
cmp word [0x45d21c], 0xd7b2
jne 0x404689
cmp dword [0x45d224], 0
jbe 0x404689
mov eax, 0x45d218
call dword [0x45d234]
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 0x4046e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b02c], 0
jne 0x4046dd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b7c
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 0x405dac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405bff
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405dac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405bff
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405dc8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405c88
xor eax, eax
push ebp
push 0x405c81
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004059b8
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 0x405c66
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405de8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c66
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 0x405c88
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 0x405da2
cmp byte [ebp - 0xd], 0
jne 0x405ccf
cmp byte [ebp - 0x12], 0
je 0x405da2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405ce8
dec ebx
cmp byte [ebx], 0x2e
je 0x405cf7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405ce7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405da2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d34
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 0x405da2
cmp byte [ebp - 0xd], 0
je 0x405da2
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 0x405da2
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 0x408230
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4082c0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4082c0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408273
test edx, 3
jne 0x408262
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40826d
jmp 0x408273
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408273
cmp dword [ecx - 8], 1
je 0x40827d
mov edx, ebx
or edx, 3
call fcn.00404f2c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40828f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047e0

Function at 0x4082cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40835c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40835c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40830f
test edx, 3
jne 0x4082fe
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408309
jmp 0x40830f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40830f
cmp dword [ecx - 8], 1
je 0x408319
mov edx, ebx
or edx, 3
call fcn.00404f2c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40832b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047e0

Function at 0x40b5f4
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
invalid
test eax, eax
jle 0x40b62d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048d0
jmp 0x40b636
mov eax, ebx
mov edx, esi
call fcn.00404834
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b640
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 0x40b662
movzx eax, byte [esp]
jmp 0x40b664
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bcf4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb6c
mov eax, dword [0x45ca08]
cmp byte [eax], 0
je 0x40bd70
mov eax, dword [0x45c838]
call fcn.00403184
call fcn.00402de8
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.00408d8c
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 0x40bdb8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bda6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45c7dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45f7f4]
call fcn.00405960
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 0x40c604
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c6da
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404878
lea eax, [ebp - 4]
call fcn.00404cf4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ca4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c6c4
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c6bd
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 - 4]
call fcn.00404ca4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c6a7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c6ec
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c6a7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6c4
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6e1
lea eax, [ebp - 4]
call fcn.004047e0
ret