joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d6d
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 8]
and dword [ebp - 0x20], eax
mov ecx, dword [0x405814]
stosd dword es:[edi], eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
stosd dword es:[edi], eax
je 0x402da3
push ecx
call fcn.0040334b
pop ecx
mov ecx, dword [0x405814]
jmp 0x402da5
xor eax, eax
push 0x14
xor edx, edx
pop esi
div esi
mov edx, dword [0x405820]
add edx, 0x64
cmp edx, eax
jb 0x402de1
test ecx, ecx
je 0x402dcc
push ecx
call fcn.0040334b
pop ecx
mov ecx, dword [0x405814]
jmp 0x402dce
xor eax, eax
add eax, 0x4e20
push eax
push ecx
call fcn.00402f47
pop ecx
mov dword [0x405814], eax
pop ecx
mov byte [ebp - 1], 1
movzx esi, byte [ebp - 1]
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov bx, ax
shr ebx, 0xf
and bl, 1
cmp byte [esi + 0x405a54], bl
jne 0x402e0c
inc byte [ebp - 1]
cmp byte [ebp - 1], 0xff
jb 0x402de5
jmp 0x402e16
movzx eax, byte [ebp - 1]
mov byte [eax + 0x405a54], bl
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov al, byte [ebp - 1]
cmp al, 0xff
jae 0x402e7d
cmp al, 1
je 0x402e5a
cmp al, 2
je 0x402e66
cmp al, 0xa0
je 0x402e7d
neg bl
movzx esi, al
sbb ebx, ebx
push 0
add ebx, 0x101
push esi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ebx, eax
mov eax, dword [ebp - 8]
mov edi, ebx
shl edi, 8
or edi, esi
jmp 0x402e86
neg bl
sbb ebx, ebx
add ebx, 0x202
jmp 0x402e70
neg bl
sbb ebx, ebx
add ebx, 0x205
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
mov ebx, eax
jmp 0x402e86
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0
jne 0x402ec0
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x402f30
test eax, eax
je 0x402f30
lea edx, [eax + ecx]
cmp dl, byte [0x405a54]
je 0x402f30
mov ebx, eax
add al, cl
mov dword [ebp - 0x20], 0x200
mov edi, ecx
mov byte [0x405a54], al
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x405820]
mov edx, dword [0x405814]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 0x10], eax
mov eax, dword [0x405820]
mov ecx, dword [0x405814]
mov edx, dword [ebp - 0x20]
lea eax, [eax + eax*4]
mov dword [ecx + eax*4], edx
mov eax, dword [0x405820]
mov ecx, dword [0x405814]
lea eax, [eax + eax*4]
mov dword [ecx + eax*4 + 4], edi
mov eax, dword [0x405820]
mov ecx, dword [0x405814]
lea eax, [eax + eax*4]
mov dword [ecx + eax*4 + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x405820]
mov edx, dword [0x405814]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 0xc], eax
inc dword [0x405820]
push 0
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40335f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403388
mov al, byte [esi + 1]
inc esi
test al, al
je 0x403380
cmp al, 0x22
jne 0x403374
cmp byte [esi], 0x22
jne 0x403392
inc esi
jmp 0x403392
cmp al, 0x20
jle 0x403392
inc esi
cmp byte [esi], 0x20
jg 0x40338c
mov al, byte [esi]
test al, al
je 0x40339c
cmp al, 0x20
jle 0x403385
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040340c
push 0x405004
push section..data
call fcn.004033f2
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4033cc
movzx eax, word [ebp - 0x14]
jmp 0x4033cf
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00403424
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4071bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x4071ca
pop dword [ebp - 0x10]
mov eax, 0x6446a4c4
sub eax, 0x640632fa
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xdc9f5860
sub dword [ebp - 0x20], 0x8e4d1315
mov dword [ebp - 0x1c], 0xb4a3a6bf
sub dword [ebp - 0x1c], 0x82705a7a
mov dword [ebp - 0x18], 0x3045ee54
add dword [ebp - 0x18], 0x1c0655da
mov dword [ebp - 0x14], 0x62024a3b
add dword [ebp - 0x14], 0x9dfdb5c5
lea eax, [ebp - 0x20]
push eax
mov eax, 0x77487fbb
add eax, 0x88f9b0b9
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xd32b4266
sub dword [ebp - 0x20], 0x5eb8d910
mov dword [ebp - 0x1c], 0x57b53d85
sub dword [ebp - 0x1c], 0x1648dc10
mov dword [ebp - 0x18], 0xc4119b20
add dword [ebp - 0x18], 0x9f5dd14c
mov dword [ebp - 0x14], 0x40e32498
add dword [ebp - 0x14], 0xbf1cdb68
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x40140
push 0
call eax
mov ecx, 0x8ab12983
add ecx, 0x754f276f
xor esi, esi
add esi, eax
mov edi, 0x9dbfa8a6
sub edi, 0x9d7c64a6
add edi, dword [ebp - 0x10]
mov edx, 0x2f0adade
add dword [ebp - 0xc], ecx
mov ebx, dword [edi]
sub dword [ebp - 8], edi
xor ebx, edx
xor dword [ebp - 0xc], ebx
mov dword [esi], ebx
add dword [ebp - 8], esi
add esi, 4
add edi, 0xdc49f4aa
sub edi, 0xdc49f4a6
loop 0x4072e3
add eax, 0x1369b
mov ebx, eax
add eax, 0x329f13cf
sub eax, 0x329f13ca
mov ecx, 0x40e1a02d
sub ecx, 0x40a1a02d
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x403b90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x13c
mov eax, dword [0x434014]
xor eax, esp
mov dword [esp + 0x138], eax
push edi
lea eax, [esp + 0xc]
mov edi, ecx
push eax
push 0
push 0
mov dword [esp + 0x18], edi
push 0x42b380
mov dword [esp + 0x1c], edi
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push 0
test eax, eax
jne 0x403c75
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [esp + 0x20]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0x104
lea eax, [esp + 0x3c]
push eax
push 0xffffffffffffffff
push dword [esp + 0x20]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x30]
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x24], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403c21
sub ecx, edx
lea eax, [esp + 0x30]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402010
xorps xmm0, xmm0
mov eax, edi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [esp + 0x10]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [edi + 0x10], xmm0
pop edi
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.00426c11
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov ecx, edi
movups xmmword [edi], xmm0
push 0x42b82e
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00402010
mov ecx, dword [esp + 0x13c]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00426c11
mov esp, ebp
pop ebp
ret
Function at 0x404270
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42817d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x14], edi
cmp dword [edx + 0x14], 0x10
jb 0x4042aa
mov edx, dword [edx]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x30], eax
push 0
cmp eax, 0xffffffff
jne 0x4042f2
xorps xmm0, xmm0
mov ecx, edi
movups xmmword [edi], xmm0
push 0x42b82e
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00402010
jmp 0x40441e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp esi, 0xffffffff
jne 0x404333
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov ecx, edi
push 0
movups xmmword [edi], xmm0
push 0x42b82e
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00402010
jmp 0x40441e
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
test esi, esi
jne 0x404361
mov dword [ebp - 0x1c], esi
mov byte [ebp + esi - 0x2c], 0
jmp 0x40436c
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.004090e0
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push esi
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4043c6
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x14], eax
jne 0x4043c6
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x2c]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
jmp 0x40441e
xorps xmm0, xmm0
mov ecx, edi
push 0
movups xmmword [edi], xmm0
push 0x42b82e
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00402010
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x40441e
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404414
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404414
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004270a2
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426c11
mov esp, ebp
pop ebp
ret
Function at 0x40c730
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428e1c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 8
mov dword [ebp - 4], 0
call fcn.00426e1c
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x435064]
cmp eax, dword [ecx + 4]
jle 0x40c7e8
push 0x435064
call fcn.0042714f
add esp, 4
cmp dword [0x435064], 0xffffffff
jne 0x40c7e8
push 2
push 0x435068
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
push 0x42a710
call fcn.00427088
push 0x435064
call fcn.004270fe
add esp, 0x10
push 0x435068
mov dword [ebp - 0x18], 0x435068
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x40c809
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [0x435094]
cmp eax, 0x7fffffff
jne 0x40c823
dec eax
push 6
mov dword [0x435094], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov ecx, edi
call fcn.004132c0
push 0x435068
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [ebp - 0x18], edi
push 0x10
mov byte [ebp - 4], 3
call fcn.00426e1c
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
push 0x100
push 0
movups xmmword [eax], xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_struct_boost::regex_traits_wrapper_struct_boost::regex_traits_char__class_boost::w32_regex_traits_char____.0
mov dword [eax + 0xc], edi
mov dword [esi + 0x10], eax
lea eax, [esi + 0x30]
mov dword [esi + 0xc], edi
push eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call sub.VCRUNTIME140.dll_memset
mov dword [esi + 0x130], 0
add esp, 0x18
mov dword [esi + 0x13c], 0
mov eax, esi
mov dword [esi + 0x138], 0
mov dword [esi + 0x134], 0
mov dword [esi + 0x140], 0
mov dword [esi + 0x144], 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
mov word [esi + 0x150], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426c11
mov esp, ebp
pop ebp
ret
Function at 0x4185b0
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp ecx, edx
je 0x4185d6
push edi
mov edi, esi
mov eax, esi
shr eax, 2
shl edi, 6
add edi, eax
movsx eax, byte [ecx]
add eax, 0x9e3779b9
inc ecx
add eax, edi
xor esi, eax
cmp ecx, edx
jne 0x4185b8
pop edi
mov eax, 3
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1e
imul eax, eax, 0x7fffffff
sub esi, eax
or esi, 0x40000000
mov eax, esi
pop esi
ret
Function at 0x422970
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a095
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 4
push eax
lea eax, [ebp - 0x58]
mov ecx, 0x4348c8
push eax
call fcn.004139b0
mov esi, dword [ebp - 0x50]
cmp byte [esi + 0xd], 0
jne 0x422a36
cmp dword [esi + 0x10], 4
jg 0x422a36
mov ebx, dword [esi + 0x24]
add esi, 0x14
mov edi, esi
cmp dword [esi + 0x14], 0xf
jbe 0x4229d6
mov edi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x4229f2
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x4229e1
mov ebx, dword [ebp - 0x44]
lea eax, [ebp - 0x4c]
push edx
push esi
push eax
mov ecx, ebx
call fcn.00422530
mov eax, dword [eax + 4]
test eax, eax
je 0x422a32
cmp eax, dword [ebx + 4]
je 0x422a32
cmp dword [ebx + 8], 1
jne 0x422a40
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426c11
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x422a16
push str.invalid_map_K__T__key
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00422a90
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
push eax
call fcn.004206e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00422920
push 0x430e08
lea eax, [ebp - 0x58]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x426849
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00426825
pop esi
leave
ret 8

Function at 0x4279cf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x427a0e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427a0e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427a0e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x427a0e
cmp dword [ecx + 0x74], 0xe
jbe 0x427a0e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00408afe
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00408afe
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00408afe
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00408afe
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00408afe
mov dword [0x41203c], eax
call fcn.00408afe
test eax, eax
jge 0x402550
push 8
call fcn.00408afe
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00408afe
pop ecx
push 1
call fcn.00408afe
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00408afe
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00408afe
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00408afe
jmp 0x402495

Function at 0x408afe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x408b0d
pop dword [ebp - 8]
mov eax, 0x8204cfa
sub eax, 0x7dfc1ed
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x38f40
push 0
mov eax, 0x75e9ebfb
add eax, 0x8a56f4dd
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x4690cada
sub ecx, 0x469083d8
mov edi, eax
mov esi, 0x6bf369a7
add esi, 0x944dd21d
add esi, dword [ebp - 8]
mov ebx, 0xfb7bf717
sub dword [ebp - 4], edi
mov edx, dword [esi]
sub dword [ebp - 4], ecx
sub edx, ebx
sub dword [ebp - 4], 0xd056dc3c
mov dword [edi], edx
xor dword [ebp - 4], edx
add edi, 0x2acc65dc
sub edi, 0x2acc65d8
add esi, 4
loop 0x408b66
add eax, 0x30c8600c
add eax, 0xcf38aecf
mov ebx, eax
add eax, 0xe032330
sub eax, 0xe03232b
mov ecx, 0x7a0c88b4
add ecx, 0x8633774c
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401530
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x14
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
je 0x401580
cmp eax, 0x111
jne 0x40156e
mov eax, dword [ebp + 8]
mov dword [esp + 4], 8
mov dword [esp], eax
call dword [0x4185c4]
sub esp, 8
cmp dword [ebp + 0x10], 1
mov ebx, eax
je 0x4015e0
cmp dword [ebp + 0x10], 2
je 0x4015c8
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 8
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [0x4185f0]
mov eax, dword [ebp + 8]
sub esp, 0xc
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x4185f4]
mov eax, 1
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10
mov dword [eax + 4], 1
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret 0x10
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 4], 0
mov dword [esp], 1
mov dword [esp + 8], eax
call dword [sym.imp.kernelbase.dll_OpenProcess]
mov esi, eax
sub esp, 0xc
mov eax, 1
test esi, esi
je 0x401570
test byte [section..data], 8
jne 0x401650
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernelbase.dll_TerminateProcess]
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.kernelbase.dll_CloseHandle]
mov dword [ebx + 8], 1
mov eax, 1
sub esp, 4
jmp 0x401570
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], str.terminating_process__04lx_n
mov dword [esp + 8], str.endtask_dlg_proc
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40a000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401619
Function at 0x401680
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x1c
mov eax, dword [eax + 4]
cmp eax, dword [section..bss]
je 0x401731
mov dword [esp + 8], eax
mov eax, dword [sym.imp.kernelbase.dll_OpenProcess]
mov dword [ebp - 0x10], edx
mov dword [esp + 4], 0
mov dword [esp], 0x100000
mov dword [ebp - 0x14], eax
call eax
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x401731
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x10]
mov ecx, eax
mov eax, ebx
mov dword [esp], 0x11
call sym._send_messages_with_timeout_dialog.constprop.0
mov edx, dword [ebp - 0x10]
cmp eax, 0xffffffff
mov esi, eax
je 0x401740
mov dword [esp + 4], eax
mov ecx, edi
mov eax, ebx
mov dword [esp], 0x16
call sym._send_messages_with_timeout_dialog.constprop.0
test esi, esi
je 0x401760
cmp eax, 0xffffffff
je 0x401740
mov dword [esp], edi
mov dword [esp + 4], 0
call dword [sym.imp.kernelbase.dll_WaitForSingleObject]
sub esp, 8
mov esi, eax
mov dword [esp], edi
mov edi, dword [sym.imp.kernelbase.dll_CloseHandle]
call edi
sub esp, 4
cmp esi, 0x102
je 0x401770
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
xor eax, eax
sub esp, 4
jmp 0x401736
mov eax, dword [ebx + 4]
mov dword [esp + 4], 0
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
call eax
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x401731
test byte [section..data], 8
jne 0x4017c0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernelbase.dll_TerminateProcess]
sub esp, 8
mov dword [esp], esi
call edi
sub esp, 4
jmp 0x401731
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], str.terminating_process__04lx_n
mov dword [esp + 8], str.send_end_session_messages
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40a000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40179d
Function at 0x402240
Capabilities:
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 4
mov dword [esp], str.Usage:_wineboot__options__n
call sym._wine_dbg_printf
mov dword [esp], str.Options__n
call sym._wine_dbg_printf
mov dword [esp], str._____h___help_________Display_this_help_message_n
call sym._wine_dbg_printf
mov dword [esp], str._____e___end_session__End_the_current_session_cleanly_n
call sym._wine_dbg_printf
mov dword [esp], str._____f___force________Force_exit_for_processes_that_dont_exit_cleanly_n
call sym._wine_dbg_printf
mov dword [esp], str._____i___init_________Perform_initialization_for_first_Wine_instance_n
call sym._wine_dbg_printf
mov dword [esp], str._____k___kill_________Kill_running_processes_without_any_cleanup_n
call sym._wine_dbg_printf
mov dword [esp], str._____r___restart______Restart_only__dont_do_normal_startup_operations_n
call sym._wine_dbg_printf
mov dword [esp], str._____s___shutdown_____Shutdown_only__dont_reboot_n
call sym._wine_dbg_printf
mov dword [esp], str._____u___update_______Update_the_wineprefix_directory_n
call sym._wine_dbg_printf
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]

Function at 0x4022d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
cmp word [ecx], 0
je 0x402320
mov ebx, ecx
nop
add ebx, 2
cmp word [ebx], 0
jne 0x4022e0
sub ebx, ecx
add ebx, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, dword [ebp - 4]
sub esp, 0x18
leave
ret
mov ebx, 2
jmp 0x4022ee