Function at 0x18004c730
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov rax, qword [0x18010b040]
xor rax, rsp
mov qword [rbp - 1], rax
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 9], rdx
xor r12d, r12d
mov rcx, r8
call fcn.180054b40
mov r15, rax
mov edi, r12d
mov rdx, qword [0x18020a8c8]
test rdx, rdx
jne 0x18004c7d8
mov esi, r12d
nop word [rax + rax]
mov r10, qword [rbx]
mov rcx, qword [rbx + 8]
sub rcx, r10
sar rcx, 3
movsxd rax, edi
cmp rax, rcx
jae 0x18004c7d8
mov dword [rsp + 0x20], 0xffffffff
mov r9b, 1
mov r8d, 0x32
mov rdx, r15
mov rcx, qword [r10 + rsi]
call fcn.18004b750
mov rdx, rax
mov qword [0x18020a8c8], rax
inc edi
add rsi, 8
test rax, rax
je 0x18004c790
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x18004c7ec
mov qword [rbx + 8], rax
mov rdx, qword [0x18020a8c8]
test rdx, rdx
je 0x18004c80a
mov rax, qword gs:[0x60]
sub rdx, qword [rax + 0x10]
mov qword [0x18020a8c8], rdx
jmp 0x18004ccfd
movups xmm0, xmmword [0x1800e8110]
movups xmmword [rsp + 0x30], xmm0
movzx eax, word [0x1800e8120]
mov word [rsp + 0x40], ax
mov esi, dword [0x18010b090]
movdqa xmm6, xmmword [0x1800f7bb0]
cmp byte [0x1800e8121], 0
je 0x18004c9ae
mov ecx, r12d
cmp esi, 2
jl 0x18004c96c
movdqa xmm4, xmmword [0x1800f7a90]
movdqa xmm3, xmmword [0x1800f7f30]
movdqa xmm5, xmmword [0x1800f7b20]
movdqa xmm0, xmmword [0x1800f7c00]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x34]
mov r8d, dword [rsp + 0x50]
nop dword [rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x10
jl 0x18004c880
cmp ecx, 0x12
jge 0x18004c9ae
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
sub al, dl
add al, 0x33
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x12
jl 0x18004c980
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x39], xmm1
lea rax, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x18004c9d0
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x49]
call fcn.180013210
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x59], xmm1
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [r14 + r8], 0
jne 0x18004ca00
mov rdx, r14
lea rcx, [rbp - 0x69]
call fcn.180013210
nop
movups xmm0, xmmword [0x1800e85a8]
movups xmmword [rsp + 0x30], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x18004cba3
cmp esi, 2
jl 0x18004cb59
movdqa xmm4, xmmword [0x1800f7a90]
mov edx, r12d
movdqa xmm3, xmmword [0x1800f7f30]
movdqa xmm5, xmmword [0x1800f7b20]
movdqa xmm0, xmmword [0x1800f7c00]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x34]
mov r8d, dword [rsp + 0x50]
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x10
jl 0x18004ca70
jmp 0x18004cba3
lea r9, [rsp + 0x30]
mov r8d, r12d
nop dword [rax]
nop word [rax + rax]
mov eax, 0x92492493
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x10
jl 0x18004cb70
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x79], xmm1
lea rax, [rsp + 0x30]
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x18004cbc0
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180013210
nop
lea r9, [rbp - 0x69]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1800211d0
nop
lea r9, [rbp - 0x49]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x29]
call fcn.1800211d0
xor edx, edx
lea rcx, [rbp - 0x29]
call fcn.180027a80
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x18004cc4c
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004cc46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004cd73
call fcn.1800b0d08
nop
mov rdx, qword [rbp - 0x71]
cmp rdx, 0xf
jbe 0x18004cc89
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004cc83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004cd79
call fcn.1800b0d08
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0xf
jbe 0x18004ccc5
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ccbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004cd7f
call fcn.1800b0d08
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x18004ccfd
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ccf7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004cd67
call fcn.1800b0d08
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x18004cd41
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x18004cd31
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18004cd6d
mov rcx, r8
call fcn.1800b0d08
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1800b0970
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1800b6bb4
nop
call fcn.1800b6bb4
nop
call fcn.1800b6bb4
nop
call fcn.1800b6bb4
nop
call fcn.1800b6bb4
int3