Function at 0x180046bd0
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 [0x1800ed0f8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r12, qword [rcx + 8]
mov r11, rcx
mov eax, dword [rcx + 0x34]
mov rdi, rdx
mov r14, qword [rcx + 0x70]
mov r13, r8
mov r15, qword [rcx + 0x38]
mov ebp, 1
mov rsi, qword [r11 + 0xf8]
mov ebx, 3
mov dword [rsp + 0x30], eax
mov eax, dword [rcx + 0x18]
mov ecx, dword [rcx + 0x100]
mov dword [rsp + 0x6c], eax
add rax, r12
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x58], r8
mov r8d, edx
sub r8d, r12d
mov qword [rsp + 0x88], r9
mov r9d, edx
mov qword [rsp + 0x80], r14
sub r9d, r12d
mov qword [rsp + 0x60], r15
mov edx, ebp
mov qword [rsp + 0x70], r12
shl edx, cl
mov eax, r8d
mov ecx, dword [r11 + 0x1c]
mov r10d, r8d
sub eax, ecx
mov dword [rsp + 0x34], r9d
sub r10d, edx
mov dword [rsp + 0x3c], r8d
cmp eax, edx
mov qword [rsp + 0x78], rsi
mov eax, dword [r11 + 0x10c]
cmovbe r10d, ecx
cmp dword [r11 + 0x28], 0
cmovne r10d, ecx
mov ecx, 6
cmp eax, ecx
mov dword [rsp + 0x68], r10d
cmovb ecx, eax
imul edx, dword [rdi], 0x9e3779b1
mov rax, qword [r11 + 0x60]
shl ebp, cl
mov ecx, 0x18
sub ecx, dword [rsi + 0x34]
mov qword [rsp + 0x50], rax
mov rax, qword [rsi + 0x70]
mov r10d, edx
shr r10, cl
mov ecx, r10d
mov qword [rsp + 0x98], r10
mov r10, qword [rsi + 0x38]
shr rcx, 2
and ecx, 0x3fffffc0
mov dword [rsp + 0x38], ebp
add r10, rcx
mov qword [rsp + 0x90], r10
lea rax, [rax + rcx*4]
mov qword [rsp + 0xa0], rax
prefetcht0 byte [rax]
prefetcht0 byte [rax + 0x40]
prefetcht0 byte [r10]
prefetcht0 byte [r10 + 0x20]
xor esi, esi
mov dword [rsp + 0x40], 0x3f
cmp dword [r11 + 0x12c], esi
jne 0x180047018
mov r10d, dword [r11 + 0x2c]
mov eax, r9d
mov r8d, dword [rsp + 0x30]
sub eax, r10d
mov ecx, r8d
mov rdx, r12
cmp eax, 0x180
jbe 0x180046ee4
lea eax, [r10 + 0x60]
cmp r10d, eax
jae 0x180046e28
mov r13, qword [rsp + 0x80]
lea r15, [r12 + 8]
mov rbp, qword [rsp + 0x60]
mov ebx, 0x18
sub ebx, r8d
mov r14d, r10d
add r15, r10
mov r12d, eax
nop dword [rax + rax]
mov eax, dword [r11 + 0x60]
mov rcx, rbx
imul edx, dword [r15], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [rax + rbp]
prefetcht0 byte [rax + rbp + 0x20]
mov rax, r14
lea r15, [r15 + 1]
and eax, 7
mov r9d, dword [r11 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r11 + rax*4 + 0x40], edx
mov eax, esi
shr r8, 2
and r8d, 0x3fffffc0
movzx ecx, byte [r8 + rbp]
lea rdx, [r8 + rbp]
dec ecx
and ecx, 0x3f
cmove eax, dword [rsp + 0x40]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r13 + rax*4], r10d
inc r10d
cmp r10d, r12d
jb 0x180046d80
mov rdx, qword [r11 + 8]
mov ebx, 3
mov ebp, dword [rsp + 0x38]
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x70]
mov r9d, dword [rsp + 0x34]
mov ecx, dword [r11 + 0x34]
lea r10d, [r9 - 0x20]
mov r14, qword [r11 + 0x70]
lea rax, [rdi + 1]
mov r15, qword [r11 + 0x38]
lea r9, [r10 + r12]
mov dword [rsp + 0x48], ecx
mov ecx, eax
sub ecx, r10d
mov r8d, r10d
sub ecx, r12d
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, esi
cmp ecx, eax
cmova ecx, eax
lea eax, [r10 + rcx]
cmp r10d, eax
jae 0x180046edb
mov eax, 0x18
mov r13d, ecx
sub eax, dword [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov ecx, eax
nop dword [rax]
mov eax, dword [r11 + 0x60]
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [r15 + rax]
prefetcht0 byte [r15 + rax + 0x20]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r11 + rax*4 + 0x40], edx
sub r13, 1
jne 0x180046e80
mov r14, qword [r11 + 0x70]
mov r15, qword [r11 + 0x38]
mov rdx, qword [r11 + 8]
mov r13, qword [rsp + 0x58]
mov ecx, dword [r11 + 0x34]
mov r9d, dword [rsp + 0x34]
cmp r10d, r9d
jae 0x180046fb5
mov ebp, dword [rsp + 0x34]
lea r13, [r10 + 8]
mov ebx, 0x18
mov r12d, r10d
sub ebx, ecx
add r13, rdx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r11 + 0x60]
mov rcx, rbx
imul edx, dword [r13], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [rax + r15]
prefetcht0 byte [rax + r15 + 0x20]
mov rax, r12
lea r13, [r13 + 1]
and eax, 7
mov r9d, dword [r11 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r11 + rax*4 + 0x40], edx
mov eax, esi
shr r8, 2
and r8d, 0x3fffffc0
movzx ecx, byte [r8 + r15]
lea rdx, [r8 + r15]
dec ecx
and ecx, 0x3f
cmove eax, dword [rsp + 0x40]
inc r12
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r14 + rax*4], r10d
inc r10d
cmp r10d, ebp
jb 0x180046f10
mov ebp, dword [rsp + 0x38]
mov ebx, 3
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x70]
mov r9d, dword [rsp + 0x34]
mov eax, dword [rsp + 0x50]
mov ecx, 0x18
sub ecx, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x3c]
mov r14, qword [rsp + 0x80]
mov dword [r11 + 0x2c], r9d
imul edx, dword [r8 + r12 + 8], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
mov r15, qword [rsp + 0x60]
prefetcht0 byte [rax + r15]
prefetcht0 byte [rax + r15 + 0x20]
and r8d, 7
mov r10d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x180047032
mov eax, dword [rsp + 0x50]
mov ecx, 0x18
sub ecx, dword [rsp + 0x30]
mov r10d, edx
xor r10, rax
mov dword [r11 + 0x2c], r8d
shr r10, cl
add dword [r11 + 0x68], r10d
mov eax, r10d
shr rax, 2
and eax, 0x3fffffc0
movdqu xmm0, xmmword [rax + r15]
lea r9, [rax + r15]
mov r15, rsi
mov qword [rsp + 0x60], r9
lea rcx, [r14 + rax*4]
movzx eax, byte [r9]
mov dword [rsp + 0x30], eax
mov r14, rsi
mov qword [rsp + 0x50], rcx
movsx eax, r10b
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [r9 + 0x10]
pmovmskb r8d, xmm1
movdqu xmm1, xmmword [r9 + 0x20]
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
pcmpeqb xmm1, xmm2
movdqu xmm0, xmmword [r9 + 0x30]
pmovmskb eax, xmm1
pcmpeqb xmm0, xmm2
pmovmskb r9d, xmm0
shl r9, 0x10
or r9, rax
movsxd rax, edx
mov edx, dword [rsp + 0x30]
shl r9, 0x10
and edx, 0x3f
or r9, rax
mov ecx, edx
shl r9, 0x10
neg ecx
movsxd rax, r8d
and ecx, 0x3f
or r9, rax
mov r8, r9
shl r8, cl
mov ecx, edx
shr r9, cl
or r8, r9
mov r9, qword [rsp + 0x50]
jbe 0x18004713c
mov edx, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x68]
nop dword [rax]
test ebp, ebp
je 0x180047133
bsf rcx, r8
add ecx, edx
and ecx, 0x3f
je 0x18004712a
mov ecx, dword [r9 + rcx*4]
cmp ecx, r13d
jb 0x180047133
prefetcht0 byte [rcx + r12]
mov dword [rsp + r15*4 + 0xb0], ecx
inc r15
dec ebp
lea rax, [r8 - 1]
and r8, rax
ja 0x180047100
mov r13, qword [rsp + 0x58]
mov dword [rsp + 0x38], ebp
mov ecx, dword [rsp + 0x30]
mov eax, esi
dec ecx
mov edx, 0x3f
and ecx, 0x3f
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x60]
mov byte [rax], cl
mov byte [rcx + rax], r10b
mov eax, dword [r11 + 0x2c]
mov dword [r9 + rcx*4], eax
inc dword [r11 + 0x2c]
test r15, r15
je 0x1800471d6
mov rsi, qword [rsp + 0x70]
mov ebp, dword [rsp + 0x3c]
nop word [rax + rax]
mov r12d, dword [rsp + r14*4 + 0xb0]
mov eax, dword [rbx + rdi - 3]
lea rdx, [rsi + r12]
cmp dword [rdx + rbx - 3], eax
jne 0x1800471c8
mov r8, r13
mov rcx, rdi
call fcn.180037e00
mov rcx, rax
cmp rax, rbx
jbe 0x1800471c8
mov rdx, qword [rsp + 0x88]
mov rbx, rax
mov eax, ebp
sub eax, r12d
add eax, 3
mov qword [rdx], rax
lea rax, [rbx + rdi]
cmp rax, r13
je 0x1800471d0
inc r14
cmp r14, r15
jb 0x180047180
mov ebp, dword [rsp + 0x38]
xor esi, esi
mov r9, qword [rsp + 0x90]
mov r14, rsi
mov rax, qword [rsp + 0x78]
movdqu xmm0, xmmword [r9]
movzx r10d, byte [r9]
mov r15, qword [rax + 8]
mov r11d, dword [rax + 0x18]
mov r12d, r15d
mov rax, qword [rax]
sub r12d, eax
mov qword [rsp + 0x78], rax
movsx eax, byte [rsp + 0x98]
add r12d, dword [rsp + 0x6c]
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [r9 + 0x10]
pmovmskb r8d, xmm1
movdqu xmm1, xmmword [r9 + 0x20]
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
pcmpeqb xmm1, xmm2
movdqu xmm0, xmmword [r9 + 0x30]
pmovmskb eax, xmm1
pcmpeqb xmm0, xmm2
pmovmskb r9d, xmm0
shl r9, 0x10
or r9, rax
movsxd rax, edx
shl r9, 0x10
mov edx, r10d
or r9, rax
and edx, 0x3f
movsxd rax, r8d
mov ecx, edx
shl r9, 0x10
neg ecx
or r9, rax
and ecx, 0x3f
mov r8, r9
shl r8, cl
mov ecx, edx
shr r9, cl
or r8, r9
jbe 0x180047348
mov rdx, qword [rsp + 0xa0]
nop
test ebp, ebp
je 0x1800472d2
bsf rcx, r8
add ecx, r10d
and ecx, 0x3f
je 0x1800472c9
mov ecx, dword [rdx + rcx*4]
cmp ecx, r11d
jb 0x1800472d2
prefetcht0 byte [rcx + r15]
mov dword [rsp + rsi*4 + 0xb0], ecx
inc rsi
dec ebp
lea rax, [r8 - 1]
and r8, rax
ja 0x1800472a0
test rsi, rsi
je 0x180047348
nop word [rax + rax]
mov ebp, dword [rsp + r14*4 + 0xb0]
mov eax, dword [rdi]
lea rdx, [r15 + rbp]
cmp dword [rdx], eax
jne 0x180047340
mov rax, qword [rsp + 0xa8]
lea rcx, [rdi + 4]
mov r9, qword [rsp + 0x78]
add rdx, 4
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.180037ea0
add rax, 4
cmp rax, rbx
jbe 0x180047340
mov ecx, dword [rsp + 0x3c]
mov rbx, rax
mov rdx, qword [rsp + 0x88]
sub ecx, ebp
sub ecx, r12d
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + rdi]
cmp rcx, r13
je 0x18004734b
inc r14
cmp r14, rsi
jb 0x1800472e0
mov rax, rbx
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800b2170
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret