Function at 0x180052010
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x98
mov rax, qword [0x180375980]
xor rax, rsp
mov qword [rbp - 9], rax
mov r10, r8
mov esi, edx
mov dword [rbp - 0x71], esi
mov rbx, rcx
mov qword [rbp - 0x61], rcx
mov r14, qword [rbp + 0x77]
mov qword [rbp - 0x59], r14
mov cl, byte [rbp + 0x87]
test cl, cl
jne 0x180052068
test sil, 0xf
je 0x180052068
mov ebx, 1
jmp 0x1800522e0
lea eax, [r9 - 0x10]
test eax, 0xffffffe7
jne 0x1800522db
cmp r9d, 0x28
je 0x1800522db
mov edi, reloc.WS2_32.dll_recv
test cl, cl
je 0x1800520a0
mov eax, esi
and eax, 0xfffffff0
add eax, edi
cmp dword [rbp + 0x7f], eax
jae 0x1800520a5
mov ebx, 3
jmp 0x1800522e0
cmp dword [rbp + 0x7f], esi
jmp 0x180052094
mov r8d, r9d
mov rdx, r10
lea rcx, [rbp - 0x51]
call fcn.180019d9c
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov r13d, esi
and r13d, 0xf
mov dword [rbp - 0x6d], r13d
mov r15d, edi
sub r15b, r13b
mov dword [rbp - 0x69], r15d
mov r8, rdi
cmp esi, edi
jae 0x1800520e8
movzx edx, r15b
lea rcx, [rbp - 0x21]
call fcn.1800e44e0
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.1800e3e40
mov rax, qword [rbp + 0x6f]
test rax, rax
je 0x18005210e
movdqu xmm1, xmmword [rax]
movdqu xmm0, xmmword [rbp - 0x21]
xorps xmm1, xmm0
movdqu xmmword [rbp - 0x21], xmm1
mov r8, r14
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x51]
call fcn.180052310
mov eax, esi
shr eax, 4
lea r12d, [rax - 1]
mov ebx, 1
cmp eax, ebx
jbe 0x18005219c
mov r13d, r12d
mov rsi, qword [rbp - 0x61]
movsxd r15, edi
lea rdx, [r15 + rsi]
mov r8d, reloc.WS2_32.dll_recv
lea rcx, [rbp - 0x21]
call fcn.1800e3e40
xor r8d, r8d
lea rax, [rbp - 0x21]
mov rdx, r15
sub rdx, rax
add rdx, r14
lea rcx, [rbp - 0x21]
add rcx, r8
mov al, byte [rcx + rdx - 0x10]
xor byte [rcx], al
add r8, rbx
cmp r8, 0x10
jl 0x18005215d
lea r8, [r15 + r14]
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x51]
call fcn.180052310
add edi, 0x10
sub r13, rbx
jne 0x180052137
mov esi, dword [rbp - 0x71]
mov r13d, dword [rbp - 0x6d]
mov r15d, dword [rbp - 0x69]
mov edi, reloc.WS2_32.dll_recv
cmp byte [rbp + 0x87], 0
je 0x18005229d
cmp esi, edi
jb 0x18005229d
mov rcx, rdi
call fcn.1800af270
mov rdi, rax
mov qword [rbp - 0x39], rax
lea r14, [rax + 0x10]
mov qword [rbp - 0x29], r14
mov r8d, reloc.WS2_32.dll_recv
mov dl, r15b
mov rcx, rax
call fcn.180033cfc
mov qword [rbp - 0x31], r14
mov ecx, reloc.WS2_32.dll_recv
call fcn.1800af270
mov r15, rax
lea rdx, [rax + 0x10]
mov rcx, rax
call fcn.1800186b4
mov r8d, r13d
mov edx, esi
sub rdx, r8
add rdx, qword [rbp - 0x61]
mov rcx, rdi
call fcn.1800e3e40
mov rcx, rdi
shl r12d, 4
mov r8d, r12d
sub r8, rdi
mov r12, qword [rbp - 0x59]
add r8, r12
mov edx, reloc.WS2_32.dll_recv
mov al, byte [r8 + rcx]
xor byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x180052223
mov r8, r15
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.180052310
sub esi, r13d
mov ecx, esi
add rcx, r12
mov ebx, reloc.WS2_32.dll_recv
mov r8d, ebx
mov rdx, r15
call fcn.1800e3e40
test r15, r15
je 0x180052268
mov edx, ebx
mov rcx, r15
call fcn.1800af2ac
nop
test rdi, rdi
je 0x18005229d
sub r14, rdi
cmp r14, 0x1000
jb 0x180052291
add r14, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x180052302
mov rdi, rcx
mov rdx, r14
mov rcx, rdi
call fcn.1800af2ac
nop
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x1800522d7
mov rdx, qword [rbp - 0x41]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800522d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180052308
call fcn.1800af2ac
xor eax, eax
jmp 0x1800522e2
mov ebx, 2
mov eax, ebx
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1800af730
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1800b698c
nop
call fcn.1800b698c
int3