Function at 0x18005ba10
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c8
mov rax, qword [0x18014f1c0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r12, qword [rcx + 8]
mov r10, rcx
mov r13, qword [rcx + 0x38]
mov rdi, rdx
mov r14d, dword [rcx + 0x34]
mov r15, r8
mov qword [rsp + 0x58], rdx
mov ebx, 1
mov eax, dword [r10 + 0x18]
mov ebp, 3
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x60], r8
mov r8d, edi
sub r8d, r12d
mov qword [rsp + 0xa0], r9
mov r9, qword [rcx + 0x70]
lea rdx, [rax + r12]
mov rcx, qword [rcx + 0x10]
mov r11d, r8d
add rax, rcx
mov qword [rsp + 0x88], rcx
mov ecx, dword [r10 + 0x100]
mov qword [rsp + 0x90], rdx
mov edx, ebx
shl edx, cl
mov ecx, dword [r10 + 0x1c]
sub r11d, edx
mov qword [rsp + 0x98], rax
mov eax, r8d
sub eax, ecx
mov qword [rsp + 0x70], r9
cmp eax, edx
mov qword [rsp + 0x78], r13
mov eax, dword [r10 + 0x10c]
mov rdx, qword [r10 + 0x60]
cmovbe r11d, ecx
cmp dword [r10 + 0x28], 0
mov dword [rsp + 0x40], r14d
cmovne r11d, ecx
mov qword [rsp + 0x48], r12
mov ecx, 5
mov dword [rsp + 0x30], r8d
cmp eax, ecx
mov dword [rsp + 0x68], r11d
mov qword [rsp + 0x80], rdx
cmovb ecx, eax
mov dword [rsp + 0x44], 0x1f
shl ebx, cl
xor esi, esi
mov dword [rsp + 0x3c], ebx
cmp dword [r10 + 0x12c], esi
jne 0x18005be31
mov r11d, dword [r10 + 0x2c]
mov eax, r8d
mov ecx, dword [rsp + 0x40]
sub eax, r11d
mov qword [rsp + 0x50], r13
mov r14, r9
lea r13d, [rbp + 0x35]
mov rdx, r12
cmp eax, 0x180
jbe 0x18005bd04
lea eax, [r11 + 0x60]
cmp r11d, eax
jae 0x18005bc22
mov ebx, r13d
lea rdi, [r12 + 8]
mov r13, qword [rsp + 0x78]
sub ebx, ecx
add rdi, r11
mov r14d, r11d
movabs r15, 0xcf1bbcdcbb000000
mov r12d, eax
mov rbp, r9
nop word [rax + rax]
mov rdx, qword [rdi]
mov ecx, ebx
imul rdx, r15
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rbp + rax*4]
prefetcht0 byte [rbp + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
mov rax, r14
lea rdi, [rdi + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov dword [r10 + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 3
and eax, 0x1fffffe0
movzx ecx, byte [rax + r13]
lea rdx, [rax + r13]
dec ecx
mov r8d, eax
and ecx, 0x1f
mov eax, esi
cmove eax, dword [rsp + 0x44]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rbp + rax*4], r11d
inc r11d
cmp r11d, r12d
jb 0x18005bb80
mov rdx, qword [r10 + 8]
mov ebp, 3
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x3c]
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0x48]
lea r13d, [rbp + 0x35]
mov r8d, dword [rsp + 0x30]
mov rcx, qword [r10 + 0x38]
lea r11d, [r8 - 0x20]
mov r14, qword [r10 + 0x70]
lea rax, [rdi + 1]
mov qword [rsp + 0x50], rcx
lea r9, [r12 + r11]
mov ecx, dword [r10 + 0x34]
mov dword [rsp + 0x34], ecx
mov ecx, eax
sub ecx, r11d
mov r8d, r11d
sub ecx, r12d
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, esi
cmp ecx, eax
cmova ecx, eax
lea eax, [rcx + r11]
cmp r11d, eax
jae 0x18005bcf6
mov r15, qword [rsp + 0x50]
mov ebp, r13d
sub ebp, dword [rsp + 0x34]
movabs rbx, 0xcf1bbcdcbb000000
mov edi, ecx
nop word [rax + rax]
mov rdx, qword [r9]
mov ecx, ebp
imul rdx, rbx
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [r15 + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r10 + rax*4 + 0x40], edx
sub rdi, 1
jne 0x18005bc90
mov rax, qword [r10 + 0x38]
mov ebp, 3
mov r14, qword [r10 + 0x70]
mov rdx, qword [r10 + 8]
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x3c]
mov r15, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov ecx, dword [r10 + 0x34]
mov r8d, dword [rsp + 0x30]
mov r9, qword [rsp + 0x70]
cmp r11d, r8d
jae 0x18005bdd6
mov r15, qword [rsp + 0x50]
lea r12, [r11 + 8]
mov edi, dword [rsp + 0x30]
sub r13d, ecx
add r12, rdx
mov ebx, r11d
movabs rbp, 0xcf1bbcdcbb000000
nop dword [rax]
mov rdx, qword [r12]
mov ecx, r13d
imul rdx, rbp
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [rax + r15]
mov rax, rbx
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov dword [r10 + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 3
and eax, 0x1fffffe0
movzx ecx, byte [rax + r15]
lea rdx, [rax + r15]
dec ecx
mov r8d, eax
and ecx, 0x1f
mov eax, esi
cmove eax, dword [rsp + 0x44]
inc rbx
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r14 + rax*4], r11d
inc r11d
cmp r11d, edi
jb 0x18005bd30
mov rdi, qword [rsp + 0x58]
mov ebp, 3
mov ebx, dword [rsp + 0x3c]
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0x48]
mov r8d, dword [rsp + 0x30]
lea r13d, [rbp + 0x35]
mov r9, qword [rsp + 0x70]
sub r13d, dword [rsp + 0x40]
movabs rax, 0xcf1bbcdcbb000000
movzx ecx, r13b
mov dword [r10 + 0x2c], r8d
mov rdx, qword [r8 + r12 + 8]
imul rdx, rax
xor rdx, qword [rsp + 0x80]
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
mov ecx, eax
prefetcht0 byte [r9 + rax*4]
prefetcht0 byte [r9 + rax*4 + 0x40]
mov rax, qword [rsp + 0x78]
prefetcht0 byte [rcx + rax]
and r8d, 7
mov r11d, dword [r10 + r8*4 + 0x40]
mov dword [r10 + r8*4 + 0x40], edx
jmp 0x18005be54
mov r11, qword [rdi]
movabs rax, 0xcf1bbcdcbb000000
imul r11, rax
mov ecx, 0x38
mov dword [r10 + 0x2c], r8d
xor r11, rdx
sub ecx, r14d
shr r11, cl
add dword [r10 + 0x68], r11d
mov eax, r11d
shr eax, 3
mov r14, rsi
and eax, 0x1fffffe0
lea rcx, [r9 + rax*4]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x78]
add rcx, rax
movsx eax, r11b
mov qword [rsp + 0x80], rcx
movdqu xmm1, xmmword [rcx + 0x10]
movzx r13d, byte [rcx]
movdqu xmm0, xmmword [rcx]
mov edx, r13d
movd xmm2, eax
and edx, 0x1f
punpcklbw xmm2, xmm2
mov ecx, edx
neg ecx
punpcklwd xmm2, xmm2
and ecx, 0x1f
pshufd xmm2, xmm2, 0
pcmpeqb xmm1, xmm2
pcmpeqb xmm0, xmm2
pmovmskb eax, xmm0
pmovmskb r8d, xmm1
shl r8d, 0x10
or r8d, eax
mov r9d, r8d
mov eax, r8d
shl r9d, cl
mov ecx, edx
mov rdx, qword [rsp + 0x48]
shr rax, cl
or r9, rax
jbe 0x18005bf38
mov r8d, dword [rsp + 0x38]
mov r15, qword [rsp + 0x88]
mov edi, dword [rsp + 0x68]
nop
test ebx, ebx
je 0x18005bf2e
bsf rcx, r9
add ecx, r13d
and ecx, 0x1f
mov ecx, dword [rdx + rcx*4]
je 0x18005bf25
cmp ecx, edi
jb 0x18005bf2e
cmp ecx, r8d
jb 0x18005bf13
prefetcht0 byte [rcx + r12]
jmp 0x18005bf18
prefetcht0 byte [rcx + r15]
mov dword [rsp + r14*4 + 0xb0], ecx
inc r14
dec ebx
lea rax, [r9 - 1]
and r9, rax
ja 0x18005bef0
mov rdi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
lea ecx, [r13 - 1]
mov eax, esi
and ecx, 0x1f
mov r8d, 0x1f
cmove eax, r8d
add ecx, eax
mov rax, qword [rsp + 0x80]
mov byte [rax], cl
mov byte [rcx + rax], r11b
mov eax, dword [r10 + 0x2c]
mov dword [rdx + rcx*4], eax
inc dword [r10 + 0x2c]
test r14, r14
je 0x18005c014
mov r13d, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
nop dword [rax + rax]
mov ebx, dword [rsp + rsi*4 + 0xb0]
cmp ebx, ecx
jb 0x18005bfa6
mov eax, dword [rdi + rbp - 3]
lea rdx, [rbx + r12]
cmp dword [rdx + rbp - 3], eax
jne 0x18005c008
mov r8, r15
mov rcx, rdi
call fcn.18004f920
jmp 0x18005bfe0
mov rdx, qword [rsp + 0x88]
mov eax, dword [rdi]
add rdx, rbx
cmp dword [rdx], eax
jne 0x18005c008
mov rax, qword [rsp + 0x90]
lea rcx, [rdi + 4]
mov r9, qword [rsp + 0x98]
add rdx, 4
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.18004f9c0
add rax, 4
cmp rax, rbp
jbe 0x18005c004
mov rdx, qword [rsp + 0xa0]
mov ecx, r13d
sub ecx, ebx
mov rbp, rax
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + rdi]
cmp rcx, r15
je 0x18005c017
mov ecx, dword [rsp + 0x38]
inc rsi
cmp rsi, r14
jb 0x18005bf80
mov rax, rbp
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800cec10
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret