Function at 0x180050390
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xd8]
sub rsp, 0x1a0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rax - 0xa8], xmm12
movaps xmmword [rax - 0xb8], xmm13
mov dword [rbp + 0xe8], 0
cmp byte [0x18020bc10], 0
jne 0x180050b68
mov byte [0x18020bc10], 1
mov rax, qword [rcx]
mov qword [rbp + 0xf8], rax
test rax, rax
jne 0x18005060c
movups xmm0, xmmword [0x1800e9b80]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [0x1800e9b90]
movups xmmword [rsp + 0x50], xmm1
mov eax, dword [0x1800e9ba0]
mov dword [rsp + 0x60], eax
xor r8d, r8d
cmp dword [0x18010c090], 2
jl 0x18005056f
movdqa xmm4, xmmword [0x1800f8b30]
movdqa xmm3, xmmword [0x1800f9020]
movdqa xmm5, xmmword [0x1800f8bf0]
movdqa xmm0, xmmword [0x1800f8ce0]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x44]
movdqa xmm6, xmmword [0x1800f8c60]
mov edx, dword [rsp + 0x70]
nop dword [rax]
movd xmm2, r8d
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, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 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, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x20
jl 0x180050480
cmp r8d, 0x24
jge 0x1800505b3
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x24
jl 0x180050580
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800505e0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.180013210
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.180027a40
mov rax, qword [rbp + 0xf8]
xor r8d, r8d
mov dword [rbp + 0xf0], r8d
xor r13d, r13d
movdqa xmm7, xmmword [0x1800f8c50]
movdqa xmm6, xmmword [0x1800f8c00]
movdqa xmm8, xmmword [0x1800f9050]
movdqa xmm9, xmmword [0x1800f8b60]
movdqa xmm10, xmmword [0x1800f9080]
movdqa xmm11, xmmword [0x1800f8c10]
movdqa xmm12, xmmword [0x1800f90b0]
movdqa xmm13, xmmword [0x1800f8c30]
mov rsi, qword [rbp + 0xe8]
mov r12, qword [rbp + 0xe8]
nop dword [rax]
mov rcx, qword [rax + r13*8]
test rcx, rcx
je 0x180050b39
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x10]
movsxd rax, dword [rdx + 0x3c]
cmp rcx, rdx
jbe 0x180050b32
mov eax, dword [rax + rdx + 0x50]
add rax, rdx
cmp rcx, rax
jae 0x180050b32
cmp byte [rcx], 0xe9
jne 0x1800506d9
movsxd rdi, dword [rcx + 1]
add rdi, 5
add rdi, rcx
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x10]
movsxd rax, dword [rdx + 0x3c]
cmp rdi, rdx
jbe 0x1800506d9
mov eax, dword [rax + rdx + 0x50]
add rax, rdx
cmp rdi, rax
jb 0x1800506dc
mov rdi, rcx
movdqu xmmword [rbp - 0x50], xmm13
movdqu xmmword [rbp - 0x40], xmm12
movdqu xmmword [rbp - 0x30], xmm11
mov dword [rbp - 0x20], 0x85
lea r14, [rbp - 0x50]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov ecx, 0x34
call fcn.1800b0e80
mov rbx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
lea rcx, [rax + 0x34]
mov qword [rsp + 0x30], rcx
mov r8d, 0x34
mov rdx, r14
mov rcx, rax
call fcn.1800d79b0
add rbx, 0x34
mov qword [rsp + 0x28], rbx
mov r14d, dword [rbp + 0xe8]
or r14d, 1
mov dword [rbp + 0xe8], r14d
mov r10, qword [rsp + 0x20]
sub rbx, r10
sar rbx, 2
mov r15d, 0x50
sub r15, rbx
je 0x1800507ad
xor edx, edx
xor r9d, r9d
xor r11d, r11d
test rbx, rbx
je 0x1800507a0
xor eax, eax
nop dword [rax]
mov r8d, dword [r10 + rax*4]
lea eax, [rdx + r9]
movzx eax, byte [rax + rdi]
cmp eax, r8d
je 0x180050797
cmp r8d, 0xffffffff
jne 0x1800507f3
inc edx
mov eax, edx
cmp rax, rbx
jb 0x180050780
lea rax, [r11 + rdi]
test rax, rax
jne 0x1800509de
mov rcx, qword [rbp + 0xf8]
mov rcx, qword [rcx + r13*8]
cmp byte [rcx], 0xe9
jne 0x18005080f
movsxd rdi, dword [rcx + 1]
add rdi, 5
add rdi, rcx
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x10]
movsxd rax, dword [rdx + 0x3c]
cmp rdi, rdx
jbe 0x180050808
mov eax, dword [rax + rdx + 0x50]
add rax, rdx
cmp rdi, rax
jae 0x180050808
mov r14d, dword [rbp + 0xe8]
jmp 0x180050812
inc r9d
inc r11
movsxd rax, r9d
cmp rax, r15
jae 0x1800507ad
xor edx, edx
jmp 0x18005077b
mov r14d, dword [rbp + 0xe8]
mov rdi, rcx
movdqu xmmword [rbp - 0x18], xmm10
movdqu xmmword [rbp - 8], xmm6
movdqu xmmword [rbp + 8], xmm9
lea r15, [rbp - 0x18]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
mov ecx, 0x30
call fcn.1800b0e80
mov rbx, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rcx, [rax + 0x30]
mov qword [rsp + 0x50], rcx
mov r8d, 0x30
mov rdx, r15
mov rcx, rax
call fcn.1800d79b0
add rbx, 0x30
mov qword [rsp + 0x48], rbx
or r14d, 2
mov dword [rbp + 0xe8], r14d
mov r11, qword [rsp + 0x40]
sub rbx, r11
sar rbx, 2
mov r15d, 0x50
sub r15, rbx
je 0x1800508f7
xor edx, edx
xor r9d, r9d
xor r10d, r10d
test rbx, rbx
je 0x1800508d0
xor eax, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [r11 + rax*4]
lea eax, [rdx + r9]
movzx eax, byte [rax + rdi]
cmp eax, r8d
je 0x1800508c7
cmp r8d, 0xffffffff
jne 0x1800508e5
inc edx
mov eax, edx
cmp rax, rbx
jb 0x1800508b0
lea rax, [r10 + rdi]
test rax, rax
je 0x1800508f7
mov r10, qword [rsp + 0x20]
mov bl, 1
jmp 0x180050a05
inc r9d
inc r10
movsxd rax, r9d
cmp rax, r15
jae 0x1800508f7
xor edx, edx
jmp 0x1800508a2
mov rax, qword [rbp + 0xf8]
mov rcx, qword [rax + r13*8]
cmp byte [rcx], 0xe9
jne 0x180050944
movsxd rdi, dword [rcx + 1]
add rdi, 5
add rdi, rcx
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x10]
movsxd rax, dword [rdx + 0x3c]
cmp rdi, rdx
jbe 0x18005093d
mov eax, dword [rax + rdx + 0x50]
add rax, rdx
cmp rdi, rax
jae 0x18005093d
mov r14d, dword [rbp + 0xe8]
jmp 0x180050947
mov r14d, dword [rbp + 0xe8]
mov rdi, rcx
movdqu xmmword [rbp - 0x80], xmm8
movdqu xmmword [rbp - 0x70], xmm6
movdqu xmmword [rbp - 0x60], xmm7
lea r15, [rbp - 0x80]
lea rbx, [rbp - 0x50]
mov ecx, 0x30
call fcn.1800b0e80
mov rsi, rax
lea r12, [rax + 0x30]
sub rbx, r15
mov r8, rbx
mov rdx, r15
mov rcx, rax
call fcn.1800d79b0
or r14d, 4
mov dword [rbp + 0xe8], r14d
and rbx, 0xfffffffffffffffc
sar rbx, 2
mov r11d, 0x50
sub r11, rbx
je 0x1800509f9
xor eax, eax
xor r9d, r9d
xor r10d, r10d
test rbx, rbx
je 0x1800509d0
xor ecx, ecx
nop
mov r8d, dword [rsi + rcx*4]
lea ecx, [rax + r9]
movzx ecx, byte [rcx + rdi]
cmp ecx, r8d
je 0x1800509c7
cmp r8d, 0xffffffff
jne 0x1800509e7
inc eax
mov ecx, eax
cmp rcx, rbx
jb 0x1800509b0
lea rax, [r10 + rdi]
test rax, rax
je 0x1800509f9
mov r10, qword [rsp + 0x20]
mov r11, qword [rsp + 0x40]
mov bl, 1
jmp 0x180050a05
inc r9d
inc r10
movsxd rax, r9d
cmp rax, r11
jae 0x1800509f9
xor eax, eax
jmp 0x1800509ac
xor bl, bl
mov r10, qword [rsp + 0x20]
mov r11, qword [rsp + 0x40]
test r14b, 4
je 0x180050a66
and r14d, 0xfffffffb
mov dword [rbp + 0xe8], r14d
test rsi, rsi
je 0x180050a66
sub r12, rsi
sar r12, 2
lea rdx, [r12*4]
cmp rdx, 0x1000
jb 0x180050a4f
add rdx, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x180050bc1
mov rsi, rcx
mov rcx, rsi
call fcn.1800b0e78
xor esi, esi
xor r12d, r12d
mov r10, qword [rsp + 0x20]
mov r11, qword [rsp + 0x40]
test r14b, 2
je 0x180050ad4
and r14d, 0xfffffffd
mov dword [rbp + 0xe8], r14d
test r11, r11
je 0x180050ad4
mov rax, qword [rsp + 0x50]
sub rax, r11
sar rax, 2
lea rdx, [rax*4]
mov rax, r11
cmp rdx, 0x1000
jb 0x180050ab5
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180050bc7
mov rcx, r11
call fcn.1800b0e78
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
mov r10, qword [rsp + 0x20]
test r14b, 1
je 0x180050b23
and r14d, 0xfffffffe
mov dword [rbp + 0xe8], r14d
test r10, r10
je 0x180050b23
mov rdx, qword [rsp + 0x30]
sub rdx, r10
and rdx, 0xfffffffffffffffc
mov rax, r10
cmp rdx, 0x1000
jb 0x180050b1b
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180050bbb
mov rcx, r10
call fcn.1800b0e78
test bl, bl
jne 0x180050bab
mov r8d, dword [rbp + 0xf0]
mov rax, qword [rbp + 0xf8]
inc r8d
mov dword [rbp + 0xf0], r8d
inc r13
cmp r8d, 0x100
jl 0x180050670
cmp qword [0x18020bb20], 0
jne 0x180050b68
mov qword [0x18020bb20], 0xd0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movsxd rax, dword [rbp + 0xf0]
mov qword [0x18020bb20], rax
jmp 0x180050b68
call fcn.1800b6d24
nop
call fcn.1800b6d24
nop
call fcn.1800b6d24
int3