Function at 0x1401173e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x138]
mov rax, qword [0x140575740]
xor rax, rbp
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x34], 0
mov r9d, 4
lea r8, [0x14054d6c4]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rbp + 0x110]
call fcn.140144f20
test eax, eax
jne 0x1401174d6
mov r9, qword [rbp + 0x110]
lea r8, [0x14054d6cc]
mov edx, 0x118
lea rcx, [0x14059f640]
call fcn.140015f80
mov dword [rbp], eax
mov r9, qword [rbp + 0x110]
lea r8, str._s.exe
mov edx, 0x1000
lea rcx, [0x14058a640]
call fcn.140015f80
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
lea rcx, [0x14058a640]
call fcn.1401370a0
lea r8, [0x14054d6d8]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.140392bf0
nop
jmp 0x140117589
mov r9d, 1
lea r8, [0x14054d6e0]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rbp + 0x110]
call fcn.1401452e0
mov dword [rbp], eax
cmp dword [rbp], 0
jle 0x14011754b
movsxd rax, dword [rbp]
mov rcx, qword [rbp + 0x110]
lea rax, [rcx + rax + 1]
mov r9, rax
lea r8, [0x14054d6e4]
mov edx, 0x118
lea rcx, [0x14059f640]
call fcn.140015f80
mov dword [rbp], eax
mov eax, dword [rbp]
sub eax, 4
cdqe
lea rcx, [0x14059f640]
mov byte [rcx + rax], 0x5f
mov eax, dword [rbp]
sub eax, 3
mov dword [rbp], eax
jmp 0x140117589
mov r9, qword [rbp + 0x110]
lea r8, [0x14054d6e8]
mov edx, 0x118
lea rcx, [0x14059f640]
call fcn.140015f80
mov dword [rbp], eax
mov eax, dword [rbp]
sub eax, 4
cdqe
lea rcx, [0x14059f640]
mov byte [rcx + rax], 0x5f
mov eax, dword [rbp]
sub eax, 3
mov dword [rbp], eax
lea rdx, [rbp + 0x58]
mov rcx, qword [rbp + 0x110]
call fcn.14000c9b0
test eax, eax
jne 0x1401175ea
movsxd rax, dword [rbp]
lea rcx, [0x14059f640]
add rcx, rax
mov rax, rcx
mov r8, rax
mov edx, 0x30
lea rcx, [rbp + 0x58]
call fcn.140131d30
movsxd rax, dword [rbp]
lea rcx, [0x14059f640]
lea rax, [rcx + rax + 0x10]
mov r9d, 5
lea r8, str..exe
mov edx, 5
mov rcx, rax
call fcn.140117030
nop
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x110]
call fcn.1401370a0
lea r8, [0x14054d6f4]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.140392bf0
cmp qword [rbp + 0x18], 0
je 0x140117ae3
lea rax, [0x14059f640]
mov qword [0x140577308], rax
lea rax, [0x1405771a0]
mov qword [0x140577310], rax
movsxd rax, dword [rbp]
lea rcx, [0x14059f640]
add rcx, rax
mov rax, rcx
mov r9d, reloc.WS2_32.dll_recv
mov r8, rax
mov edx, reloc.WS2_32.dll_recvfrom
lea rcx, [0x1405771a0]
call fcn.140117030
mov qword [rbp + 0x98], 0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x18]
call fcn.1403b6030
mov r9, qword [rbp + 0x18]
mov r8d, 2
mov edx, 1
lea rcx, [0x14058a640]
call fcn.1403b55a0
mov rcx, rax
call fcn.1401172f0
mov eax, 4
imul rax, rax, 0
lea rcx, [0x14058a640]
movzx ecx, word [rcx + rax]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp eax, 0x4d5a
jne 0x140117ad9
xor r8d, r8d
mov edx, 0x3c
mov rcx, qword [rbp + 0x18]
call fcn.1403b6030
mov r9, qword [rbp + 0x18]
mov r8d, 4
mov edx, 1
lea rcx, [0x14058a640]
call fcn.1403b55a0
mov rcx, rax
call fcn.1401172f0
mov eax, 4
imul rax, rax, 0
lea rcx, [0x14058a640]
xor r8d, r8d
mov edx, dword [rcx + rax]
mov rcx, qword [rbp + 0x18]
call fcn.1403b6030
mov r9, qword [rbp + 0x18]
mov r8d, 0x18
mov edx, 1
lea rcx, [0x14058a640]
call fcn.1403b55a0
mov rcx, rax
call fcn.1401172f0
mov eax, 4
imul rax, rax, 0
lea rcx, [0x14058a640]
cmp dword [rcx + rax], 0x4550
jne 0x140117ad9
mov eax, 2
imul rax, rax, 0xa
lea rcx, [0x14058a640]
movzx eax, word [rcx + rax]
mov ecx, 0xffffffc7
cmp rax, rcx
jae 0x14011780a
mov eax, 2
imul rax, rax, 0xa
lea rcx, [0x14058a640]
movzx eax, word [rcx + rax]
add rax, 0x38
add rax, 0x24
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
add rax, 0xf
cmp rax, qword [rbp + 0xc8]
ja 0x1401177c0
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14037c5f0
sub rsp, rax
lea rax, [rsp + 0x20]
mov qword [rbp + 0xd0], rax
lea r8, [rbp + 0xb8]
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0xd0]
call fcn.14037c2c0
add qword [rbp + 0xd0], 0x20
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0xd8], rax
jmp 0x140117815
mov qword [rbp + 0xd8], 0
mov eax, 2
imul rax, rax, 0xa
lea rcx, [0x14058a640]
movzx eax, word [rcx + rax]
mov r9d, 1
mov r8d, 8
mov edx, eax
mov rcx, qword [rbp + 0xd8]
call fcn.1401375b0
mov rcx, rax
call fcn.140137fe0
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
cmp qword [rax - 0x18], 4
jae 0x14011786f
mov rcx, qword [rbp + 0x18]
call fcn.1403b3fa0
nop
jmp 0x140117afd
mov r9, qword [rbp + 0x18]
mov rax, qword [rbp + 0x98]
mov r8, qword [rax - 0x18]
mov edx, 1
mov rcx, qword [rbp + 0x98]
call fcn.1403b55a0
mov rcx, rax
call fcn.1401172f0
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rbp + 0x98]
movzx eax, word [rcx + rax]
mov dword [rbp + 0xe0], eax
cmp dword [rbp + 0xe0], 0x10b
je 0x1401178d2
cmp dword [rbp + 0xe0], 0x20b
je 0x140117951
jmp 0x1401179cd
mov rax, qword [rbp + 0x98]
cmp qword [rax - 0x18], 0x84
jae 0x1401178f2
mov rcx, qword [rbp + 0x18]
call fcn.1403b3fa0
nop
jmp 0x140117afd
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x98]
cmp dword [rcx + rax + 0x80], 0
je 0x140117937
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x98]
mov eax, dword [rcx + rax + 0x80]
sub eax, 0x10
xor r8d, r8d
mov edx, eax
mov rcx, qword [rbp + 0x18]
call fcn.1403b6030
nop
jmp 0x14011794c
mov r8d, 2
mov edx, 0xfffffff0
mov rcx, qword [rbp + 0x18]
call fcn.1403b6030
nop
jmp 0x1401179dc
mov rax, qword [rbp + 0x98]
cmp qword [rax - 0x18], 0x94
jae 0x140117971
mov rcx, qword [rbp + 0x18]
call fcn.1403b3fa0
nop
jmp 0x140117afd
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x98]
cmp dword [rcx + rax + 0x90], 0
je 0x1401179b6
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x98]
mov eax, dword [rcx + rax + 0x90]
sub eax, 0x10
xor r8d, r8d
mov edx, eax
mov rcx, qword [rbp + 0x18]
call fcn.1403b6030
nop
jmp 0x1401179cb
mov r8d, 2
mov edx, 0xfffffff0
mov rcx, qword [rbp + 0x18]
call fcn.1403b6030
nop
jmp 0x1401179dc
mov rcx, qword [rbp + 0x18]
call fcn.1403b3fa0
nop
jmp 0x140117afd
mov r9, qword [rbp + 0x18]
mov r8d, reloc.WS2_32.dll_recv
mov edx, 1
lea rcx, [0x14058a640]
call fcn.1403b55a0
mov rcx, rax
call fcn.1401172f0
lea r8, [0x14057a640]
mov edx, 0x20
lea rcx, str.B996015880544A19B7F7E9BE44914C18
call fcn.1401321a0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x14057a640]
lea rcx, [0x14058a640]
call fcn.1404104c0
test eax, eax
jne 0x140117ad9
mov r8d, 1
mov edx, 0xffffffec
mov rcx, qword [rbp + 0x18]
call fcn.1403b6030
mov r9, qword [rbp + 0x18]
mov r8d, 4
mov edx, 1
lea rcx, [rbp + 0x34]
call fcn.1403b55a0
mov rcx, rax
call fcn.1401172f0
mov ecx, dword [rbp + 0x34]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbp + 0x34], eax
mov eax, 0xfffffffc
sub eax, dword [rbp + 0x34]
mov r8d, 1
mov edx, eax
mov rcx, qword [rbp + 0x18]
call fcn.1403b6030
mov eax, dword [rbp + 0x34]
inc eax
cdqe
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.140138010
mov qword [rbp + 0x28], rax
movsxd rax, dword [rbp + 0x34]
mov r9, qword [rbp + 0x18]
mov r8, rax
mov edx, 1
mov rcx, qword [rbp + 0x28]
call fcn.1403b55a0
mov rcx, rax
call fcn.1401172f0
movsxd rax, dword [rbp + 0x34]
mov rcx, qword [rbp + 0x28]
mov byte [rcx + rax], 0
mov rcx, qword [rbp + 0x18]
call fcn.1403b3fa0
nop
mov rax, qword [rbp + 0x118]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
mov rax, qword [rbp + 0x120]
mov ecx, dword [rbp + 0x34]
mov dword [rax], ecx
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_connect
mov r8, qword [rbp + 0xb8]
call fcn.14037c390
mov rcx, qword [rbp + 0xe8]
xor rcx, rbp
call fcn.14037c650
lea rsp, [rbp + 0xf8]
pop rdi
pop rbp
ret