Function at 0x180042c90
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1b8
mov rax, qword [0x1800ed0f8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov r13, qword [rcx + 8]
mov r10, rcx
mov r14, qword [rcx + 0x70]
mov rdi, rdx
mov r11d, dword [rcx + 0x34]
mov esi, 1
mov qword [rsp + 0x68], rdx
mov r15, r8
mov eax, dword [r10 + 0x18]
mov r12d, edi
sub r12d, r13d
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x50], r8
mov ebx, r12d
mov qword [rsp + 0x98], r9
mov r8d, edi
mov r9, qword [rcx + 0x38]
lea rdx, [rax + r13]
mov rcx, qword [rcx + 0x10]
sub r8d, r13d
add rax, rcx
mov qword [rsp + 0x80], rcx
mov ecx, dword [r10 + 0x100]
mov ebp, 3
mov qword [rsp + 0x88], rdx
mov edx, esi
shl edx, cl
mov ecx, dword [r10 + 0x1c]
sub ebx, edx
mov qword [rsp + 0x90], rax
mov eax, r12d
sub eax, ecx
mov qword [rsp + 0x78], r14
cmp eax, edx
mov qword [rsp + 0x60], r9
mov eax, dword [r10 + 0x10c]
mov rdx, qword [r10 + 0x60]
cmovbe ebx, ecx
cmp dword [r10 + 0x28], 0
mov dword [rsp + 0x48], r11d
cmovne ebx, ecx
mov dword [rsp + 0x30], r8d
mov ecx, 5
mov dword [rsp + 0x58], ebx
cmp eax, ecx
mov dword [rsp + 0x4c], r12d
mov qword [rsp + 0x70], rdx
cmovb ecx, eax
mov dword [rsp + 0x40], 0x1f
shl esi, cl
xor ebx, ebx
mov dword [rsp + 0x44], esi
cmp dword [r10 + 0x12c], ebx
jne 0x180043067
mov r11d, dword [r10 + 0x2c]
mov eax, r8d
sub eax, r11d
mov r12, r9
mov r9d, dword [rsp + 0x48]
mov ecx, r9d
mov rdx, r13
cmp eax, 0x180
jbe 0x180042f4e
lea eax, [r11 + 0x60]
cmp r11d, eax
jae 0x180042e91
mov rdi, qword [rsp + 0x78]
lea r12, [r13 + 8]
mov rbp, qword [rsp + 0x60]
mov esi, 0x18
sub esi, r9d
mov r14d, r11d
add r12, r11
mov r15d, eax
nop dword [rax + rax]
mov eax, dword [r10 + 0x60]
mov rcx, rsi
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rdi + rax*4 + 0x40]
prefetcht0 byte [rax + rbp]
mov rax, r14
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r10 + rax*4 + 0x40], edx
mov eax, ebx
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + rbp]
lea rdx, [r8 + rbp]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x40]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rdi + rax*4], r11d
inc r11d
cmp r11d, r15d
jb 0x180042df0
mov rdx, qword [r10 + 8]
mov ebp, 3
mov rdi, qword [rsp + 0x68]
mov esi, dword [rsp + 0x44]
mov r15, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x30]
mov ecx, dword [r10 + 0x34]
lea r11d, [r8 - 0x20]
mov r14, qword [r10 + 0x70]
lea rax, [rdi + 1]
mov r12, qword [r10 + 0x38]
lea r9, [r11 + r13]
mov dword [rsp + 0x38], ecx
mov ecx, eax
sub ecx, r11d
mov r8d, r11d
sub ecx, r13d
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, ebx
cmp ecx, eax
cmova ecx, eax
lea eax, [r11 + rcx]
cmp r11d, eax
jae 0x180042f45
mov eax, 0x18
mov r15d, ecx
sub eax, dword [rsp + 0x38]
mov qword [rsp + 0x38], rax
mov ecx, eax
nop word [rax + rax]
mov eax, dword [r10 + 0x60]
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [r12 + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r10 + rax*4 + 0x40], edx
sub r15, 1
jne 0x180042ef0
mov r14, qword [r10 + 0x70]
mov r12, qword [r10 + 0x38]
mov rdx, qword [r10 + 8]
mov r15, qword [rsp + 0x50]
mov ecx, dword [r10 + 0x34]
mov r8d, dword [rsp + 0x30]
cmp r11d, r8d
jae 0x18004300e
mov edi, dword [rsp + 0x30]
lea rbp, [rdx + 8]
mov esi, 0x18
mov r15d, r11d
sub esi, ecx
add rbp, r15
nop dword [rax]
mov eax, dword [r10 + 0x60]
mov rcx, rsi
imul edx, dword [rbp], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [r12 + rax]
mov rax, r15
lea rbp, [rbp + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r10 + rax*4 + 0x40], edx
mov eax, ebx
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + r12]
lea rdx, [r8 + r12]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x40]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r14 + rax*4], r11d
inc r11d
cmp r11d, edi
jb 0x180042f70
mov rdi, qword [rsp + 0x68]
mov ebp, 3
mov esi, dword [rsp + 0x44]
mov r15, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x30]
mov eax, dword [rsp + 0x70]
mov ecx, 0x18
sub ecx, dword [rsp + 0x48]
mov r14, qword [rsp + 0x78]
mov dword [r10 + 0x2c], r8d
mov r8d, dword [rsp + 0x4c]
imul edx, dword [r8 + r13 + 8], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
mov rcx, qword [rsp + 0x60]
prefetcht0 byte [rax + rcx]
and r8d, 7
mov r9d, dword [r10 + r8*4 + 0x40]
mov dword [r10 + r8*4 + 0x40], edx
jmp 0x180043087
imul r9d, dword [rdi], 0x9e3779b1
mov ecx, 0x18
sub ecx, r11d
mov eax, edx
mov dword [r10 + 0x2c], r12d
xor r9, rax
shr r9, cl
mov rcx, qword [rsp + 0x60]
add dword [r10 + 0x68], r9d
mov eax, r9d
shr rax, 3
and eax, 0x1fffffe0
add rcx, rax
mov qword [rsp + 0x70], rcx
lea r12, [r14 + rax*4]
mov r14, rbx
movzx eax, byte [rcx]
movdqu xmm0, xmmword [rcx]
mov r11d, eax
mov dword [rsp + 0x38], eax
movsx eax, r9b
and r11d, 0x1f
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
mov ecx, r11d
neg ecx
pmovmskb eax, xmm1
and ecx, 0x1f
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
shl edx, 0x10
or edx, eax
mov r8d, edx
mov eax, edx
shl r8d, cl
mov ecx, r11d
shr rax, cl
or r8, rax
jbe 0x18004315e
mov edx, dword [rsp + 0x34]
mov r15, qword [rsp + 0x80]
mov edi, dword [rsp + 0x58]
test esi, esi
je 0x180043154
bsf rcx, r8
add ecx, r11d
and ecx, 0x1f
mov ecx, dword [r12 + rcx*4]
je 0x18004314b
cmp ecx, edi
jb 0x180043154
cmp ecx, edx
jb 0x180043139
prefetcht0 byte [rcx + r13]
jmp 0x18004313e
prefetcht0 byte [rcx + r15]
mov dword [rsp + r14*4 + 0xa0], ecx
inc r14
dec esi
lea rax, [r8 - 1]
and r8, rax
ja 0x180043116
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x38]
mov eax, ebx
dec ecx
mov edx, 0x1f
and ecx, 0x1f
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x70]
mov byte [rax], cl
mov byte [rcx + rax], r9b
mov eax, dword [r10 + 0x2c]
mov dword [r12 + rcx*4], eax
inc dword [r10 + 0x2c]
test r14, r14
je 0x180043234
mov ecx, dword [rsp + 0x34]
mov r12d, dword [rsp + 0x4c]
nop dword [rax]
mov esi, dword [rsp + rbx*4 + 0xa0]
cmp esi, ecx
jb 0x1800431c6
mov eax, dword [rdi + rbp - 3]
lea rdx, [rsi + r13]
cmp dword [rdx + rbp - 3], eax
jne 0x180043228
mov r8, r15
mov rcx, rdi
call fcn.180037e00
jmp 0x180043200
mov rdx, qword [rsp + 0x80]
mov eax, dword [rdi]
add rdx, rsi
cmp dword [rdx], eax
jne 0x180043228
mov rax, qword [rsp + 0x88]
lea rcx, [rdi + 4]
mov r9, qword [rsp + 0x90]
add rdx, 4
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.180037ea0
add rax, 4
cmp rax, rbp
jbe 0x180043224
mov rdx, qword [rsp + 0x98]
mov ecx, r12d
sub ecx, esi
mov rbp, rax
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + rdi]
cmp rcx, r15
je 0x180043237
mov ecx, dword [rsp + 0x34]
inc rbx
cmp rbx, r14
jb 0x1800431a0
mov rax, rbp
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1800b2170
add rsp, 0x1b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret