Function at 0x4d9730
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 [0x50dc10]
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 sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp + 0xc]
add esp, 0xc
movzx eax, word [edi + 0x1c]
movzx ebx, word [esi]
cmp ebx, eax
jne 0x4d9839
cmp dword [edi + 0x6c], 1
je 0x4d9c9c
test byte [esi + 8], 1
je 0x4d99bb
test byte [esi + 0x10], 1
je 0x4d9c9c
push 0x150
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4d9c1c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x4d9804
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 0x4d97e0
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.004e2538
mov esp, ebp
pop ebp
ret 0xc
movzx eax, word [edi + 0x30]
cmp ebx, eax
jne 0x4d98d9
cmp dword [edi + 0x6c], 1
je 0x4d9c9c
test byte [esi + 8], 1
je 0x4d99bb
test byte [esi + 0x10], 1
je 0x4d9c9c
mov ecx, dword [edi + 0xc]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d9870
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 0x4d9c1c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4d98a4
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.004e2538
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 1
jne 0x4d997d
cmp byte [edi + 0x10], 0
jne 0x4d9c9c
cmp dword [esi + 0xc], 0xffffffff
jne 0x4d999d
test byte [esi + 8], bl
je 0x4d99bb
test byte [esi + 0x10], bl
je 0x4d9c9c
mov ecx, dword [edi + 0xc]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d9910
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 0x4d9c1c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4d9944
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.004e2538
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 0xf
jne 0x4d9c98
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x4d9c9c
cmp dword [esi + 0xc], 0xffffffff
je 0x4d99b5
pop edi
pop esi
mov eax, 0x80040068
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret 0xc
test byte [esi + 8], 1
jne 0x4d99d3
pop edi
pop esi
mov eax, 0x8004006b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret 0xc
test byte [esi + 0x10], 1
je 0x4d9c9c
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 sub.VCRUNTIME140.dll_strchr
mov ebx, eax
add esp, 8
mov ecx, 0x5c5c
test ebx, ebx
je 0x4d9a7c
nop dword [eax + eax]
mov byte [ebx], 0
cmp word [esi], cx
jne 0x4d9a2a
lea eax, [esi + 2]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x4d9a60
cmp byte [esi], 0
je 0x4d9a53
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4d9a53
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4d9a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4d9abc
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 sub.VCRUNTIME140.dll_strchr
mov ebx, eax
add esp, 8
mov ecx, 0x5c5c
test ebx, ebx
jne 0x4d9a10
cmp word [esi], cx
jne 0x4d9a93
lea eax, [esi + 2]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x4d9adb
cmp byte [esi], 0
je 0x4d9ace
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4d9ace
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4d9ace
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4d9ace
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x4d9c9c
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [edi + 8]
lea eax, [ebp - 0x130]
push str._s
push 0x12c
push eax
call fcn.004da0d0
push 0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x4b4]
push eax
call fcn.004d9cf0
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 0x4d9b14
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 0x4d9b8f
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [ebp - 0x5f4], 0x10
jne 0x4d9b7a
lea eax, [ebp - 0x5c8]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x388]
push 0x4f166c
push eax
call fcn.004010a0
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 0x4d9b42
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [edi + 4]
lea eax, [ebp - 0x130]
push dword [edi + 8]
push 0x4f166c
push 0x12c
push eax
call fcn.004da0d0
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 0x4d9c9c
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 0x4d9be0
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 0x4d9c34
pop edi
pop esi
mov eax, 0x80030070
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4d9c5f
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 0x4d9c52
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.004e2538
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.004e2538
mov esp, ebp
pop ebp
ret 0xc