Function at 0x140c59930
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x278]
sub rsp, 0x378
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov qword [rsp + 0x20], rcx
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
cmp r8, 0x180
jbe 0x140c59976
mov eax, 0xffffffc8
jmp 0x140c59cc0
xor edx, edx
mov qword [rsp + 0x368], r14
mov r8d, 0x1a0
lea rcx, [rbp + 0xb0]
call fcn.140da1bb0
lea rcx, [rsp + 0x30]
call fcn.140c57cf0
mov rax, rbx
mov byte [rbp + 0xc3], bl
shr rax, 0x18
lea rcx, [rbp + 0xc8]
mov byte [rbp + 0xc0], al
mov r8, rbx
mov rax, rbx
mov byte [rbp + 0xc7], getprotobyname
shr rax, 0x10
mov rdx, rdi
mov byte [rbp + 0xc1], al
mov rax, rbx
shr rax, 8
mov byte [rbp + 0xc2], al
call fcn.140da1510
movdqa xmm2, xmmword [0x140dcccf0]
lea rdx, [rbp + 0x94]
movdqa xmm3, xmmword [0x140df7e50]
mov ecx, 8
mov byte [rbp + rbx + 0xc8], 0x80
add rbx, 0x19
mov qword [rsp + 0x28], rbx
nop
lea eax, [rcx - 8]
movd xmm0, eax
lea rdx, [rdx + 0x10]
pshufd xmm0, xmm0, 0
lea eax, [rcx - 4]
paddd xmm0, xmm2
movd xmm1, eax
pshufd xmm1, xmm1, 0
lea eax, [rcx + 4]
paddd xmm1, xmm2
andps xmm0, xmm3
andps xmm1, xmm3
packuswb xmm0, xmm0
packuswb xmm1, xmm1
packuswb xmm0, xmm0
movd dword [rdx - 0x14], xmm0
packuswb xmm1, xmm1
movd dword [rdx - 0x10], xmm1
movd xmm0, ecx
add ecx, 0x10
pshufd xmm0, xmm0, 0
paddd xmm0, xmm2
movd xmm1, eax
pshufd xmm1, xmm1, 0
andps xmm0, xmm3
paddd xmm1, xmm2
packuswb xmm0, xmm0
andps xmm1, xmm3
packuswb xmm0, xmm0
movd dword [rdx - 0xc], xmm0
lea eax, [rcx - 8]
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [rdx - 8], xmm1
cmp eax, 0x20
jl 0x140c59a10
mov r8d, 0x100
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140c57fc0
mov r14d, eax
mov r8d, reloc.WS2_32.dll_recv
test eax, eax
jne 0x140c59c5b
mov qword [rsp + 0x3b8], r12
xor r12d, r12d
mov qword [rsp + 0x370], r13
mov r13d, r12d
mov qword [rsp + 0x360], r15
nop word [rax + rax]
lea rsi, [rbp + 0xb0]
xorps xmm0, xmm0
mov rdi, rbx
movdqu xmmword [rbp + 0x50], xmm0
test rbx, rbx
je 0x140c59bbe
lea rbx, [rbp + 0xb0]
lea rax, [rbp + 0x50]
sub rbx, rax
lea r15, [rbp + 0xbf]
lea rcx, [rbp + 0x50]
mov rax, r12
cmp rcx, r15
ja 0x140c59b58
lea rcx, [rbp + 0x5f]
cmp rcx, rsi
jb 0x140c59b58
nop word [rax + rax]
lea rdx, [rbp + 0x50]
add rdx, rax
inc rax
movzx ecx, byte [rbx + rdx]
xor byte [rdx], cl
cmp rax, 0x10
jl 0x140c59b40
jmp 0x140c59b69
movdqu xmm1, xmmword [rbp + 0x50]
movdqu xmm0, xmmword [rsi]
xorps xmm1, xmm0
movdqu xmmword [rbp + 0x50], xmm1
mov rax, rdi
lea r9, [rbp + 0x50]
add rsi, 0x10
lea rcx, [rsp + 0x30]
add r15, 0x10
add rbx, 0x10
cmp rdi, 0x10
mov edx, 1
cmovae rax, r8
lea r8, [rbp + 0x50]
sub rdi, rax
call fcn.140c573c0
mov r14d, eax
test eax, eax
jne 0x140c59c3e
mov r8d, reloc.WS2_32.dll_recv
test rdi, rdi
jne 0x140c59b20
movdqu xmm0, xmmword [rbp + 0x50]
mov rbx, qword [rsp + 0x28]
inc byte [rbp + 0xb3]
movups xmmword [rbp + r13 + 0x60], xmm0
add r13, 0x10
cmp r13, 0x30
jl 0x140c59af0
mov r8d, 0x100
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140c57fc0
mov rsi, qword [rsp + 0x20]
mov r14d, eax
test eax, eax
jne 0x140c59c43
mov rbx, rsi
nop dword [rax + rax]
lea r9, [rbp + 0x80]
mov edx, 1
lea r8, [rbp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.140c573c0
mov r14d, eax
test eax, eax
jne 0x140c59c43
movups xmm0, xmmword [rbp + 0x80]
add r12d, 0x10
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp r12d, 0x30
jl 0x140c59c00
jmp 0x140c59c43
mov rsi, qword [rsp + 0x20]
mov r13, qword [rsp + 0x370]
mov r12, qword [rsp + 0x3b8]
mov r15, qword [rsp + 0x360]
lea rcx, [rsp + 0x30]
call fcn.140c57ce0
mov edx, 0x1a0
lea rcx, [rbp + 0xb0]
call fcn.140c5d6e0
mov edx, gethostbyaddr
lea rcx, [rbp + 0x60]
call fcn.140c5d6e0
mov edx, 0x20
lea rcx, [rbp + 0x90]
call fcn.140c5d6e0
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rbp + 0x50]
call fcn.140c5d6e0
test r14d, r14d
je 0x140c59cb5
mov edx, gethostbyaddr
mov rcx, rsi
call fcn.140c5d6e0
mov eax, r14d
mov r14, qword [rsp + 0x368]
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140cd9320
add rsp, 0x378
pop rdi
pop rsi
pop rbx
pop rbp
ret