joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ccb
Capabilities:
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebx, ebx
push eax
push 0x20019
push ebx
mov esi, SysStringLen
push 0x4012a4
push esi
mov dword [ebp - 8], ebx
call edi
cmp eax, ebx
jne 0x402d2c
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402d21
cmp dword [ebp - 0xc], ebx
jne 0x402d21
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402d3c
cmp eax, 2
jne 0x402dcb
mov dword [ebp - 8], 1
cmp dword [ebp - 8], ebx
je 0x402dcb
call fcn.00402dd0
test eax, eax
mov ebx, 0x20006
je 0x402d8b
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x40132c
push esi
call edi
test eax, eax
jne 0x402d8b
push 0x401358
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x401360
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x4012a4
push esi
call edi
test eax, eax
jne 0x402db5
push 0x401300
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40132c
push esi
call fcn.00404233
push 0x401314
push esi
call fcn.00404233
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 8]
push ebx
xor ebx, ebx
push eax
push 1
push ebx
push 0x40132c
push SysStringLen
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402e74
push esi
push edi
push 8
lea eax, [ebp - 4]
pop edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add al, 0x10
inc eax
add byte [eax - 0x73], dl
inc ebp
in al, dx
push eax
push ebx
push ebx
push 0x401358
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
je 0x402e20
mov byte [ebp - 0x14], bl
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 0x401360
push dword [ebp - 8]
call esi
test eax, eax
je 0x402e3e
mov byte [ebp - 0x1c], bl
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x14]
push 0x401588
push eax
call esi
test eax, eax
jne 0x402e69
lea eax, [ebp - 0x1c]
push 0x401584
push eax
call esi
test eax, eax
jne 0x402e69
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret
Function at 0x403bc3
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 4], esi
call fcn.0040396e
test eax, eax
je 0x403c18
lea eax, [ebp - 8]
push eax
push 1
push esi
push 0x401688
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c4a
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push 0x40166c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403c4a
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x10c]
push 0x401660
push eax
call fcn.00403529
lea eax, [ebp - 0x10c]
push eax
call fcn.0040391a
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x403c50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
mov dword [ebp - 4], 0x80004005
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x58], 0x44
cmp esi, edi
je 0x403c7b
mov dword [esi], edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403cf7
cmp esi, edi
mov dword [ebp - 4], edi
je 0x403ca3
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
cmp dword [ebp + 0xc], edi
je 0x403ce2
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call fcn.00403d19
test eax, eax
jne 0x403cbe
mov dword [ebp - 4], 0x80070102
cmp dword [ebp - 4], edi
jl 0x403ce2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x403ce2
mov dword [ebp - 4], edi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
jmp 0x40e3e8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x403d07
call esi
jmp 0x403d13
call esi
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
leave
ret 0x10

Function at 0x403d9b
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push esi
push esi
call fcn.0040396e
test eax, eax
je 0x403df5
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403df5
lea eax, [ebp - 0x10]
push eax
push 0x4016bc
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
leave
ret
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x588218ec
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x7d072930
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40ba24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x40ba68
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x40ba37
jmp 0x40ba68
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40ba58
pop esi
pop ebp
ret

Function at 0x40c802
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40c837
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40c861
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40c861
test edi, edi
je 0x40c82e
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40c82e
test edi, edi
je 0x40c869
mov eax, edi
jmp 0x40c830
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40c830
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040fc8d
add esp, 0xc
int3
Function at 0x40fcc1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestJSONWriter.exe_gMozillaPoisonSize], eax
call fcn.0040c802
pop ecx
mov ecx, dword [sym.TestJSONWriter.exe_gMozillaPoisonSize]
mov dword [sym.TestJSONWriter.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40fcf9
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestJSONWriter.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x401451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147f
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x40149a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ee
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ee
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f2
xor eax, eax
jmp 0x401504
cmp dword [ebp - 4], edi
je 0x401501
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x401944
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
xor esi, esi
call edi
test eax, eax
jbe 0x40197b
push ebx
mov ebx, ebp
sub ebx, str.svchost.exe
mov al, byte [ebx + esi + str.svchost.exe]
push ebp
xor al, 1
mov byte [esi + str.svchost.exe], al
inc esi
call edi
cmp esi, eax
jb 0x401963
pop ebx
and byte [esi + str.svchost.exe], 0
pop edi
pop esi
mov eax, str.svchost.exe
pop ebp
ret

Function at 0x8de0dc
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de0e2
pop ebp
sub ebp, 6
sub ebp, 0x4de0dc
jmp 0x8de140
jmp 0x8de149
mov eax, 0x4de0dc
add eax, ebp
add eax, 0x93
mov ecx, 0x62a
mov edx, 0x88444c08
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de160
jmp 0x8de173
bound ecx, qword [eax + 0x60]
or byte [eax], bl
or byte [eax], cl
pushal
or ah, al
and al, 8
mov eax, edi
mov ebp, 0x89a6ee23
clc
mov ebp, 0x3ba6ee23
enter 0xfffffffffffff758, 0xffffffffffffff9d
xor al, 0x29
dec esp
or byte [eax - 0x7d], bl
lds eax, [ebx + 0x8083481]
or byte [ecx + 0x808f0c9], cl
or byte [ebx], cl
lds esi, [eax + 0x808080e]
mov dl, 0x20
or byte [eax], cl
or bh, bh
ljmp 0x804
Function at 0x401b40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
movzx edi, dx
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x1c
mov dword [esp], edi
call dword [sym.imp.user32.dll_VkKeyScanW]
xor ecx, ecx
sub esp, 4
cmp ax, 0xffff
je 0x401b88
mov edx, ebx
movzx ecx, al
or edx, 0x10
test ah, 1
cmovne ebx, edx
mov edx, ebx
or edx, 8
test ah, 2
cmovne ebx, edx
mov edx, ebx
or edx, 2
test ah, 4
cmovne ebx, edx
mov dword [esp], ebx
mov edx, edi
mov eax, esi
call sym._key_press
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4031b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
lea edx, [ebx + 0x8c]
sub esp, 0xac
cmp dword [ebx + 0x68], 1
movsx eax, word [eax + 0x7e]
sbb edi, edi
and edi, 0x20
mov dword [ebp - 0x28], eax
movsx eax, word [ebx + 0x7c]
add edi, 0x51
cmp dword [ebx + 0x60], 1
sbb esi, esi
mov dword [ebp - 0x2c], eax
mov eax, 1
and esi, 0x20
add esi, 0x49
cmp dword [ebx + 0x5c], 1
adc eax, 0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x84]
mov dword [ebp - 0x48], eax
mov eax, edx
shr eax, 0x10
je 0x403310
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
mov dword [ebp - 0x4c], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x40326f
mov edx, dword [ebp - 0x4c]
mov eax, edx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x34], edi
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x40]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x30], esi
mov dword [esp + 0x48], ecx
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x48]
mov dword [esp], str.cell__u__u__cursor__d__d__attr_02x_pop_up_02x_font_s__u__u_hist_u__d_flags_c_c_msk_08x_sb__u__u__win__u__u_x__u__u__edit_u
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx edx, dx
mov dword [esp], str._04x
mov dword [esp + 4], edx
call sym._wine_dbg_sprintf_1
jmp 0x40326f
Function at 0x404eb0
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 0x404f0b
cmp byte [esi + ebx - 1], 0xa
je 0x404edf
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]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x405d80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
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 0x405dab
or eax, 8
cmp byte [ebx + 0xa3], 0
jns 0x405db7
or eax, 4
cmp byte [ebx + 0xa4], 0
jns 0x405dc3
or eax, 2
cmp byte [ebx + 0xa5], 0
jns 0x405dcf
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 0x40b100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 0x20
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x40b163
mov edx, dword [ebx + 0x10b8]
test edx, edx
je 0x40b163
lea esi, [ebx + 0xb8]
test byte [0x413024], 8
jne 0x40b1b0
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 0x40b170
mov dword [ebx + 0x10b8], 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test byte [0x413024], 4
je 0x40b159
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 0x40b159
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 + 0x10b8]
mov eax, dword [ebx + 0xb4]
jmp 0x40b131
Function at 0x40bb30
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [eax + 0xb4]
test edx, edx
je 0x40bbf0
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov edx, dword [eax + 8]
mov ecx, dword [edx + 0x18]
test ecx, ecx
jne 0x40bb68
mov edx, dword [eax + 0x10c8]
test edx, edx
jne 0x40bbc0
mov ebx, dword [ebp - 4]
leave
jmp sym._tty_flush
mov ecx, dword [edx + 0xc]
mov ebx, dword [edx + 0x20]
mov dword [ebp - 0xc], 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 - 0xc]
mov ebx, dword [eax + 0x10c8]
test ebx, ebx
jne 0x40bb59
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x40bbaa
mov ecx, 6
mov edx, str.e__25h
call sym._tty_write.part.0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10c8], 1
mov ebx, dword [ebp - 4]
leave
jmp sym._tty_flush
mov ecx, 6
mov edx, str.e__25l
mov dword [ebp - 0xc], eax
call sym._tty_write.part.0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10c8], 0
mov ebx, dword [ebp - 4]
leave
jmp sym._tty_flush
ret

Function at 0x40bc00
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, 0x2c
mov eax, dword [eax + 0x10b8]
lea edx, [eax + ecx]
cmp edx, 0x1000
ja 0x40bc48
lea eax, [ebx + eax + 0xb8]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._memcpy
add dword [ebx + 0x10b8], 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 + 0x10b8]
lea edx, [esi + eax]
cmp edx, 0x1000
jbe 0x40bc20
test eax, eax
jne 0x40bcd8
mov eax, dword [ebx + 0xb4]
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 0x40bc3d
test byte [0x413024], 4
je 0x40bc3d
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]
jmp 0x40bc64
Function at 0x411cc0
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_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

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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
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 0x412148
test ecx, ecx
je 0x412138
mov dword [ebp + 8], esi
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop ebp
jmp sym._write_console_input.part.0
add esp, 0x30
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 0x41211d