Function at 0x18004d590
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x18010c040]
xor rax, rsp
mov qword [rbp + 0x10], rax
xor r12d, r12d
mov edi, r12d
mov r15d, r12d
mov r9, qword [0x18020b800]
mov r10, qword [0x18020b7f8]
movzx r11d, byte [0x18020b7f0]
nop dword [rax]
test r11b, r11b
je 0x18004d600
test r10, r10
je 0x18004d60b
mov eax, dword [r10 + 0x14]
jmp 0x18004d60e
test r9, r9
je 0x18004d60b
mov eax, dword [r9 + 0xc]
jmp 0x18004d60e
mov eax, r12d
cmp edi, eax
jge 0x18004de8e
test r11b, r11b
je 0x18004d656
test r10, r10
je 0x18004d6c9
test edi, edi
js 0x18004d66e
cmp edi, dword [r10 + 0x14]
jg 0x18004d66e
mov eax, edi
cdq
movzx edx, dx
add eax, edx
mov ecx, eax
movzx eax, ax
sub eax, edx
sar ecx, 0x10
movsxd r8, ecx
mov rdx, qword [r10]
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rdx + r8*8]
mov rsi, qword [rax + rcx*8]
jmp 0x18004d671
test r9, r9
je 0x18004d6c9
test edi, edi
js 0x18004d66e
cmp edi, dword [r9 + 0xc]
jg 0x18004d66e
mov rax, qword [r9]
mov rsi, qword [r15 + rax]
jmp 0x18004d671
mov rsi, r12
test rsi, rsi
je 0x18004d6c9
call fcn.180028db0
mov r14, rax
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x18004d6b3
cmp rbx, r14
je 0x18004d6a9
mov rcx, rbx
call fcn.18004a930
test al, al
je 0x18004d6b3
mov eax, dword [0x18020b7ec]
mov rbx, qword [rax + rbx]
test rbx, rbx
jne 0x18004d687
jmp 0x18004d6b3
mov eax, dword [rsi + 8]
shr eax, 4
test al, 1
je 0x18004d6d4
mov r9, qword [0x18020b800]
mov r10, qword [0x18020b7f8]
movzx r11d, byte [0x18020b7f0]
inc edi
add r15, 0x18
jmp 0x18004d5f0
mov r15, qword [rsi]
test r15, r15
je 0x18004de8e
mov rsi, 0xffffffffffffffff
mov qword [rbp - 0x10], rsi
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 8], xmm1
mov qword [rbp + 8], r12
xor eax, eax
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rax
movups xmm1, xmmword [0x1800e7e58]
movups xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [0x1800e7e68]
movups xmmword [rbp - 0x40], xmm0
mov eax, dword [0x1800e7e78]
mov dword [rbp - 0x30], eax
movzx eax, word [0x1800e7e7c]
mov word [rbp - 0x2c], ax
mov r8d, r12d
movdqa xmm7, xmmword [0x1800f8b00]
movdqa xmm4, xmmword [0x1800f8bf0]
movdqa xmm5, xmmword [0x1800f8a70]
movdqa xmm8, xmmword [0x1800f8be0]
mov r13d, dword [0x18010c090]
cmp r13d, 2
jl 0x18004d861
lea rcx, [rbp - 0x50]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm8
paddw xmm3, xmm2
movq xmm0, qword [rcx]
xorps xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm8
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
xorps xmm3, xmm0
movq qword [rcx + 8], xmm3
add r8d, 8
lea rcx, [rcx + 0x10]
cmp r8d, 0x10
jl 0x18004d770
cmp r8d, 0x13
jge 0x18004d8a3
movsxd rax, r8d
lea r9, [rbp - 0x50]
lea r9, [r9 + rax*2]
nop dword [rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, r8w
sub ax, cx
add ax, 0x38
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0x13
jl 0x18004d870
mov qword [rsp + 0x40], r12
mov r10, qword [0x18020b8c8]
test r10, r10
je 0x18004d914
mov rax, qword [0x18020b8d0]
test rax, rax
jne 0x18004d8de
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x10]
mov rax, qword [0x18020b8c8]
add rax, rcx
mov qword [0x18020b8d0], rax
mov r8b, 1
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call rax
mov r10, qword [0x18020b8c8]
movdqa xmm7, xmmword [0x1800f8b00]
movdqa xmm4, xmmword [0x1800f8bf0]
movdqa xmm5, xmmword [0x1800f8a70]
movdqa xmm8, xmmword [0x1800f8be0]
movzx eax, word [0x1800e7618]
movsd xmm0, qword [0x1800e7610]
movups xmm6, xmmword [0x1800e7600]
mov word [rsp + 0x78], ax
movsd qword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm6
mov r8d, r12d
cmp r13d, 2
jl 0x18004da13
movdqa xmm1, xmm5
punpckldq xmm1, xmm5
pmuldq xmm1, xmm4
movdqa xmm0, xmm5
punpckhdq xmm0, xmm5
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm5, xmm0
pshufhw xmm0, xmm5, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm8
paddw xmm3, xmm2
movq xmm1, xmm6
xorps xmm3, xmm1
movq qword [rsp + 0x60], xmm3
movdqa xmm2, xmmword [0x1800f8a90]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm8
paddw xmm3, xmm2
movq xmm0, qword [rsp + 0x68]
xorps xmm3, xmm0
movq qword [rsp + 0x68], xmm3
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x60]
lea r9, [r9 + rax*2]
nop
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, r8w
sub ax, cx
add ax, 0x38
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0xd
jl 0x18004da20
mov qword [rsp + 0x48], r12
test r10, r10
je 0x18004da96
mov rax, qword [0x18020b8d0]
test rax, rax
jne 0x18004da87
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x10]
mov rax, qword [0x18020b8c8]
add rax, rcx
mov qword [0x18020b8d0], rax
mov r8b, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call rax
mov ecx, 0x20
xorps xmm0, xmm0
lea rax, [rbp - 0x10]
mov r14d, ecx
mov qword [rbp - 0x18], r12
movdqu xmmword [rbp - 0x28], xmm0
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], rax
call fcn.1800b0f50
mov rbx, rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
lea rcx, [rax + 0x20]
mov qword [rbp - 0x18], rcx
mov r8d, r14d
mov rdx, rdi
mov rcx, rax
call fcn.1800d7a80
lea rax, [rbx + 0x20]
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 8]
call fcn.18002f700
mov r12d, dword [rbp - 0x10]
add r12d, 8
xor r14d, r14d
mov rcx, qword [r15]
test rcx, rcx
je 0x18004dc03
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x10]
movsxd rax, dword [rdx + 0x3c]
cmp rcx, rdx
jbe 0x18004dc03
mov eax, dword [rax + rdx + 0x50]
add rax, rdx
cmp rcx, rax
jae 0x18004dc03
cmp byte [rcx], 0xe9
jne 0x18004db6b
movsxd rbx, dword [rcx + 1]
add rbx, 5
add rbx, rcx
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x10]
movsxd rax, dword [rdx + 0x3c]
cmp rbx, rdx
jbe 0x18004db6b
mov eax, dword [rax + rdx + 0x50]
add rax, rdx
cmp rbx, rax
jb 0x18004db6e
mov rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x2c], xmm0
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x24], 0xb9
mov dword [rsp + 0x20], 0x80
mov ecx, 0x1c
call fcn.1800b0f50
mov rdi, rax
mov r8d, 0x1c
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1800d7a80
xor eax, eax
xor r9d, r9d
xor r10d, r10d
xor ecx, ecx
nop word [rax + rax]
mov r8d, dword [rdi + rcx*4]
lea ecx, [rax + r9]
movzx ecx, byte [rcx + rbx]
cmp ecx, r8d
je 0x18004dbdb
cmp r8d, 0xffffffff
jne 0x18004de62
inc eax
mov ecx, eax
cmp rcx, 7
jb 0x18004dbc0
add rbx, r10
test rdi, rdi
je 0x18004dbfa
mov edx, 0x1c
mov rcx, rdi
call fcn.1800b0f48
test rbx, rbx
jne 0x18004de7f
inc r14d
add r15, 8
cmp r14d, 0x150
jl 0x18004db03
cmp qword [0x18020bbe0], 0
jne 0x18004de07
movups xmm0, xmmword [0x1800e9698]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [0x1800e96a8]
movups xmmword [rbp - 0x70], xmm1
movsd xmm0, qword [str._fy3588_]
movsd qword [rbp - 0x60], xmm0
movzx eax, byte [0x1800e96c0]
mov byte [rbp - 0x58], al
xor r8d, r8d
cmp r13d, 2
jl 0x18004dd87
movdqa xmm4, xmmword [0x1800f8a70]
movdqa xmm3, xmmword [0x1800f8bf0]
movdqa xmm5, xmmword [0x1800f8b00]
movdqa xmm0, xmmword [0x1800f8c10]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rbp - 0x7c]
movdqa xmm6, xmmword [0x1800f8b90]
mov edx, dword [rsp + 0x20]
nop word [rax + 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
psrad xmm1, 1
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
psrad xmm1, 1
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, 0x28
jl 0x18004dca0
cmp r8d, 0x29
jge 0x18004ddc0
movsxd rax, r8d
lea r9, [rbp - 0x80]
add r9, rax
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x29
jl 0x18004dd91
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rbp - 0x80]
nop
inc rsi
cmp byte [rax + rsi], 0
jne 0x18004dde0
mov r8, rsi
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x20]
call fcn.1800133e0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.180027c70
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x18004de54
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004de40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004e0a2
call fcn.1800b0f48
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
xor r12d, r12d
mov qword [rbp - 0x18], r12
lea rcx, [rbp - 8]
call fcn.180030ec0
jmp 0x18004e066
inc r9d
inc r10
movsxd rax, r9d
cmp rax, 0x2e
jae 0x18004de78
xor eax, eax
jmp 0x18004dbb4
xor ebx, ebx
jmp 0x18004dbe8
movsxd rax, r14d
mov qword [0x18020bbe0], rax
jmp 0x18004de07
movups xmm0, xmmword [0x1800e9b50]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [0x1800e9b60]
movups xmmword [rbp - 0x70], xmm1
movsd xmm0, qword [0x1800e9b70]
movsd qword [rbp - 0x60], xmm0
mov eax, dword [0x1800e9b78]
mov dword [rbp - 0x58], eax
mov r8d, r12d
cmp dword [0x18010c090], 2
jl 0x18004dfe7
movdqa xmm4, xmmword [0x1800f8a70]
movdqa xmm3, xmmword [0x1800f8bf0]
movdqa xmm5, xmmword [0x1800f8b00]
movdqa xmm0, xmmword [0x1800f8c10]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rbp - 0x7c]
movdqa xmm6, xmmword [0x1800f8b90]
mov edx, dword [rsp + 0x20]
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
psrad xmm1, 1
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
psrad xmm1, 1
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, 0x28
jl 0x18004df00
cmp r8d, 0x2c
jge 0x18004e020
movsxd rax, r8d
lea r9, [rbp - 0x80]
add r9, rax
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x2c
jl 0x18004dff1
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
lea rax, [rbp - 0x80]
mov rsi, 0xffffffffffffffff
nop dword [rax]
inc rsi
cmp byte [rax + rsi], r12b
jne 0x18004e040
mov r8, rsi
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.1800133e0
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.180027c70
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1800b0bb0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1800b6df4
nop
int3