Function at 0x1800188e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r15, rcx
mov ecx, 1
mov qword [rsp + 0x30], r9
mov ebx, r8d
mov rsi, rdx
mov r13d, ecx
mov dword [rsp + 0x24], ecx
test r15, r15
je 0x180018ffa
test ebx, ebx
js 0x180018ffa
mov r14d, dword [rbp + 0x110]
test r14d, r14d
js 0x180018ffa
mov r12d, dword [rbp + 0x120]
test r12d, r12d
js 0x180018ffa
mov eax, dword [rbp + 0x118]
mov qword [rsp + 0x1a8], rdi
mov edi, dword [rbp + 0x128]
test eax, eax
cmovle eax, ecx
xor ecx, ecx
mov dword [rbp + 0x118], eax
lea eax, [rdi - 1]
cmp eax, 0xe
cmovbe ecx, edi
call fcn.18000d670
mov dword [rsp + 0x28], eax
test eax, eax
jns 0x1800189bd
mov eax, 0xffffff53
mov rdi, qword [rsp + 0x1a8]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, Ordinal_301
call fcn.180037c60
lea rcx, [rsp + 0x40]
mov r9d, ebx
mov r8, rsi
mov edx, edi
mov qword [rbp + 0x58], 0
call fcn.18000e3d0
mov ebx, eax
test eax, eax
jne 0x180018ff3
test r12d, r12d
je 0x180018ff3
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov r8d, r14d
call fcn.18000e9e0
mov ebx, eax
test eax, eax
jne 0x180018ff3
mov edx, dword [rsp + 0x40]
mov r14d, Ordinal_27
mov eax, r13d
mov ecx, r14d
xor esi, esi
shr eax, cl
mov byte [rsp + 0x20], al
cmp byte [rbp + 0x61], sil
jne 0x180018a4e
lea rcx, [rsp + 0x40]
call fcn.18000e5a0
mov edx, dword [rsp + 0x40]
mov esi, eax
test eax, eax
jne 0x180018eb9
movzx ecx, byte [rbp + 0x60]
sub ecx, 3
je 0x180018d88
dec ecx
je 0x180018bd4
cmp ecx, 2
jne 0x180018eb9
mov r8d, 1
xor esi, esi
cmp dword [rbp - 0x60], 0x40
mov r12d, r8d
lea rbx, [rsp + 0x20]
jb 0x180018a8c
mov esi, 0xffffff7c
jmp 0x180018eb9
mov ecx, dword [rbp - 0x5c]
mov eax, ecx
inc ecx
mov dword [rbp - 0x5c], ecx
cmp ecx, eax
jae 0x180018a9d
inc dword [rbp - 0x58]
mov eax, dword [rbp - 0x60]
test eax, eax
je 0x180018bb7
mov edi, 0x40
lea rcx, [rsp + rax + 0x60]
lea rdx, [rsp + 0x20]
sub edi, eax
cmp edi, r8d
cmova edi, r8d
mov r8d, edi
call fcn.180033ff0
mov eax, dword [rbp - 0x60]
sub r12d, edi
add eax, edi
lea rbx, [rsp + rdi + 0x20]
mov dword [rbp - 0x60], eax
cmp eax, 0x40
jne 0x180018b2f
lea rdx, [rsp + 0x60]
lea r8d, [rax - 0x30]
nop word [rax + rax]
mov eax, dword [rdx]
add rdx, 4
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
dec r8
mov dword [rdx - 4], ecx
jne 0x180018af0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.18001e090
mov esi, eax
test eax, eax
jne 0x180018bcb
mov dword [rbp - 0x60], eax
cmp r12d, 0x40
jb 0x180018bb2
nop word [rax + rax]
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
add rbx, 0x40
add r12d, 0xffffffc0
lea rdx, [rsp + 0x60]
mov r8d, reloc.WS2_32.dll_recv
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmm1, xmmword [rbx - 0x10]
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x70], xmm1
mov eax, dword [rdx]
add rdx, 4
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
dec r8
mov dword [rdx - 4], ecx
jne 0x180018b74
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.18001e090
mov esi, eax
test eax, eax
jne 0x180018bb2
cmp r12d, 0x40
jae 0x180018b40
test r12d, r12d
je 0x180018bcb
lea rcx, [rsp + 0x60]
mov r8d, r12d
mov rdx, rbx
call fcn.180033ff0
mov dword [rbp - 0x60], r12d
mov edx, dword [rsp + 0x40]
jmp 0x180018eb9
mov r8d, 1
xor esi, esi
lea r12, [rsp + 0x20]
mov r13d, r8d
cmp edx, 0x40
jb 0x180018bf8
mov r13d, dword [rsp + 0x24]
mov esi, 0xffffff7c
jmp 0x180018eb9
mov ecx, dword [rsp + 0x44]
mov eax, ecx
inc ecx
mov dword [rsp + 0x44], ecx
cmp ecx, eax
jae 0x180018c0c
inc dword [rsp + 0x48]
test edx, edx
je 0x180018d67
mov eax, edx
mov edi, 0x40
sub edi, edx
lea rcx, [rsp + rax + 0x4c]
lea rdx, [rsp + 0x20]
cmp edi, r8d
cmova edi, r8d
mov r8d, edi
call fcn.180033ff0
mov edx, dword [rsp + 0x40]
sub r13d, edi
add edx, edi
lea r12, [rsp + rdi + 0x20]
mov dword [rsp + 0x40], edx
cmp edx, 0x40
jne 0x180018cac
lea rdx, [rsp + 0x4c]
mov r8d, reloc.WS2_32.dll_recv
nop dword [rax + rax]
mov eax, dword [rdx]
add rdx, 4
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
dec r8
mov dword [rdx - 4], ecx
jne 0x180018c60
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x40]
call fcn.18001c8c0
mov esi, eax
test eax, eax
je 0x180018ca6
mov edx, dword [rsp + 0x40]
mov r13d, dword [rsp + 0x24]
jmp 0x180018eb9
xor edx, edx
mov dword [rsp + 0x40], edx
cmp r13d, 0x40
jb 0x180018d62
mov ebx, r13d
shr rbx, 6
nop dword [rax]
mov rax, qword [r12]
add r12, 0x40
lea rdx, [rsp + 0x4c]
mov qword [rsp + 0x4c], rax
mov rax, qword [r12 - 0x38]
add r13d, 0xffffffc0
mov qword [rsp + 0x54], rax
mov rax, qword [r12 - 0x30]
mov r8d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x5c], rax
mov rax, qword [r12 - 0x28]
mov qword [rsp + 0x64], rax
mov rax, qword [r12 - 0x20]
mov qword [rsp + 0x6c], rax
mov rax, qword [r12 - 0x18]
mov qword [rsp + 0x74], rax
mov rax, qword [r12 - 0x10]
mov qword [rsp + 0x7c], rax
mov rax, qword [r12 - 8]
mov qword [rbp - 0x7c], rax
mov eax, dword [rdx]
add rdx, 4
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
dec r8
mov dword [rdx - 4], ecx
jne 0x180018d21
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x40]
call fcn.18001c8c0
dec rbx
mov esi, eax
jne 0x180018cc0
mov edx, dword [rsp + 0x40]
test r13d, r13d
je 0x180018d7e
lea rcx, [rsp + 0x4c]
mov r8d, r13d
mov rdx, r12
call fcn.180033ff0
mov edx, r13d
mov dword [rsp + 0x40], edx
mov r13d, dword [rsp + 0x24]
jmp 0x180018eb9
mov r8d, 1
xor esi, esi
lea r12, [rsp + 0x20]
mov ebx, r8d
cmp edx, 0x40
jb 0x180018da7
mov esi, 0xffffff7c
jmp 0x180018eb9
mov ecx, dword [rsp + 0x44]
mov eax, ecx
inc ecx
mov dword [rsp + 0x44], ecx
cmp ecx, eax
jae 0x180018dbb
inc dword [rsp + 0x48]
test edx, edx
je 0x180018ea3
mov eax, edx
mov edi, 0x40
sub edi, edx
lea rcx, [rsp + rax + 0x4c]
lea rdx, [rsp + 0x20]
cmp edi, ebx
cmova edi, r8d
mov r8d, edi
call fcn.180033ff0
mov edx, dword [rsp + 0x40]
sub ebx, edi
add edx, edi
lea r12, [rsp + rdi + 0x20]
mov dword [rsp + 0x40], edx
cmp edx, 0x40
jne 0x180018e1e
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x40]
call fcn.180017b30
mov esi, eax
test eax, eax
je 0x180018e18
mov edx, dword [rsp + 0x40]
jmp 0x180018eb9
xor edx, edx
mov dword [rsp + 0x40], edx
cmp ebx, 0x40
jb 0x180018e9f
mov edi, ebx
shr rdi, 6
nop dword [rax]
mov rax, qword [r12]
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x4c], rax
mov rax, qword [r12 + 8]
add r12, 0x40
mov qword [rsp + 0x54], rax
mov rax, qword [r12 - 0x30]
add ebx, 0xffffffc0
mov qword [rsp + 0x5c], rax
mov rax, qword [r12 - 0x28]
mov qword [rsp + 0x64], rax
mov rax, qword [r12 - 0x20]
mov qword [rsp + 0x6c], rax
mov rax, qword [r12 - 0x18]
mov qword [rsp + 0x74], rax
mov rax, qword [r12 - 0x10]
mov qword [rsp + 0x7c], rax
mov rax, qword [r12 - 8]
mov qword [rbp - 0x7c], rax
call fcn.180017b30
dec rdi
mov esi, eax
jne 0x180018e30
mov edx, dword [rsp + 0x40]
test ebx, ebx
je 0x180018eb9
lea rcx, [rsp + 0x4c]
mov r8d, ebx
mov rdx, r12
call fcn.180033ff0
mov edx, ebx
mov dword [rsp + 0x40], ebx
mov ebx, esi
test esi, esi
jne 0x180018ff3
sub r14d, 8
cmp r14d, 0xfffffff8
jg 0x180018a22
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.18000eb00
mov ebx, eax
test eax, eax
jne 0x180018ff3
mov ecx, dword [rsp + 0x28]
mov eax, dword [rbp + 0x120]
lea rdx, [rbp + 0x70]
mov edi, ecx
cmp eax, ecx
mov rcx, r15
cmovl edi, eax
movsxd r12, edi
mov r8, r12
call fcn.180033ff0
mov r14d, dword [rbp + 0x118]
mov esi, 1
cmp r14d, esi
jle 0x180018fcb
mov r8d, dword [rsp + 0x28]
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.18000e9e0
mov ebx, eax
test eax, eax
jne 0x180018ff3
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.18000eb00
mov ebx, eax
test eax, eax
jne 0x180018ff3
mov eax, edi
lea rcx, [rbp + 0x70]
mov edx, edi
or rax, r15
or rax, rcx
test al, 7
jne 0x180018f93
mov eax, edi
shr eax, 3
test eax, eax
je 0x180018fc0
lea r8, [rbp + 0x70]
mov rcx, r15
mov edx, eax
sub r8, r15
nop dword [rax]
mov rax, qword [r8 + rcx]
add rcx, 8
xor qword [rcx - 8], rax
dec rdx
jne 0x180018f80
jmp 0x180018fc0
test edi, edi
je 0x180018fc0
lea r8, [rbp + 0x70]
mov rcx, r15
sub r8, r15
nop word [rax + rax]
movzx eax, byte [rcx + r8]
inc rcx
xor byte [rcx - 1], al
dec rdx
jne 0x180018fb0
inc esi
cmp esi, r14d
jl 0x180018f21
mov r14d, dword [rbp + 0x110]
add r15, r12
mov r12d, dword [rbp + 0x120]
sub r12d, edi
inc r13d
mov dword [rsp + 0x24], r13d
mov dword [rbp + 0x120], r12d
jmp 0x1800189f3
mov eax, ebx
jmp 0x180018993
mov eax, 0xffffff53
jmp 0x18001899b