joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421ac0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x421ac6
ret

Function at 0x430bf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x430da1
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404eb0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x430db8
call fcn.00404b0c
mov eax, ebx
call fcn.0041f954
mov edi, eax
dec edi
test edi, edi
jl 0x430ca8
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041f928
mov edx, dword [0x43c284]
call fcn.00403c3c
test al, al
je 0x430ca4
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0041f928
lea edx, [ebp - 0x14]
call fcn.004496c0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404eb0
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b80
inc esi
dec edi
jne 0x430c56
mov al, byte [0x430dbc]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x430dc8
mov eax, dword [ebp - 0xc]
call fcn.0040dff8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404898
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.004496c0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x430db8
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.004496c0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x430db8
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x430db8
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x430dd4
call fcn.00409c44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430da8
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404824
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404824
lea eax, [ebp - 0x14]
call fcn.00404800
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404824
ret
Function at 0x46d3d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46d3fe
mov eax, ebx
call fcn.0046de84
cmp dword [ebx + 0x40], 0
je 0x46d3f7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46d46f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46d461
cmp dword [ebx + 8], 0
je 0x46d420
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46d432
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46d461
cmp dword [ebx + 8], 0
je 0x46d413
cmp eax, 3
je 0x46d445
dec eax
jne 0x46d413
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46d413
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46d413
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46d48d
cmp dword [ebx + 0x14], 0xcc
je 0x46d48d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046d498
pop ebx
ret
Function at 0x406741
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040636c
push eax
push esi
push dword [ebp + 8]
call fcn.00406321
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
invalid

Function at 0x40880c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov ebx, edi
call fcn.00408a7c
lea esi, [esp + 0x10]
test al, al
je 0x408847
push 0x40de10
call fcn.00408b6e
mov esi, eax
cmp esi, 0xc0000452
jne 0x408853
lea esi, [esp + 0x10]
push 0x40de52
call fcn.00408b6e
mov esi, eax
test esi, esi
js 0x4088f5
push edi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov esi, eax
cmp esi, 0xc0000023
je 0x408895
test esi, esi
js 0x4088f9
mov esi, 0xc0000001
jmp 0x4088f9
mov eax, dword [esp + 0x14]
add eax, 2
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
jne 0x4088bf
mov esi, 0xc000009a
jmp 0x4088f9
mov ax, word [esp + 0x14]
mov word [esp + 0x1a], ax
push 0
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov esi, eax
test esi, esi
js 0x4088f9
movzx eax, word [esp + 0x18]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4088f9
mov edi, dword [esp + 0x10]
test edi, edi
je 0x408904
push edi
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x40891e
test ebx, ebx
je 0x40891e
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409510
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x409526
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x409541
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x409550
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x40958e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x409586
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x409590
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x409576
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40bf2b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x40bf5c
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00408ed5
add esp, 0x14
or eax, 0xffffffff
jmp 0x40c063
push ebx
lea ebx, [edi + 0xc]
mov eax, dword [ebx]
test al, 0x83
je 0x40c05f
test al, 0x40
jne 0x40c05f
test al, 2
je 0x40bf80
or eax, 0x20
mov dword [ebx], eax
jmp 0x40c05f
or eax, 1
mov dword [ebx], eax
test eax, 0x10c
jne 0x40bfac
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00408ed5
add esp, 0x14
jmp 0x40c05f
push dword [edi + 0x18]
mov eax, dword [edi + 8]
mov esi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push edi
mov dword [edi], eax
call esi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
lea ecx, [edi + 4]
mov dword [ecx], eax
test eax, eax
je 0x40c050
cmp eax, 0xffffffff
je 0x40c050
test byte [ebx], 0x82
jne 0x40c027
push edi
call esi
pop ecx
cmp eax, 0xffffffff
je 0x40c010
push edi
call esi
pop ecx
cmp eax, 0xfffffffe
je 0x40c010
push edi
call esi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push edi
lea esi, [ecx + eax*4]
call dword [sym.imp.msvcrt.dll__fileno]
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [esi]
pop ecx
pop ecx
jmp 0x40c015
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
lea ecx, [edi + 4]
cmp al, 0x82
jne 0x40c027
or dword [ebx], 0x2000
cmp dword [edi + 0x18], 0x200
jne 0x40c044
test byte [ebx], 8
je 0x40c044
test dword [ebx], 0x400
jne 0x40c044
mov dword [edi + 0x18], 0x1000
dec dword [ecx]
mov ecx, dword [edi]
movzx eax, byte [ecx]
inc ecx
mov dword [edi], ecx
jmp 0x40c062
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [ebx], eax
and dword [ecx], 0
or eax, 0xffffffff
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x40da11
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x40da44
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00408ed5
add esp, 0x14
mov eax, 0xffff
jmp 0x40db5d
push ebx
lea ebx, [edi + 0xc]
mov eax, dword [ebx]
test al, 0x83
je 0x40db57
test al, 0x40
jne 0x40db57
test al, 2
je 0x40da68
or eax, 0x20
mov dword [ebx], eax
jmp 0x40db57
or eax, 1
mov dword [ebx], eax
test eax, 0x10c
jne 0x40da94
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00408ed5
add esp, 0x14
jmp 0x40db57
push dword [edi + 0x18]
mov eax, dword [edi + 8]
mov esi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push edi
mov dword [edi], eax
call esi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
lea ecx, [edi + 4]
mov dword [ecx], eax
test eax, eax
je 0x40db48
cmp eax, 1
je 0x40db48
cmp eax, 0xffffffff
je 0x40db48
test byte [ebx], 0x82
jne 0x40db1c
push edi
call esi
pop ecx
cmp eax, 0xffffffff
je 0x40db05
push edi
call esi
pop ecx
cmp eax, 0xfffffffe
je 0x40db05
push edi
call esi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push edi
lea esi, [ecx + eax*4]
call dword [sym.imp.msvcrt.dll__fileno]
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [esi]
pop ecx
pop ecx
jmp 0x40db0a
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
lea ecx, [edi + 4]
cmp al, 0x82
jne 0x40db1c
or dword [ebx], 0x2000
cmp dword [edi + 0x18], 0x200
jne 0x40db39
test byte [ebx], 8
je 0x40db39
test dword [ebx], 0x400
jne 0x40db39
mov dword [edi + 0x18], 0x1000
add dword [ecx], 0xfffffffe
mov ecx, dword [edi]
movzx eax, word [ecx]
add ecx, 2
mov dword [edi], ecx
jmp 0x40db5c
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [ebx], eax
and dword [ecx], 0
mov eax, 0xffff
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x401ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [eax + 0xb8]
test eax, eax
je 0x402053
mov edx, dword [ebx + 0x10bc]
test edx, edx
je 0x402053
lea esi, [ebx + 0xbc]
test byte [0x413058], 8
jne 0x4020a0
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 0x402060
mov dword [ebx + 0x10bc], 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test byte [0x413058], 4
je 0x402049
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.write_failed:__lu_n
mov dword [esp + 8], 0x4148e0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x413058
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x402049
mov eax, esi
call sym._wine_dbgstr_an
mov dword [esp + 0xc], 0x4140aa
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x4148e0
mov dword [esp + 4], 0x413058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebx + 0x10bc]
mov eax, dword [ebx + 0xb8]
jmp 0x402021

Function at 0x4020e0
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, 0x14
mov eax, dword [eax + 0x10bc]
lea edx, [eax + ecx]
cmp edx, 0x1000
ja 0x402128
lea eax, [ebx + eax + 0xbc]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._memcpy
add dword [ebx + 0x10bc], 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 + 0x10bc]
lea edx, [esi + eax]
cmp edx, 0x1000
jbe 0x402100
test eax, eax
jne 0x4021b4
mov eax, dword [ebx + 0xb8]
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 0x40211d
test byte [0x413058], 4
je 0x40211d
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], 0x413058
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..._programs_conhost_conhost.c
mov dword [esp], str._console__tty_buffer_count
call dword [sym.imp.ucrtbase.dll__assert]
lea esi, [esi]
lea esi, [esi]
nop
Function at 0x4029d0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [eax + 0xb8]
test ecx, ecx
je 0x402a90
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x402a08
mov eax, dword [ebx + 0x10cc]
test eax, eax
jne 0x402a60
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
jmp sym._tty_flush
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
sub edx, 1
cmp edx, eax
cmova edx, eax
mov eax, ebx
call sym._set_tty_cursor
mov ecx, dword [ebx + 0x10cc]
test ecx, ecx
jne 0x4029f8
mov edx, dword [ebx + 0xb8]
test edx, edx
je 0x402a45
mov ecx, 6
mov edx, str.e__25h
mov eax, ebx
call sym._tty_write.part.0
mov dword [ebx + 0x10cc], 1
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
jmp sym._tty_flush
mov eax, ebx
mov ecx, 6
mov edx, str.e__25l
call sym._tty_write.part.0
mov eax, ebx
mov dword [ebx + 0x10cc], 0
mov ebx, dword [ebp - 4]
leave
jmp sym._tty_flush
ret
Function at 0x405230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x44
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x20]
add edx, ecx
cmp edx, eax
ja 0x4053d0
mov eax, dword [esi + 4]
and eax, 1
mov dword [ebp - 0x28], eax
je 0x405390
xor edi, edi
test ecx, ecx
jne 0x4052ac
jmp 0x405350
mov eax, dword [esi + 0x1c]
lea edx, [eax + 1]
lea eax, [eax + eax*4]
mov dword [esi + 0x1c], edx
mov edx, dword [esi + 0x18]
lea eax, [edx + eax*4]
mov edx, dword [ebx]
mov dword [eax], edx
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x10], edx
add edi, 1
add ebx, 0x14
cmp ecx, edi
je 0x405350
cmp word [ebx], 1
jne 0x405270
movzx eax, word [ebx + 0xe]
cmp ax, 3
je 0x405368
test ax, ax
jne 0x405270
cmp word [ebx + 0xa], 3
jne 0x405270
cmp dword [ebx + 0x10], 8
jne 0x405270
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 0x28]
test edx, edx
je 0x40529e
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
add edi, 1
add ebx, 0x14
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 8
mov dword [esp + 0x14], 0x50004c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ecx, dword [ebp - 0x24]
sub esp, 0x28
cmp ecx, edi
jne 0x4052ac
nop
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4053c2
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x10]
and eax, 0x100
jne 0x405270
mov edx, dword [ebx + 4]
test edx, edx
je 0x40529e
jmp 0x4052dc
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], ebx
mov dword [ebp - 0x24], ecx
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x18]
lea edx, [eax + edx*4]
lea eax, [ecx + ecx*4]
shl eax, 2
mov dword [esp], edx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
add dword [esi + 0x1c], ecx
test eax, eax
je 0x405357
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp sym._process_console_input
lea eax, [ecx + eax*2]
mov dword [ebp - 0x24], ecx
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x405404
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [esi + 0x20]
lea eax, [ecx + eax*2]
mov dword [esi + 0x20], eax
jmp 0x405253
mov dword [ebp - 0x20], 0xc0000017
jmp 0x405357
Function at 0x4058c0
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, 4
mov dword [esp], edi
call dword [sym.imp.user32.dll_VkKeyScanW]
xor ecx, ecx
sub esp, 4
cmp ax, 0xffff
je 0x405908
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 0x4066b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
test byte [0x413058], 8
jne 0x406700
test ebx, ebx
je 0x4066f0
mov dword [ebp + 8], edx
add esp, 0x18
mov ecx, ebx
mov edx, edi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
jmp sym._write_console_input.part.0
add esp, 0x18
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x414246
mov dword [esp + 8], str.write_console_input
mov dword [esp + 4], 0x413058
mov dword [esp], 3
mov dword [ebp - 0x10], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x10]
jmp 0x4066ce
Function at 0x40a4b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 4
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 0x40a4db
or eax, 8
cmp byte [ebx + 0xa3], 0
jns 0x40a4e7
or eax, 4
cmp byte [ebx + 0xa4], 0
jns 0x40a4f3
or eax, 2
cmp byte [ebx + 0xa5], 0
jns 0x40a4ff
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 0x40e7f0
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, 0x8c
cmp dword [ebx + 0x68], 1
movsx eax, word [eax + 0x7e]
sbb edi, edi
and edi, 0x20
mov dword [ebp - 0x1c], eax
movsx eax, word [ebx + 0x7c]
add edi, 0x51
cmp dword [ebx + 0x60], 1
sbb esi, esi
mov dword [ebp - 0x20], eax
mov eax, 1
and esi, 0x20
add esi, 0x49
cmp dword [ebx + 0x5c], 1
adc eax, 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x84]
mov dword [ebp - 0x3c], eax
mov eax, edx
shr eax, 0x10
je 0x40e950
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
mov dword [ebp - 0x40], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x40e8af
mov edx, dword [ebp - 0x40]
mov eax, edx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x34], edi
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x34]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x30], esi
mov dword [esp + 0x48], ecx
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
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 0x40e8af
Function at 0x4119e0
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 0x411a38
cmp byte [esi + ebx - 1], 0xa
je 0x411a0c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x419224], 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 0x412510
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_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
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._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop