Function at 0x140076ae0
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x2f0
mov rax, qword [0x140160140]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov r8d, dword [rdx + 0x1e8]
mov rdi, rdx
test r8d, r8d
je 0x140076b1d
mov r9d, r8d
call fcn.140076950
sub dword [rdi + 0x1e8], eax
jmp 0x140076d9e
mov qword [rsp + 0x300], rbx
mov qword [rsp + 0x2e8], rsi
mov rsi, qword [rdx + 0x118]
mov qword [rsp + 0x2e0], r14
xor r14d, r14d
mov ebx, r14d
mov qword [rsp + 0x310], rbp
nop word [rax + rax]
mov r8d, reloc.WS2_32.dll_recv
mov eax, ebx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], r14
sub r8d, ebx
lea r9, [rsp + 0x30]
add rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140076b85
add ebx, dword [rsp + 0x30]
cmp ebx, 0x10
jb 0x140076b50
jmp 0x140076b95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x140076db7
mov ecx, dword [rsp + 0x40]
test ecx, 0xfffffff8
jne 0x140076d2f
cmp dword [rsp + 0x4c], r14d
jne 0x140076d2f
mov eax, ecx
and eax, 6
test al, 2
je 0x140076bc4
and al, 4
neg al
sbb esi, esi
add esi, 2
jmp 0x140076bcf
test eax, eax
jne 0x140076d2f
mov esi, r14d
test cl, 1
je 0x140076be0
mov eax, dword [rsp + 0x48]
mov dword [rdi + 0x1e8], eax
jmp 0x140076beb
cmp dword [rsp + 0x48], r14d
jne 0x140076d2f
test esi, esi
jne 0x140076bf9
mov eax, reloc.WS2_32.dll_recv
jmp 0x140076d7e
mov rbp, qword [rdi + 0x118]
mov ebx, r14d
mov r8d, 0x278
mov eax, ebx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], r14
sub r8d, ebx
lea r9, [rsp + 0x30]
add rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140076c3b
add ebx, dword [rsp + 0x30]
cmp ebx, 0x278
jb 0x140076c03
jmp 0x140076c4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x140076db7
mov ecx, 0x290
call fcn.140074630
mov r8, rax
test rax, rax
je 0x140076dff
mov dword [rax], esi
lea rcx, [rax + 4]
lea rax, [rsp + 0x50]
mov edx, 4
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140076c71
movups xmm0, xmmword [rax]
lea rdx, [r8 + 0x280]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov rax, qword [rax + 0x70]
mov qword [rcx + 0x70], rax
lea rcx, [rdi + 0x1f0]
mov qword [rdx], rcx
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov qword [rax], rdx
mov eax, 0x288
inc dword [rdi + 0x200]
mov qword [rcx + 8], rdx
jmp 0x140076d7e
mov rcx, qword [rdi + 0x128]
mov ebx, 0x2745
movups xmm0, xmmword [0x140100c60]
movaps xmmword [rsp + 0x40], xmm0
test rcx, rcx
je 0x140076d5f
lea rdx, [0x140076090]
call fcn.140073890
mov qword [rdi + 0x128], r14
mov rcx, rdi
call fcn.14007b9a0
mov ecx, ebx
call fcn.140073360
movsxd rdx, eax
lea r8, [rsp + 0x40]
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbp, qword [rsp + 0x310]
mov rsi, qword [rsp + 0x2e8]
mov rbx, qword [rsp + 0x300]
mov r14, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400c86e0
add rsp, 0x2f0
pop rdi
ret
mov rcx, qword [rdi + 0x128]
cmp ebx, 0x6d
jne 0x140076d3b
movups xmm0, xmmword [0x140100c60]
movaps xmmword [rsp + 0x40], xmm0
test rcx, rcx
je 0x140076deb
lea rdx, [0x140076090]
call fcn.140073890
mov qword [rdi + 0x128], r14
mov rcx, rdi
call fcn.14007b9a0
mov rdx, 0xfffffffffffff001
jmp 0x140076d71
lea rdx, str.uv__malloc
mov ecx, reloc.WS2_32.dll_ntohl
call fcn.1400732b0
int3