Function at 0x18005b410
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 r14d, dword [rcx + 0x34]
mov rsi, rdx
mov qword [rsp + 0x78], rdx
mov edi, 1
mov qword [rsp + 0xa0], r9
mov r15, r8
mov r9, qword [rcx + 0x38]
mov r13d, esi
mov eax, dword [r10 + 0x18]
sub r13d, r12d
mov dword [rsp + 0x3c], eax
mov r11d, r13d
mov qword [rsp + 0x50], r8
mov ebp, 3
mov r8, qword [rcx + 0x70]
mov rcx, qword [rcx + 0x10]
lea rdx, [rax + r12]
add rax, rcx
mov qword [rsp + 0x88], rcx
mov ecx, dword [r10 + 0x100]
mov qword [rsp + 0x98], rax
mov eax, r13d
mov qword [rsp + 0x90], rdx
mov edx, edi
shl edx, cl
mov ecx, dword [r10 + 0x1c]
sub r11d, edx
sub eax, ecx
mov qword [rsp + 0x60], r8
cmp eax, edx
mov qword [rsp + 0x48], r9
mov eax, dword [r10 + 0x10c]
cmovbe r11d, ecx
mov dword [rsp + 0x44], r14d
cmp dword [r10 + 0x28], 0
mov qword [rsp + 0x80], r12
cmovne r11d, ecx
mov dword [rsp + 0x34], r13d
mov ecx, 4
mov dword [rsp + 0x5c], r11d
cmp eax, ecx
mov dword [rsp + 0x38], 0xf
cmovb ecx, eax
mov rax, qword [r10 + 0x60]
shl edi, cl
xor ebx, ebx
movabs rcx, 0xcf1bbcdcbb000000
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x40], edi
cmp dword [r10 + 0x12c], ebx
jne 0x18005b825
mov r11d, dword [r10 + 0x2c]
lea edx, [rbp + 0x35]
mov eax, dword [rsp + 0x34]
mov r14, r8
sub eax, r11d
mov r13, r9
mov r9d, dword [rsp + 0x44]
mov r8, r12
cmp eax, 0x180
jbe 0x18005b709
lea r8d, [r11 + 0x60]
mov qword [rsp + 0x70], r12
cmp r11d, r8d
jae 0x18005b627
mov rbp, qword [rsp + 0x48]
lea r13, [r12 + 8]
mov r12, qword [rsp + 0x60]
mov edi, edx
sub edi, r9d
mov r14d, r11d
add r13, r11
mov r15, rcx
mov esi, r8d
mov rdx, qword [r13]
mov ecx, edi
imul rdx, r15
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [rax + rbp]
mov rax, r14
lea r13, [r13 + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov dword [r10 + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 4
and eax, 0xffffff0
movzx ecx, byte [rax + rbp]
lea rdx, [rax + rbp]
dec ecx
mov r8d, eax
and ecx, 0xf
mov eax, ebx
cmove eax, dword [rsp + 0x38]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r12 + rax*4], r11d
inc r11d
cmp r11d, esi
jb 0x18005b580
mov rax, qword [r10 + 8]
mov ebp, 3
mov rsi, qword [rsp + 0x78]
movabs rcx, 0xcf1bbcdcbb000000
mov edi, dword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov r12, qword [rsp + 0x80]
lea edx, [rbp + 0x35]
mov qword [rsp + 0x70], rax
mov r11d, dword [rsp + 0x34]
lea rax, [rsi + 1]
mov r8d, dword [r10 + 0x34]
add r11d, 0xffffffe0
mov r14, qword [r10 + 0x70]
mov r13, qword [r10 + 0x38]
mov dword [rsp + 0x30], eax
sub dword [rsp + 0x30], r11d
lea r9, [r12 + r11]
sub dword [rsp + 0x30], r12d
inc dword [rsp + 0x30]
cmp r9, rax
mov dword [rsp + 0x58], r8d
mov eax, dword [rsp + 0x30]
cmova eax, ebx
mov dword [rsp + 0x30], 8
cmp eax, 8
mov r8d, r11d
cmova eax, dword [rsp + 0x30]
mov dword [rsp + 0x30], eax
add eax, r11d
cmp r11d, eax
jae 0x18005b6fb
mov edi, dword [rsp + 0x30]
mov ecx, edx
sub ecx, dword [rsp + 0x58]
movabs r15, 0xcf1bbcdcbb000000
nop dword [rax]
mov rdx, qword [r9]
imul rdx, r15
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [rax + r13]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r10 + rax*4 + 0x40], edx
sub rdi, 1
jne 0x18005b6a0
mov r14, qword [r10 + 0x70]
movabs rcx, 0xcf1bbcdcbb000000
mov r13, qword [r10 + 0x38]
mov r8, qword [r10 + 8]
mov edi, dword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
jmp 0x18005b700
mov r8, qword [rsp + 0x70]
mov r9d, dword [r10 + 0x34]
mov edx, 0x38
cmp r11d, dword [rsp + 0x34]
jae 0x18005b7cf
mov edi, dword [rsp + 0x34]
lea rsi, [r11 + 8]
mov r12d, edx
mov ebp, r11d
sub r12d, r9d
movabs r15, 0xcf1bbcdcbb000000
add rsi, r8
mov rdx, qword [rsi]
mov ecx, r12d
imul rdx, r15
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [rax + r13]
mov rax, rbp
lea rsi, [rsi + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov dword [r10 + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 4
and eax, 0xffffff0
movzx ecx, byte [rax + r13]
lea rdx, [rax + r13]
dec ecx
mov r8d, eax
and ecx, 0xf
mov eax, ebx
cmove eax, dword [rsp + 0x38]
inc rbp
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 0x18005b732
mov rsi, qword [rsp + 0x78]
mov ebp, 3
mov edi, dword [rsp + 0x40]
movabs rcx, 0xcf1bbcdcbb000000
mov r15, qword [rsp + 0x50]
mov r12, qword [rsp + 0x80]
mov r13d, dword [rsp + 0x34]
mov dword [r10 + 0x2c], r13d
mov r8d, r13d
mov rdx, qword [r13 + r12 + 8]
imul rdx, rcx
mov ecx, 0x38
sub ecx, dword [rsp + 0x44]
xor rdx, qword [rsp + 0x68]
shr rdx, cl
mov rcx, qword [rsp + 0x60]
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov r9, qword [rsp + 0x48]
prefetcht0 byte [rax + r9]
and r8d, 7
mov r11d, dword [r10 + r8*4 + 0x40]
mov dword [r10 + r8*4 + 0x40], edx
mov r8, rcx
jmp 0x18005b83e
mov r11, qword [rsi]
imul r11, rcx
mov ecx, 0x38
mov dword [r10 + 0x2c], r13d
xor r11, rax
sub ecx, r14d
shr r11, cl
add dword [r10 + 0x68], r11d
mov eax, r11d
shr eax, 4
mov r14, rbx
and eax, 0xffffff0
movdqu xmm0, xmmword [rax + r9]
lea rdx, [rax + r9]
mov qword [rsp + 0x68], rdx
lea rcx, [r8 + rax*4]
movsx eax, r11b
mov qword [rsp + 0x48], rcx
movzx ecx, byte [rdx]
mov dword [rsp + 0x38], ecx
movd xmm1, eax
mov eax, ecx
and eax, 0xf
punpcklbw xmm1, xmm1
mov edx, eax
punpcklwd xmm1, xmm1
mov ecx, eax
pshufd xmm1, xmm1, 0
neg ecx
pcmpeqb xmm0, xmm1
pmovmskb r8d, xmm0
and ecx, 0xf
movzx eax, r8w
shl ax, cl
movzx ecx, dl
mov edx, dword [rsp + 0x38]
movzx r9d, ax
movzx eax, r8w
mov r8, qword [rsp + 0x48]
shr rax, cl
or r9, rax
jbe 0x18005b91a
mov r15, qword [rsp + 0x88]
mov r13d, dword [rsp + 0x5c]
nop dword [rax + rax]
test edi, edi
je 0x18005b910
bsf rcx, r9
add ecx, edx
and ecx, 0xf
mov ecx, dword [r8 + rcx*4]
je 0x18005b907
cmp ecx, r13d
jb 0x18005b910
cmp ecx, dword [rsp + 0x3c]
jb 0x18005b8f5
prefetcht0 byte [rcx + r12]
jmp 0x18005b8fa
prefetcht0 byte [rcx + r15]
mov dword [rsp + r14*4 + 0xb0], ecx
inc r14
dec edi
lea rax, [r9 - 1]
and r9, rax
ja 0x18005b8d0
mov r15, qword [rsp + 0x50]
mov r13d, dword [rsp + 0x34]
lea ecx, [rdx - 1]
mov eax, ebx
and ecx, 0xf
mov edx, 0xf
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x68]
mov byte [rax], cl
mov byte [rcx + rax], r11b
mov eax, dword [r10 + 0x2c]
mov dword [r8 + rcx*4], eax
inc dword [r10 + 0x2c]
test r14, r14
je 0x18005b9e4
mov ecx, dword [rsp + 0x3c]
mov edi, dword [rsp + rbx*4 + 0xb0]
cmp edi, ecx
jb 0x18005b976
mov eax, dword [rsi + rbp - 3]
lea rdx, [rdi + r12]
cmp dword [rdx + rbp - 3], eax
jne 0x18005b9d8
mov r8, r15
mov rcx, rsi
call fcn.18004f920
jmp 0x18005b9b0
mov rdx, qword [rsp + 0x88]
mov eax, dword [rsi]
add rdx, rdi
cmp dword [rdx], eax
jne 0x18005b9d8
mov rax, qword [rsp + 0x90]
lea rcx, [rsi + 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 0x18005b9d4
mov rdx, qword [rsp + 0xa0]
mov ecx, r13d
sub ecx, edi
mov rbp, rax
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + rsi]
cmp rcx, r15
je 0x18005b9e7
mov ecx, dword [rsp + 0x3c]
inc rbx
cmp rbx, r14
jb 0x18005b950
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