Function at 0x14008e818
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xa8], rbx
mov rax, qword [0x14030cf00]
xor rax, rbp
mov qword [rbp + 0x48], rax
xor r14d, r14d
mov r12, r8
and dword [rbp + 8], r14d
lea r8, str..exe
mov r15, rdx
or rbx, 0xffffffffffffffff
mov rdx, rbx
mov rdi, rcx
lea r13d, [r14 + 1]
lea r9d, [r14 + 4]
mov dword [rsp + 0x20], r13d
call fcn.1400a9074
test eax, eax
jne 0x14008e8fd
lea rbx, [0x14033b480]
mov r9, rdi
mov rcx, rbx
lea r8, [0x1402de55c]
mov edx, pe_nt_image_headers64
call fcn.140001114
mov r9, rdi
lea r8, str._s.exe
mov edx, 0x1000
lea rcx, [0x14031a480]
mov esi, eax
call fcn.140001114
lea rax, [0x140317480]
mov dword [rsp + 0x28], 0x1000
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [0x14031a480]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x14026fb9c]
lea rdx, [0x140317480]
lea rcx, [rbp]
call fcn.1401e6f50
jmp 0x14008e947
lea r8, [0x14026f804]
mov rdx, rbx
mov rcx, rdi
call fcn.1400a91c0
lea rbx, [0x14033b480]
mov edx, pe_nt_image_headers64
lea r8, [0x14026eeac]
mov rcx, rbx
test eax, eax
jle 0x14008e934
movsxd r9, eax
inc r9
add r9, rdi
jmp 0x14008e937
mov r9, rdi
call fcn.140001114
movsxd rcx, eax
lea esi, [rcx - 3]
mov byte [rcx + rbx - 4], 0x5f
lea rdx, [rbp + 0x10]
mov rcx, rdi
call fcn.140004b84
test eax, eax
jne 0x14008e996
movsxd r11, esi
lea edx, [rax + 0x30]
lea rcx, [rbp + 0x10]
lea r8, [r11 + rbx]
call fcn.14009da4c
lea rcx, [r11 + 0x10]
add rcx, rbx
jne 0x14008e985
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401e7e2c
jmp 0x14008e996
mov eax, dword [str..exe]
mov dword [rcx], eax
mov al, byte [0x140282490]
mov byte [rcx + 4], al
lea rax, [0x140317480]
mov dword [rsp + 0x28], 0x1000
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x14026fb9c]
lea rdx, [0x140317480]
lea rcx, [rbp]
call fcn.1401e6f50
mov r9, qword [rbp]
test r9, r9
je 0x14008ec60
movsxd rcx, esi
lea rax, [0x140315f30]
mov qword [0x140315f70], rax
add rcx, rbx
je 0x14008ea05
movups xmm0, xmmword [rcx]
movdqu xmmword [0x140315f30], xmm0
jmp 0x14008ea2b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x140315f30], xmm0
mov byte [0x140315f40], al
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401e7e2c
mov r9, qword [rbp]
xor r8d, r8d
xor edx, edx
mov rcx, r9
call fcn.1401e7a0c
mov r9, qword [rbp]
lea rsi, [0x14031a480]
mov edi, 2
mov rcx, rsi
mov r8d, edi
mov rdx, r13
call fcn.1401ea344
movzx ecx, word [0x14031a480]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x4d5a
cmp ax, cx
jne 0x14008ec57
mov rcx, qword [rbp]
lea edx, [rdi + 0x3a]
xor r8d, r8d
call fcn.1401e7a0c
mov r9, qword [rbp]
lea r8d, [rdi + 2]
mov rdx, r13
mov rcx, rsi
call fcn.1401ea344
mov edx, dword [0x14031a480]
xor r8d, r8d
mov rcx, qword [rbp]
call fcn.1401e7a0c
mov r9, qword [rbp]
lea r8d, [rdi + 0x16]
mov rdx, r13
mov rcx, rsi
call fcn.1401ea344
cmp dword [0x14031a480], 0x4550
jne 0x14008ec57
movzx edx, word [0x14031a494]
lea rax, [rdx + 0x38]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14008eae6
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401da3f0
sub rsp, rcx
mov r9d, r13d
mov r8d, 8
lea rcx, [rsp + 0x30]
call fcn.14009faa0
mov rbx, rax
add rax, 8
mov qword [rbx], rax
mov r8, qword [rbx - 0x18]
cmp r8, 4
jae 0x14008eb2a
mov rcx, qword [rbp]
call fcn.1401e757c
jmp 0x14008ec6a
mov r9, qword [rbp]
mov rdx, r13
mov rcx, rbx
call fcn.1401ea344
mov eax, 0x10b
cmp word [rbx], ax
je 0x14008eb6d
mov eax, 0x20b
cmp word [rbx], ax
jne 0x14008eb1c
cmp qword [rbx - 0x18], 0x94
jb 0x14008eb1c
mov edx, dword [rbx + 0x90]
mov rcx, qword [rbp]
test edx, edx
je 0x14008eb7f
add edx, 0xfffffff0
xor r8d, r8d
jmp 0x14008eb87
cmp qword [rbx - 0x18], 0x84
jb 0x14008eb1c
mov edx, dword [rbx + 0x80]
jmp 0x14008eb5d
mov edx, 0xfffffff0
mov r8d, edi
call fcn.1401e7a0c
mov r9, qword [rbp]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r13
mov rcx, rsi
call fcn.1401ea344
lea r8, [0x14031b480]
mov edx, 0x20
lea rcx, str.B996015880544A19B7F7E9BE44914C18
call fcn.14009db54
mov rax, qword [0x14031a480]
cmp rax, qword [0x14031b480]
jne 0x14008ec57
mov rax, qword [0x14031a488]
cmp rax, qword [0x14031b488]
jne 0x14008ec57
mov rcx, qword [rbp]
mov r8d, r13d
mov edx, 0xffffffec
call fcn.1401e7a0c
mov r9, qword [rbp]
lea rcx, [rbp + 8]
mov r8d, 4
mov rdx, r13
call fcn.1401ea344
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.1401e7a0c
mov eax, dword [rbp + 8]
xor r9d, r9d
inc eax
xor r8d, r8d
movsxd rcx, eax
xor edx, edx
call fcn.14009fd78
movsxd r8, dword [rbp + 8]
mov rdx, r13
mov r9, qword [rbp]
mov rcx, rax
mov r14, rax
call fcn.1401ea344
movsxd rcx, dword [rbp + 8]
mov byte [rcx + r14], 0
mov rcx, qword [rbp]
call fcn.1401e757c
mov eax, dword [rbp + 8]
mov qword [r15], r14
mov dword [r12], eax
mov rcx, qword [rbp + 0x48]
xor rcx, rbp
call fcn.1401d9e80
mov rbx, qword [rbp + 0xa8]
lea rsp, [rbp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret