Function at 0x14031fe70
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 [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x218], rax
test rdx, rdx
je 0x14032047a
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.14023df00
mov r12, rax
call fcn.14020c5c0
mov ebp, eax
mov ecx, 1
call fcn.14023df10
bt eax, 0x1e
movaps xmm6, xmmword [0x140470090]
movaps xmmword [rsp + 0x1c0], xmm6
movaps xmmword [rsp + 0x1d0], xmm6
mov dword [rsp + 0x28], eax
jae 0x140320680
mov edi, eax
xor ecx, ecx
call fcn.14023df10
bt eax, 0x1e
jae 0x1403207a1
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.14003a250
test eax, eax
je 0x1403207a1
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.1402d26c0
mov ecx, 1
call fcn.14023de10
test rax, rax
je 0x140320529
mov r15, rax
add rax, 0x128
mov qword [rsp + 0x30], rax
cmp dword [r15 + 0x128], 0xfff
mov r14, rsi
ja 0x140320619
cmp qword [r15 + 0x120], r12
jne 0x140320619
cmp dword [r15 + 0x130], ebp
jne 0x140320619
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 0x1403206c2
test byte [rsp + 0x38], 1
jne 0x140320255
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 [case.0x1403053b8.0]
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 [case.0x1403053b8.0]
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 [case.0x1403053b8.0]
xor eax, eax
mov cl, byte [rsp + rax + 0x1c0]
xor byte [rsp + rax + 0x1e0], cl
inc rax
cmp rsi, rax
jne 0x1403201ed
bt edi, 0x19
jae 0x140320803
cmp dword [rsp + 0x2c], 0x12000000
jne 0x140320787
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.140030140
lea rcx, [0x14002de80]
lea rax, [0x14002ebe0]
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 0x14032030e
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 0x1403206c7
cmp rbx, 0x10
jne 0x140320517
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 [case.0x1403053b8.0]
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 0x140320275
mov ecx, dword [r15 + 0x114]
mov rax, qword [r15 + 0xf8]
test rbp, rbp
jne 0x140320494
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 [case.0x1403053b8.0]
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 [case.0x1403053b8.0]
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 [case.0x1403053b8.0]
test byte [rsp + 0x38], 1
jne 0x1403203e2
xor eax, eax
mov cl, byte [rsp + rax + 0x1c0]
xor byte [rsp + rax + 0x1e0], cl
inc rax
cmp rsi, rax
jne 0x1403203cc
bt edi, 0x19
jae 0x140320738
cmp dword [rsp + 0x2c], 0x12000000
jne 0x14032071e
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.140030140
lea rcx, [0x14002de80]
lea rax, [0x14002ebe0]
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 0x140320120
lea rax, [rsp + 0x88]
cmp r15, rax
je 0x14032070c
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x1403204f1
call fcn.140297b50
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 [case.0x1403053b8.0]
cmp rbp, 8
jne 0x140320601
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 0x140320331
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 0x1403205e6
movups xmmword [rdi + 0x10], xmm7
jmp 0x1403202a1
mov ecx, 0x138
call fcn.14014e0b0
test rax, rax
je 0x140320849
mov r15, rax
lea r8, [0x140130480]
mov ecx, 1
mov rdx, rax
call fcn.140161d10
test eax, eax
je 0x140320849
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.140161f30
mov rcx, r15
mov rdx, rdi
mov r8, r14
xor r9d, r9d
call fcn.1401300d0
test eax, eax
je 0x1403206c2
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 0x1403200ce
test rbx, rbx
je 0x1403202a4
mov rcx, rdi
xor edx, edx
mov r8, rbx
call fcn.1402d26c0
jmp 0x1403202a4
lea rdx, [rsp + 0x1e0]
mov rcx, rdi
mov r8, rbp
call fcn.1402d2020
jmp 0x1403204d2
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.140161f30
mov r8d, 0x30
mov rcx, r15
mov rdx, rdi
call fcn.1401302d0
test eax, eax
je 0x1403206c2
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 0x1403200ef
test r12, r12
setne al
test ebp, ebp
setne cl
or cl, al
cmp cl, 1
je 0x1403206a6
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.1403a2f40
jmp 0x1403206b9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1d0], xmm0
movaps xmmword [rsp + 0x1c0], xmm0
mov edi, dword [rsp + 0x28]
jmp 0x14031ff22
call fcn.1402adcd0
test rbx, rbx
je 0x1403202f4
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 [case.0x1403053b8.0]
add r14, 0x10
cmp r14, rbx
jb 0x1403206d3
jmp 0x1403202f4
mov edx, 0x120
mov rcx, r15
call fcn.140230640
jmp 0x14032047a
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.14002fe50
jmp 0x14032040f
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
bt edi, 9
jae 0x140320772
call fcn.140030f50
lea rax, [0x140031420]
lea rcx, [0x140031120]
mov edi, dword [rsp + 0x28]
lea rbp, [rsp + 0x200]
jmp 0x14032041d
call fcn.140316c20
lea rax, [0x140317880]
lea rcx, [0x140316af0]
jmp 0x140320761
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.14002fe50
jmp 0x140320230
test r12, r12
setne al
test ebp, ebp
setne cl
or cl, al
jne 0x1403206a6
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.1403a2f90
test eax, eax
mov edi, dword [rsp + 0x28]
jne 0x14031ff22
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.14003a250
test eax, eax
jne 0x14031ff22
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.1403a2f40
jmp 0x14031ff22
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
bt edi, 9
jae 0x140320831
call fcn.140030f50
lea rax, [0x140031420]
lea rcx, [0x140031120]
jmp 0x14032023e
call fcn.140316c20
lea rax, [0x140317880]
lea rcx, [0x140316af0]
jmp 0x14032023e
mov r15, r14
jmp 0x14032055b