Function at 0x180045dd0
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 [0x1800ee0f8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r11, qword [rcx + 8]
mov r10, rcx
mov r14, qword [rcx + 0x70]
mov rdi, rdx
mov qword [rsp + 0x70], rdx
mov esi, 1
mov qword [rsp + 0x98], r9
mov r15, r8
mov r9d, dword [rcx + 0x34]
mov r12d, edi
mov eax, dword [r10 + 0x18]
sub r12d, r11d
mov dword [rsp + 0x38], eax
mov ebx, r12d
mov qword [rsp + 0x50], r8
mov r13d, edi
mov r8, qword [rcx + 0x38]
sub r13d, r11d
mov rcx, qword [rcx + 0x10]
lea rdx, [rax + r11]
add rax, rcx
mov qword [rsp + 0x90], rcx
mov ecx, dword [r10 + 0x100]
mov ebp, 3
mov qword [rsp + 0xa8], rax
mov eax, r12d
mov qword [rsp + 0xa0], rdx
mov edx, esi
shl edx, cl
mov ecx, dword [r10 + 0x1c]
sub ebx, edx
sub eax, ecx
mov qword [rsp + 0x88], r14
cmp eax, edx
mov qword [rsp + 0x68], r8
mov eax, dword [r10 + 0x10c]
cmovbe ebx, ecx
mov dword [rsp + 0x40], r9d
cmp dword [r10 + 0x28], 0
mov qword [rsp + 0x58], r11
cmovne ebx, ecx
mov dword [rsp + 0x34], r13d
mov ecx, 5
mov dword [rsp + 0x60], ebx
cmp eax, ecx
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x48], 0x1f
cmovb ecx, eax
mov rax, qword [r10 + 0x60]
shl esi, cl
xor ebx, ebx
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x3c], esi
cmp dword [r10 + 0x12c], ebx
jne 0x1800461d8
mov r11d, dword [r10 + 0x2c]
lea edx, [rbp + 0x35]
mov rcx, qword [rsp + 0x58]
mov eax, r13d
sub eax, r11d
mov r12, r8
mov r8, rcx
movabs r13, 0xcf1bbcdcbf9b0000
cmp eax, 0x180
jbe 0x1800460bb
lea r8d, [r11 + 0x60]
mov qword [rsp + 0x80], rcx
cmp r11d, r8d
jae 0x180045ff5
mov rdi, qword [rsp + 0x88]
lea r12, [rcx + 8]
mov rbp, qword [rsp + 0x68]
mov r15d, edx
sub r15d, r9d
mov r14d, r11d
add r12, r11
mov esi, r8d
nop word [rax + rax]
mov rdx, qword [r12]
mov ecx, r15d
imul rdx, r13
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rdi + rax*4 + 0x40]
prefetcht0 byte [rax + rbp]
mov rax, r14
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r10 + rax*4 + 0x40], edx
mov eax, ebx
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + rbp]
lea rdx, [r8 + rbp]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x48]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rdi + rax*4], r11d
inc r11d
cmp r11d, esi
jb 0x180045f50
mov rax, qword [r10 + 8]
mov ebp, 3
mov rdi, qword [rsp + 0x70]
mov esi, dword [rsp + 0x3c]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea edx, [rbp + 0x35]
mov qword [rsp + 0x80], rax
mov r11d, dword [rsp + 0x34]
lea rax, [rdi + 1]
mov r8d, dword [r10 + 0x34]
add r11d, 0xffffffe0
mov r14, qword [r10 + 0x70]
mov r12, qword [r10 + 0x38]
mov dword [rsp + 0x30], eax
sub dword [rsp + 0x30], r11d
lea r9, [r11 + rcx]
sub dword [rsp + 0x30], ecx
mov ecx, dword [rsp + 0x30]
inc ecx
mov dword [rsp + 0x44], r8d
cmp r9, rax
mov r8d, r11d
mov eax, 8
cmova ecx, ebx
cmp ecx, eax
cmova ecx, eax
lea eax, [r11 + rcx]
cmp r11d, eax
jae 0x1800460aa
mov esi, edx
mov r15d, ecx
sub esi, dword [rsp + 0x44]
nop
mov rdx, qword [r9]
mov ecx, esi
imul rdx, r13
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [r12 + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r10 + rax*4 + 0x40], edx
sub r15, 1
jne 0x180046050
mov r14, qword [r10 + 0x70]
mov r12, qword [r10 + 0x38]
mov r8, qword [r10 + 8]
mov esi, dword [rsp + 0x3c]
mov r15, qword [rsp + 0x50]
jmp 0x1800460b2
mov r8, qword [rsp + 0x80]
mov r9d, dword [r10 + 0x34]
mov edx, 0x38
mov eax, dword [rsp + 0x34]
cmp r11d, eax
jae 0x180046176
mov esi, edx
mov r15d, r11d
sub esi, r9d
lea rbp, [r8 + 8]
add rbp, r15
mov edi, eax
nop dword [rax]
mov rdx, qword [rbp]
mov ecx, esi
imul rdx, r13
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [r12 + rax]
mov rax, r15
lea rbp, [rbp + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r10 + rax*4 + 0x40], edx
mov eax, ebx
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + r12]
lea rdx, [r8 + r12]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x48]
inc r15
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 0x1800460e0
mov rdi, qword [rsp + 0x70]
mov ebp, 3
mov esi, dword [rsp + 0x3c]
mov r15, qword [rsp + 0x50]
mov eax, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x4c]
mov ecx, 0x38
sub ecx, dword [rsp + 0x40]
mov r11, qword [rsp + 0x58]
mov r14, qword [rsp + 0x88]
mov dword [r10 + 0x2c], eax
mov rdx, qword [r8 + r11 + 8]
imul rdx, r13
xor rdx, qword [rsp + 0x78]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
mov rcx, qword [rsp + 0x68]
prefetcht0 byte [rax + rcx]
and r8d, 7
mov r9d, dword [r10 + r8*4 + 0x40]
mov dword [r10 + r8*4 + 0x40], edx
mov r8, rcx
jmp 0x1800461fc
mov r9, qword [rdi]
movabs r13, 0xcf1bbcdcbf9b0000
imul r9, r13
mov ecx, 0x38
mov dword [r10 + 0x2c], r12d
sub ecx, dword [rsp + 0x40]
xor r9, rax
shr r9, cl
add dword [r10 + 0x68], r9d
mov eax, r9d
shr rax, 3
and eax, 0x1fffffe0
movdqu xmm0, xmmword [rax + r8]
lea rcx, [rax + r8]
mov qword [rsp + 0x78], rcx
lea r13, [r14 + rax*4]
movzx eax, byte [rcx]
mov r12d, eax
mov dword [rsp + 0x44], eax
movsx eax, r9b
and r12d, 0x1f
mov r14, rbx
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
mov ecx, r12d
neg ecx
pmovmskb eax, xmm1
and ecx, 0x1f
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
shl edx, 0x10
or edx, eax
mov r8d, edx
mov eax, edx
shl r8d, cl
mov ecx, r12d
shr rax, cl
or r8, rax
jbe 0x1800462d9
mov edx, dword [rsp + 0x38]
mov r15, qword [rsp + 0x90]
mov edi, dword [rsp + 0x60]
nop
test esi, esi
je 0x1800462cf
bsf rcx, r8
add ecx, r12d
and ecx, 0x1f
mov ecx, dword [r13 + rcx*4]
je 0x1800462c6
cmp ecx, edi
jb 0x1800462cf
cmp ecx, edx
jb 0x1800462b4
prefetcht0 byte [rcx + r11]
jmp 0x1800462b9
prefetcht0 byte [rcx + r15]
mov dword [rsp + r14*4 + 0xb0], ecx
inc r14
dec esi
lea rax, [r8 - 1]
and r8, rax
ja 0x180046290
mov rdi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x44]
mov eax, ebx
dec ecx
mov edx, 0x1f
and ecx, 0x1f
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x78]
mov byte [rax], cl
mov byte [rcx + rax], r9b
mov eax, dword [r10 + 0x2c]
mov dword [r13 + rcx*4], eax
inc dword [r10 + 0x2c]
test r14, r14
je 0x1800463b3
mov ecx, dword [rsp + 0x38]
mov r12d, dword [rsp + 0x4c]
mov r13, qword [rsp + 0x98]
mov esi, dword [rsp + rbx*4 + 0xb0]
cmp esi, ecx
jb 0x180046346
mov eax, dword [rdi + rbp - 3]
lea rdx, [rsi + r11]
cmp dword [rdx + rbp - 3], eax
jne 0x1800463a1
mov r8, r15
mov rcx, rdi
call fcn.180038ab0
jmp 0x180046380
mov rdx, qword [rsp + 0x90]
mov eax, dword [rdi]
add rdx, rsi
cmp dword [rdx], eax
jne 0x1800463a1
mov rax, qword [rsp + 0xa0]
lea rcx, [rdi + 4]
mov r9, qword [rsp + 0xa8]
add rdx, 4
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.180038b50
add rax, 4
cmp rax, rbp
jbe 0x18004639d
mov ecx, r12d
mov rbp, rax
sub ecx, esi
add ecx, 3
mov qword [r13], rcx
lea rcx, [rax + rdi]
cmp rcx, r15
je 0x1800463b6
mov ecx, dword [rsp + 0x38]
inc rbx
cmp rbx, r14
jae 0x1800463b3
mov r11, qword [rsp + 0x58]
jmp 0x180046320
mov rax, rbp
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800b2e20
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret