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

Disassembly:
push 0xffffffffffffffff
push 0x5d29e8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, ecx
and byte [esi + 0x140], 0xfe
push 0x10
xor edi, edi
call ebx
test ax, ax
jns 0x4a4ee8
mov edi, 4
push 0x11
call ebx
test ax, ax
jns 0x4a4ef4
or edi, 8
push 1
call ebx
mov ecx, 0x8000
test cx, ax
je 0x4a4f05
or edi, 1
push 4
call ebx
mov edx, 0x8000
test dx, ax
je 0x4a4f16
or edi, 0x10
push 2
call ebx
mov ecx, 0x8000
test cx, ax
je 0x4a4f27
or edi, 2
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
jne 0x4a4f4d
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x138]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [0x696790]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x10], edx
sub dword [esp + 0x14], eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.004bd4e0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov dword [esp + 0x98], 0
call fcn.004a4a90
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.0049d150
lea ecx, [esp + 0x28]
mov dword [esp + 0x88], 0xffffffff
mov dword [esp + 0x28], vtable.wxObject.0
call fcn.00423980
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x7c
ret

Function at 0x4a4fe0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
test eax, eax
je 0x4a4ffb
mov ecx, dword [eax + 0x40]
mov dword [esi + 0x14], ecx
mov dword [esi + 8], eax
jmp 0x4a5002
mov dword [esi + 0x14], 0xffffffff
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call ebx
mov ebp, dword [esp + 0x1c]
test ax, ax
sets dl
add dl, dl
xor dl, byte [esi + 0x2c]
mov edi, ebp
and dl, 2
xor byte [esi + 0x2c], dl
push 0x11
shr edi, 0x10
call ebx
test ax, ax
sets al
and al, 1
mov ecx, edi
and ecx, 0x2000
cmp ecx, 0x2000
mov cl, byte [esi + 0x2c]
sete dl
and dl, 1
add dl, dl
add dl, dl
or al, dl
mov edx, dword [esp + 0x18]
and cl, 0xfa
or al, cl
mov byte [esi + 0x2c], al
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], ebp
call dword [sym.imp.USER32.dll_GetMessageTime]
and edi, 0x4000
cmp edi, 0x4000
mov dword [esi + 0x10], eax
pop edi
sete al
mov byte [esi + 0x48], al
pop esi
pop ebp
pop ebx
ret
Function at 0x4a5580
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
and byte [esi], 0xf0
and byte [esi + 1], 0xe0
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
jne 0x4a55c0
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x17
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov edi, 1
call ebp
test eax, eax
je 0x4a55e6
mov edi, 2
movzx edx, di
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edx
call edi
mov cl, byte [esi + 1]
push 4
shr eax, 0xf
and al, 1
xor cl, al
and cl, 1
xor byte [esi + 1], cl
call edi
push 0x17
mov ebx, 2
shr eax, 0xf
and al, 1
add al, al
xor al, byte [esi + 1]
and al, 2
xor byte [esi + 1], al
call ebp
test eax, eax
je 0x4a5627
mov ebx, 1
movzx edx, bx
push edx
call edi
push 5
shr eax, 0xf
and al, 1
add al, al
add al, al
xor al, byte [esi + 1]
and al, 4
xor byte [esi + 1], al
call edi
push 6
shr eax, 0xf
and al, 1
add al, al
add al, al
add al, al
xor al, byte [esi + 1]
and al, 8
xor byte [esi + 1], al
call edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
shr eax, 0xf
and al, 1
shl al, 4
xor al, byte [esi + 1]
and al, 0x10
xor byte [esi + 1], al
call edi
mov cl, byte [esi]
test ax, ax
sets al
xor cl, al
and cl, 1
xor byte [esi], cl
push 0x10
call edi
test ax, ax
sets al
add al, al
xor al, byte [esi]
push 0x12
and al, 2
xor byte [esi], al
call edi
test ax, ax
sets al
add al, al
add al, al
xor al, byte [esi]
pop edi
and al, 4
xor byte [esi], al
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x4a8820
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp byte [esp + 4], 0
je 0x4a8843
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4a86b0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x696030], eax
ret
mov eax, dword [0x696030]
test eax, eax
je 0x4a8853
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
ret
Function at 0x4a9280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e7d98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004bf800
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
mov dword [esp + 0x44], ebx
call fcn.004c2d00
add esp, 0xc
test al, al
jne 0x4a92e7
push 0x61a300
lea ecx, [esp + 0xc]
call fcn.00420870
test eax, eax
jne 0x4a92e9
mov bl, 1
mov edx, dword [esp + 0x24]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x1c], 8
jb 0x4a930a
mov eax, dword [esp + 8]
push eax
call fcn.00584768
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00585b7b
add esp, 0x34
ret

Function at 0x4aa2b0
Capabilities:
Set global application hook

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4aa270
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
test eax, eax
mov dword [0x696034], eax
setne al
ret
Function at 0x4b0f20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5df1d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
mov ecx, esi
mov dword [esi], vtable.wxFont.0
call fcn.004b0e40
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x1c
Function at 0x4b33d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d3fc1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x18], esi
cmp dword [edi + 0xc], 0
mov dword [esp + 0x38], 1
jne 0x4b342a
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [edi + 0xc], eax
mov edi, dword [edi + 0xc]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edi
push esi
mov dword [esp + 0x24], esi
call ebp
mov dword [esp + 0x20], eax
mov ebx, dword [sym.imp.GDI32.dll_GetOutlineTextMetricsW]
push 0
push 0
push esi
mov byte [esp + 0x44], 2
call ebx
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x4b3487
mov edi, dword [esp + 0x40]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], eax
xor ecx, ecx
mov word [edi], cx
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
cmp esi, eax
je 0x4b3480
mov edx, dword [esp + 0x20]
push edx
push esi
call ebp
xor eax, eax
push esi
push eax
jmp 0x4b3548
push edi
call fcn.00585ae7
mov ebp, eax
push ebp
lea eax, [esp + 0x2c]
push fcn.005844d1
push eax
call fcn.00570580
add esp, 0x10
push ebp
push edi
push esi
mov byte [esp + 0x44], 3
mov dword [ebp], edi
call ebx
mov edi, dword [esp + 0x40]
test eax, eax
jne 0x4b3501
xor ebx, ebx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
xor ecx, ecx
mov word [edi], cx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [esp + 0x14], 1
mov byte [esp + 0x38], 2
cmp byte [esp + 0x24], cl
jne 0x4b34ed
mov edx, dword [esp + 0x2c]
push edx
call dword [esp + 0x2c]
add esp, 4
cmp esi, ebx
je 0x4b34fd
mov eax, dword [esp + 0x20]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push ebx
jmp 0x4b3548
mov eax, dword [ebp + 0xc8]
shr eax, 1
lea ecx, [ebp + eax*2]
push ecx
mov ecx, edi
call fcn.00402c90
cmp byte [esp + 0x24], 0
mov dword [esp + 0x14], 1
mov byte [esp + 0x38], 2
jne 0x4b3535
mov edx, dword [esp + 0x2c]
push edx
call dword [esp + 0x2c]
add esp, 4
test esi, esi
je 0x4b3545
mov eax, dword [esp + 0x20]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4b3570
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5e7d98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 0x5c
mov esi, ecx
push 0
push esi
call fcn.00585730
add esp, 0xc
push str.msw.font.no_proof_quality
lea ecx, [esp + 0xc]
call fcn.00402bb0
lea eax, [esp + 8]
push eax
mov dword [esp + 0x3c], 0
call fcn.005a52b0
mov ecx, dword [esp + 0x28]
neg eax
sbb al, al
and al, 0xfe
add al, 2
push ecx
mov byte [esi + 0x1a], al
call fcn.005844d1
add esp, 8
cmp dword [esp + 0x1c], 8
jb 0x4b35fa
mov edx, dword [esp + 8]
push edx
call fcn.00584768
add esp, 4
fldz
fstp qword [esi + 0x60]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00585b7b
add esp, 0x34
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x5d4011
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov edi, dword [esp + 0x3c]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
xor eax, eax
mov word [edi], ax
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], 1
call fcn.00420510
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], 1
call fcn.00420510
mov dword [esp + 0x1c], eax
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
push str._d__s__ld__ld__ld__ld__ld__d__d__d__d__d__d__d__d__s
push ecx
mov byte [esp + 0x40], 2
call fcn.00402340
add esp, 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
fld qword [esi + 0x60]
movzx eax, byte [esi + 0x1b]
movzx ecx, byte [esi + 0x1a]
lea edx, [esi + 0x1c]
push edx
movzx edx, byte [esi + 0x19]
push eax
movzx eax, byte [esi + 0x18]
push ecx
movzx ecx, byte [esi + 0x17]
push edx
movzx edx, byte [esi + 0x16]
push eax
movzx eax, byte [esi + 0x15]
push ecx
movzx ecx, byte [esi + 0x14]
push edx
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
sub esp, 0x24
mov ecx, esp
mov dword [esp + 0x70], esp
push 0xffffffffffffffff
sub esp, 8
mov dword [esp + 0x9c], 3
fstp qword [esp]
push ecx
call fcn.004236a0
add esp, 0x10
push 1
lea edx, [esp + 0x78]
push edx
mov ecx, edi
call fcn.004b2fa0
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call fcn.004020c0
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
Function at 0x4b3a20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d4038
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esi + 4], 1
xor ebp, ebp
lea ecx, [esi + 0x10]
mov dword [esp + 0x28], ebp
mov dword [esi], vtable.wxFontRefData.0
call fcn.004b3570
mov edi, dword [esp + 0x30]
mov dword [esi + 0xc], ebp
mov eax, dword [edi + 8]
cmp eax, dword [0x68d984]
jne 0x4b3a89
mov ecx, dword [edi + 0xc]
cmp ecx, dword [0x68d988]
jne 0x4b3a89
xor eax, eax
jmp 0x4b3a8e
mov eax, 1
mov byte [esi + 8], al
test al, al
je 0x4b3ab2
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.004b2880
jmp 0x4b3ae7
fld qword [edi]
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4b3ad9
mov ecx, dword [0x68d92c]
fstp st(0)
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 0x17
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
sub esp, 8
lea ecx, [esi + 0x10]
fstp qword [esp]
call fcn.004b2800
mov eax, dword [edi + 0x38]
test al, 1
je 0x4b3af9
mov ecx, 0x5d
mov dword [esp + 0x30], ecx
jmp 0x4b3b07
and eax, 2
or eax, 0x2d
add eax, eax
mov dword [esp + 0x30], eax
mov ecx, eax
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x4b3b1c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0xc], ebp
cmp ecx, 0x5a
je 0x4b3b31
cmp ecx, 0x5c
jle 0x4b3b31
cmp ecx, 0x5e
jg 0x4b3b31
mov byte [esi + 0x24], 1
jmp 0x4b3b35
mov byte [esi + 0x24], 0
mov eax, dword [esi + 0xc]
mov ebx, dword [edi + 0x3c]
cmp eax, ebp
je 0x4b3b49
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], ebp
mov eax, dword [esi + 0xc]
mov dword [esi + 0x20], ebx
mov ebx, dword [edi + 0x38]
shr ebx, 6
and bl, 1
cmp eax, ebp
je 0x4b3b66
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], ebp
mov eax, dword [esi + 0xc]
mov byte [esi + 0x25], bl
mov ebx, dword [edi + 0x38]
shr ebx, 7
and bl, 1
cmp eax, ebp
je 0x4b3b83
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], ebp
mov eax, dword [esi + 0xc]
mov byte [esi + 0x26], bl
mov ebx, dword [edi + 0x10]
cmp eax, ebp
je 0x4b3b9a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], ebp
push ebx
lea ecx, [esi + 0x10]
call fcn.004b2660
cmp dword [edi + 0x24], ebp
je 0x4b3bc5
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x4b3bb9
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], ebp
lea ecx, [edi + 0x14]
push ecx
lea ecx, [esi + 0x10]
call fcn.004b32e0
mov eax, dword [esi + 0xc]
mov edi, dword [edi + 0x40]
cmp eax, ebp
je 0x4b3bd9
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], ebp
push edi
lea ecx, [esi + 0x10]
call fcn.004b3680
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x4bf760
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5d5b19
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x2c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
xor ecx, ecx
mov word [esi], cx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 1
cmp ebx, eax
je 0x4bf7e6
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
push edi
push esi
lea ecx, [esp + 0x1c]
call fcn.00421b20
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x14]
call fcn.004215e0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x4bfba0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5d5bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edx, dword [esp + 0x9c]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
mov ebx, dword [esp + 0x94]
mov edi, ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
push 3
push esi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 1
call fcn.004028e0
mov eax, dword [eax]
mov edx, dword [eax]
lea ecx, [esp + 0x44]
lea eax, [esp + 0x68]
mov dword [esp + 0x2c], ecx
mov ecx, esi
mov byte [esp + 0x38], 2
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
call fcn.0041de00
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [esp + 0x24]
push eax
push ecx
push ebx
push ebp
push edx
lea ecx, [esp + 0x3c]
call fcn.0041d2a0
push eax
lea ecx, [esp + 0x48]
call fcn.0041d2a0
push eax
push esi
push edi
call fcn.00423450
add esp, 0x28
mov esi, eax
mov byte [esp + 0x38], 1
call fcn.00420510
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x4bfcbe
mov eax, 0xffff
add word [ecx + 8], ax
jne 0x4bfcb5
mov eax, dword [esp + 0x14]
mov edi, eax
test eax, eax
je 0x4bfcb5
cmp byte [eax + 0xa], 0
je 0x4bfcac
mov ecx, dword [eax]
push ecx
call fcn.005844d1
add esp, 4
push edi
call fcn.00584768
add esp, 4
call fcn.00420510
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x60]
push edx
call fcn.005844d1
mov edi, 8
add esp, 4
cmp dword [esp + 0x58], edi
jb 0x4bfce3
mov eax, dword [esp + 0x44]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x84]
xor ecx, ecx
push edx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x7c], edi
jb 0x4bfd1d
mov eax, dword [esp + 0x68]
push eax
call fcn.00584768
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x64
Function at 0x4c2e70
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x20
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x4c2eae
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00585b7b
add esp, 0x20
ret 4
mov ax, word [esi + 0x1c]
sub word [esp + 0x12], ax
xor edx, edx
mov word [esp + 0x10], dx
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
je 0x4c2e99
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x18]
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x4c2e99
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x4c2efa
mov edi, dword [edi]
mov edx, dword [esi + 8]
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x4c2e99
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [edx]
push ecx
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.00585b7b
add esp, 0x20
ret 4
Function at 0x4c38e0
Capabilities:
Manipulate console buffer

Disassembly:
push 0xffffffffffffffff
push 0x5d62d8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
push 0xfffffffffffffff4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4c3af4
test ebp, ebp
je 0x4c3af4
push 0x5fd260
lea ecx, [esp + 0x3c]
call fcn.00402c90
push 2
lea eax, [esp + 0x3c]
push eax
lea ecx, [esi + 4]
mov dword [esp + 0x94], 0
call fcn.0046f170
mov ecx, dword [esp + 0x54]
test al, al
push ecx
sete bl
mov dword [esp + 0x90], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x4c], 8
jb 0x4c398b
mov edx, dword [esp + 0x38]
push edx
call fcn.00584768
add esp, 4
test bl, bl
jne 0x4c3af4
or ebx, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
je 0x4c3af4
push str.GetConsoleCommandHistory
lea ecx, [esp + 0x3c]
mov dword [esi + 8], ebp
call fcn.00402bb0
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 4]
mov dword [esp + 0x90], 1
call fcn.0046f500
lea ecx, [esp + 0x38]
mov dword [esi + 0x20], eax
mov dword [esp + 0x8c], ebx
call fcn.00405eb0
cmp dword [esi + 0x20], 0
je 0x4c3af4
push str.GetConsoleCommandHistoryLength
lea ecx, [esp + 0x60]
call fcn.00402bb0
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esi + 4]
mov dword [esp + 0x90], 2
call fcn.0046f500
lea ecx, [esp + 0x5c]
mov dword [esi + 0x24], eax
mov dword [esp + 0x8c], ebx
call fcn.00405eb0
cmp dword [esi + 0x24], 0
je 0x4c3af4
lea edi, [esi + 0xc]
push edi
mov ecx, esi
call fcn.004c2e30
mov edx, dword [edi]
mov dword [esi + 0x10], eax
cmp dword [edx], 0
je 0x4c3af4
mov ecx, dword [esi + 8]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4c3af4
mov edi, dword [esp + 0x26]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
xor edx, edx
mov word [esp + 0x14], dx
inc edi
mov edx, dword [esi + 8]
dec di
lea eax, [esp + 0x18]
push eax
mov word [esp + 0x1a], di
mov ebx, dword [esp + 0x18]
push ebx
push 4
lea ecx, [esp + 0x28]
push ecx
push edx
call ebp
test eax, eax
je 0x4c3af4
push 4
lea eax, [esp + 0x20]
push eax
push 0x6235c4
call fcn.0058e1f9
add esp, 0xc
test eax, eax
jne 0x4c3a70
movsx eax, word [esp + 0x26]
movsx edx, word [esp + 0x32]
movsx ecx, di
sub eax, ecx
imul edx, eax
mov dword [esi + 0x1c], eax
movsx eax, word [esp + 0x24]
add eax, edx
mov dword [esi + 0x18], eax
test eax, eax
jle 0x4c3af0
push eax
lea ecx, [esi + 0x14]
call fcn.00450c20
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 8]
push ebx
push ecx
push eax
push edx
call ebp
test eax, eax
je 0x4c3af4
mov al, 1
jmp 0x4c3af6
xor al, al
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00585b7b
add esp, 0x7c
ret