Function at 0x140006830
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x130
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x140106080]
xor rax, rsp
mov qword [rbp], rax
xor r12d, r12d
mov r14d, dword [reloc.WS2_32.dll_getpeername]
lea r10, [rbp - 0x2b]
mov r8d, 1
nop dword [rax]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x140006880
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x2b]
mov rdx, r10
lea rcx, [rsp + 0x58]
call fcn.14002b560
nop
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
sub rax, r8
lea r13, [0x1400e9a20]
mov r15d, 8
lea rdi, str.km.left_
cmp rax, r15
jb 0x14000695f
lea rax, [r8 + 8]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x58]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x58]
cmp r13, rbx
jbe 0x140006922
lea rax, [rbx + r8]
cmp rdi, rax
ja 0x140006922
cmp rbx, rdi
ja 0x14000691a
mov rsi, r12
jmp 0x140006925
mov rsi, rbx
sub rsi, rdi
jmp 0x140006925
mov rsi, r15
inc r8
lea rcx, [rbx + 8]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
sub r8, rsi
lea rdx, [rdi + 8]
add rdx, rsi
lea rcx, [rbx + rsi]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x58]
jmp 0x14000697f
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdi
xor r9d, r9d
movzx r8d, byte [rsp + 0x30]
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.14002e4b0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rax + 0x10], r12
mov byte [rax], 0
mov r8d, 3
lea rdx, [0x1400e99fc]
lea rcx, [rsp + 0x38]
call fcn.1400243c0
movups xmm7, xmmword [rax]
movups xmmword [rbp - 0x20], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm6
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140006a25
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006a20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006a20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d5e40
movdqa xmm0, xmmword [0x1400f22e0]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140006a78
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006a73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006a73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d5e40
movdqa xmm0, xmmword [0x1400f22e0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
lea rdx, [rbp - 0x20]
movq rcx, xmm7
psrldq xmm6, 8
movq rax, xmm6
cmp rax, 0xf
cmova rdx, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140006ac0
lea rcx, [rbp - 0x40]
call fcn.140026b10
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x48]
mov r8d, dword [rbp - 0x30]
mov rcx, qword [0x140166108]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140006b39
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006b34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006b34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d5e40
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r10, [rbp - 0x2b]
mov r8d, r12d
nop dword [rax]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x140006b50
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x2b]
mov rdx, r10
lea rcx, [rsp + 0x78]
call fcn.14002b560
nop
mov r8, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
sub rax, r8
cmp rax, 8
jb 0x140006c19
lea rax, [r8 + 8]
mov qword [rbp - 0x78], rax
lea rsi, [rsp + 0x78]
cmp rcx, 0xf
cmova rsi, qword [rsp + 0x78]
cmp r13, rsi
jbe 0x140006bdc
lea rax, [rsi + r8]
cmp rdi, rax
ja 0x140006bdc
cmp rsi, rdi
ja 0x140006bd4
mov r14, r12
jmp 0x140006bdf
mov r14, rsi
sub r14, rdi
jmp 0x140006bdf
mov r14, r15
inc r8
lea rcx, [rsi + 8]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
sub r15, r14
lea rdx, [r14 + 8]
add rdx, rdi
lea rcx, [rsi + r14]
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x78]
jmp 0x140006c39
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdi
xor r9d, r9d
movzx r8d, byte [rsp + 0x30]
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.14002e4b0
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rax + 0x10], r12
mov byte [rax], 0
mov r8d, 3
lea rdx, [0x1400e99fc]
lea rcx, [rbp - 0x68]
call fcn.1400243c0
movups xmm7, xmmword [rax]
movups xmmword [rbp - 0x40], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm6
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140006cd8
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006cd3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006cd3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d5e40
movdqa xmm0, xmmword [0x1400f22e0]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140006d28
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006d23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006d23
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d5e40
movdqa xmm0, xmmword [0x1400f22e0]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
lea rdx, [rbp - 0x40]
movq rcx, xmm7
psrldq xmm6, 8
movq rax, xmm6
cmp rax, 0xf
cmova rdx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140006d66
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.140026b10
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rdx, qword [rsp + 0x38]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x48]
mov r8d, dword [rsp + 0x48]
mov rcx, qword [0x140166108]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140006de9
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006de3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006de3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d5e40
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140006e28
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006e22
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006e22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d5e40
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140006e66
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006e61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006e61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d5e40
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400d5e20
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret