Function at 0x14012d580
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
movaps xmmword [rsp + 0x230], xmm7
movaps xmmword [rsp + 0x220], xmm6
mov rax, qword [0x14019d040]
xor rax, rsp
mov qword [rsp + 0x218], rax
test rdx, rdx
je 0x14012db8a
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.1400a5330
mov r12, rax
call fcn.1400a5340
mov ebp, eax
mov ecx, 1
call fcn.1400a59b0
bt eax, 0x1e
movaps xmm6, xmmword [0x140171db0]
movaps xmmword [rsp + 0x1c0], xmm6
movaps xmmword [rsp + 0x1d0], xmm6
mov dword [rsp + 0x28], eax
jae 0x14012dd90
mov edi, eax
xor ecx, ecx
call fcn.1400a59b0
bt eax, 0x1e
jae 0x14012deb1
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.14000d3d0
test eax, eax
je 0x14012deb1
mov al, byte [r14]
xor byte [rsp + 0x1c0], al
mov al, byte [r14 + 1]
xor byte [rsp + 0x1c1], al
mov al, byte [r14 + 2]
xor byte [rsp + 0x1c2], al
mov al, byte [r14 + 3]
xor byte [rsp + 0x1c3], al
mov al, byte [r14 + 4]
xor byte [rsp + 0x1c4], al
mov al, byte [r14 + 5]
xor byte [rsp + 0x1c5], al
mov al, byte [r14 + 6]
xor byte [rsp + 0x1c6], al
mov al, byte [r14 + 7]
xor byte [rsp + 0x1c7], al
mov al, byte [r14 + 8]
xor byte [rsp + 0x1c8], al
mov al, byte [r14 + 9]
xor byte [rsp + 0x1c9], al
mov al, byte [r14 + 0xa]
xor byte [rsp + 0x1ca], al
mov al, byte [r14 + 0xb]
xor byte [rsp + 0x1cb], al
mov al, byte [r14 + 0xc]
xor byte [rsp + 0x1cc], al
mov al, byte [r14 + 0xd]
xor byte [rsp + 0x1cd], al
mov al, byte [r14 + 0xe]
xor byte [rsp + 0x1ce], al
mov al, byte [r14 + 0xf]
xor byte [rsp + 0x1cf], al
mov al, byte [r14 + 0x10]
xor byte [rsp + 0x1d0], al
mov al, byte [r14 + 0x11]
xor byte [rsp + 0x1d1], al
mov al, byte [r14 + 0x12]
xor byte [rsp + 0x1d2], al
mov al, byte [r14 + 0x13]
xor byte [rsp + 0x1d3], al
mov al, byte [r14 + 0x14]
xor byte [rsp + 0x1d4], al
mov al, byte [r14 + 0x15]
xor byte [rsp + 0x1d5], al
mov al, byte [r14 + 0x16]
xor byte [rsp + 0x1d6], al
mov al, byte [r14 + 0x17]
xor byte [rsp + 0x1d7], al
mov al, byte [r14 + 0x18]
xor byte [rsp + 0x1d8], al
mov al, byte [r14 + 0x19]
xor byte [rsp + 0x1d9], al
mov al, byte [r14 + 0x1a]
xor byte [rsp + 0x1da], al
mov al, byte [r14 + 0x1b]
xor byte [rsp + 0x1db], al
mov al, byte [r14 + 0x1c]
xor byte [rsp + 0x1dc], al
mov al, byte [r14 + 0x1d]
xor byte [rsp + 0x1dd], al
mov al, byte [r14 + 0x1e]
xor byte [rsp + 0x1de], al
mov al, byte [r14 + 0x1f]
xor byte [rsp + 0x1df], al
lea r14, [rsp + 0x88]
mov r8d, 0x138
mov rcx, r14
mov dl, 0xaa
call fcn.1400f5e20
mov ecx, 1
call fcn.1400a5240
test rax, rax
je 0x14012dc39
mov r15, rax
add rax, 0x128
mov qword [rsp + 0x30], rax
cmp dword [r15 + 0x128], 0xfff
mov r14, rsi
ja 0x14012dd29
cmp qword [r15 + 0x120], r12
jne 0x14012dd29
cmp dword [r15 + 0x130], ebp
jne 0x14012dd29
mov rax, qword [r15 + 0x118]
lea r12, [r15 + 0x108]
lea rbp, [rsp + 0x200]
mov ecx, edi
and ecx, 0x12000000
mov dword [rsp + 0x2c], ecx
mov esi, 0x20
mov qword [rsp + 0x38], 0
mov ecx, 0x10000
xorps xmm7, xmm7
cmp rbx, rcx
mov r13d, 0x10000
cmovb r13, rbx
movabs rcx, 0x1000000000000
cmp rax, rcx
ja 0x14012ddd2
test byte [rsp + 0x38], 1
jne 0x14012d965
movaps xmmword [rsp + 0x200], xmm6
movaps xmmword [rsp + 0x1f0], xmm6
movaps xmmword [rsp + 0x1e0], xmm6
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0xf8]
mov rcx, r12
lea rdx, [rsp + 0x1e0]
mov r8, r15
call qword [0x1401904a0]
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0xf8]
mov rcx, r12
lea rdx, [rsp + 0x1f0]
mov r8, r15
call qword [0x1401904a0]
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0xf8]
mov rcx, r12
mov rdx, rbp
mov r8, r15
call qword [0x1401904a0]
xor eax, eax
mov cl, byte [rsp + rax + 0x1c0]
xor byte [rsp + rax + 0x1e0], cl
inc rax
cmp rsi, rax
jne 0x14012d8fd
bt edi, 0x19
jae 0x14012df13
cmp dword [rsp + 0x2c], 0x12000000
jne 0x14012de97
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.1400032c0
lea rcx, [fcn.140001000]
lea rax, [0x140001d60]
mov qword [r15 + 0xf8], rcx
mov qword [r15 + 0x100], rax
movups xmm0, xmmword [rbp]
movups xmmword [r12], xmm0
mov rdi, r14
mov rbp, r13
cmp rbx, 0x10
jb 0x14012da1e
mov rbp, r13
mov rdi, r14
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r14
mov ebx, ebp
and ebx, 0x1ff0
mov eax, 0x2000
cmp rbp, rax
cmovae rbx, rax
cmp qword [r15 + 0x100], 0
je 0x14012ddd7
cmp rbx, 0x10
jne 0x14012dc27
movups xmmword [rdi], xmm7
mov r14d, ebx
shr r14d, 4
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0x100]
mov qword [rsp + 0x20], r12
mov rcx, rdi
mov rdx, rdi
mov r8, r14
mov r9, r15
call qword [0x1401904a0]
mov eax, dword [r15 + 0x114]
bswap eax
add eax, r14d
dec eax
bswap eax
mov dword [r15 + 0x114], eax
add rdi, rbx
sub rbp, rbx
cmp rbp, 0xf
mov rbx, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
ja 0x14012d985
mov ecx, dword [r15 + 0x114]
mov rax, qword [r15 + 0xf8]
test rbp, rbp
jne 0x14012dba4
mov edi, dword [rsp + 0x28]
lea rbp, [rsp + 0x200]
movaps xmmword [rsp + 0x200], xmm6
movaps xmmword [rsp + 0x1f0], xmm6
movaps xmmword [rsp + 0x1e0], xmm6
bswap ecx
inc ecx
bswap ecx
mov dword [r15 + 0x114], ecx
mov rcx, r12
lea rdx, [rsp + 0x1e0]
mov r8, r15
call qword [0x1401904a0]
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0xf8]
mov rcx, r12
lea rdx, [rsp + 0x1f0]
mov r8, r15
call qword [0x1401904a0]
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0xf8]
mov rcx, r12
mov rdx, rbp
mov r8, r15
call qword [0x1401904a0]
test byte [rsp + 0x38], 1
jne 0x14012daf2
xor eax, eax
mov cl, byte [rsp + rax + 0x1c0]
xor byte [rsp + rax + 0x1e0], cl
inc rax
cmp rsi, rax
jne 0x14012dadc
bt edi, 0x19
jae 0x14012de48
cmp dword [rsp + 0x2c], 0x12000000
jne 0x14012de2e
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.1400032c0
lea rcx, [fcn.140001000]
lea rax, [0x140001d60]
mov qword [r15 + 0xf8], rcx
mov qword [r15 + 0x100], rax
movups xmm0, xmmword [rbp]
movups xmmword [r12], xmm0
mov rax, qword [r15 + 0x118]
inc rax
mov qword [r15 + 0x118], rax
mov rcx, qword [rsp + 0x30]
inc dword [rcx]
add r14, r13
mov cl, 1
mov qword [rsp + 0x38], rcx
mov esi, 0
sub rbx, r13
mov ecx, 0x10000
jne 0x14012d830
lea rax, [rsp + 0x88]
cmp r15, rax
je 0x14012de1c
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
cmp rcx, qword [0x14019d040]
je 0x14012dc01
call fcn.1400c6de0
int3
movaps xmmword [rsp + 0x1e0], xmm6
bswap ecx
inc ecx
bswap ecx
mov dword [r15 + 0x114], ecx
mov rcx, r12
lea rdx, [rsp + 0x1e0]
mov r8, r15
call qword [0x1401904a0]
cmp rbp, 8
jne 0x14012dd11
mov rax, qword [rsp + 0x1e0]
mov qword [rdi], rax
lea rbp, [rsp + 0x200]
mov ecx, dword [r15 + 0x114]
mov rax, qword [r15 + 0xf8]
mov edi, dword [rsp + 0x28]
jmp 0x14012da41
xor eax, eax
movaps xmm6, xmmword [rsp + 0x220]
movaps xmm7, xmmword [rsp + 0x230]
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp ebx, 0x20
jne 0x14012dcf6
movups xmmword [rdi + 0x10], xmm7
jmp 0x14012d9b1
mov ecx, 0x138
call fcn.14005bc80
test rax, rax
je 0x14012df59
mov r15, rax
lea r8, [0x140051080]
mov ecx, 1
mov rdx, rax
call fcn.1400629a0
test eax, eax
je 0x14012df59
mov dword [r15 + 0x12c], 0
lea rdi, [rsp + 0x1e0]
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov edx, 0x30
mov rcx, rdi
call fcn.140062ff0
mov rcx, r15
mov rdx, rdi
mov r8, r14
xor r9d, r9d
call fcn.140050cd0
test eax, eax
je 0x14012ddd2
lea rax, [r15 + 0x128]
mov qword [rsp + 0x30], rax
mov dword [r15 + 0x128], 0
mov qword [r15 + 0x120], r12
mov dword [r15 + 0x130], ebp
mov r14, rsi
mov edi, dword [rsp + 0x28]
jmp 0x14012d7de
test rbx, rbx
je 0x14012d9b4
mov rcx, rdi
xor edx, edx
mov r8, rbx
call fcn.1400f5e20
jmp 0x14012d9b4
lea rdx, [rsp + 0x1e0]
mov rcx, rdi
mov r8, rbp
call fcn.1400f5780
jmp 0x14012dbe2
lea rdi, [rsp + 0x1e0]
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
mov edx, 0x30
mov rcx, rdi
call fcn.140062ff0
mov r8d, 0x30
mov rcx, r15
mov rdx, rdi
call fcn.140050ed0
test eax, eax
je 0x14012ddd2
mov qword [r15 + 0x118], 1
mov rax, qword [rsp + 0x30]
mov dword [rax], 0
mov qword [r15 + 0x120], r12
mov dword [r15 + 0x130], ebp
mov eax, 1
mov edi, dword [rsp + 0x28]
jmp 0x14012d7ff
test r12, r12
setne al
test ebp, ebp
setne cl
or cl, al
cmp cl, 1
je 0x14012ddb6
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.140148690
jmp 0x14012ddc9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1d0], xmm0
movaps xmmword [rsp + 0x1c0], xmm0
mov edi, dword [rsp + 0x28]
jmp 0x14012d632
call fcn.1400d896c
test rbx, rbx
je 0x14012da04
xor r14d, r14d
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0xf8]
lea rdx, [rdi + r14]
mov rcx, r12
mov r8, r15
call qword [0x1401904a0]
add r14, 0x10
cmp r14, rbx
jb 0x14012dde3
jmp 0x14012da04
mov edx, 0x120
mov rcx, r15
call fcn.1400a4b30
jmp 0x14012db8a
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.140002fd0
jmp 0x14012db1f
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
bt edi, 9
jae 0x14012de82
call fcn.1400040d0
lea rax, [0x1400045a0]
lea rcx, [fcn.1400042a0]
mov edi, dword [rsp + 0x28]
lea rbp, [rsp + 0x200]
jmp 0x14012db2d
call fcn.140124080
lea rax, [0x140124ce0]
lea rcx, [0x140123f50]
jmp 0x14012de71
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.140002fd0
jmp 0x14012d940
test r12, r12
setne al
test ebp, ebp
setne cl
or cl, al
jne 0x14012ddb6
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.1401486e0
test eax, eax
mov edi, dword [rsp + 0x28]
jne 0x14012d632
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.14000d3d0
test eax, eax
jne 0x14012d632
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.140148690
jmp 0x14012d632
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
bt edi, 9
jae 0x14012df41
call fcn.1400040d0
lea rax, [0x1400045a0]
lea rcx, [fcn.1400042a0]
jmp 0x14012d94e
call fcn.140124080
lea rax, [0x140124ce0]
lea rcx, [0x140123f50]
jmp 0x14012d94e
mov r15, r14
jmp 0x14012dc6b