Function at 0x14005aeb0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push r13
push r14
push r15
mov eax, 0x1280
call fcn.14015c3d0
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x1290], rbx
mov qword [rbp + 0x1298], rsi
mov rax, qword [0x1401ff510]
xor rax, rbp
mov qword [rbp + 0x1240], rax
mov r15, rdx
mov r14, rcx
xor esi, esi
lea rdx, [rbp + 0x130]
and dword [rbp + 8], esi
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
or ebx, 0xffffffff
lea r13d, [rsi + 1]
mov edx, ebx
mov dword [rsp + 0x20], r13d
lea r9d, [rsi + 4]
lea r8, str..exe
lea rcx, [rbp + 0x130]
call fcn.14006d278
test eax, eax
jne 0x14005af7f
lea rdi, [0x140224120]
mov edx, 0x118
mov rcx, rdi
lea r9, [rbp + 0x130]
lea r8, [0x1401e0c04]
call fcn.1400010e4
lea r9, [rbp + 0x130]
mov edx, 0x1000
lea r8, str._s.exe
mov ebx, eax
lea rcx, [0x140203120]
call fcn.1400010e4
lea rdx, [0x140203120]
jmp 0x14005afde
lea r8, [0x1401d585c]
mov edx, ebx
lea rcx, [rbp + 0x130]
call fcn.14006d39c
lea rdi, [0x140224120]
mov edx, 0x118
lea r8, [0x1401d590c]
mov rcx, rdi
test eax, eax
jle 0x14005afbc
cdqe
lea r9, [rbp + 0x131]
add r9, rax
jmp 0x14005afc3
lea r9, [rbp + 0x130]
call fcn.1400010e4
mov ebx, eax
lea rdx, [rbp + 0x130]
add eax, 0xfffffffc
movsxd rcx, eax
sub ebx, 3
mov byte [rcx + rdi], 0x5f
lea r8, [0x1401d5910]
lea rcx, [rbp]
call fcn.140163068
cmp qword [rbp], rsi
je 0x14005b297
lea rcx, [rbp + 0x10]
call fcn.1400875b0
jmp 0x14005b016
movsxd r8, eax
lea rdx, [rbp + 0x240]
lea rcx, [rbp + 0x10]
call fcn.140087640
mov r9, qword [rbp]
lea rcx, [rbp + 0x240]
mov r8d, 0x1000
mov rdx, r13
call fcn.140164440
test eax, eax
jg 0x14005b003
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0xf0]
call fcn.140087590
movsxd r11, ebx
lea rcx, [rbp + 0xf0]
mov edx, gethostbyname
lea r8, [r11 + rdi]
call fcn.140065ea8
lea rcx, [r11 + 0x10]
mov edx, 5
add rcx, rdi
lea r8, str..exe
mov r9d, edx
call section..text
mov rcx, qword [rbp]
xor r8d, r8d
xor edx, edx
mov qword [0x140202e18], rdi
call fcn.14015f00c
mov r9, qword [rbp]
lea rdi, [0x140203120]
mov rcx, rdi
mov r8d, 2
mov rdx, r13
call fcn.140164440
movzx ecx, word [0x140203120]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x4d5a
cmp ax, cx
jne 0x14005b28e
mov rcx, qword [rbp]
xor r8d, r8d
lea edx, [r8 + 0x3c]
call fcn.14015f00c
mov r9, qword [rbp]
mov r8d, 4
mov rdx, r13
mov rcx, rdi
call fcn.140164440
mov edx, dword [0x140203120]
xor r8d, r8d
mov rcx, qword [rbp]
call fcn.14015f00c
mov r9, qword [rbp]
mov r8d, 0x18
mov rdx, r13
mov rcx, rdi
call fcn.140164440
cmp dword [0x140203120], 0x4550
jne 0x14005b28e
movzx edx, word [0x140203134]
lea rax, [rdx + 0x38]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14005b13c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14015c3d0
sub rsp, rcx
mov r9d, r13d
mov r8d, 8
lea rcx, [rsp + 0x30]
call fcn.140068570
mov rbx, rax
mov rdx, r13
add rax, 8
mov rcx, rbx
mov r8, qword [rbx - 0x18]
mov qword [rbx], rax
mov r9, qword [rbp]
call fcn.140164440
movzx eax, word [rbx]
cmp eax, 0x10b
je 0x14005b1b0
cmp eax, 0x20b
je 0x14005b19a
mov rcx, qword [rbp]
call fcn.14015ec50
jmp 0x14005b2a0
mov edx, dword [rbx + 0x90]
mov rcx, qword [rbp]
test edx, edx
je 0x14005b1b8
add edx, 0xfffffff0
xor r8d, r8d
jmp 0x14005b1c2
mov edx, dword [rbx + 0x80]
jmp 0x14005b1a0
mov r8d, 2
lea edx, [r8 - 0x12]
call fcn.14015f00c
mov r9, qword [rbp]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r13
mov rcx, rdi
call fcn.140164440
lea r8, [0x140204120]
mov edx, 0x20
lea rcx, str.B996015880544A19B7F7E9BE44914C18
call fcn.140065fb4
mov rax, qword [0x140203120]
cmp rax, qword [0x140204120]
jne 0x14005b28e
mov rax, qword [0x140203128]
cmp rax, qword [0x140204128]
jne 0x14005b28e
mov rcx, qword [rbp]
mov r8d, r13d
mov edx, 0xffffffec
call fcn.14015f00c
mov r9, qword [rbp]
lea rcx, [rbp + 8]
mov r8d, 4
mov rdx, r13
call fcn.140164440
mov ecx, dword [rbp + 8]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbp]
mov edx, 0xfffffffc
sub edx, eax
mov dword [rbp + 8], eax
mov r8d, r13d
call fcn.14015f00c
mov ecx, dword [rbp + 8]
xor r9d, r9d
inc ecx
xor r8d, r8d
xor edx, edx
call fcn.1400686a4
movsxd r8, dword [rbp + 8]
mov rdx, r13
mov r9, qword [rbp]
mov rcx, rax
mov rsi, rax
call fcn.140164440
movsxd rcx, dword [rbp + 8]
mov byte [rcx + rsi], 0
mov rcx, qword [rbp]
call fcn.14015ec50
mov eax, dword [rbp + 8]
mov qword [r14], rsi
mov dword [r15], eax
mov rcx, qword [rbp + 0x1240]
xor rcx, rbp
call fcn.14015bde0
mov rbx, qword [rbp + 0x1290]
mov rsi, qword [rbp + 0x1298]
lea rsp, [rbp + 0x1250]
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret