Function at 0x140004b30
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 [0x1400fd080]
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 0x140004b80
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x2b]
mov rdx, r10
lea rcx, [rsp + 0x58]
call fcn.140026a60
nop
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
sub rax, r8
lea r13, [0x1400e0a18]
mov r15d, 8
lea rdi, str.km.left_
cmp rax, r15
jb 0x140004c5f
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 0x140004c22
lea rax, [rbx + r8]
cmp rdi, rax
ja 0x140004c22
cmp rbx, rdi
ja 0x140004c1a
mov rsi, r12
jmp 0x140004c25
mov rsi, rbx
sub rsi, rdi
jmp 0x140004c25
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 0x140004c7f
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.140029a40
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, [0x1400e09f4]
lea rcx, [rsp + 0x38]
call fcn.14001f350
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 0x140004d25
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004d20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cbe70
movdqa xmm0, xmmword [0x1400e9800]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140004d78
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004d73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cbe70
movdqa xmm0, xmmword [0x1400e9800]
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 0x140004dc0
lea rcx, [rbp - 0x40]
call fcn.140021cd0
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 [0x14015d060]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140004e39
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004e34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cbe70
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 0x140004e50
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x2b]
mov rdx, r10
lea rcx, [rsp + 0x78]
call fcn.140026a60
nop
mov r8, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
sub rax, r8
cmp rax, 8
jb 0x140004f19
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 0x140004edc
lea rax, [rsi + r8]
cmp rdi, rax
ja 0x140004edc
cmp rsi, rdi
ja 0x140004ed4
mov r14, r12
jmp 0x140004edf
mov r14, rsi
sub r14, rdi
jmp 0x140004edf
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 0x140004f39
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.140029a40
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, [0x1400e09f4]
lea rcx, [rbp - 0x68]
call fcn.14001f350
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 0x140004fd8
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004fd3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004fd3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cbe70
movdqa xmm0, xmmword [0x1400e9800]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140005028
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005023
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005023
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cbe70
movdqa xmm0, xmmword [0x1400e9800]
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 0x140005066
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.140021cd0
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 [0x14015d060]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400050e9
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400050e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cbe70
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140005128
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005122
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005122
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cbe70
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140005166
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005161
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005161
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cbe70
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400cbe50
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