joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401070
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x483030]
jne 0x40107a
repz ret
jmp fcn.00401e51

Function at 0x408b0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404d5a
and dword [ebp - 4], 0
cmp dword [0x485b68], 0
mov ebx, eax
jne 0x408bbc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c6d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c6d
push eax
call fcn.00404ce8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x485b68], eax
call esi
push eax
call fcn.00404ce8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x485b6c], eax
call esi
push eax
call fcn.00404ce8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x485b70], eax
call esi
push eax
call fcn.00404ce8
pop ecx
mov dword [0x485b78], eax
test eax, eax
je 0x408bbc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ce8
pop ecx
mov dword [0x485b74], eax
mov eax, dword [0x485b74]
cmp eax, ebx
je 0x408c14
cmp dword [0x485b78], ebx
je 0x408c14
push eax
call fcn.00404d63
push dword [0x485b78]
mov esi, eax
call fcn.00404d63
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408c14
test edi, edi
je 0x408c14
call esi
test eax, eax
je 0x408c0b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408c0b
test byte [ebp - 0xc], 1
jne 0x408c14
or dword [ebp + 0x10], 0x200000
jmp 0x408c4d
mov eax, dword [0x485b6c]
cmp eax, ebx
je 0x408c4d
push eax
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c4d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c4d
mov eax, dword [0x485b70]
cmp eax, ebx
je 0x408c4d
push eax
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c4d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x485b68]
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c6d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c6f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af70
Capabilities:
Set console window title

Disassembly:
sub esp, 0x420
mov eax, dword [0x483030]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [0x2c6355c]
push ebx
mov ebx, dword [0x2c63280]
push esi
mov esi, dword [0x483f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40afb1
push str.zolihetujejijitewi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2c6355c]
mov dword [0x485d0c], esi
cmp eax, 0x114e
jne 0x40afdb
lea eax, [esp + 0xc]
push eax
push str.Gijetuhe_batawuwafadis_fomikayemes_zeruru
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x2c6355c]
cmp eax, 0x2f
jne 0x40affb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call fcn.0040ae60
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401070
add esp, 0x420
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x405c62
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x405c71
pop dword [ebp - 0x3c]
mov eax, 0x8c596161
sub eax, 0x8c1904f0
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x1a50898f
sub dword [ebp - 0x4c], 0xcbfe4444
mov dword [ebp - 0x48], 0xfa55480b
sub dword [ebp - 0x48], 0xc821fbc6
mov dword [ebp - 0x44], 0xff2a8abd
add dword [ebp - 0x44], 0x4d21b971
mov dword [ebp - 0x40], 0xa0976ac7
sub dword [ebp - 0x40], 0xa0976ac7
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xee626aa7
add eax, 0x11de65a5
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x73cad572
sub dword [ebp - 0x4c], 0xff586c1c
mov dword [ebp - 0x48], 0x3495509f
add dword [ebp - 0x48], 0xcd710d6
mov dword [ebp - 0x44], 0x8dc8cdd6
sub dword [ebp - 0x44], 0x2a59616a
mov dword [ebp - 0x40], 0x892a2f2a
add dword [ebp - 0x40], 0x76d5d0d6
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x59ff43a4
sub eax, 0x59be735c
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d07e
push 0
call eax
mov ecx, 0x8d9eef6
add ecx, 0xf7266648
xor edx, edx
add edx, eax
mov ebx, 0x78d6df4
sub ebx, 0x74bbdf4
add ebx, dword [ebp - 0x3c]
mov edi, 0xc3b8fc8d
sub dword [ebp - 0x20], eax
mov esi, dword [ebx]
xor esi, edi
mov dword [ebp - 4], 0xc575ac3
mov dword [edx], esi
sub dword [ebp - 0x2c], 0x733e6530
add edx, 0x5da0f6fe
sub edx, 0x5da0f6fa
add ebx, 4
loop 0x405d8f
add eax, 0x147cb
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

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 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 0x1003d694
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 8]
je 0x1003d6a5
pop ebp
jmp fcn.100635a0
push 5
call fcn.100649b2
pop ebp
ret 8

Function at 0x10042ae0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
mov esi, dword [eax]
mov edi, dword [eax + 4]
add edi, esi
mov edx, ecx
add edx, eax
test cl, cl
cmovs edx, edi
cmovs eax, esi
sub edx, eax
mov ecx, edx
cmp edx, 4
jb 0x10042b2e
imul esi, dword [eax], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, esi
add eax, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x10042b08
cmp edx, 1
je 0x10042b4f
cmp edx, 2
je 0x10042b46
cmp edx, 3
jne 0x10042b5a
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop esi
pop edi
pop ebp
ret 4

Function at 0x10043f74
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x804
mov eax, dword [0x10243228]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jle 0x10043ffc
mov edi, edx
mov esi, ecx
mov eax, 0x800
lea ebx, [ebp - 0x810]
push eax
push 0xff
push ebx
call fcn.101db130
add esp, 0xc
call fcn.1001f412
mov ecx, dword [eax]
or ecx, 2
push dword [ebp + 8]
push 0
push edi
mov edx, 0x800
push edx
push ebx
push dword [eax + 4]
push ecx
call fcn.101dc7d6
add esp, 0x1c
lea eax, [esi - 1]
cmp eax, 3
ja 0x10043ff5
push dword [esi*4 + 0x10211310]
call fcn.101dc7d6
add esp, 4
push ebx
push 0x10211310
push eax
call fcn.1002c4cc
add esp, 0xc
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d7611
add esp, 0x804
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100441a4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x10243228]
xor eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [0x102440c0]
mov ecx, dword [0x1028ef04]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x14]
jg 0x100441ef
mov esi, dword [0x102440bc]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.101d7611
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x102440c0
call fcn.101dc7d6
add esp, 4
cmp dword [0x102440c0], 0xffffffff
jne 0x100441d6
pcmpeqd xmm0, xmm0
mov esi, esp
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov dword [esi + 0x20], 0xffffffff
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x102440bc], eax
push 0x102440c0
call fcn.101dc7d6
add esp, 4
jmp 0x100441d6
Function at 0x10080fbd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x21c
mov eax, dword [0x10243228]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21c]
push 0x20c
push 0xff
push edi
call fcn.101db130
add esp, 0xc
mov dword [edi - 0xc], edi
mov dword [edi - 8], edi
lea ecx, [ebp - 0x14]
mov dword [edi - 4], ecx
mov eax, 0x104
mov esi, dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov ebx, edi
mov edx, ecx
sub edx, ebx
sar edx, 1
cmp edx, eax
jae 0x1008102c
add eax, eax
lea ecx, [ebp - 0x228]
push 2
push eax
push edi
call fcn.10081f78
mov ebx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x220]
sub ecx, ebx
sar ecx, 1
push ebx
push ecx
call esi
test eax, eax
je 0x10081070
mov ebx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x220]
mov edx, ecx
sub edx, ebx
sar edx, 1
cmp eax, edx
ja 0x10081005
lea ecx, [ebx + eax*2]
mov dword [ebp - 0x224], ecx
mov esi, dword [ebp + 8]
mov ecx, esi
mov edx, 0xfde9
push dword [ebp + 0xc]
push eax
push ebx
call fcn.1008153e
add esp, 0xc
jmp 0x10081083
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov esi, dword [ebp + 8]
push esi
call fcn.1007f423
add esp, 8
mov eax, dword [ebp - 0x228]
cmp eax, edi
je 0x10081096
push eax
call fcn.101dc7d6
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d7611
mov eax, esi
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10081191
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov eax, dword [0x10243228]
xor eax, ebp
mov dword [esp + 0x158], eax
lea esi, [esp + 0x54]
push 0x104
push 0xff
push esi
call fcn.101db130
add esp, 0xc
mov dword [esi - 0xc], esi
mov dword [esi - 8], esi
lea eax, [esp + 0x154]
mov dword [esi - 4], eax
xor esi, esi
lea eax, [esp + 0x10]
mov dword [eax + 0x24], esi
mov dword [eax + 0x20], esi
xorps xmm0, xmm0
movaps xmmword [eax + 0x10], xmm0
movaps xmmword [eax], xmm0
mov dword [eax + 0x28], 0xffff
xor edi, edi
dec edi
lea ebx, [esp + 8]
mov dword [ebx], edi
mov dword [ebx + 4], edi
push eax
push dword [ebp + 0xc]
push ebx
call fcn.100807f3
add esp, 0xc
cmp dword [ebx], esi
je 0x1008123a
mov esi, dword [ebp + 8]
call fcn.101ad951
cmp dword [esp + 0xc], eax
jne 0x10081286
cmp dword [esp + 8], 2
jne 0x10081286
cmp byte [ebp + 0x10], 0
je 0x10081286
mov dword [esi], 0
call fcn.101ada37
mov dword [esi + 4], eax
jmp 0x10081290
mov esi, dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [esp + 0x48]
push eax
push dword [ebp + 0xc]
push esi
call fcn.10080c93
add esp, 0xc
cmp dword [esi], 0
lea edi, [esp + 0x54]
jne 0x10081294
cmp dword [esp + 0x34], 3
jne 0x100812bd
mov word [esp + 8], 0
lea ecx, [esp + 0x48]
push ebx
call fcn.10081508
lea eax, [esp + 0x48]
add dword [eax + 4], 0xfffffffe
push dword [eax]
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x100812de
movsd xmm0, qword [esp + 8]
movsd qword [esi], xmm0
lea edi, [esp + 0x54]
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x100812a5
push eax
call fcn.101dc7d6
add esp, 4
mov ecx, dword [esp + 0x158]
xor ecx, ebp
call fcn.101d7611
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov word [esp + 8], 0
lea ecx, [esp + 0x48]
push ebx
call fcn.10081508
lea eax, [esp + 0x48]
add dword [eax + 4], 0xfffffffe
push dword [eax]
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x1008130f
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.1007f423
add esp, 8
call fcn.101ad951
cmp dword [esi + 4], eax
jne 0x10081294
cmp dword [esi], 2
jne 0x10081294
cmp byte [ebp + 0x10], 0
je 0x10081294
mov dword [esi], 0
call fcn.101ada37
mov dword [esi + 4], eax
jmp 0x10081294
Function at 0x101dc7d6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x101dc7e5
pop dword [ebp - 0x1c]
mov eax, 0x5711e881
add eax, 0xb90bdf64
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xef130356
sub dword [ebp - 0x2c], 0xa0c0be0b
mov dword [ebp - 0x28], 0x3c43e638
sub dword [ebp - 0x28], 0xa1099f3
mov dword [ebp - 0x24], 0xab63f7cd
add dword [ebp - 0x24], 0xa0e84c61
mov dword [ebp - 0x20], 0xaa5bd49d
sub dword [ebp - 0x20], 0xaa5bd49d
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x4f8867f0
sub eax, 0x3f648270
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xd96a7043
add dword [ebp - 0x2c], 0x9b07f913
mov dword [ebp - 0x28], 0x83b4310
sub dword [ebp - 0x28], 0xc6cee19b
mov dword [ebp - 0x24], 0xc53883bd
sub dword [ebp - 0x24], 0x61c91751
mov dword [ebp - 0x20], 0x1fa24b57
sub dword [ebp - 0x20], 0x1fa24b57
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x6fb8369a
sub eax, 0x5f94517e
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x47ec9
push 0
call eax
mov ecx, 0x5149
xor esi, esi
add esi, eax
mov edx, 0x102a4600
add edx, dword [ebp - 0x1c]
mov edi, 0x88cc9df4
mov dword [ebp - 0x14], 0x3d68e7f5
mov ebx, dword [edx]
xor dword [ebp - 4], 0x9474e2e8
add ebx, edi
xor dword [ebp - 0x14], 0x6c3cbb31
mov dword [esi], ebx
xor dword [ebp - 8], eax
add esi, 0x22c6f0bf
add esi, 0xdd390f45
add edx, 4
loop 0x101dc8f7
add eax, 0x137f7
xor ebx, ebx
add ebx, eax
add eax, 0xc43abed0
add eax, 0x3bc54135
mov ecx, sym.libGLESv2.dll_Ordinal_0
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4018e0
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 0x401943
mov edx, dword [ebx + 0x10b8]
test edx, edx
je 0x401943
lea esi, [ebx + 0xb8]
test byte [0x415058], 8
jne 0x401990
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 0x401950
mov dword [ebx + 0x10b8], 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test byte [0x415058], 4
je 0x401939
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.write_failed:__lu_n
mov dword [esp + 8], 0x4168c0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x415058
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1
jmp 0x401939
mov eax, esi
call sym._wine_dbgstr_an
mov dword [esp + 0xc], 0x416017
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x4168c0
mov dword [esp + 4], 0x415058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebx + 0x10b8]
mov eax, dword [ebx + 0xb4]
jmp 0x401911

Function at 0x402300
Capabilities:
Write file on windows

Disassembly:
test ecx, ecx
je 0x4023f0
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x40234f
mov eax, dword [ebx + 0x10b8]
mov edi, edx
mov esi, ecx
lea edx, [eax + ecx]
cmp edx, 0x1000
ja 0x402360
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, [eax + esi]
cmp edx, 0x1000
jbe 0x402332
test eax, eax
jne 0x4023f8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [ebx + 0xb4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x40234f
test byte [0x415058], 4
je 0x40234f
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], 0x415058
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1
jmp 0x40234f
ret
mov dword [esp + 8], 0xb5
mov dword [esp + 4], str._Users_runner_work_wine_wine_programs_conhost_conhost.c
mov dword [esp], str._console__tty_buffer_count
call dword [sym.imp.ucrtbase.dll__assert]
jmp 0x40237c
Function at 0x404030
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 0x4040b8
mov ecx, dword [ebx + 8]
mov esi, dword [ecx + 0x18]
test esi, esi
jne 0x4040c0
mov edx, dword [ebx + 0x10c8]
test edx, edx
jne 0x404100
mov edx, dword [ebx + 0x10b8]
test edx, edx
je 0x4040b8
lea esi, [ebx + 0xb8]
test byte [0x415058], 8
jne 0x404190
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
jne 0x4040ae
test byte [0x415058], 4
jne 0x404150
mov dword [ebx + 0x10b8], 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 0x20]
lea edx, [eax - 1]
mov eax, dword [ecx + 0x1c]
mov ecx, esi
cmp edx, eax
cmova edx, eax
mov eax, ebx
call sym._set_tty_cursor
mov ecx, dword [ebx + 0x10c8]
test ecx, ecx
je 0x404130
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x4040b8
mov edx, dword [ebx + 0x10b8]
test edx, edx
jne 0x404066
jmp 0x4040b8
mov eax, ebx
mov ecx, 6
mov edx, str.e__25l
call sym._tty_write
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x10c8], 0
test eax, eax
jne 0x4040ee
jmp 0x4040b8
mov ecx, 6
mov edx, str.e__25h
mov eax, ebx
call sym._tty_write
mov dword [ebx + 0x10c8], 1
jmp 0x4040e4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.write_failed:__lu_n
mov dword [esp + 8], 0x4168c0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x415058
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1
jmp 0x4040ae
mov eax, esi
call sym._wine_dbgstr_an
mov dword [esp + 0xc], 0x416017
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x4168c0
mov dword [esp + 4], 0x415058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebx + 0x10b8]
mov eax, dword [ebx + 0xb4]
jmp 0x404079
Function at 0x4043b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x7c
mov eax, dword [eax + 0x10c0]
mov dword [ebp - 0x5c], edx
mov edi, dword [sym.imp.ucrtbase.dll__assert]
cmp ecx, eax
jb 0x4044f0
cmp eax, esi
jae 0x404424
mov ecx, dword [ebx + 0xb4]
add eax, 1
mov dword [ebx + 0x10bc], 0
mov dword [ebx + 0x10c0], eax
test ecx, ecx
je 0x4043d4
mov eax, dword [ebx + 0x10b8]
lea edx, [eax + 2]
cmp edx, 0x1000
ja 0x404440
mov edx, 0xa0d
mov word [ebx + eax + 0xb8], dx
add dword [ebx + 0x10b8], 2
mov eax, dword [ebx + 0x10c0]
cmp eax, esi
jb 0x4043d8
mov edx, dword [ebp - 0x5c]
lea esp, [ebp - 0xc]
mov ecx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp sym._set_tty_cursor
mov eax, ebx
call sym._tty_flush
mov eax, dword [ebx + 0x10b8]
lea edx, [eax + 2]
cmp edx, 0x1000
jbe 0x404406
mov dword [esp + 8], 0xb5
mov dword [esp + 4], str._Users_runner_work_wine_wine_programs_conhost_conhost.c
mov dword [esp], str._console__tty_buffer_count
call edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x4160ec
mov eax, dword [ebx + 0xb4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x40441a
test byte [0x415058], 4
je 0x40441a
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], 0x415058
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1
jmp 0x40441a
sub eax, ecx
lea edi, [ebp - 0x58]
mov dword [esp + 4], str.e__uA
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._sprintf
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strlen]
mov edx, edi
mov ecx, eax
mov eax, ebx
call sym._tty_write
mov dword [ebx + 0x10c0], esi
jmp 0x404424
Function at 0x4047c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x10
mov eax, dword [eax + 0x10]
cmp dword [ebx + 0x20], eax
jb 0x404878
mov edx, dword [ebx]
sub eax, 1
mov dword [ebx + 0x20], eax
mov edx, dword [edx + 0xb4]
test edx, edx
je 0x404858
mov edx, esi
mov eax, ebx
call sym._update_output
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x30]
shl eax, 2
lea edx, [esi - 1]
imul edx, eax
add eax, ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call dword [sym.imp.ucrtbase.dll_memmove]
mov ecx, dword [ebx + 0xc]
xor edx, edx
test ecx, ecx
je 0x404847
lea esi, [esi]
mov eax, dword [ebx + 0x10]
sub eax, 1
imul eax, ecx
mov ecx, dword [ebx + 0x30]
add eax, edx
add edx, 1
mov dword [ecx + eax*4], 0x70020
mov ecx, dword [ebx + 0xc]
cmp edx, ecx
jb 0x404828
mov eax, dword [ebx]
cmp ebx, dword [eax + 8]
je 0x4048a0
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
mov edx, dword [ebx + 0xc]
mov dword [esi], 0
mov dword [esi + 4], 0
sub edx, 1
mov dword [esi + 0xc], eax
mov dword [esi + 8], edx
jmp 0x4047f3
mov dword [esp + 8], 0x19b
mov dword [esp + 4], str._Users_runner_work_wine_wine_programs_conhost_conhost.c
mov dword [esp], str.screen_buffer__cursor_y___screen_buffer__height
call dword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [ebx + 0x10]
jmp 0x4047d8
sub dword [eax + 0x10c0], 1
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx]
lea edx, [ecx - 2]
cmp dword [eax + 0x10c0], edx
jne 0x4048d0
add esp, 0x10
sub ecx, 1
xor edx, edx
pop ebx
pop esi
pop ebp
jmp sym._set_tty_cursor
mov ecx, edx
xor edx, edx
call sym._set_tty_cursor
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx]
add esp, 0x10
pop ebx
xor edx, edx
pop esi
sub ecx, 1
pop ebp
jmp sym._set_tty_cursor