joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40656f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4065a6
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 0x406580
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x40657b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065d7
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 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4065b9
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x417f2e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x417f3d
pop dword [ebp - 0x48]
mov eax, 0xbba5ae42
add eax, 0x449bd0fb
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3c388
push 0
mov eax, 0xae85c181
sub eax, 0xae433155
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0xab05d000
sub ecx, 0xab057b50
xor ebx, ebx
add ebx, eax
mov edx, 0x436e00
add edx, dword [ebp - 0x48]
mov edi, 0x5b2e4e62
add dword [ebp - 0x14], 0xa17b0f9d
mov esi, dword [edx]
add dword [ebp - 0x18], esi
sub esi, edi
xor dword [ebp - 0x40], ecx
mov dword [ebx], esi
add ebx, 0x927393c1
add ebx, 0x6d8c6c43
add edx, 0xa514f355
sub edx, 0xa514f351
loop 0x417f92
add eax, 0x14593
xor ebx, ebx
add ebx, eax
add eax, 0x9fbf7d8c
add eax, 0x60408279
mov ecx, 0x3c618ff1
sub ecx, 0x3c218ff1
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x41e7e0
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x2d4
push esi
call dword [sym.imp.kernel32.dll_GetVersion]
cmp ax, 6
je 0x41e81d
push str.SetDefaultDllDirectories
push 0x429a14
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x41e81d
push 0xc00
call eax
test eax, eax
jne 0x41e8b6
lea eax, [esp + 8]
push 0x106
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41e8b6
cmp eax, 0x104
ja 0x41e8b6
cmp word [esp + eax*2 + 6], 0x5c
je 0x41e84c
mov word [esp + eax*2 + 8], 0x5c
inc eax
mov esi, dword [str.userenv]
cmp byte [esi], 0
je 0x41e8b6
push ebp
lea ecx, [esp + eax*2 + 0xc]
push edi
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [esp + 0xc], ecx
mov ebp, 0x6c
mov cl, byte [esi]
mov eax, dword [esp + 0xc]
inc esi
test cl, cl
je 0x41e88b
xor dx, dx
add eax, 2
mov dl, cl
inc esi
mov word [eax - 2], dx
mov cl, byte [esi - 1]
test cl, cl
jne 0x41e877
mov word [eax], 0x2e
mov word [eax + 2], 0x64
mov word [eax + 4], bp
mov word [eax + 6], bp
mov word [eax + 8], 0
push 8
lea eax, [esp + 0x14]
push 0
push eax
call edi
cmp byte [esi], 0
jne 0x41e86c
pop edi
pop ebp
pop esi
add esp, 0x2d4
ret
Function at 0x59352ada
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
ret 8

Function at 0x59352af4
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.vsansi.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x59352b20
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.vsansi.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x59352b2b
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x5935a815
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.5935a7fe
and byte [esi + 0xc], 0
mov eax, 0x59320000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call sub.MSVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x5935a86f
cmp dword [ebp - 0x18], 5
jb 0x5935a887
jmp 0x5935a883
cmp dword [ebp - 0xc], 1
jne 0x5935a887
cmp dword [ebp - 0x18], 4
ja 0x5935a883
jne 0x5935a887
cmp dword [ebp - 0x14], 0
jbe 0x5935a887
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x5935d0f0
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret
Function at 0x402860
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
test byte [0x40a150], 8
je 0x4028d2
mov eax, str.WM_QUERYENDSESSION
cmp edx, 0x11
je 0x4028a2
cmp edx, 0x16
mov eax, str.WM_ENDSESSION
mov edx, str.Unknown
cmovne eax, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.received_response__s_hwnd__p_lresult__Id_n
mov dword [esp + 8], str.end_session_message_callback
mov dword [esp + 4], 0x40a150
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test esi, esi
je 0x402908
mov edx, dword [ebx + 8]
xor eax, eax
test edx, edx
setne al
mov esi, eax
mov eax, dword [ebx]
mov dword [ebx + 8], esi
lea edx, [eax - 1]
mov dword [ebx], edx
test eax, eax
jne 0x4028f7
mov eax, dword [ebx + 4]
test eax, eax
jne 0x402958
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], edi
call dword [0x4175f0]
sub esp, 4
test eax, eax
jne 0x4028e2
test byte [0x40a150], 8
je 0x4028d6
mov dword [esp + 0xc], str.window_was_destroyed__ignoring_FALSE_lresult_n
mov dword [esp + 8], str.end_session_message_callback
mov dword [esp + 4], 0x40a150
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
setne al
mov esi, eax
jmp 0x4028e2
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
Function at 0x402990
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x2c
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov esi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
cmp eax, 0x110
je 0x4029f0
cmp eax, 0x111
jne 0x4029dc
mov dword [esp], ebx
mov dword [esp + 4], 8
call dword [0x4175e4]
sub esp, 8
mov ebx, eax
cmp esi, 1
je 0x402a50
cmp esi, 2
je 0x402a30
xor eax, eax
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 8], edx
mov dword [esp], ebx
mov dword [esp + 4], 8
call dword [0x417608]
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 4], 1
call dword [0x41760c]
mov eax, 1
sub esp, 8
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [eax + 4], 1
lea esp, [ebp - 0xc]
mov eax, 1
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
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 0x4029de
test byte [0x40a150], 8
jne 0x402ac0
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 0x4029de
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], 0x40a150
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402a89

Function at 0x402af0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x1c
mov ebx, dword [ecx]
mov eax, dword [0x40a7e4]
mov ecx, dword [0x40a7e0]
mov edx, dword [0x40a7e8]
cmp ecx, eax
jb 0x402b62
lea esi, [eax + eax]
mov dword [esp + 8], edx
add eax, esi
mov dword [esp + 4], 0
shl eax, 3
mov dword [esp + 0xc], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapReAlloc]
sub esp, 0x10
mov edx, eax
test eax, eax
je 0x402ba0
mov dword [0x40a7e8], eax
mov ecx, dword [0x40a7e0]
mov dword [0x40a7e4], esi
lea eax, [ecx + ecx*2]
lea esi, [edx + eax*4]
lea eax, [esi + 4]
mov dword [esi], ebx
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [0x4175e8]
inc dword [0x40a7e0]
mov dword [esi + 8], eax
sub esp, 8
mov eax, 1
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
xor eax, eax
jmp 0x402b8b
Function at 0x4033f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
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 0x40344b
cmp byte [esi + ebx - 1], 0xa
je 0x40341f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40a458], 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]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x403670
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [sym.imp.ucrtbase.dll__wgetenv]
mov dword [esp], str.WINEBUILDDIR
call esi
test eax, eax
je 0x403728
cmp word [eax], 0
mov ebx, eax
je 0x4036a9
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4036a0
sub eax, ebx
mov dword [esp + 4], 0
add eax, 0x22
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x403795
xor eax, eax
nop
movzx edx, word [ebx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x4036e0
mov dword [esp + 4], str.loader
mov dword [esp], esi
call sym._lstrcatW_8
sub esp, 8
mov dword [esp + 4], str.wine.inf
mov dword [esp], esi
call sym._lstrcatW_8
mov eax, 0x5c
mov word [esi + 2], ax
sub esp, 8
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
mov dword [esp], str.WINEDATADIR
call esi
mov ebx, eax
test eax, eax
je 0x403795
cmp word [eax], 0
je 0x403749
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x403740
sub eax, ebx
mov dword [esp + 4], 0
add eax, 0x14
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x403795
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x403780
jmp 0x403703
xor esi, esi
jmp 0x40371f
Function at 0x4037a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x26c
call dword [0x4175dc]
mov dword [esp + 4], 0x40a3a8
mov dword [esp], eax
call dword [0x4175e8]
sub esp, 8
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov edi, eax
test eax, eax
je 0x403928
lea ebx, [ebp - 0x244]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [ebp - 0x244], 0x22c
call sym._Process32FirstW_8
sub esp, 8
test eax, eax
je 0x403940
mov dword [ebp - 0x250], 0
mov esi, dword fs:[0x18]
jmp 0x403899
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 1
call dword [sym.imp.kernelbase.dll_OpenProcess]
sub esp, 0xc
test eax, eax
je 0x403886
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x24c], eax
call dword [sym.imp.kernelbase.dll_TerminateProcess]
mov edx, dword [ebp - 0x24c]
sub esp, 8
cmp eax, 1
sbb dword [ebp - 0x250], 0xffffffff
mov dword [esp], edx
call dword [sym.imp.kernelbase.dll_CloseHandle]
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._Process32NextW_8
sub esp, 8
test eax, eax
je 0x403908
mov eax, dword [ebp - 0x23c]
cmp dword [esi + 0x20], eax
je 0x403886
cmp eax, dword [0x40a3a8]
je 0x403886
test byte [0x40a150], 8
je 0x403830
lea eax, [ebp - 0x220]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.killing_process__04lx__s_n
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x23c]
mov dword [esp + 8], str.kill_processes
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40a150
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x23c]
jmp 0x403830
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
mov ecx, dword [ebp - 0x250]
sub esp, 4
test ecx, ecx
jne 0x4037d0
lea esi, [esi]
mov edx, dword [ebp + 8]
mov eax, dword [0x40a3a8]
test edx, edx
je 0x403938
test eax, eax
jne 0x40394e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
sub esp, 4
jmp 0x403928
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 1
call dword [sym.imp.kernelbase.dll_OpenProcess]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x403938
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_TerminateProcess]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.kernelbase.dll_CloseHandle]
sub esp, 4
jmp 0x403938
Function at 0x403aa0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
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
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._main
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x404710
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov eax, dword [eax + 4]
cmp eax, dword [0x40a3a8]
je 0x4047c5
mov dword [esp + 8], eax
mov eax, dword [sym.imp.kernelbase.dll_OpenProcess]
mov esi, edx
mov dword [esp + 4], 0
mov dword [esp], 0x100000
mov dword [ebp - 0x20], eax
call eax
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x4047c5
mov dword [esp + 4], 0
mov ecx, eax
mov edx, esi
mov eax, ebx
mov dword [esp], 0x11
call sym._send_messages_with_timeout_dialog.constprop.0
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x4047d8
mov eax, dword [ebp - 0x1c]
mov dword [esp], 0x16
mov edx, esi
mov ecx, edi
mov dword [esp + 4], eax
mov eax, ebx
call sym._send_messages_with_timeout_dialog.constprop.0
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x4047f8
cmp eax, 0xffffffff
je 0x4047d8
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 0x404810
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 0x4047ca
mov eax, dword [ebx + 4]
mov dword [esp + 4], 0
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x4047c5
test byte [0x40a150], 8
jne 0x404860
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 0x4047c5
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], 0x40a150
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40483d
Function at 0x404b30
Capabilities:
Set registry value

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

Function at 0x404b90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
leave
ret

Function at 0x404bd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x20], edx
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, ecx
mov ecx, dword [ebp + 0x10]
lea ebx, [edx + esi]
test al, al
je 0x404c2f
cmp esi, ecx
jae 0x404c2f
xor esi, esi
movzx edi, al
lea esi, [esi]
cmp byte [ebx], 0
je 0x404c2f
inc esi
cmp esi, edi
je 0x404c6d
mov eax, ebx
sub eax, edx
cmp ecx, eax
jbe 0x404c26
lea esi, [esi]
inc ebx
mov eax, ebx
sub eax, edx
cmp ecx, eax
jbe 0x404c26
cmp byte [ebx], 0
jne 0x404c18
inc ebx
mov eax, ebx
sub eax, edx
cmp ecx, eax
ja 0x404c00
xor esi, esi
mov ecx, 0x40b238
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call sym._set_reg_value.isra.0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.kernelbase.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x24], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov edi, eax
sub esp, 0x18
lea ecx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x404c31
mov dword [esp + 0x14], edi
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov ecx, esi
sub esp, 0x18
jmp 0x404c36
Function at 0x404d70
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [0x40a7e0], 0
mov dword [esp + 8], 0xc0
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov dword [0x40a7e4], 0x10
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapAlloc]
mov dword [0x40a7e8], eax
sub esp, 0xc
test eax, eax
je 0x404dda
mov dword [esp + 4], 0
mov dword [esp], sym._enum_proc_8
call dword [0x4175d8]
sub esp, 8
test eax, eax
jne 0x404df0
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x40a7e0]
mov dword [esp + 0xc], sym._cmp_window
mov esi, 0xfffffff4
xor ebx, ebx
mov dword [esp + 8], 0xc
mov dword [esp + 4], eax
mov eax, dword [0x40a7e8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_qsort]
call dword [0x4175dc]
mov dword [esp + 4], 0x40a3a8
mov dword [esp], eax
call dword [0x4175e8]
mov eax, dword [0x40a7e8]
mov ecx, dword [0x40a7e0]
xor edx, edx
sub esp, 8
cmp ecx, ebx
jbe 0x404e60
test edx, edx
je 0x404eb8
mov edi, dword [eax + esi + 0x10]
cmp dword [eax + esi + 4], edi
jne 0x404ec0
inc edx
inc ebx
add esi, 0xc
cmp ecx, ebx
ja 0x404e49
mov ebx, 1
test edx, edx
je 0x404e84
sub ecx, edx
xor ebx, ebx
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*4]
call sym._send_end_session_messages.constprop.0
mov edx, eax
mov eax, dword [0x40a7e8]
test edx, edx
setne bl
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
jmp 0x404e58
mov ecx, ebx
add esi, 0xc
inc ebx
sub ecx, edx
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*4]
call sym._send_end_session_messages.constprop.0
mov edx, eax
mov eax, dword [0x40a7e8]
test edx, edx
je 0x404ef0
mov ecx, dword [0x40a7e0]
mov edx, 1
jmp 0x404e45
xor ebx, ebx
jmp 0x404e84