Function at 0x1400c5d30
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x548
movaps xmmword [rsp + 0x530], xmm6
mov rsi, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x528], rax
lea rax, [0x140230968]
mov qword [rcx], rax
lea r14, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
movsxd rcx, dword [rax + 4]
mov r13, 0xffffffffffffffff
test byte [rsi + rcx + 0x30], 5
jne 0x1400c5db9
mov rcx, qword [r14 + rcx + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rbx, [rsp + 0x120]
mov rdx, rbx
xor r8d, r8d
mov r9d, 1
call qword [case.0x1401f58d0.0]
mov r13, qword [rbx + 8]
mov rax, qword [r14]
movsxd rcx, dword [rax + 4]
add rcx, r14
lea rbp, [rsp + 0x120]
mov rdx, rbp
call fcn.140093f10
lea rdx, [0x14038fa10]
mov rcx, rbp
call fcn.1400b22f0
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, rdi
call qword [case.0x1401f58d0.0]
mov ebx, eax
mov rcx, rbp
call fcn.140096230
mov rcx, r14
mov edx, ebx
call fcn.14003bae0
mov rcx, r14
call fcn.14003a720
lea r15, [rsi + 0x18]
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], r12
movaps xmm6, xmmword [0x140232ef0]
movaps xmmword [rbx], xmm6
mov rcx, r15
mov rdx, rbx
call fcn.14003beb0
test byte [0x14036a740], 0x19
jne 0x1400c61bd
mov rax, qword [0x1403908c8]
test rax, rax
je 0x1400c5e8b
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
lea rbp, [rsp + 0x80]
mov qword [rsp + 0x20], rbp
call qword [case.0x1401f58d0.0]
test al, al
jne 0x1400c60d1
mov eax, dword [reloc.WS2_32.dll_accept]
test al, 2
je 0x1400c5ebd
cmp byte [rsp + 0x97], 0
jns 0x1400c5ea9
mov rcx, qword [rsp + 0x80]
jmp 0x1400c5eb1
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [reloc.WS2_32.dll_accept]
test al, 4
jne 0x1400c5ecc
cmp dword [rsi + 8], 2
jl 0x1400c5f12
cmp eax, 1
ja 0x1400c5f12
lea rdi, [rsp + 0x80]
movzx ebx, byte [rdi + 0x17]
test bl, bl
cmovs rbx, qword [rdi + 8]
cmovs rdi, qword [rdi]
test rbx, rbx
je 0x1400c5f12
xor ebp, ebp
mov r8d, ebx
sub r8d, ebp
lea rdx, [rdi + rbp]
mov ecx, 2
call fcn.1401c3760
test eax, eax
js 0x1400c5f0c
mov eax, eax
add rbp, rax
cmp rbx, rbp
ja 0x1400c5eea
mov eax, dword [reloc.WS2_32.dll_accept]
test al, 1
jne 0x1400c616d
cmp dword [rsi + 8], 3
jne 0x1400c60d1
mov rcx, qword [0x140390858]
test rcx, rcx
je 0x1400c5f5c
lea rax, [rsp + 0x80]
movzx ebp, byte [rax + 0x17]
test bpl, bpl
mov rbx, qword [rax]
cmovns rbx, rax
lea rdx, [rsp + 0x70]
mov qword [rdx], rbx
cmovs rbp, qword [rax + 8]
mov qword [rdx + 8], rbp
call fcn.1400c2540
lea rbx, [rsp + 0x120]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.1401a64a0
cmp byte [rsp + 0x97], 0
jns 0x1400c5f88
mov rdx, qword [rsp + 0x80]
jmp 0x1400c5f90
lea rdx, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rbx
call fcn.1400d5200
mov rcx, rbx
call fcn.14003a2a0
mov eax, dword [0x140390908]
mov ecx, dword [0x14036bfd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c661e
mov rax, qword [0x1403908f8]
cmp rax, qword [0x140390900]
je 0x1400c66cb
mov qword [rsp + 0xd8], r12
mov eax, dword [0x140390908]
mov ecx, dword [0x14036bfd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c6659
mov rdx, qword [0x140390900]
test rdx, rdx
mov rax, qword [0x1403908f0]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x1400c66ce
shl rdx, 3
add rdx, qword [0x1403908e8]
lea rdi, [rsp + 0xd8]
mov rcx, rdi
call fcn.1400bcb30
mov rbx, qword [rdi]
test rbx, rbx
je 0x1400c60c4
cmp byte [rsp + 0x97], 0
jns 0x1400c6064
mov rdi, qword [rsp + 0x80]
jmp 0x1400c606c
lea rdi, [rsp + 0x80]
mov rcx, rdi
add rcx, r13
mov qword [rsp + 0x60], rcx
je 0x1400c66d1
call fcn.1401ceb10
lea rcx, [rsp + 0x60]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x118]
sub r13, rax
add rdi, rax
lea r9, [rsp + 0x50]
mov qword [r9], rdi
mov qword [r9 + 8], r13
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [case.0x1401f58d0.0]
lea rcx, [rsp + 0xd8]
call fcn.1400bcb10
cmp byte [rsp + 0x97], 0
jns 0x1400c60e8
mov rcx, qword [rsp + 0x80]
call fcn.1401a2ea8
lea rcx, [rsi + 0x12c]
call fcn.1401100c0
lea rbx, [rsi + 0x80]
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1402305c8]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1402305f0]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x1400c6129
mov rcx, qword [r14 + 0x48]
call fcn.1401a2ea8
mov rcx, r15
call fcn.14003a240
mov rcx, r15
call fcn.14003a2a0
mov rcx, rbx
call fcn.14003a230
mov rcx, qword [rsp + 0x528]
xor rcx, rsp
call fcn.1401a4270
movaps xmm6, xmmword [rsp + 0x530]
add rsp, 0x548
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1401f4c80
test al, al
je 0x1400c5f1a
lea r9, [rsp + 0x120]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x80]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x1403908e0]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400c5f1a
lea rdi, [rsp + 0xc0]
mov qword [rdi + 0x10], r12
movaps xmmword [rdi], xmm6
mov rax, qword [0x140242398]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea r8, [0x14036a740]
lea r9, str.LogMessage
mov rcx, rdi
mov dl, 0x49
call fcn.1400edd60
mov rbp, qword [rdi]
test rbp, rbp
je 0x1400c660c
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x40], rax
lea rdi, [rsp + 0xa0]
mov rcx, rdi
xor edx, edx
call fcn.14004f220
mov qword [rdi + 8], rbp
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x10], rax
xor eax, eax
mov qword [rdi + 0x18], rax
lea rbp, [rsp + 0xd8]
mov rcx, rbp
mov rdx, rdi
call fcn.140052c10
movups xmm0, xmmword [rdi + 8]
movups xmmword [rbp + 8], xmm0
mov rax, qword [rdi + 0x18]
mov qword [rbp + 0x18], rax
mov rcx, qword [rbp + 8]
mov edx, reloc.WS2_32.dll_setsockopt
call fcn.140052980
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
xor edx, edx
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], rcx
mov qword [rsp + 0x108], rax
mov rcx, qword [rbp + 0x10]
call fcn.1400c69c0
mov rbp, qword [rax + 0x20]
lea rcx, [rax + 8]
inc rbp
mov rax, qword [rsp + 0x108]
lea r8, [rsp + 0x120]
mov qword [r8 + 0x10], rax
movups xmm0, xmmword [rsp + 0xf8]
movaps xmmword [r8], xmm0
mov qword [r8 + 0x18], rbp
lea rdi, [rsp + 0x110]
mov rdx, rdi
mov r9, r8
call fcn.1400c7270
cmp byte [rdi + 8], 0
je 0x1400c6309
mov rcx, qword [rsp + 0xe8]
sub rcx, 0xffffffffffffff80
lea r8, [rsp + 0xf8]
mov rdx, rbp
call fcn.140110120
jmp 0x1400c6315
mov rax, qword [rsp + 0x110]
mov rbp, qword [rax + 0x28]
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x1400c632b
mov rcx, qword [rsp + 0x40]
call fcn.140052760
lea rax, [rsp + 0x121]
mov qword [rax + 6], r12
mov qword [rax], r12
mov byte [rax - 1], 8
cmp rbp, 0x80
jb 0x1400c636f
mov rcx, rbp
mov edx, ecx
or dl, 0x80
mov byte [rax], dl
shr rbp, 7
inc rax
cmp rcx, 0x3fff
ja 0x1400c6347
lea rdi, [rax - 1]
lea rcx, [rsp + 0x120]
jmp 0x1400c637a
lea rcx, [rsp + 0x120]
mov rdi, rcx
mov byte [rax], bpl
sub rdi, rcx
add rdi, 2
mov rax, qword [rsp + 0x40]
mov rbp, qword [rax]
mov r8d, edi
mov rcx, qword [rbp + 0x18]
lea rax, [rcx + r8]
mov qword [rsp + 0x48], rax
cmp rax, qword [rbp + 0x10]
ja 0x1400c6694
lea rdx, [rsp + 0x120]
call fcn.1401a6090
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x18], rax
mov rax, qword [rsp + 0x40]
add dword [rax + 0x20], edi
movzx ecx, byte [rsp + 0x97]
mov rax, rcx
test cl, cl
jns 0x1400c63db
mov rax, qword [rsp + 0x88]
mov rdx, qword [rsi + 0x118]
mov rbp, rax
sub rbp, rdx
jb 0x1400c66d4
test cl, cl
jns 0x1400c63fa
mov rbx, qword [rsp + 0x80]
cmp rbp, 0xfffffffffffffff0
jae 0x1400c66be
cmp rbp, 0x17
jae 0x1400c641d
lea rdi, [rsp + 0xf8]
mov byte [rdi + 0x17], bpl
cmp rax, rdx
jne 0x1400c6457
jmp 0x1400c6468
lea rdi, [rbp + 0x10]
and rdi, 0xfffffffffffffff0
mov rcx, rdi
mov qword [rsp + 0x48], rdx
call fcn.1401a2e6c
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0xf8], rax
bts rdi, 0x3f
mov qword [rsp + 0x108], rdi
mov rdi, rax
mov qword [rsp + 0x100], rbp
add rbx, rdx
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.1401a6090
mov byte [rdi + rbp], 0
mov rcx, qword [rsp + 0xe8]
call fcn.1400c7850
mov rdi, rax
mov rbx, qword [rax + 0x20]
inc rbx
cmp byte [rsp + 0x10f], 0
js 0x1400c64af
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x130], rax
movups xmm0, xmmword [rsp + 0xf8]
movaps xmmword [rsp + 0x120], xmm0
jmp 0x1400c64cc
mov rdx, qword [rsp + 0xf8]
mov r8, qword [rsp + 0x100]
lea rcx, [rsp + 0x120]
call fcn.1400b8380
lea rbp, [rsp + 0x120]
mov qword [rbp + 0x18], rbx
add rdi, 8
lea rdx, [rsp + 0x110]
mov rcx, rdi
mov rdi, rdx
mov r8, rbp
mov r9, rbp
call fcn.1400c8110
mov rcx, rdi
mov rax, qword [rdi]
mov dil, byte [rdi + 8]
cmp byte [rbp + 0x17], 0
jns 0x1400c6518
mov rcx, qword [rsp + 0x120]
mov rbp, rax
call fcn.1401a2ea8
mov rax, rbp
test dil, dil
je 0x1400c653b
mov rcx, qword [rsp + 0xe8]
sub rcx, 0xffffffffffffff80
lea r8, [rsp + 0xf8]
mov rdx, rbx
call fcn.140110370
jmp 0x1400c653f
mov rbx, qword [rax + 0x28]
lea rbp, [rsp + 0x120]
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x1400c655d
mov rcx, qword [rsp + 0x40]
call fcn.140052760
lea rax, [rsp + 0x121]
mov qword [rax + 6], r12
mov qword [rax], r12
mov byte [rax - 1], reloc.WS2_32.dll_recv
cmp rbx, 0x80
jb 0x1400c6599
mov rcx, rbx
mov edx, ecx
or dl, 0x80
mov byte [rax], dl
shr rbx, 7
inc rax
cmp rcx, 0x3fff
ja 0x1400c6579
lea rdi, [rax - 1]
jmp 0x1400c659c
mov rdi, rbp
mov byte [rax], bl
sub rdi, rbp
add rdi, 2
mov rax, qword [rsp + 0x40]
mov rbx, qword [rax]
mov r8d, edi
mov rcx, qword [rbx + 0x18]
lea rbp, [rcx + r8]
cmp rbp, qword [rbx + 0x10]
ja 0x1400c66a9
lea rdx, [rsp + 0x120]
call fcn.1401a6090
mov qword [rbx + 0x18], rbp
mov rax, qword [rsp + 0x40]
add dword [rax + 0x20], edi
cmp byte [rsp + 0x10f], 0
jns 0x1400c65f2
mov rcx, qword [rsp + 0xf8]
call fcn.1401a2ea8
lea rcx, [rsp + 0xd8]
call fcn.140054260
lea rcx, [rsp + 0xa0]
call fcn.140054260
lea rcx, [rsp + 0xc0]
call fcn.1400edd00
jmp 0x1400c5e4c
lea rcx, [0x140390908]
call fcn.1401a2fc0
cmp dword [0x140390908], 0xffffffff
jne 0x1400c5fcb
xorps xmm0, xmm0
movups xmmword [0x1403908f8], xmm0
movups xmmword [0x1403908e8], xmm0
lea rcx, [0x140390908]
call fcn.1401a3058
jmp 0x1400c5fcb
lea rcx, [0x140390908]
call fcn.1401a2fc0
cmp dword [0x140390908], 0xffffffff
jne 0x1400c600c
xorps xmm0, xmm0
movups xmmword [0x1403908f8], xmm0
movups xmmword [0x1403908e8], xmm0
lea rcx, [0x140390908]
call fcn.1401a3058
jmp 0x1400c600c
lea rdx, [rsp + 0x120]
mov rcx, rbp
call fcn.1400539d0
jmp 0x1400c63bc
lea rdx, [rsp + 0x120]
mov rcx, rbx
call fcn.1400539d0
jmp 0x1400c65d3
lea rcx, [rsp + 0xf8]
call fcn.1400b7d50
int3
int3
int3
int3