Function at 0x180004020
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov rdx, qword [0x18000e8f0]
lea rcx, [rbp - 0x48]
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov qword [rax + 8], rdi
mov dword [rbp - 0x49], 0x25204058
mov dword [rbp - 0x45], 0xa586c6c
mov byte [rbp - 0x41], 0
call fcn.180001030
movups xmm0, xmmword [0x18000a700]
movzx eax, word [0x18000a728]
xor ebx, ebx
movups xmm1, xmmword [0x18000a710]
mov edi, dword [0x18000e020]
mov r8d, ebx
mov word [rbp - 0x11], ax
lea esi, [rbx + 4]
lea r14d, [rbx + 0x1f]
movups xmmword [rbp - 0x39], xmm0
movsd xmm0, qword [0x18000a720]
movsd qword [rbp - 0x19], xmm0
movups xmmword [rbp - 0x29], xmm1
cmp edi, 2
jl 0x1800041f9
movdqa xmm0, xmmword [0x18000a870]
lea rcx, [rbp - 0x35]
movdqa xmm5, xmmword [0x18000a810]
movdqa xmm4, xmmword [0x18000a880]
movdqa xmm7, xmmword [str.4444]
movdqa xmmword [rbp - 0x49], xmm0
mov edx, dword [rbp - 0x49]
movd xmm6, esi
movd xmm8, r14d
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x18000a840]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x18000a840]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x28
jl 0x1800040f0
cmp r8d, 0x2a
jge 0x180004241
movsxd rax, r8d
lea r9, [rbp - 0x39]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9 - 1], al
cmp r8d, 0x2a
jl 0x180004210
mov r9d, 5
lea rdx, [rbp - 0x39]
lea r8d, [r9 - 4]
call fcn.180003990
mov rdx, rax
mov qword [0x18000e8e0], rax
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x49], 0x2520400c
mov dword [rbp - 0x45], 0xa586c6c
mov byte [rbp - 0x41], bl
call fcn.180001030
mov eax, dword [0x18000a630]
mov r8d, ebx
mov dword [rbp - 0x21], eax
movzx eax, word [0x18000a634]
mov word [rbp - 0x1d], ax
movzx eax, byte [0x18000a636]
mov byte [rbp - 0x1b], al
movups xmm0, xmmword [0x18000a618]
movups xmmword [rbp - 0x39], xmm0
movsd xmm0, qword [0x18000a628]
movsd qword [rbp - 0x29], xmm0
cmp edi, 2
jl 0x1800043f8
movdqa xmm0, xmmword [0x18000a870]
lea rcx, [rbp - 0x35]
movdqa xmm5, xmmword [0x18000a810]
movdqa xmm4, xmmword [0x18000a880]
movdqa xmm7, xmmword [str.4444]
movdqa xmmword [rbp - 0x49], xmm0
mov edx, dword [rbp - 0x49]
movd xmm6, esi
movd xmm8, r14d
nop
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x18000a840]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x18000a840]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x18
jl 0x1800042f0
cmp r8d, r14d
jge 0x180004440
movsxd rax, r8d
lea r10, [rbp - 0x39]
add r10, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
lea r10, [r10 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r10 - 1], al
cmp r8d, r14d
jl 0x180004410
mov r9d, 5
lea rdx, [rbp - 0x39]
lea r8d, [r9 - 4]
call fcn.180003990
mov rdx, rax
mov qword [0x18000e8e8], rax
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x49], 0x25204017
mov dword [rbp - 0x45], 0xa586c6c
mov byte [rbp - 0x41], bl
call fcn.180001030
movzx eax, word [0x18000a6f8]
mov r8d, ebx
mov word [rbp - 0x19], ax
movzx eax, byte [0x18000a6fa]
mov byte [rbp - 0x17], al
movups xmm0, xmmword [0x18000a6d8]
movups xmm1, xmmword [0x18000a6e8]
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm1
cmp edi, 2
jl 0x1800045f9
movdqa xmm0, xmmword [0x18000a870]
lea rcx, [rbp - 0x35]
movdqa xmm5, xmmword [0x18000a810]
movdqa xmm4, xmmword [0x18000a880]
movdqa xmm7, xmmword [str.4444]
movdqa xmmword [rbp - 0x49], xmm0
mov edx, dword [rbp - 0x49]
movd xmm6, esi
movd xmm8, r14d
nop dword [rax]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x18000a840]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x18000a840]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x20
jl 0x1800044f0
cmp r8d, 0x23
jge 0x180004641
movsxd rax, r8d
lea r9, [rbp - 0x39]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9 - 1], al
cmp r8d, 0x23
jl 0x180004610
mov r9d, 7
lea rdx, [rbp - 0x39]
lea r8d, [r9 - 4]
call fcn.180003990
mov rdx, rax
mov qword [0x18000e8d8], rax
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x49], 0x2520403b
mov dword [rbp - 0x45], 0xa586c6c
mov byte [rbp - 0x41], bl
call fcn.180001030
movups xmm0, xmmword [0x18000a638]
movups xmm1, xmmword [0x18000a648]
movups xmmword [rbp - 0x39], xmm0
movups xmm0, xmmword [0x18000a658]
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x19], xmm0
cmp edi, 2
jl 0x1800047e3
movdqa xmm0, xmmword [0x18000a870]
lea rcx, [rbp - 0x35]
movdqa xmm5, xmmword [0x18000a810]
mov edx, ebx
movdqa xmm4, xmmword [0x18000a880]
movdqa xmm7, xmmword [str.4444]
movdqa xmmword [rbp - 0x49], xmm0
mov r8d, dword [rbp - 0x49]
movd xmm6, esi
movd xmm8, r14d
nop word [rax + rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x18000a840]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x18000a840]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x30
jl 0x1800046e0
jmp 0x180004821
lea r9, [rbp - 0x39]
mov r8d, ebx
nop word [rax + rax]
mov eax, 0x4ec4ec4f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9 - 1], al
cmp r8d, 0x30
jl 0x1800047f0
mov r9d, 7
lea rdx, [rbp - 0x39]
lea r8d, [r9 - 4]
call fcn.180003990
mov rdx, rax
mov qword [0x18000e8c8], rax
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x49], 0x25204036
mov dword [rbp - 0x45], 0xa586c6c
mov byte [rbp - 0x41], bl
call fcn.180001030
movups xmm0, xmmword [0x18000a680]
cmp edi, 2
movups xmm1, xmmword [0x18000a690]
mov rdi, qword [rsp + 0xd0]
movups xmmword [rbp - 0x39], xmm0
movups xmm0, xmmword [0x18000a6a0]
movups xmmword [rbp - 0x19], xmm0
movups xmm0, xmmword [0x18000a6c0]
movups xmmword [rbp + 7], xmm0
movsd xmm0, qword [0x18000a6d0]
movups xmmword [rbp - 0x29], xmm1
movups xmm1, xmmword [0x18000a6b0]
movsd qword [rbp + 0x17], xmm0
movups xmmword [rbp - 9], xmm1
jl 0x1800049f1
movdqa xmm0, xmmword [0x18000a870]
lea rcx, [rbp - 0x35]
movdqa xmm5, xmmword [0x18000a810]
movdqa xmm4, xmmword [0x18000a880]
movdqa xmm7, xmmword [str.4444]
movdqa xmmword [rbp - 0x49], xmm0
mov edx, dword [rbp - 0x49]
movd xmm6, esi
movd xmm8, r14d
nop dword [rax]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x18000a840]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x18000a840]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x58
jl 0x1800048f0
jmp 0x180004a2d
lea r10, [rbp - 0x39]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
lea r10, [r10 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, bl
inc ebx
sub al, cl
add al, 0x39
xor byte [r10 - 1], al
cmp ebx, 0x58
jl 0x180004a00
mov r9d, 7
lea rdx, [rbp - 0x39]
lea r8d, [r9 - 4]
call fcn.180003990
mov rdx, rax
mov qword [0x18000e8d0], rax
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x49], 0x2520407e
mov dword [rbp - 0x45], 0xa586c6c
mov byte [rbp - 0x41], 0
call fcn.180001030
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret