Function at 0x1400ff690
Capabilities:
Read file on windows
Terminate process

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
mov ecx, 0x1036
xor esi, esi
call fcn.1401e3610
mov rbx, rax
test rax, rax
je 0x1400ff8ce
mov dword [rbx + 0x18], esi
mov qword [rsp + 0x80], rbp
lea rax, vtable.TBufferImpl_class_TBufferAlloc__20_.0
mov qword [rbx], rax
lea rcx, [rbx + 0x34]
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x98], r13
mov r13d, 1
xor edx, edx
mov dword [rbx + 0x1c], r13d
mov r8d, 0x1002
mov dword [rbx + 0x10], 0x1002
mov qword [rbx + 8], rcx
call fcn.1401e42d0
mov eax, dword [rdi + 0x38]
cmp eax, 0x64
jae 0x1400ff717
cmp eax, r13d
mov rax, qword [rbx + 8]
setne cl
add cl, 0x46
mov byte [rax], cl
jmp 0x1400ff71e
mov rax, qword [rbx + 8]
mov byte [rax], 0x26
mov rbp, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rdi + 0x28]
mov r12, rax
cmp rcx, 0xffffffffffffffff
je 0x1400ff838
nop word [rax + rax]
xor eax, eax
lea r9, [rsp + 0x88]
lea rdx, [rbp + 1]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov rax, qword [rdi + 0x20]
mov r8d, 0x1000
mov dword [rsp + 0x88], esi
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400ff7d9
lea rdx, [rsp + 0x30]
lea ecx, [rax + 2]
or r9d, 0xffffffff
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1400ff831
mov rcx, qword [rdi + 0x28]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [rsp + 0x88]
test eax, eax
je 0x1400ff821
mov byte [rax + rbp + 1], sil
mov eax, dword [rsp + 0x88]
add eax, 2
mov dword [rbx + 0x10], eax
cmp qword [rdi + 0x40], rsi
je 0x1400ff810
mov rcx, qword [rdi + 0x40]
mov r8d, dword [rdi + 0x38]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax]
test eax, eax
jne 0x1400ff838
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x1400ff821
add qword [rbx + 8], rcx
sub dword [rbx + 0x10], ecx
mov dword [rbx + 0x18], esi
mov rcx, qword [rdi + 0x28]
cmp rcx, 0xffffffffffffffff
jne 0x1400ff750
jmp 0x1400ff838
cmp eax, r13d
cmove esi, r13d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rdi + 0x40], 0
mov r13, qword [rsp + 0x98]
mov r12, qword [rsp + 0x90]
je 0x1400ff873
mov byte [rbp + 1], 0
mov dword [rbx + 0x10], 2
mov rcx, qword [rdi + 0x40]
mov rax, qword [rcx]
mov r8d, dword [rdi + 0x38]
mov rdx, rbx
call qword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbp, qword [rsp + 0x80]
test esi, esi
jne 0x1400ff894
mov rcx, qword [rdi + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rdi + 0x20]
call fcn.1400ff250
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x1400ff8c4
lea r9, str.shell_exit.
lea rdx, str..TProcess.cpp
mov r8d, 0x15c
mov ecx, 3
call fcn.1400045a0
xor eax, eax
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret