Function at 0x180031f60
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov eax, dword [0x1800e7a98]
xorps xmm0, xmm0
mov edi, dword [0x18010a088]
xor r8d, r8d
mov dword [rbp - 0x19], eax
movzx eax, word [0x1800e7a9c]
mov word [rbp - 0x15], ax
movzx eax, byte [0x1800e7a9e]
mov byte [rbp - 0x13], al
mov qword [rbp - 1], 0
movdqu xmmword [rbp - 0x11], xmm0
movups xmm0, xmmword [0x1800e7a88]
movups xmmword [rbp - 0x29], xmm0
cmp edi, 2
jl 0x1800320ff
movdqa xmm0, xmmword [0x1800f8e40]
lea rcx, [rbp - 0x25]
movdqa xmm5, xmmword [0x1800f8c90]
movdqa xmm4, xmmword [0x1800f8f00]
movdqa xmmword [rbp - 0x39], xmm0
mov edx, dword [rbp - 0x39]
movaps xmmword [rsp + 0x80], xmm6
movdqa xmm6, xmmword [0x1800f8d00]
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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800f8e10]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800f8e10]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x180031ff0
movaps xmm6, xmmword [rsp + 0x80]
cmp r8d, 0x17
jge 0x180032141
movsxd rax, r8d
lea r9, [rbp - 0x29]
add r9, rax
nop dword [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, 0x37
xor byte [r9 - 1], al
cmp r8d, 0x17
jl 0x180032110
xorps xmm0, xmm0
lea rax, [rbp - 0x29]
xorps xmm1, xmm1
mov rbx, 0xffffffffffffffff
movups xmmword [rbp + 7], xmm0
mov r8, rbx
movdqu xmmword [rbp + 0x17], xmm1
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180032160
mov qword [rsp + 0xc8], rsi
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 7]
mov qword [rsp + 0xd0], r12
call fcn.180013f10
lea rcx, [rbp + 7]
call fcn.18004bb40
lea r8, [rbp - 0x39]
mov qword [rbp - 0x39], rax
xor edx, edx
mov dword [rbp - 0x31], 0x54020401
lea rcx, [rbp - 0x11]
call fcn.18004c650
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x1800321e5
mov rcx, qword [rbp + 7]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800321e0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180032819
call fcn.1800b2a4c
mov eax, dword [0x1800e8070]
xor r8d, r8d
movsd xmm0, qword [str.cW_WYnNZ__E]
mov dword [rbp - 0x31], eax
movzx eax, word [0x1800e8074]
mov word [rbp - 0x2d], ax
movzx eax, byte [0x1800e8076]
mov byte [rbp - 0x2b], al
movsd qword [rbp - 0x39], xmm0
cmp edi, 2
jl 0x18003231b
movdqa xmm2, xmmword [0x1800f8c90]
mov r8d, 8
movdqa xmm4, xmmword [0x1800f8f00]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1800f8cb0]
movdqa xmm0, xmm2
mov eax, dword [0x1800f8e40]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f8d00]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800f8e10]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.cW_WYnNZ__E]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rbp - 0x39], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f8d00]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800f8e10]
movd xmm1, dword [rbp - 0x35]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp - 0x35], xmm2
movsxd rax, r8d
lea r9, [rbp - 0x39]
add r9, 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, 0x37
xor byte [r9 - 1], al
cmp r8d, 0xf
jl 0x180032330
xorps xmm0, xmm0
lea rax, [rbp - 0x39]
xorps xmm1, xmm1
mov r8, rbx
movups xmmword [rbp + 7], xmm0
movdqu xmmword [rbp + 0x17], xmm1
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180032380
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.180013f10
lea rcx, [rbp + 7]
call fcn.18004bb40
mov rsi, qword [rbp - 9]
mov r12, qword [rbp - 1]
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x31], 0x20600
cmp rsi, r12
je 0x1800323c9
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rsi], xmm0
add rsi, 0x10
mov qword [rbp - 9], rsi
jmp 0x1800323e1
lea r8, [rbp - 0x39]
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.18004c650
mov r12, qword [rbp - 1]
mov rsi, qword [rbp - 9]
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x18003241c
mov rcx, qword [rbp + 7]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180032417
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180032819
call fcn.1800b2a4c
cmp byte [0x1800e8e5b], 0
movsd xmm0, qword [str.dOPNXTq_I__B]
mov eax, dword [0x1800e8e58]
movsd qword [rbp - 0x39], xmm0
mov dword [rbp - 0x31], eax
je 0x180032591
xor r8d, r8d
cmp edi, 2
jl 0x18003254a
movdqa xmm2, xmmword [0x1800f8c90]
mov r8d, 8
movdqa xmm4, xmmword [0x1800f8f00]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1800f8cb0]
movdqa xmm0, xmm2
mov eax, dword [0x1800f8e40]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f8d00]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800f8e10]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.dOPNXTq_I__B]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rbp - 0x39], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f8d00]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800f8e10]
movd xmm1, dword [rbp - 0x35]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp - 0x35], xmm2
movsxd rax, r8d
lea r9, [rbp - 0x39]
add r9, rax
nop dword [rax]
nop dword [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, 0x37
xor byte [r9 - 1], al
cmp r8d, 0xc
jl 0x180032560
xorps xmm0, xmm0
lea rax, [rbp - 0x39]
xorps xmm1, xmm1
movups xmmword [rbp + 7], xmm0
movdqu xmmword [rbp + 0x17], xmm1
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800325a4
mov r8, rbx
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.180013f10
lea rcx, [rbp + 7]
call fcn.18004bb40
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x31], 0x20600
cmp rsi, r12
je 0x1800325e3
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rsi], xmm0
add rsi, 0x10
jmp 0x1800325fb
lea r8, [rbp - 0x39]
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.18004c650
mov r12, qword [rbp - 1]
mov rsi, qword [rbp - 9]
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x180032636
mov rcx, qword [rbp + 7]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180032631
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180032819
call fcn.1800b2a4c
mov rdi, qword [rbp - 0x11]
xor r9d, r9d
mov qword [rsp + 0x90], r15
mov ebx, 0x28
mov r15, rsi
mov r10d, ebx
sub r15, rdi
sar r15, 4
test r15, r15
je 0x1800326f9
mov qword [rsp + 0x98], r14
xor r8d, r8d
mov edx, ebx
nop dword [rax]
mov rax, r8
mov r11d, r10d
add rax, rax
mov rcx, rdx
mov r14, qword [rdi + rax*8]
cmp r10d, 0x1a0
jge 0x1800326de
nop dword [rax]
mov rax, r8
add rax, rax
mov eax, dword [rdi + rax*8 + 8]
cmp dword [rcx + r14], eax
jne 0x1800326a5
cmp rcx, rdx
jge 0x1800326b8
add r11d, 4
add rcx, 4
cmp r11d, 0x1a0
jl 0x180032690
jmp 0x1800326de
cmovle r11d, r10d
xor eax, eax
cmp rcx, rdx
mov r10d, r11d
cmovle eax, r9d
mov r9d, eax
xor eax, eax
cmp rcx, rdx
cmovle rax, r8
cmovle rcx, rdx
mov r8, rax
mov rdx, rcx
inc r9d
inc r8
movsxd rax, r9d
cmp rax, r15
jb 0x180032670
mov r14, qword [rsp + 0x98]
cmp r10d, ebx
jne 0x180032720
cmp rdi, rsi
je 0x180032720
lea rcx, [rdi + 8]
nop dword [rax]
nop word [rax + rax]
or dword [rcx], 2
lea rcx, [rcx + 0x10]
lea rax, [rcx - 8]
cmp rax, rsi
jne 0x180032710
xor r9d, r9d
test r15, r15
je 0x1800327bc
xor r8d, r8d
mov rdx, rbx
nop dword [rax]
nop word [rax + rax]
mov rax, r8
mov r10d, ebx
add rax, rax
mov r11, qword [rdi + rax*8]
mov rax, rdx
cmp ebx, 0x1a0
jge 0x1800327ae
nop dword [rax + rax]
mov rcx, r8
add rcx, rcx
mov ecx, dword [rdi + rcx*8 + 8]
cmp dword [rax + r11], ecx
jne 0x180032775
cmp rax, rdx
jge 0x180032788
add r10d, 4
add rax, 4
cmp r10d, 0x1a0
jl 0x180032760
jmp 0x1800327ae
cmovle r10d, ebx
xor ecx, ecx
cmp rax, rdx
mov ebx, r10d
cmovle ecx, r9d
mov r9d, ecx
xor ecx, ecx
cmp rax, rdx
cmovle rcx, r8
cmovle rax, rdx
mov r8, rcx
mov rdx, rax
inc r9d
inc r8
movsxd rax, r9d
cmp rax, r15
jb 0x180032740
mov r15, qword [rsp + 0x90]
test rdi, rdi
je 0x1800327fc
sub r12, rdi
mov rax, rdi
and r12, 0xfffffffffffffff0
cmp r12, 0x1000
jb 0x1800327f1
mov rdi, qword [rdi - 8]
add r12, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180032819
mov rdx, r12
mov rcx, rdi
call fcn.1800b2a4c
mov r12, qword [rsp + 0xd0]
mov eax, ebx
mov rsi, qword [rsp + 0xc8]
add rsp, 0xa0
pop rdi
pop rbx
pop rbp
ret
call fcn.1800b96fc
int3