Function at 0x180005c50
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Log keystrokes via polling
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x18000e040]
xor rax, rsp
mov qword [rsp + 0xe0], rax
cmp edx, 1
jne 0x180005df0
lea rbx, [0x180028140]
xor edi, edi
lea rsi, [0x180028180]
nop dword [rax]
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x180005c9d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180005d25
mov dword [rsp + 0x70], 0x68
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xc8], xmm0
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x180005ced
mov rcx, qword [rbx]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x180005d34
add rbx, 0x20
cmp rbx, rsi
jne 0x180005c90
jmp 0x180005d4a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0x74
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180005da5
nop dword [rax + rax]
mov ecx, 0x75
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180005e1a
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0x74
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180005d70
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.1800058e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180005df0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.180008020
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rcx, [rsp + 0x58]
call fcn.1800058d0
lea rcx, [rsp + 0x58]
call fcn.180005780
nop
lea rcx, [rsp + 0x58]
call fcn.180005ed0
test rax, rax
je 0x180005eac
nop
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180005ec0
mov edx, dword [rax]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x1800067a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180005ec0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [rbx]
je 0x180005e9a
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180005ec0
mov ecx, dword [rax]
call fcn.180005730
inc rdi
lea rcx, [rsp + 0x58]
call fcn.180005ed0
cmp rdi, rax
jb 0x180005e40
call fcn.1800045c0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3