Function at 0x180048240
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, 0x1d8
mov rax, qword [0x1800ed0f8]
xor rax, rsp
mov qword [rsp + 0x1c0], 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 + 0xb0], rax
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x50], r8
mov r8d, edx
sub r8d, r12d
mov qword [rsp + 0x98], r9
mov r9d, edx
mov qword [rsp + 0x60], rsi
sub r9d, r12d
mov qword [rsp + 0x90], r14
mov edx, ebp
mov qword [rsp + 0x58], r15
shl edx, cl
mov eax, r8d
mov ecx, dword [r11 + 0x1c]
mov r10d, r8d
sub eax, ecx
mov qword [rsp + 0x78], r12
sub r10d, edx
mov dword [rsp + 0x38], r9d
cmp eax, edx
mov dword [rsp + 0x3c], r8d
mov eax, dword [r11 + 0x10c]
mov edx, 0x38
cmovbe r10d, ecx
cmp dword [r11 + 0x28], 0
cmovne r10d, ecx
mov ecx, 6
cmp eax, ecx
mov dword [rsp + 0x68], r10d
mov r10, qword [rdi]
cmovb ecx, eax
mov rax, qword [r11 + 0x60]
shl ebp, cl
mov ecx, edx
sub ecx, dword [rsi + 0x34]
mov rsi, qword [rsi + 0x38]
mov qword [rsp + 0x48], rax
movabs rax, 0xcf1bbcdcbb000000
imul r10, rax
mov dword [rsp + 0x34], ebp
mov rax, r10
mov qword [rsp + 0x80], r10
shr rax, cl
mov ecx, eax
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x60]
shr rcx, 2
and ecx, 0x3fffffc0
add rsi, rcx
mov rax, qword [rax + 0x70]
mov qword [rsp + 0xa0], rsi
lea rax, [rax + rcx*4]
mov qword [rsp + 0xa8], rax
prefetcht0 byte [rax]
prefetcht0 byte [rax + 0x40]
prefetcht0 byte [rsi]
prefetcht0 byte [rsi + 0x20]
xor esi, esi
mov dword [rsp + 0x44], 0x3f
cmp dword [r11 + 0x12c], esi
jne 0x1800486e2
mov r10d, dword [r11 + 0x2c]
mov eax, r9d
mov r8d, dword [rsp + 0x30]
sub eax, r10d
mov rcx, r12
cmp eax, 0x180
jbe 0x1800485ab
lea ecx, [r10 + 0x60]
mov qword [rsp + 0x88], r12
cmp r10d, ecx
jae 0x1800484d5
mov rbp, qword [rsp + 0x90]
lea r15, [r12 + 8]
mov r12, qword [rsp + 0x58]
mov r13d, edx
sub r13d, r8d
mov r14d, r10d
add r15, r10
mov ebx, ecx
movabs rdi, 0xcf1bbcdcbb000000
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r15]
mov ecx, r13d
imul rdx, rdi
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rbp + rax*4]
prefetcht0 byte [rbp + rax*4 + 0x40]
prefetcht0 byte [r12 + rax]
prefetcht0 byte [r12 + rax + 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 [r12 + r8]
lea rdx, [r12 + r8]
dec ecx
and ecx, 0x3f
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], r10d
inc r10d
cmp r10d, ebx
jb 0x180048420
mov rax, qword [r11 + 8]
mov ebx, 3
mov rdi, qword [rsp + 0x70]
mov ebp, dword [rsp + 0x34]
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x78]
lea edx, [rbx + 0x35]
mov r9d, dword [rsp + 0x38]
mov qword [rsp + 0x88], rax
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 + 0x40], 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 0x180048595
mov ebp, edx
mov r13d, ecx
sub ebp, dword [rsp + 0x40]
movabs rdi, 0xcf1bbcdcbb000000
nop word [rax + rax]
mov rdx, qword [r9]
mov ecx, ebp
imul rdx, rdi
xor rdx, qword [r11 + 0x60]
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 0x180048530
mov r14, qword [r11 + 0x70]
mov r15, qword [r11 + 0x38]
mov rcx, qword [r11 + 8]
mov rdi, qword [rsp + 0x70]
mov ebp, dword [rsp + 0x34]
mov r13, qword [rsp + 0x50]
jmp 0x18004859d
mov rcx, qword [rsp + 0x88]
mov r8d, dword [r11 + 0x34]
mov edx, 0x38
mov r9d, dword [rsp + 0x38]
cmp r10d, r9d
jae 0x180048677
mov ebx, dword [rsp + 0x38]
lea r13, [r10 + 8]
mov ebp, edx
mov r12d, r10d
sub ebp, r8d
movabs rdi, 0xcf1bbcdcbb000000
add r13, rcx
mov rdx, qword [r13]
mov ecx, ebp
imul rdx, rdi
xor rdx, qword [r11 + 0x60]
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 + 0x44]
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, ebx
jb 0x1800485d1
mov rdi, qword [rsp + 0x70]
mov ebx, 3
mov ebp, dword [rsp + 0x34]
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x78]
mov r9d, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x3c]
movabs rax, 0xcf1bbcdcbb000000
mov r14, qword [rsp + 0x90]
mov ecx, 0x38
sub ecx, dword [rsp + 0x30]
mov dword [r11 + 0x2c], r9d
mov rdx, qword [r8 + r12 + 8]
imul rdx, rax
xor rdx, qword [rsp + 0x48]
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 + 0x58]
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 0x1800486f5
sub edx, dword [rsp + 0x30]
xor r10, qword [rsp + 0x48]
movzx ecx, dl
shr r10, cl
mov dword [r11 + 0x2c], r8d
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 + 0x58], r9
lea rcx, [r14 + rax*4]
movzx eax, byte [r9]
mov dword [rsp + 0x30], eax
mov r14, rsi
mov qword [rsp + 0x48], 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 + 0x48]
jbe 0x1800487fc
mov edx, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x68]
nop
test ebp, ebp
je 0x1800487f3
bsf rcx, r8
add ecx, edx
and ecx, 0x3f
je 0x1800487ea
mov ecx, dword [r9 + rcx*4]
cmp ecx, r13d
jb 0x1800487f3
prefetcht0 byte [rcx + r12]
mov dword [rsp + r15*4 + 0xc0], ecx
inc r15
dec ebp
lea rax, [r8 - 1]
and r8, rax
ja 0x1800487c0
mov r13, qword [rsp + 0x50]
mov dword [rsp + 0x34], 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 + 0x58]
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 0x180048896
mov rsi, qword [rsp + 0x78]
mov ebp, dword [rsp + 0x3c]
nop word [rax + rax]
mov r12d, dword [rsp + r14*4 + 0xc0]
mov eax, dword [rbx + rdi - 3]
lea rdx, [rsi + r12]
cmp dword [rdx + rbx - 3], eax
jne 0x180048888
mov r8, r13
mov rcx, rdi
call fcn.180037e00
mov rcx, rax
cmp rax, rbx
jbe 0x180048888
mov rdx, qword [rsp + 0x98]
mov rbx, rax
mov eax, ebp
sub eax, r12d
add eax, 3
mov qword [rdx], rax
lea rax, [rbx + rdi]
cmp rax, r13
je 0x180048890
inc r14
cmp r14, r15
jb 0x180048840
mov ebp, dword [rsp + 0x34]
xor esi, esi
mov r9, qword [rsp + 0xa0]
mov r14, rsi
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
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 + 0x60], rax
add r12d, dword [rsp + 0x6c]
movsx eax, cl
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 0x180048a08
mov rdx, qword [rsp + 0xa8]
test ebp, ebp
je 0x180048994
bsf rcx, r8
add ecx, r10d
and ecx, 0x3f
je 0x18004898b
mov ecx, dword [rdx + rcx*4]
cmp ecx, r11d
jb 0x180048994
prefetcht0 byte [rcx + r15]
mov dword [rsp + rsi*4 + 0xc0], ecx
inc rsi
dec ebp
lea rax, [r8 - 1]
and r8, rax
ja 0x180048962
test rsi, rsi
je 0x180048a08
nop dword [rax]
mov ebp, dword [rsp + r14*4 + 0xc0]
mov eax, dword [rdi]
lea rdx, [r15 + rbp]
cmp dword [rdx], eax
jne 0x180048a00
mov rax, qword [rsp + 0xb0]
lea rcx, [rdi + 4]
mov r9, qword [rsp + 0x60]
add rdx, 4
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.180037ea0
add rax, 4
cmp rax, rbx
jbe 0x180048a00
mov ecx, dword [rsp + 0x3c]
mov rbx, rax
mov rdx, qword [rsp + 0x98]
sub ecx, ebp
sub ecx, r12d
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + rdi]
cmp rcx, r13
je 0x180048a0b
inc r14
cmp r14, rsi
jb 0x1800489a0
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800b2170
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret