Function at 0x1400017c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x20], xmm6
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], recvfrom
lea rdi, [rbp - 0x50]
mov rcx, rdi
call fcn.140001ba0
mov r8, qword [rbp - 0x40]
mov rax, qword [rbp - 0x38]
mov rcx, rax
sub rcx, r8
cmp rcx, 8
jae 0x14000184d
lea rax, str.km.left_
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 8
lea rcx, [rbp - 0x50]
mov edx, 8
xor r9d, r9d
call fcn.140001ec0
mov rdi, rax
jmp 0x1400018dc
lea rcx, [r8 + 8]
mov qword [rbp - 0x40], rcx
cmp rax, 0x10
mov rcx, qword [rbp - 0x50]
mov rbx, rdi
cmovae rbx, rcx
lea rdx, [0x14004a0cc]
mov r14d, 8
mov r15d, 8
cmp rbx, rdx
jae 0x140001897
lea r9, [rbx + r8]
lea rdx, str.km.left_
cmp r9, rdx
jb 0x140001897
mov r15, rbx
sub r15, rdx
ja 0x140001897
xor r15d, r15d
inc r8
cmp rax, 0x10
cmovb rcx, rdi
add rcx, 8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
lea r12, str.km.left_
mov rcx, rbx
mov rdx, r12
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
sub r14, r15
lea rdx, [r15 + r12]
add rdx, 8
add rbx, r15
mov rcx, rbx
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp], xmm1
movaps xmmword [rbp - 0x10], xmm0
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], recvfrom
mov byte [rdi], 0
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
mov rax, rdx
sub rax, rcx
cmp rax, 3
jae 0x140001932
mov qword [rsp + 0x20], 3
lea r9, [0x14004aa48]
lea rcx, [rbp - 0x10]
mov edx, 3
call fcn.140002070
jmp 0x140001953
lea rax, [rcx + 3]
mov qword [rbp], rax
lea rax, [rbp - 0x10]
mov r8, rax
cmp rdx, 0x10
jb 0x14000194b
mov r8, qword [rbp - 0x10]
mov dword [r8 + rcx], 0xa0d29
mov rbx, qword [rax]
movups xmm6, xmmword [rax + 8]
mov rdi, qword [rax + 0x18]
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], recvfrom
mov byte [rax], 0
mov rax, qword [rbp - 0x18]
cmp rax, 0x10
jb 0x1400019b0
mov rcx, qword [rbp - 0x30]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400019ab
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140001ace
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14003aec4
mov qword [rbp - 0x30], rbx
movups xmmword [rbp - 0x28], xmm6
mov qword [rbp - 0x18], rdi
mov rax, qword [rbp + 8]
cmp rax, 0x10
jb 0x1400019fb
mov rcx, qword [rbp - 0x10]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400019f6
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140001ace
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14003aec4
mov qword [rbp], 0
mov qword [rbp + 8], recvfrom
mov byte [rbp - 0x10], 0
mov rax, qword [rbp - 0x38]
cmp rax, 0x10
jb 0x140001a4e
mov rcx, qword [rbp - 0x50]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140001a49
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140001ace
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14003aec4
cmp rdi, 0x10
lea rdi, [rbp - 0x30]
cmovae rdi, rbx
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [rsi]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbp - 0x18]
cmp rax, 0x10
jb 0x140001ab8
mov rcx, qword [rbp - 0x30]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140001ab3
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140001ace
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14003aec4
movaps xmm6, xmmword [rbp + 0x20]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3