Function at 0x476b40
Capabilities:
Create directory
Delete file
Enumerate files on windows
Get common file path
Log keystrokes via polling
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5fc
mov eax, dword [0x4ccbf8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x12c
mov dword [ebp - 0x5f8], eax
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.004811a0
mov esi, dword [ebp + 0xc]
add esp, 0xc
movzx eax, word [edi + 0x1c]
movzx ebx, word [esi]
cmp ebx, eax
jne 0x476c49
cmp dword [edi + 0x6c], 1
je 0x4770ac
test byte [esi + 8], 1
je 0x476dcb
test byte [esi + 0x10], 1
je 0x4770ac
push 0x150
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x47702c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x476c14
mov dword [edx], 1
mov dword [edx + 4], 0x44
mov dword [edx + 0x44], 0
mov ecx, dword [edi + 0xc]
lea eax, [ecx + 1]
mov dword [ebp - 0x5fc], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476bf0
sub ecx, dword [ebp - 0x5fc]
lea eax, [edx + 0x4c]
mov dword [edx + 0x48], ecx
mov dword [edx + 0x28], 0x80
push dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x5f8]
mov dword [eax + 4], esi
mov dword [eax], 1
mov dword [eax + 8], 0
xor eax, eax
mov dword [edi + 0x6c], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f41c
mov esp, ebp
pop ebp
ret 0xc
movzx eax, word [edi + 0x30]
cmp ebx, eax
jne 0x476ce9
cmp dword [edi + 0x6c], 1
je 0x4770ac
test byte [esi + 8], 1
je 0x476dcb
test byte [esi + 0x10], 1
je 0x4770ac
mov ecx, dword [edi + 0xc]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476c80
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x47702c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x476cb4
push dword [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x5f8]
mov dword [eax + 4], esi
mov dword [eax], 1
mov dword [eax + 8], 0
xor eax, eax
mov dword [edi + 0x6c], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f41c
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 1
jne 0x476d8d
cmp byte [edi + 0x10], 0
jne 0x4770ac
cmp dword [esi + 0xc], 0xffffffff
jne 0x476dad
test byte [esi + 8], bl
je 0x476dcb
test byte [esi + 0x10], bl
je 0x4770ac
mov ecx, dword [edi + 0xc]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476d20
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x47702c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x476d54
push dword [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x5f8]
mov dword [eax + 4], esi
mov dword [eax], 1
mov dword [eax + 8], 0
xor eax, eax
mov dword [edi + 0x6c], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f41c
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 0xf
jne 0x4770a8
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x4770ac
cmp dword [esi + 0xc], 0xffffffff
je 0x476dc5
pop edi
pop esi
mov eax, 0x80040068
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f41c
mov esp, ebp
pop ebp
ret 0xc
test byte [esi + 8], 1
jne 0x476de3
pop edi
pop esi
mov eax, 0x8004006b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f41c
mov esp, ebp
pop ebp
ret 0xc
test byte [esi + 0x10], 1
je 0x4770ac
mov esi, dword [edi + 8]
lea eax, [ebp - 0x25c]
push eax
push 0x12c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esi + 1]
push 0x5c
push eax
call fcn.00480740
mov ebx, eax
add esp, 8
mov ecx, 0x5c5c
test ebx, ebx
je 0x476e8c
nop dword [eax + eax]
mov byte [ebx], 0
cmp word [esi], cx
jne 0x476e3a
lea eax, [esi + 2]
push 0x5c
push eax
call fcn.00480740
add esp, 8
test eax, eax
je 0x476e70
cmp byte [esi], 0
je 0x476e63
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x476e63
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x476e63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x476ecc
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebx + 1]
mov byte [ebx], 0x5c
push 0x5c
push eax
call fcn.00480740
mov ebx, eax
add esp, 8
mov ecx, 0x5c5c
test ebx, ebx
jne 0x476e20
cmp word [esi], cx
jne 0x476ea3
lea eax, [esi + 2]
push 0x5c
push eax
call fcn.00480740
add esp, 8
test eax, eax
je 0x476eeb
cmp byte [esi], 0
je 0x476ede
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x476ede
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x476ede
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x476ede
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x4770ac
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [edi + 8]
lea eax, [ebp - 0x130]
push 0x4a1288
push 0x12c
push eax
call fcn.004774e0
push 0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x4b4]
push eax
call fcn.00477100
lea edx, [ebp - 0x25c]
add esp, 0x1c
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x476f24
lea eax, [ebp - 0x5f4]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x476f9f
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [ebp - 0x5f4], 0x10
jne 0x476f8a
lea eax, [ebp - 0x5c8]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x388]
push 0x4b2860
push eax
call fcn.00401045
add esp, 0x10
lea eax, [ebp - 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x5f4]
push eax
push esi
call ebx
test eax, eax
jne 0x476f52
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [edi + 4]
lea eax, [ebp - 0x130]
push dword [edi + 8]
push 0x4b2860
push 0x12c
push eax
call fcn.004774e0
add esp, 0x14
lea eax, [ebp - 0x130]
push 0
push 0
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4770ac
mov edx, dword [edi + 0xc]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476ff0
push 0
push 0
sub ecx, ebx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x16
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x477044
pop edi
pop esi
mov eax, 0x80030070
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f41c
mov esp, ebp
pop ebp
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x47706f
lea ecx, [ebp - 0x130]
mov dword [eax], 0x14
mov edx, ecx
sub eax, edx
lea edx, [eax + 0x14]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x477062
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x5f8]
mov dword [eax + 4], esi
mov dword [eax], 1
mov dword [eax + 8], 0
xor eax, eax
mov dword [edi + 0x6c], 0xf
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f41c
mov esp, ebp
pop ebp
ret 0xc
mov byte [edi + 0x10], 1
mov ecx, dword [ebp - 4]
mov eax, 0x80040064
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f41c
mov esp, ebp
pop ebp
ret 0xc