Function at 0x14005db51
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb38
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0xaa0], xmm6
and rsp, 0xffffffffffffffe0
mov r13, r8
mov rsi, rcx
mov r15, qword [rdx + 0x10]
test r15, r15
je 0x14005db91
mov r14, qword [r13 + 0x28]
cmp r14, 0x19
jbe 0x14005dbbb
mov qword [rsi], 0
mov rcx, r13
call fcn.14004b4d8
cmp qword [r13 + 0x20], 0
je 0x14005dbee
mov r8, qword [r13 + 0x18]
mov rcx, qword [0x140443578]
xor edx, edx
call sub.kernel32.dll_HeapFree
jmp 0x14005dbee
cmp byte [r13 + 0x30], 0
je 0x14005dc09
mov rax, qword [r13 + 0x30]
mov qword [rsi + 0x38], rax
movdqu xmm0, xmmword [r13]
movups xmm1, xmmword [r13 + 0x10]
movups xmm2, xmmword [r13 + 0x20]
movups xmmword [rsi + 0x28], xmm2
movups xmmword [rsi + 0x18], xmm1
movdqu xmmword [rsi + 8], xmm0
mov qword [rsi], 1
movaps xmm6, xmmword [rbp + 0xaa0]
lea rsp, [rbp + 0xab8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rbx, rdx
mov rdi, qword [rdx]
cmp r15, 1
jne 0x14005dc31
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsi + 8]
call fcn.14004eb9d
mov qword [rsi], 2
jmp 0x14005db98
mov qword [rsp + 0x60], rsi
mov rcx, r15
call fcn.14006b443
mov r12, rax
mov rax, r15
mov qword [rsp + 0x40], rdx
test rdx, rdx
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x78], r13
je 0x14005dd18
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x30], rbx
shl r15, 5
mov qword [rsp + 0x50], r15
add r12, 0x19
xor r14d, r14d
mov r15, qword [rsp + 0x40]
cmp qword [rsp + 0x50], r14
je 0x14005dcfb
dec r15
lea rax, [rdi + 0x20]
mov qword [rsp + 0x58], rax
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
mov rsi, qword [rdi + 0x10]
mov rcx, rsi
xor edx, edx
call fcn.14000d520
mov rbx, rax
mov r13, rdx
mov rcx, rax
mov rdx, qword [rsp + 0x38]
mov r8, rsi
call fcn.1400931b0
mov al, byte [rdi + 0x18]
mov qword [r12 + r14 - 0x19], rbx
mov qword [r12 + r14 - 0x11], r13
mov qword [r12 + r14 - 9], rsi
mov byte [r12 + r14 - 1], al
mov eax, dword [rsp + 0x4a0]
mov ecx, dword [rsp + 0x4a3]
mov dword [r12 + r14 + 3], ecx
mov dword [r12 + r14], eax
add r14, 0x20
mov rdi, qword [rsp + 0x58]
test r15, r15
jne 0x14005dc80
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
mov r13, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
mov r14, qword [rsp + 0x48]
cmp r14, 2
setae cl
cmp byte [r13 + 0x31], 0
sete dl
cmp rax, 0x64
ja 0x14005de72
or cl, dl
je 0x14005de72
mov rax, qword [0x14043d8b0]
xorps xmm0, xmm0
movups xmmword [rsp + 0xa8], xmm0
mov rcx, qword [0x14043e2d0]
movups xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0xe8], 0x2020200
xor edx, edx
mov byte [rsp + 0xec], dl
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb8], rcx
movdqa xmm0, xmmword [0x140098bd0]
movdqu xmmword [rsp + 0xd0], xmm0
mov word [rsp + 0xe0], 0
mov byte [rsp + 0xe2], dl
mov rsi, r15
shl rsi, 5
je 0x14005de40
add rsi, 0xffffffffffffffe0
xor edi, edi
movdqa xmm6, xmmword [0x1400987b0]
lea r14, [rsp + 0xa0]
xor eax, eax
test al, al
jne 0x14005de2e
mov rdx, qword [rsp + 0xb0]
cmp rdx, 0x80
jae 0x14005ddf2
mov r8, qword [r12 + rdi + 0x10]
test r8, r8
je 0x14005ddf2
mov rdx, qword [r12 + rdi]
mov rcx, r14
call fcn.14000fdfc
jmp 0x14005de2e
mov byte [rsp + 0xec], 1
mov byte [rsp + 0xe2], 0
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0xb0], 0
call fcn.14000fbfe
movdqu xmmword [rsp + 0xc8], xmm6
mov word [rsp + 0xe0], 0
cmp rsi, rdi
je 0x14005de40
mov al, byte [rsp + 0xec]
add rdi, 0x20
jmp 0x14005ddc5
lea rsi, [rsp + 0x4a0]
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.14000d664
cmp byte [rsi + 0x142], 3
jne 0x14005e2d6
lea rcx, [rsp + 0xa0]
call fcn.14000fbd1
lea rdx, [rsp + 0x88]
mov qword [rdx + 8], 0x101
mov qword [rdx], 2
mov word [rdx + 0x10], 0x101
mov byte [rdx + 0x12], 1
lea rsi, [rsp + 0x4a0]
mov rcx, rsi
call fcn.14004c448
cmp dword [rsi], 1
je 0x14005e612
lea rdx, [rsp + 0x4c0]
mov rdi, qword [rdx - 0x18]
mov rbx, qword [rdx - 0x10]
mov r14, qword [rdx - 8]
lea rsi, [rsp + 0xb8]
mov r8d, 0x3e8
mov rcx, rsi
call fcn.1400931b0
mov qword [rsi - 0x18], rdi
mov qword [rsi - 0x10], rbx
mov qword [rsi - 8], r14
lea rsi, [rsp + 0x4a0]
lea rdx, [rsp + 0xa0]
mov rcx, rsi
xor r8d, r8d
call fcn.14004c65c
cmp dword [rsi], 1
je 0x14005e605
lea rsi, [rsp + 0x4a0]
lea rdx, [rsp + 0xa0]
mov rcx, rsi
xor r8d, r8d
call fcn.14004c65c
cmp dword [rsi], 1
je 0x14005e605
lea rsi, [rsp + 0x4a0]
lea rdx, [rsp + 0xa0]
mov rcx, rsi
xor r8d, r8d
call fcn.14004c65c
cmp dword [rsi], 1
je 0x14005e605
shl r15, 5
mov ecx, 2
movq xmm6, rcx
je 0x14005e28e
mov rcx, r12
add rcx, r15
mov qword [rsp + 0x80], rcx
xor eax, eax
mov qword [rsp + 0x30], rax
mov r14, qword [r12]
mov qword [rsp + 0x50], r12
mov rcx, qword [r12 + 0x10]
mov rax, qword [rsp + 0x340]
cmp rax, rcx
cmovbe rax, rcx
mov qword [rsp + 0x340], rax
inc qword [rsp + 0x348]
mov ebx, dword [rsp + 0x380]
test rcx, rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x38], rcx
je 0x14005e214
lea rax, [r14 + rcx]
mov qword [rsp + 0x58], rax
xor r9d, r9d
xor r8d, r8d
movzx r15d, byte [r14]
mov r12d, ebx
test r9b, 1
mov r9b, 1
jne 0x14005e001
cmp qword [rsp + 0x378], r12
jbe 0x14005e612
mov rax, qword [rsp + 0x368]
lea rcx, [r12 + r12*8]
cmp qword [rax + rcx*8 + 0x30], 0
setne r9b
mov rax, qword [rsp + 0xa0]
cmp byte [rax + 8], 1
jne 0x14005e018
test r9b, r9b
jne 0x14005e268
test r15, r15
je 0x14005e043
lea rax, [r15 - 1]
mov rcx, qword [rsp + 0x498]
cmp rcx, rax
jbe 0x14005e612
mov rdx, qword [rsp + 0x488]
mov byte [rdx + rax], 1
mov rax, r15
jmp 0x14005e04d
mov rcx, qword [rsp + 0x498]
xor eax, eax
cmp rcx, rax
jbe 0x14005e612
mov rcx, qword [rsp + 0x488]
mov byte [rcx + rax], 1
mov rcx, qword [rsp + 0xa0]
cmp byte [rcx + 0xb], 0
je 0x14005e0d8
lea ecx, [r15 - 0x41]
cmp cl, 0x19
ja 0x14005e081
mov ecx, r15d
or cl, 0x20
jmp 0x14005e09d
lea ecx, [r15 - 0x61]
mov edx, r15d
and dl, 0xdf
cmp cl, 0x1a
movzx ecx, dl
cmovae ecx, r15d
test cl, cl
je 0x14005e205
movzx ebx, cl
dec rbx
mov rdx, qword [rsp + 0x498]
cmp rdx, rbx
jbe 0x14005e612
mov rdi, qword [rsp + 0x488]
mov byte [rdi + rbx], 1
movzx ecx, cl
cmp rdx, rcx
jbe 0x14005e612
mov rdx, qword [rsp + 0x488]
mov byte [rdx + rcx], 1
cmp qword [rsp + 0x378], r12
jbe 0x14005e612
inc r8
mov rcx, qword [rsp + 0x368]
lea r13, [r12 + r12*8]
cmp dword [rcx + r13*8], 1
jne 0x14005e112
cmp qword [rcx + r13*8 + 0x18], rax
jbe 0x14005e612
shl rax, 2
add rax, qword [rcx + r13*8 + 8]
jmp 0x14005e13a
mov rdx, qword [rcx + r13*8 + 8]
mov rcx, qword [rcx + r13*8 + 0x18]
add rdx, 0xfffffffffffffffc
shl rcx, 3
test rcx, rcx
je 0x14005e144
lea rax, [rdx + 8]
add rcx, 0xfffffffffffffff8
cmp byte [rdx + 4], r15b
mov rdx, rax
jne 0x14005e124
mov ebx, dword [rax]
test ebx, ebx
jne 0x14005e1f5
mov rdi, r9
lea rcx, [rsp + 0x4a0]
lea rdx, [rsp + 0xa0]
mov rsi, r8
call fcn.14004c65c
cmp dword [rsp + 0x4a0], 1
je 0x14005e286
cmp qword [rsp + 0x378], r12
jbe 0x14005e612
mov ebx, dword [rsp + 0x4a4]
shl r13, 3
mov rcx, qword [rsp + 0x368]
add rcx, r13
mov edx, r15d
mov r8d, ebx
call fcn.14004dd39
mov rax, qword [rsp + 0xa0]
cmp byte [rax + 0xb], 0
je 0x14005e1ef
cmp qword [rsp + 0x378], r12
jbe 0x14005e612
lea eax, [r15 - 0x41]
cmp al, 0x1a
jae 0x14005e1c9
or r15b, 0x20
mov edx, r15d
jmp 0x14005e1dc
lea eax, [r15 - 0x61]
mov ecx, r15d
and cl, 0xdf
cmp al, 0x1a
movzx edx, cl
cmovae edx, r15d
add r13, qword [rsp + 0x368]
mov rcx, r13
mov r8d, ebx
call fcn.14004dd39
mov r8, rsi
mov r9, rdi
inc r14
cmp r14, qword [rsp + 0x58]
jne 0x14005dfcd
jmp 0x14005e214
mov rdx, qword [rsp + 0x498]
xor ecx, ecx
jmp 0x14005e0c0
mov eax, ebx
cmp qword [rsp + 0x378], rax
jbe 0x14005e612
lea rcx, [rax + rax*8]
shl rcx, 3
add rcx, qword [rsp + 0x368]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
call fcn.14004de15
mov rax, qword [rsp + 0xa0]
cmp byte [rax + 9], 0
je 0x14005e268
lea rcx, [rsp + 0xa8]
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
call fcn.1400161b9
mov r12, qword [rsp + 0x50]
add r12, 0x20
inc qword [rsp + 0x30]
cmp r12, qword [rsp + 0x80]
jne 0x14005df77
jmp 0x14005e28e
movups xmm6, xmmword [rsp + 0x4a8]
movq rax, xmm6
cmp rax, 2
jne 0x14005e605
lea rsi, [rsp + 0xa0]
mov rcx, rsi
call fcn.14004c783
mov rcx, rsi
call fcn.14004c81e
mov rax, qword [rsi]
cmp byte [rax + 0xa], 0
jne 0x14005e321
mov al, byte [rax + 8]
dec al
lea rcx, [rsp + 0xa0]
cmp al, 2
jae 0x14005e31c
call fcn.14004cd0d
jmp 0x14005e321
mov rsi, qword [rsp + 0x60]
lea rcx, [rsi + 0x20]
lea rdx, [rsp + 0x4a0]
mov r8d, 0x1a0
call fcn.1400931b0
mov qword [rsi + 8], r12
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r15
mov qword [rsi], 4
lea rcx, [rsp + 0xa0]
call fcn.14000fbd1
jmp 0x14005db98
call fcn.14004c99c
lea r14, [rsp + 0x488]
lea rcx, [rsp + 0xa0]
call fcn.14004c8af
lea rbx, [rsp + 0x386]
lea rsi, [rsp + 0x4a1]
xor edi, edi
mov r8d, 0xff
mov rcx, rsi
xor edx, edx
call fcn.140092ff0
mov rax, qword [r14]
mov rcx, qword [r14 + 0x10]
mov byte [rsi - 1], 0
xor edx, edx
cmp rcx, rdx
je 0x14005e612
cmp byte [rax + rdx], 0
je 0x14005e37d
inc dil
je 0x14005e612
mov byte [rsp + rdx + 0x4a1], dil
inc rdx
cmp rdx, 0xff
jne 0x14005e365
lea rdx, [rsp + 0x4a0]
mov r8d, 0x100
mov rcx, rbx
call fcn.1400931b0
mov rax, qword [rsp + 0xa0]
cmp byte [rax + 0xa], 0
jne 0x14005e3df
lea rcx, [rsp + 0xa8]
call fcn.140013254
mov rsi, rax
mov rdi, rdx
lea rbx, [rsp + 0x358]
mov rcx, rbx
call fcn.1400136a0
mov qword [rbx], rsi
mov qword [rbx + 8], rdi
mov rcx, qword [rsp + 0x378]
test rcx, rcx
je 0x14005e42a
mov rax, qword [rsp + 0x368]
lea rcx, [rcx + rcx*8]
lea rdx, [rax + rcx*8]
xor ebx, ebx
cmp dword [rax], 1
sete cl
mov rsi, qword [rax + 0x18]
xor cl, 3
shl rsi, cl
mov rdi, qword [rax + 0x30]
shl rdi, 4
add rdi, rbx
add rdi, rsi
add rax, 0x48
mov rbx, rdi
cmp rax, rdx
jne 0x14005e3fe
jmp 0x14005e42c
xor edi, edi
lea rdx, [rsp + 0x358]
mov qword [rdx - 8], rdi
movdqu xmm6, xmmword [rdx - 0x18]
lea rsi, [rsp + 0x9f0]
mov r8d, 0x130
mov rcx, rsi
call fcn.1400931b0
lea rcx, [rsp + 0xa8]
call fcn.14004d287
mov rcx, r14
call fcn.14004b4d8
lea rbx, [rsp + 0x8c0]
mov r8d, 0x130
mov rcx, rbx
mov rdx, rsi
call fcn.1400931b0
movdqu xmmword [rbx - 0x18], xmm6
mov qword [rbx - 8], rdi
mov r14b, byte [rbx + 0x2c]
cmp byte [rsp + 0x9a], 0
je 0x14005e52c
lea rdx, [rsp + 0x98]
lea rsi, [rsp + 0x4a0]
lea r8, [rsp + 0x8a8]
mov rcx, rsi
call fcn.14004b529
cmp dword [rsi], 1
je 0x14005e616
lea rdx, [rsp + 0x4c0]
mov r15, qword [rdx - 0x18]
mov r12, qword [rdx - 0x10]
mov rdi, qword [rdx - 8]
lea rsi, [rsp + 0xa0]
mov r8d, 0x160
mov rcx, rsi
call fcn.1400931b0
lea rcx, [rsp + 0x4a0]
mov r8d, 0x160
mov rdx, rsi
call fcn.1400931b0
mov rcx, rbx
call fcn.1400136a0
lea rsi, [rsp + 0x8d0]
mov rcx, rsi
call fcn.14004c241
mov rcx, rsi
call fcn.14006b8f1
mov eax, 1
jmp 0x14005e56c
movq r15, xmm6
pshufd xmm0, xmm6, 0xee
movq r12, xmm0
lea rsi, [rsp + 0xa0]
mov r8d, 0x130
mov rcx, rsi
mov rdx, rbx
call fcn.1400931b0
lea rcx, [rsp + 0x4a0]
mov r8d, 0x160
mov rdx, rsi
call fcn.1400931b0
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi + 0x20], rdi
lea rcx, [rsi + 0x28]
lea rdx, [rsp + 0x4a0]
mov r8d, 0x160
call fcn.1400931b0
mov byte [rsi + 0x188], r14b
mov eax, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa3]
mov dword [rsi + 0x189], eax
mov dword [rsi + 0x18c], ecx
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x190], rax
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x198], rax
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x1a0], rax
mov qword [rsi], 3
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
call fcn.14004b4d8
cmp qword [rsi + 0x20], 0
je 0x14005dbee
mov r8, qword [rsi + 0x18]
jmp 0x14005dbab
lea rcx, [rsp + 0xa0]
call fcn.14004c865
ud2
mov rcx, rbx
call fcn.1400136a0
lea rsi, [rsp + 0x8d0]
mov rcx, rsi
call fcn.14004c241
mov rcx, rsi
call fcn.14006b8f1
jmp 0x14005e612