joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a100
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
test edi, edi
je 0x42a25b
lea ecx, [edi*8]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx]
lea ecx, [edi*8]
sub ecx, edx
sub ecx, 2
je 0x42a14c
sub ecx, 2
jne 0x42a14f
add eax, 2
jmp 0x42a14f
add eax, 3
inc eax
cmp dword [ebx], eax
jae 0x42a162
pop edi
mov dword [ebx], eax
pop esi
mov eax, 0xfffffff0
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
xor edx, edx
test eax, eax
jle 0x42a1f6
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
movzx edi, byte [esi + 2]
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
mov ebx, edx
shl eax, 4
sar ebx, 4
add ebx, eax
and ebx, 0x3f
movzx eax, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov eax, edi
sar eax, 6
lea edx, [eax + edx*4]
and edx, 0x3f
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
and edi, 0x3f
mov dl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], dl
add esi, 3
add ecx, 4
dec dword [ebp - 4]
jne 0x42a192
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
cmp edx, edi
jge 0x42a24e
movzx eax, byte [esi]
inc edx
cmp edx, edi
jge 0x42a208
movzx esi, byte [esi + 1]
jmp 0x42a20a
xor esi, esi
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
mov ebx, esi
sar ebx, 4
shl eax, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
cmp edx, edi
jge 0x42a243
and esi, 0xf
mov dl, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], dl
jmp 0x42a247
mov byte [ecx + 2], 0x3d
add ecx, 3
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0x10]
mov eax, ecx
sub eax, dword [ebp + 0xc]
mov dword [edx], eax
mov byte [ecx], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a270
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
xor esi, esi
xor edx, edx
test edi, edi
jle 0x42a3a3
mov dword [ebp - 4], edi
lea ebx, [ebx]
cmp dword [ebp - 4], 2
mov eax, dword [ebp + 8]
jl 0x42a2b2
movzx ecx, byte [edx + eax]
cmp ecx, 0x2f72
jne 0x42a2b2
movzx ecx, byte [edx + eax + 1]
cmp ecx, 0x2f6e
je 0x42a2e3
mov al, byte [edx + eax]
movzx ecx, al
cmp ecx, 0x2f6e
je 0x42a2e3
cmp al, 0x3d
jne 0x42a2ca
inc esi
cmp esi, 2
jg 0x42a315
cmp al, 0x7f
ja 0x42a315
mov cl, byte [ecx + 0x4e0f48]
cmp cl, 0x7f
je 0x42a315
cmp cl, 0x40
jae 0x42a2e2
test esi, esi
jne 0x42a315
inc ebx
dec dword [ebp - 4]
inc edx
cmp edx, edi
jl 0x42a290
mov dword [ebp - 4], edx
test ebx, ebx
je 0x42a3a3
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + ebx*2]
lea eax, [eax + eax + 7]
sar eax, 3
cmp dword [ecx], eax
jae 0x42a321
pop edi
pop esi
mov dword [ecx], eax
mov eax, 0xfffffff0
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffffee
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
xor ecx, ecx
xor edi, edi
mov ebx, 3
test edx, edx
jle 0x42a39b
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp eax, 0x2f72
je 0x42a390
cmp eax, 0x2f6e
je 0x42a390
mov al, byte [eax + 0x4e0f48]
xor edx, edx
cmp al, 0x40
sete dl
movzx eax, al
and eax, 0x3f
shl ecx, 6
inc edi
sub ebx, edx
or ecx, eax
cmp edi, 4
jne 0x42a38d
xor edi, edi
test ebx, ebx
jle 0x42a373
mov edx, ecx
shr edx, 0x10
mov byte [esi], dl
inc esi
cmp ebx, 1
jle 0x42a380
mov eax, ecx
shr eax, 8
mov byte [esi], al
inc esi
mov edx, dword [ebp - 4]
cmp ebx, 2
jle 0x42a390
mov byte [esi], cl
inc esi
jmp 0x42a390
mov edx, dword [ebp - 4]
inc dword [ebp + 8]
dec edx
mov dword [ebp - 4], edx
test edx, edx
jg 0x42a331
sub esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cfb0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x42cfde
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
lea eax, [esi + 0x108]
add esp, 4
mov dword [esi], 0
cmp dword [eax + 0x14], 0x10
jb 0x42cfd7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x42cfe0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2008
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f840c]
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 edi, dword [ebp + 8]
mov ebx, ecx
mov eax, dword [ebx]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
lea esi, [ebx + 0x108]
add esp, 4
cmp dword [esi + 0x14], 0x10
jb 0x42d02c
mov eax, dword [esi]
jmp 0x42d02e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebx + 4]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0040e472
add esp, 8
mov edi, eax
cmp esi, edi
je 0x42d09d
cmp dword [esi + 0x14], 0x10
jb 0x42d05d
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
cmp dword [edi + 0x14], 0x10
jae 0x42d085
mov ecx, dword [edi + 0x10]
inc ecx
push ecx
push edi
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
xor eax, eax
jmp 0x42d08b
mov edx, dword [edi]
mov dword [esi], edx
mov dword [edi], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
cmp dword [ebp - 0x18], 0x10
jb 0x42d0b0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esi + 0x14], 0x10
jb 0x42d0b8
mov esi, dword [esi]
push 0x4e2ab0
push esi
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebx], eax
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.00485d44
mov esp, ebp
pop ebp
ret 4
Function at 0x42d560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4233
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4f840c]
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, dword [ebp + 8]
lea esi, [ebp - 0x9c]
mov edi, ecx
call fcn.0042d0f0
push 0x4e2ac0
push eax
lea eax, [ebp - 0x64]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0040e575
lea ecx, [edi + 0x124]
push ecx
lea edx, [ebp - 0x48]
push edx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040e5ba
push ebx
push eax
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 2
call fcn.0040e575
lea ecx, [edi + 0x140]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040e5ba
mov ebx, 0x10
add esp, 0x28
cmp dword [ebp - 0x6c], ebx
jb 0x42d607
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], esi
mov byte [ebp - 0x80], 0
cmp dword [ebp - 0x34], ebx
jb 0x42d627
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x50], ebx
jb 0x42d647
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], esi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x88], ebx
jb 0x42d66d
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x42d678
lea eax, [ebp - 0x2c]
mov ecx, dword [edi]
mov edx, dword [ebp - 0x1c]
push ecx
push 1
push edx
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x14
cmp dword [ebp - 0x18], ebx
jb 0x42d6a6
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
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.00485d44
mov esp, ebp
pop ebp
ret 4

Function at 0x42d790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x138], 0x10
mov ecx, dword [esi + 0x134]
lea eax, [esi + 0x124]
push edi
jb 0x42d7af
mov eax, dword [eax]
mov edx, dword [esi]
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push edx
push 1
push ecx
push eax
call edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi]
lea eax, [ebp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.MSVCR100.dll_vfprintf]
mov ecx, dword [esi + 0x150]
lea eax, [esi + 0x140]
add esp, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x42d7e6
mov eax, dword [eax]
mov edx, dword [esi]
push edx
push 1
push ecx
push eax
call edi
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x14
pop edi
pop esi
pop ebp
ret
Function at 0x431810
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c059b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4f840c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00487f30
push 4
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
test edi, edi
je 0x43188d
call fcn.00487ce3
mov dword [edi], eax
call fcn.00487a24
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00487e71
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x431883
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00487e99
jmp 0x43188f
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x449898
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push 0x4dfaa4
push dword [ebp + 8]
call sub.MSVCR100.dll__wfopen
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4498b4
pop edi
pop ebp
ret
push esi
push edi
call sub.MSVCR100.dll__fileno
push eax
call sub.MSVCR100.dll__filelength
mov esi, eax
pop ecx
pop ecx
cmp esi, dword [ebp + 0x10]
jbe 0x4498e0
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
push edi
call sub.MSVCR100.dll_fclose
pop ecx
mov eax, esi
pop esi
jmp 0x4498b1
push edi
push esi
push 1
push dword [ebp + 0xc]
call sub.MSVCR100.dll_fread
xor ecx, ecx
add esp, 0x10
cmp esi, eax
sete cl
mov esi, ecx
jmp 0x4498d4

Function at 0x44e239
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 9
je 0x44e246
xor eax, eax
jmp 0x44e271
push dword [ecx + 4]
call fcn.0044b678
pop ecx
test eax, eax
je 0x44e25e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test al, 2
jne 0x44e242
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor eax, 0x8000
shr eax, 0xf
pop ebp
ret 4
Function at 0x44f052
Capabilities:
Log keystrokes via polling

Disassembly:
push 4
mov eax, 0x4baecf
call fcn.004864c2
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0044e239
test eax, eax
je 0x44f090
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
call fcn.0044ebe6
xor eax, eax
inc eax
jmp 0x44f193
push dword [esi + 4]
call fcn.0044b678
mov ebx, eax
pop ecx
test ebx, ebx
je 0x44f139
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x48]
test eax, eax
je 0x44f139
cmp edi, 0x25
je 0x44f0c6
cmp edi, 0x27
je 0x44f0d4
cmp edi, 0x26
je 0x44f0c6
cmp edi, 0x28
jne 0x44f139
cmp edi, 0x27
je 0x44f0d4
cmp edi, 0x28
je 0x44f0d4
push 2
jmp 0x44f0d6
push 3
pop edi
mov ecx, ebx
jmp 0x44f0e8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
mov ecx, esi
test eax, eax
jne 0x44f124
push edi
call fcn.00441f39
mov esi, eax
test esi, esi
jne 0x44f0db
cmp edi, 3
setne al
mov ecx, ebx
push eax
call fcn.00441a33
mov ecx, eax
jmp 0x44f114
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
mov ecx, esi
test eax, eax
jne 0x44f124
push edi
call fcn.00441f39
mov esi, eax
test esi, esi
jne 0x44f106
jmp 0x44f088
push 0
call fcn.00441a2f
mov ecx, dword [ebp - 0x10]
push eax
call fcn.0044e4e8
jmp 0x44f088
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x12
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x11
call esi
lea ecx, [ebp + 8]
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push edi
call fcn.0045d2bf
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0044ef6e
test al, al
je 0x44f185
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0045d30c
mov eax, esi
call fcn.0048659a
ret 4

Function at 0x453027
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xd
push esi
mov esi, ecx
jne 0x453057
test dword [esi + 0x358], 0x1000
jne 0x453057
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x453057
and dword [esi + 0xc], 0
jmp 0x453072
mov eax, dword [esi + 0x368]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x60]
mov edx, dword [ecx]
push 0
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop esi
pop ebp
ret 0xc
Function at 0x453077
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
sub eax, 9
mov esi, ecx
je 0x4530d6
dec eax
je 0x4530b8
sub eax, 3
je 0x4530b8
test dword [esi + 0x358], 0x2000
je 0x4530f1
push edi
call sub.MSVCR100.dll_isdigit
pop ecx
test eax, eax
jne 0x4530f1
cmp edi, 0x2d
je 0x4530f1
cmp edi, 0x2e
je 0x4530f1
cmp edi, 0x2c
jne 0x45310c
jmp 0x4530f1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4530f1
test dword [esi + 0x358], 0x1000
jmp 0x4530ef
test byte [esi + 0x35c], 0x80
jne 0x4530f1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x45310c
mov eax, dword [esi + 0x368]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x60]
mov edx, dword [ecx]
push 0
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45d71d
Capabilities:
Log keystrokes

Disassembly:
push 4
mov eax, 0x4bd86a
call fcn.004864c2
and dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
mov eax, dword [0x4f8024]
mov dword [esi], eax
mov edx, dword [ebp + 0xc]
and dword [ebp - 4], 0
movzx eax, dx
mov dword [ebp - 0x10], 1
cmp eax, 0x24
jg 0x45d7a2
je 0x45d798
mov ecx, eax
sub ecx, 0xd
je 0x45d78e
sub ecx, 0xe
je 0x45d784
sub ecx, 6
je 0x45d77a
dec ecx
je 0x45d770
dec ecx
jne 0x45d7cb
push 0x4ca924
jmp 0x45d8e0
push str.PageDown
jmp 0x45d8e0
push str.PageUp
jmp 0x45d8e0
push 0x4ca8f8
jmp 0x45d8e0
push str.Enter
jmp 0x45d8e0
push str.Home
jmp 0x45d8e0
mov ecx, eax
sub ecx, 0x25
je 0x45d8db
dec ecx
je 0x45d8d4
dec ecx
je 0x45d8cd
dec ecx
je 0x45d8c6
sub ecx, 5
je 0x45d8bf
cmp dx, 0x30
jb 0x45d7d7
cmp dx, 0x39
jbe 0x45d7e0
lea ecx, [edx - 0x41]
cmp cx, 0x19
ja 0x45d7f8
movzx eax, dx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 1
mov ecx, esi
call fcn.00414285
jmp 0x45d8e7
lea ecx, [edx - 0x60]
cmp cx, 9
ja 0x45d80c
add eax, 0xffffffa0
push eax
push str.Num__d
jmp 0x45d84e
cmp dx, 0x6a
jne 0x45d81c
push str.Num_
jmp 0x45d8e0
cmp dx, 0x6b
jne 0x45d82c
push 0x4ca8b8
jmp 0x45d8e0
cmp dx, 0x6e
jne 0x45d83c
push str.Num_Del
jmp 0x45d8e0
add edx, 0xffffff90
cmp dx, 0xb
ja 0x45d870
add eax, 0xffffff91
push eax
push 0x4ca8a0
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.0044a84d
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
add esp, 0x10
cmp ecx, dword [0x4f8020]
je 0x45d8e7
call fcn.0041117d
jmp 0x45d8e7
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
movsx ecx, al
cmp ecx, 0x3d
jg 0x45d899
je 0x45d8a8
cmp ecx, 0x27
je 0x45d8a8
cmp ecx, 0x2b
jle 0x45d8e7
cmp ecx, 0x2f
jle 0x45d8a8
cmp ecx, 0x3b
je 0x45d8a8
jmp 0x45d8e7
cmp ecx, 0x5b
jl 0x45d8e7
cmp ecx, 0x5d
jle 0x45d8a8
cmp ecx, 0x60
jne 0x45d8e7
cbw
movzx eax, ax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 1
mov ecx, esi
call fcn.0044a0e0
jmp 0x45d8e7
push str.Insert
jmp 0x45d8e0
push str.Down
jmp 0x45d8e0
push str.Right
jmp 0x45d8e0
push 0x4ca870
jmp 0x45d8e0
push 0x4ca864
mov ecx, esi
call fcn.0041405b
mov eax, esi
call fcn.0048659a
ret 8
Function at 0x465835
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
lea eax, [esi + 0x164]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, esi
test eax, eax
jne 0x46585b
call fcn.00441ebb
jmp 0x465887
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00445f6d
mov eax, dword [esi + 0x174]
xor ecx, ecx
cmp dword [eax - 8], ecx
je 0x465887
push 1
push ecx
push ecx
push eax
push 0x4e109c
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop ebp
ret 0xc

Function at 0x4671c6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4f840c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x467221
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
test eax, eax
je 0x467232
xor eax, eax
inc eax
cmp byte [ebp - 6], al
jne 0x467232
cmp dword [ebp - 0x11c], 6
je 0x467234
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00485d44
leave
ret
Function at 0x47286a
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x58
mov eax, 0x4bea82
call fcn.004864c2
mov esi, ecx
push esi
lea ecx, [ebp - 0x64]
call fcn.00472023
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x40], eax
mov eax, dword [esi]
push ecx
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], edi
call dword [eax + 0x70]
cmp dword [ebp - 0x3c], ebx
jne 0x472a32
cmp dword [ebp + 0x10], ebx
je 0x4728c6
mov eax, edi
imul eax, eax, 0xc
add eax, dword [esi + 0x244]
xor ecx, ecx
cmp dword [eax + 8], ebx
sete cl
mov dword [eax + 8], ecx
jmp 0x4729f5
cmp dword [esi + 0x23c], ebx
jne 0x4728d6
cmp dword [esi + 0x238], ebx
je 0x4728ee
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4728ee
cmp edi, 0xffffffff
je 0x472a03
jmp 0x4728ab
cmp dword [esi + 0x23c], ebx
jne 0x472902
cmp dword [esi + 0x238], ebx
je 0x472995
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x472995
cmp edi, 0xffffffff
je 0x472a03
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x472929
mov dword [ebp + 8], ebx
mov eax, ebx
cmp eax, edi
jle 0x472932
mov dword [ebp - 0x10], eax
jmp 0x472939
mov dword [ebp - 0x10], edi
cmp edi, eax
jne 0x47293e
mov dword [ebp + 0x10], edi
jmp 0x472941
mov dword [ebp + 0x10], eax
mov ecx, esi
call fcn.004714ce
test eax, eax
jle 0x472a03
and dword [ebp + 0xc], ebx
mov eax, dword [esi + 0x244]
add eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
cmp ebx, dword [ebp + 0x10]
jl 0x472972
cmp ebx, dword [ebp - 0x10]
jg 0x472972
mov dword [eax + 8], 1
jmp 0x472976
and dword [eax + 8], 0
cmp ecx, dword [eax + 8]
je 0x472983
push ebx
mov ecx, esi
call fcn.0047184b
add dword [ebp + 0xc], 0xc
mov ecx, esi
inc ebx
call fcn.004714ce
cmp ebx, eax
jl 0x472953
jmp 0x472a03
or dword [esi + 0x1f8], 0xffffffff
mov ecx, esi
call fcn.004714ce
test eax, eax
jle 0x4729de
and dword [ebp + 0xc], ebx
mov eax, dword [esi + 0x244]
add eax, dword [ebp + 0xc]
cmp ebx, edi
je 0x4729ce
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4729ce
and dword [eax + 8], 0
test ecx, ecx
je 0x4729ce
push ebx
mov ecx, esi
call fcn.0047184b
add dword [ebp + 0xc], 0xc
mov ecx, esi
inc ebx
call fcn.004714ce
cmp ebx, eax
jl 0x4729aa
cmp edi, 0xffffffff
je 0x472a03
mov eax, edi
imul eax, eax, 0xc
add eax, dword [esi + 0x244]
mov dword [eax + 8], 1
push edi
mov ecx, esi
mov dword [esi + 0x1f8], edi
call fcn.0047184b
push esi
lea ecx, [ebp - 0x38]
call fcn.00437a2a
mov dword [ebp - 0x38], 0x4cda24
mov dword [ebp - 0x34], 0x4cda14
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
call dword [eax + 0x70]
call fcn.0048659a
ret 0xc
Function at 0x474ae6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x12
mov dword [ebp - 4], ecx
call esi
movzx ebx, ax
mov edi, 0x8000
push 0x11
and ebx, edi
call esi
push 0x10
and eax, edi
mov dword [ebp - 8], eax
call esi
xor ecx, ecx
and eax, edi
pop edi
pop esi
cmp ebx, ecx
pop ebx
jne 0x474b2b
cmp dword [ebp - 8], ecx
jne 0x474b3c
cmp eax, ecx
jne 0x474b50
xor eax, eax
inc eax
jmp 0x474b8a
cmp dword [ebp - 8], ecx
jne 0x474b5c
cmp eax, ecx
jne 0x474b57
push 8
xor ecx, ecx
pop eax
inc ecx
jmp 0x474b8a
cmp eax, ecx
jne 0x474b47
push 4
pop eax
push 2
jmp 0x474b89
cmp dword [ebp - 8], ecx
jne 0x474b77
cmp eax, ecx
je 0x474b82
push 2
pop eax
push 4
jmp 0x474b89
cmp dword [ebp - 8], ecx
je 0x474b6c
cmp eax, ecx
jne 0x474b67
push 0x40
pop eax
push 3
jmp 0x474b89
cmp dword [ebp - 8], ecx
jne 0x474b82
cmp eax, ecx
je 0x474b82
push 0x20
pop eax
push 5
jmp 0x474b89
cmp eax, ecx
je 0x474b82
push 0x10
pop eax
push 6
jmp 0x474b89
mov eax, 0x80
push 7
pop ecx
mov edx, dword [ebp - 4]
mov word [edx + 0x164], cx
mov ecx, edx
test word [ecx + 0x168], ax
je 0x474bad
mov ax, word [ecx + 0x16a]
mov word [ecx + 0x164], ax
leave
ret

Function at 0x475150
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x12
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x47517a
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00475035
jmp 0x47517e
and dword [esi + 0xc], 0
pop esi
pop ebp
ret 0xc

Function at 0x475183
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x12
push esi
mov esi, ecx
je 0x4751a7
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4751a7
and dword [esi + 0xc], 0
jmp 0x4751b7
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004750c8
pop esi
pop ebp
ret 0xc

Function at 0x485d44
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f840c]
jne 0x485d4e
repz ret
jmp fcn.00486840