joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458518
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a9bb8]
cmp dword [eax + 0x30], 0
je 0x4585c2
cmp dword [ebx + 0x94], 0
jne 0x4585bc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4584a8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4585bc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x458582
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4585bc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041d5c8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458591
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x459124
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x459159
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040497c
jmp 0x459166
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048e0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45a248
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a289
mov eax, esi
call fcn.00440a14
test al, al
je 0x45a289
mov eax, dword [ebx + 0x84]
call fcn.004407b4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a289
push 0
mov eax, dword [ebx + 0x84]
call fcn.004407b4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x484dac
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x484dd1
cmp dword [esp + 4], 5
jb 0x484dd1
mov al, 1
jmp 0x484dd3
xor eax, eax
add esp, 0x94
ret
Function at 0x4956a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
add eax, 0xc
mov eax, dword [eax]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0xc]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
xor ebx, ebx
mov bl, cl
mov ebx, dword [ebx*4 + 0x4a732c]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
mov esi, dword [ebx*4 + 0x4a732c]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4a732c]
mov dword [esp + 8], ebx
shr ecx, 0x18
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a732c]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x4a6eb0]
mov dword [edx + eax*4 + 0x10], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x14], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x18], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x1c], ecx
add eax, 4
cmp eax, 0x28
jl 0x4956cf
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x49579c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
add eax, 0x14
mov eax, dword [eax]
mov dword [edx + 0x14], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x14]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
xor ebx, ebx
mov bl, cl
mov ebx, dword [ebx*4 + 0x4a732c]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
mov esi, dword [ebx*4 + 0x4a732c]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4a732c]
mov dword [esp + 8], ebx
shr ecx, 0x18
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a732c]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x4a6eb0]
mov dword [edx + eax*4 + 0x18], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x18]
mov dword [edx + eax*4 + 0x1c], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x20], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 0x10]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, ebx
mov dword [edx + eax*4 + 0x2c], ecx
add eax, 6
cmp eax, 0x2e
jl 0x4957d7
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4958b8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
lea ecx, [eax + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 0x14], ecx
lea ecx, [eax + 0x18]
mov ecx, dword [ecx]
mov dword [edx + 0x18], ecx
add eax, 0x1c
mov eax, dword [eax]
mov dword [edx + 0x1c], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x1c]
mov edi, ecx
shl edi, 0x18
shr ecx, 8
or edi, ecx
mov ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a732c]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a732c]
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov esi, dword [ebx*4 + 0x4a732c]
mov ebx, edi
shr ebx, 0x18
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4a732c]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x4a6eb0]
mov dword [edx + eax*4 + 0x20], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x20]
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov edi, dword [edx + eax*4 + 0xc]
xor edi, ebx
mov dword [edx + eax*4 + 0x2c], edi
xor ecx, ecx
mov cl, byte [edx + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + 0x4a732c]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a732c]
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov esi, dword [ebx*4 + 0x4a732c]
mov ebx, edi
shr ebx, 0x18
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4a732c]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x30], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, dword [edx + eax*4 + 0x30]
mov dword [edx + eax*4 + 0x34], ecx
mov ebx, dword [edx + eax*4 + 0x18]
xor ebx, ecx
mov dword [edx + eax*4 + 0x38], ebx
mov ecx, dword [edx + eax*4 + 0x1c]
xor ecx, ebx
mov dword [edx + eax*4 + 0x3c], ecx
add eax, 8
cmp eax, 0x34
jl 0x495903
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x404090
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x4040c1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4040b0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x40a8a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40a8cb
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40a8cb
push dword [esi]
sub eax, ecx
push eax
push 1
push ecx
call fcn.004a69e7
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov al, byte [ebp + 8]
mov byte [ecx], al
inc dword [esi + 0xc]
pop esi
pop ebp
ret 4
Function at 0x40caa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
mov eax, dword [esi + 0xc]
je 0x40cb43
cmp eax, dword [esi + 8]
jb 0x40cad8
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40cad8
push dword [esi]
sub eax, ecx
push eax
push 1
push ecx
call fcn.004a69e7
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov byte [eax], 0x74
inc dword [esi + 0xc]
mov esi, dword [edi]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40cb08
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40cb08
push dword [esi]
sub eax, ecx
push eax
push 1
push ecx
call fcn.004a69e7
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov byte [eax], 0x72
inc dword [esi + 0xc]
mov esi, dword [edi]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40cb38
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40cb38
push dword [esi]
sub eax, ecx
push eax
push 1
push ecx
call fcn.004a69e7
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov byte [eax], 0x75
jmp 0x40cbfb
cmp eax, dword [esi + 8]
jb 0x40cb65
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40cb65
push dword [esi]
sub eax, ecx
push eax
push 1
push ecx
call fcn.004a69e7
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov byte [eax], 0x66
inc dword [esi + 0xc]
mov esi, dword [edi]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40cb95
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40cb95
push dword [esi]
sub eax, ecx
push eax
push 1
push ecx
call fcn.004a69e7
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov byte [eax], 0x61
inc dword [esi + 0xc]
mov esi, dword [edi]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40cbc5
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40cbc5
push dword [esi]
sub eax, ecx
push eax
push 1
push ecx
call fcn.004a69e7
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov byte [eax], 0x6c
inc dword [esi + 0xc]
mov esi, dword [edi]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40cbf5
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40cbf5
push dword [esi]
sub eax, ecx
push eax
push 1
push ecx
call fcn.004a69e7
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov byte [eax], 0x73
inc dword [esi + 0xc]
mov esi, dword [edi]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40cc25
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40cc25
push dword [esi]
sub eax, ecx
push eax
push 1
push ecx
call fcn.004a69e7
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
pop edi
mov byte [eax], 0x65
mov al, 1
inc dword [esi + 0xc]
pop esi
pop ebp
ret 4
Function at 0x40cc40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov al, byte [ecx + 0x24]
push ebx
mov ebx, dword [ecx + 0x10]
sub ebx, dword [ecx + 0xc]
push esi
mov esi, dword [ecx]
shr ebx, 3
imul ebx, dword [ecx + 0x28]
push edi
mov edi, dword [esi + 8]
sub edi, dword [esi + 0xc]
mov byte [ebp - 1], al
cmp ebx, edi
jbe 0x40ccb2
movsx eax, al
mov dword [ebp - 8], eax
nop
push edi
push eax
push dword [esi + 0xc]
call fcn.004a1140
add dword [esi + 0xc], edi
add esp, 0xc
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40cca0
push dword [esi]
sub eax, ecx
push eax
push 1
push ecx
call fcn.004a69e7
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 8]
sub ebx, edi
mov edi, dword [esi + 8]
sub edi, dword [esi + 0xc]
cmp ebx, edi
ja 0x40cc70
mov al, byte [ebp - 1]
test ebx, ebx
je 0x40ccc9
push ebx
movsx eax, al
push eax
push dword [esi + 0xc]
call fcn.004a1140
add esp, 0xc
add dword [esi + 0xc], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d2b0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0xc]
jae 0x40d2c1
inc eax
mov dword [esi + 0x10], eax
pop esi
ret
cmp byte [esi + 0x1c], 0
jne 0x40d300
push dword [esi]
mov eax, dword [esi + 0x14]
push dword [esi + 8]
add dword [esi + 0x18], eax
push 1
push dword [esi + 4]
call fcn.004a7b76
mov edx, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
lea ecx, [edx - 1]
add ecx, eax
mov dword [esi + 0xc], ecx
cmp eax, dword [esi + 8]
jae 0x40d300
mov byte [edx + eax], 0
inc dword [esi + 0xc]
mov byte [esi + 0x1c], 1
pop esi
ret
Function at 0x4755e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7118
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x50b06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x475726
cmp byte [ebx + 0x3d], 0
je 0x475726
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x475634
xor al, al
jmp 0x475728
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00403c00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
nop dword [eax]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x47568f
sub eax, 1
je 0x475693
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x4756e9
xor bl, bl
jmp 0x4756eb
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x4756cb
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.004a69e7
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x47568b
cmp byte [ebx + 0x3d], 0
je 0x4756e9
test esi, esi
jne 0x475650
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00403ef0
jmp 0x475647
mov bl, 1
cmp edx, 0x10
jb 0x47571d
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x475714
test al, 0x1f
jne 0x475721
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x475721
sub eax, ecx
cmp eax, 4
jb 0x475721
cmp eax, 0x23
ja 0x475721
mov eax, ecx
push eax
call fcn.00487cad
add esp, 4
mov al, bl
jmp 0x475728
call fcn.004a30af
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
Function at 0x479af0
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
sub esp, 0x34
mov eax, dword [0x50b06c]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov esi, ecx
and dword [esi + 0x2c], 0xfffffeff
add dword [esi + 0x40], 0xffffffff
mov eax, dword [esi + 0x2c]
jne 0x479b29
test al, 1
jne 0x479b29
test al, 0x40
je 0x479b29
and eax, 0xffffffbf
mov dword [esi + 0x2c], eax
test al, 0x20
je 0x479b29
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov eax, dword [esi + 0x2c]
test eax, 0x20000
jne 0x479b45
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004879f1
add esp, 0x34
ret
push ebx
test eax, 0x2000000
je 0x479b94
lea eax, [esp + 8]
mov dword [esp + 0x34], 0
push eax
push 1
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push eax
push dword [esi + 0x90]
movups xmmword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x479ca4
call dword [0x4eb0cc]
pop ebx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004879f1
add esp, 0x34
ret
test eax, 0x400000
jne 0x479ca4
push 0xffffffffffffffff
push dword [0x50f554]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x479cb7
mov eax, 2
mov ecx, 0x50f384
xchg dword [ecx], eax
cmp eax, 1
je 0x479be4
push ebx
push 1
push dword [0x50f554]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x479c9d
jmp 0x479cbc
push ebp
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push str.conout_
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov ebp, 1
cmp edi, 0xffffffff
je 0x479c27
push 0x50f538
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x479c27
mov eax, 0x50f550
lock or dword [eax], ebp
mov word [esp + 0x18], bp
mov dword [esp + 0x1c], ebp
mov ebp, 0xd
push 0
push ebp
mov dword [esp + 0x28], 0xd0001
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [esp + 0x24], ax
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x20]
mov word [esp + 0x2e], bp
push eax
push dword [esi + 0x90]
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x479c78
call dword [0x4eb0cc]
mov ebx, eax
cmp edi, 0xffffffff
je 0x479c84
push edi
call dword [0x4eb070]
pop edi
pop ebp
test ebx, ebx
je 0x479c9d
mov eax, ebx
pop ebx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004879f1
add esp, 0x34
ret
or dword [esi + 0x2c], 0x400000
mov ecx, dword [esp + 0x38]
xor eax, eax
pop ebx
pop esi
xor ecx, esp
call fcn.004879f1
add esp, 0x34
ret
call fcn.004a974b
call fcn.004a974b
int3
Function at 0x479df0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x2c
mov eax, dword [0x50b06c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push esi
mov esi, dword [esp + 0x44]
mov ebp, edx
mov eax, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], esi
cmp dword [esi], 0
je 0x479e2d
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004879f1
add esp, 0x2c
ret
push ebx
mov ebx, dword [0x4eb0cc]
push edi
lea ecx, [esp + 0x20]
push ecx
push dword [eax + 0x90]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x479e4e
call ebx
mov dword [esi], eax
movsx eax, word [esp + 0x2c]
mov edx, ebp
movsx esi, word [esp + 0x30]
movsx ebp, word [esp + 0x20]
sub esi, eax
mov eax, dword [0x50baf4]
inc esi
movsx edi, word [esp + 0x26]
mov dword [0x50bae4], ebp
mov dword [0x50baf0], esi
cmp eax, 0xffffffff
jne 0x479e81
mov eax, edi
jmp 0x479e8b
mov ecx, edi
sub ecx, esi
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx ebx, word [esp + 0x22]
lea ecx, [esi + eax]
cmp ecx, ebx
jle 0x479e9b
mov eax, ebx
sub eax, esi
xor ecx, ecx
test eax, eax
cmovs eax, ecx
cmp byte [esp + 0x48], cl
mov ecx, dword [esp + 0x44]
mov dword [0x50baf4], eax
je 0x479eb5
add ecx, edi
jmp 0x479eb7
add ecx, eax
cmp ecx, eax
jge 0x479ebf
mov ecx, eax
jmp 0x479ec8
add eax, esi
cmp ecx, eax
jl 0x479ec8
lea ecx, [eax - 1]
cmp byte [esp + 0x40], 0
je 0x479ed8
movsx edx, word [esp + 0x24]
add edx, dword [esp + 0x18]
test edx, edx
jns 0x479ee0
xor edx, edx
jmp 0x479ee7
cmp edx, ebp
jl 0x479ee7
lea edx, [ebp - 1]
mov eax, dword [esp + 0x14]
mov word [esp + 0x10], dx
mov word [esp + 0x12], cx
push dword [esp + 0x10]
push dword [eax + 0x90]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x479f42
mov ebx, dword [0x4eb0cc]
call ebx
mov esi, dword [esp + 0x1c]
cmp eax, 0x57
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
je 0x479e35
call ebx
pop edi
mov ecx, esi
pop ebx
pop esi
pop ebp
mov dword [ecx], eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004879f1
add esp, 0x2c
ret
mov ecx, dword [esp + 0x38]
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.004879f1
add esp, 0x2c
ret
Function at 0x47eb00
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
mov ebp, ecx
mov ebx, edx
test ebp, ebp
jne 0x47eb1f
test ebx, ebx
je 0x47eb10
mov dword [ebx], ecx
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
mov dword [eax], 0
xor eax, eax
ret
push edi
mov edi, ebp
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x47eb25
sub edi, ecx
sar edi, 1
push esi
mov esi, edi
test esi, esi
je 0x47eb4f
movzx eax, word [ebp + esi*2 - 2]
dec esi
cmp eax, 0x5c
je 0x47eb4b
cmp eax, 0x2f
jne 0x47eb37
test esi, esi
jne 0x47eba6
test ebx, ebx
je 0x47eb90
push 0x20a
call dword [0x50bacc]
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x47ec1d
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x47eb90
mov ecx, dword [ebx]
call fcn.004765a0
pop esi
pop edi
pop ebp
mov dword [ebx], 0
or eax, 0xffffffff
pop ebx
ret
push ebp
call fcn.004ac760
mov ecx, dword [esp + 0x18]
add esp, 4
pop esi
pop edi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
ret
test ebx, ebx
je 0x47ebda
lea eax, [esi*2 + 4]
push eax
call dword [0x50bacc]
mov ecx, eax
add esp, 4
mov dword [ebx], ecx
test ecx, ecx
je 0x47ec2c
lea eax, [esi + 1]
push eax
push ebp
push ecx
call fcn.004aa804
mov eax, dword [ebx]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2 + 2], cx
sub edi, esi
lea ebx, [edi + edi]
push ebx
call dword [0x50bacc]
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x47ec3b
lea eax, [edi - 1]
push eax
lea eax, [ebp + 2]
lea eax, [eax + esi*2]
push eax
push ecx
call fcn.004aa804
mov eax, dword [esp + 0x20]
add esp, 0xc
xor ecx, ecx
mov eax, dword [eax]
pop esi
pop edi
pop ebp
mov word [ebx + eax - 2], cx
xor eax, eax
pop ebx
ret
mov edx, str.uv__malloc
mov ecx, 0xe
call fcn.00482240
mov edx, str.uv__malloc
mov ecx, 0xe
call fcn.00482240
mov edx, str.uv__malloc
mov ecx, 0xe
call fcn.00482240
int3