Function at 0x180041f50
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, 0x1b8
mov rax, qword [0x1800ec0f8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov r12, qword [rcx + 8]
mov r10, rcx
mov r13, qword [rcx + 0x38]
mov rdi, rdx
mov r14d, dword [rcx + 0x34]
mov esi, 1
mov qword [rsp + 0x70], rdx
mov r15, r8
mov eax, dword [r10 + 0x18]
mov r11d, edi
sub r11d, r12d
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x3c], r11d
mov ebp, 3
mov qword [rsp + 0x58], r8
mov r8d, edi
lea rdx, [rax + r12]
mov qword [rsp + 0x98], r9
mov r9, qword [rcx + 0x70]
sub r8d, r12d
mov rcx, qword [rcx + 0x10]
add rax, rcx
mov qword [rsp + 0x80], rcx
mov ecx, dword [r10 + 0x100]
mov qword [rsp + 0x88], rdx
mov edx, esi
shl edx, cl
mov ecx, dword [r10 + 0x1c]
mov qword [rsp + 0x90], rax
mov eax, r11d
sub eax, ecx
mov qword [rsp + 0x68], r9
sub r11d, edx
mov qword [rsp + 0x50], r13
cmp eax, edx
mov dword [rsp + 0x38], r14d
mov eax, dword [r10 + 0x10c]
mov rdx, qword [r10 + 0x60]
cmovbe r11d, ecx
cmp dword [r10 + 0x28], 0
mov dword [rsp + 0x30], r8d
cmovne r11d, ecx
mov qword [rsp + 0x78], rdx
mov ecx, 6
mov dword [rsp + 0x60], r11d
cmp eax, ecx
mov dword [rsp + 0x40], 0x3f
cmovb ecx, eax
xor ebx, ebx
shl esi, cl
mov dword [rsp + 0x44], esi
cmp dword [r10 + 0x12c], ebx
jne 0x180042344
mov r11d, dword [r10 + 0x2c]
mov eax, r8d
mov ecx, dword [rsp + 0x38]
sub eax, r11d
mov r14, r9
mov rdx, r12
cmp eax, 0x180
jbe 0x180042219
lea eax, [r11 + 0x60]
cmp r11d, eax
jae 0x180042155
mov rbp, qword [rsp + 0x50]
lea r13, [r12 + 8]
mov esi, 0x18
mov r14d, r11d
sub esi, ecx
mov r15d, eax
add r13, r11
mov rdi, r9
nop word [rax + rax]
mov eax, dword [r10 + 0x60]
mov rcx, rsi
imul edx, dword [r13], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rdi + rax*4 + 0x40]
prefetcht0 byte [rax + rbp]
prefetcht0 byte [rax + rbp + 0x20]
mov rax, r14
lea r13, [r13 + 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, 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 [rdi + rax*4], r11d
inc r11d
cmp r11d, r15d
jb 0x1800420b0
mov rdx, qword [r10 + 8]
mov ebp, 3
mov rdi, qword [rsp + 0x70]
mov esi, dword [rsp + 0x44]
mov r15, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x30]
mov ecx, dword [r10 + 0x34]
lea r11d, [r8 - 0x20]
mov r14, qword [r10 + 0x70]
lea rax, [rdi + 1]
mov r13, qword [r10 + 0x38]
lea r9, [r11 + r12]
mov dword [rsp + 0x48], ecx
mov ecx, eax
sub ecx, r11d
mov r8d, r11d
sub ecx, r12d
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, ebx
cmp ecx, eax
cmova ecx, eax
lea eax, [r11 + rcx]
cmp r11d, eax
jae 0x18004220b
mov eax, 0x18
mov r15d, ecx
sub eax, dword [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov ecx, eax
nop word [rax + rax]
mov eax, dword [r10 + 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 [rax + r13]
prefetcht0 byte [rax + r13 + 0x20]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r10 + rax*4 + 0x40], edx
sub r15, 1
jne 0x1800421b0
mov r14, qword [r10 + 0x70]
mov r13, qword [r10 + 0x38]
mov rdx, qword [r10 + 8]
mov r15, qword [rsp + 0x58]
mov ecx, dword [r10 + 0x34]
mov r8d, dword [rsp + 0x30]
mov r9, qword [rsp + 0x68]
cmp r11d, r8d
jae 0x1800422e9
mov edi, dword [rsp + 0x30]
lea rbp, [rdx + 8]
mov esi, 0x18
mov r15d, r11d
sub esi, ecx
add rbp, r15
nop word [rax + rax]
mov eax, dword [r10 + 0x60]
mov rcx, rsi
imul edx, dword [rbp], 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 + r13]
prefetcht0 byte [rax + r13 + 0x20]
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, 2
and r8d, 0x3fffffc0
movzx ecx, byte [r8 + r13]
lea rdx, [r8 + r13]
dec ecx
and ecx, 0x3f
cmove eax, dword [rsp + 0x40]
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 0x180042240
mov rdi, qword [rsp + 0x70]
mov ebp, 3
mov esi, dword [rsp + 0x44]
mov r15, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x30]
mov r9, qword [rsp + 0x68]
mov eax, dword [rsp + 0x78]
mov ecx, 0x18
sub ecx, dword [rsp + 0x38]
mov dword [r10 + 0x2c], r8d
mov r8d, dword [rsp + 0x3c]
imul edx, dword [r8 + r12 + 8], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r9 + rax*4]
prefetcht0 byte [r9 + rax*4 + 0x40]
mov r13, qword [rsp + 0x50]
prefetcht0 byte [rax + r13]
prefetcht0 byte [rax + r13 + 0x20]
and r8d, 7
mov r11d, dword [r10 + r8*4 + 0x40]
mov dword [r10 + r8*4 + 0x40], edx
jmp 0x180042363
imul r11d, dword [rdi], 0x9e3779b1
mov ecx, 0x18
mov eax, edx
sub ecx, r14d
xor r11, rax
mov eax, dword [rsp + 0x3c]
shr r11, cl
mov dword [r10 + 0x2c], eax
add dword [r10 + 0x68], r11d
mov eax, r11d
shr rax, 2
mov r14, rbx
and eax, 0x3fffffc0
movdqu xmm0, xmmword [rax + r13]
lea rcx, [r9 + rax*4]
lea r9, [rax + r13]
mov qword [rsp + 0x50], rcx
movzx r13d, byte [r9]
mov qword [rsp + 0x78], r9
movsx eax, r11b
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, r13d
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
mov rdx, qword [rsp + 0x50]
shr r9, cl
or r8, r9
jbe 0x180042478
mov r9d, dword [rsp + 0x34]
mov r15, qword [rsp + 0x80]
mov edi, dword [rsp + 0x60]
nop dword [rax]
test esi, esi
je 0x18004246e
bsf rcx, r8
add ecx, r13d
and ecx, 0x3f
mov ecx, dword [rdx + rcx*4]
je 0x180042465
cmp ecx, edi
jb 0x18004246e
cmp ecx, r9d
jb 0x180042453
prefetcht0 byte [rcx + r12]
jmp 0x180042458
prefetcht0 byte [rcx + r15]
mov dword [rsp + r14*4 + 0xa0], ecx
inc r14
dec esi
lea rax, [r8 - 1]
and r8, rax
ja 0x180042430
mov rdi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x58]
lea ecx, [r13 - 1]
mov eax, ebx
and ecx, 0x3f
mov r8d, 0x3f
cmove eax, r8d
add ecx, eax
mov rax, qword [rsp + 0x78]
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 0x180042549
mov ecx, dword [rsp + 0x34]
mov r13d, dword [rsp + 0x3c]
mov esi, dword [rsp + rbx*4 + 0xa0]
cmp esi, ecx
jb 0x1800424db
mov eax, dword [rdi + rbp - 3]
lea rdx, [rsi + r12]
cmp dword [rdx + rbp - 3], eax
jne 0x18004253d
mov r8, r15
mov rcx, rdi
call fcn.180036af0
jmp 0x180042515
mov rdx, qword [rsp + 0x80]
mov eax, dword [rdi]
add rdx, rsi
cmp dword [rdx], eax
jne 0x18004253d
mov rax, qword [rsp + 0x88]
lea rcx, [rdi + 4]
mov r9, qword [rsp + 0x90]
add rdx, 4
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.180036b90
add rax, 4
cmp rax, rbp
jbe 0x180042539
mov rdx, qword [rsp + 0x98]
mov ecx, r13d
sub ecx, esi
mov rbp, rax
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + rdi]
cmp rcx, r15
je 0x18004254c
mov ecx, dword [rsp + 0x34]
inc rbx
cmp rbx, r14
jb 0x1800424b5
mov rax, rbp
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1800b1550
add rsp, 0x1b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret