Function at 0x1402246a0
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 0x140224b66
mov rbx, rdx
mov r13, rcx
call fcn.14023df00
mov r12, rax
call fcn.14020c5c0
mov ebp, eax
mov ecx, 1
call fcn.14023df10
movaps xmm6, xmmword [0x140470090]
movaps xmmword [rsp + 0x1c0], xmm6
movaps xmmword [rsp + 0x1d0], xmm6
test eax, 0x40000000
mov dword [rsp + 0x28], eax
je 0x140224d70
mov edi, eax
xor ecx, ecx
call fcn.14023df10
test eax, 0x40000000
je 0x140224e9b
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.14003a250
test eax, eax
je 0x140224e9b
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 0x140224c15
mov r15, rax
add rax, 0x128
mov qword [rsp + 0x30], rax
cmp dword [r15 + 0x128], 0xfff
ja 0x140224d09
cmp qword [r15 + 0x120], r12
jne 0x140224d09
cmp dword [r15 + 0x130], ebp
jne 0x140224d09
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
movabs rcx, 0x1000000000000
xorps xmm7, xmm7
cmp rbx, 0x10000
mov r14d, 0x10000
cmovb r14, rbx
cmp rax, rcx
ja 0x140224db2
test byte [rsp + 0x38], 1
jne 0x14022492b
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
nop dword [rax]
movzx ecx, byte [rsp + rax + 0x1c0]
xor byte [rsp + rax + 0x1e0], cl
inc rax
cmp rsi, rax
jne 0x1402248c0
test edi, 0x2000000
je 0x140224efd
cmp dword [rsp + 0x2c], 0x12000000
jne 0x140224e81
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, r13
mov rbp, r14
cmp rbx, 0x10
jb 0x1402249e5
mov rbp, r14
mov rdi, r13
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r13
cmp rbp, 0x2000
jae 0x140224dfc
mov ebx, ebp
and ebx, 0x1ff0
cmp qword [r15 + 0x100], 0
je 0x140224db7
cmp rbx, 0x10
jne 0x140224c03
movups xmmword [rdi], xmm7
mov r13d, ebx
shr r13d, 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, r13
mov r9, r15
call qword [case.0x1403053b8.0]
mov eax, dword [r15 + 0x114]
bswap eax
add eax, r13d
dec eax
bswap eax
mov dword [r15 + 0x114], eax
add rdi, rbx
sub rbp, rbx
cmp rbp, 0xf
mov rbx, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
ja 0x14022494b
mov ecx, dword [r15 + 0x114]
mov rax, qword [r15 + 0xf8]
test rbp, rbp
jne 0x140224b80
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 0x140224ac7
xor eax, eax
nop word cs:[rax + rax]
movzx ecx, byte [rsp + rax + 0x1c0]
xor byte [rsp + rax + 0x1e0], cl
inc rax
cmp rsi, rax
jne 0x140224ab0
test edi, 0x2000000
je 0x140224e32
cmp dword [rsp + 0x2c], 0x12000000
jne 0x140224e18
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 r13, r14
mov cl, 1
mov qword [rsp + 0x38], rcx
mov esi, 0
sub rbx, r14
movabs rcx, 0x1000000000000
jne 0x1402247f2
lea rax, [rsp + 0x88]
cmp r15, rax
je 0x140224e06
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140224bdd
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 0x140224cf1
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 0x140224a08
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 0x140224cd6
movups xmmword [rdi + 0x10], xmm7
jmp 0x140224978
mov rsi, r13
mov ecx, 0x138
call fcn.14014e0b0
test rax, rax
je 0x140224f43
mov r15, rax
lea r8, [0x140130480]
mov ecx, 1
mov rdx, rax
call fcn.140161d10
test eax, eax
je 0x140224f43
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 r13, [rsp + 0x50]
movaps xmmword [r13 + 0x20], xmm0
movaps xmmword [r13 + 0x10], xmm0
movaps xmmword [r13], xmm0
mov edx, 0x30
mov rcx, rdi
call fcn.140161f30
mov rcx, r15
mov rdx, rdi
mov r8, r13
xor r9d, r9d
call fcn.1401300d0
test eax, eax
je 0x140224db2
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 r13, rsi
mov edi, dword [rsp + 0x28]
jmp 0x1402247a8
test rbx, rbx
je 0x14022497b
mov rcx, rdi
xor edx, edx
mov r8, rbx
call fcn.1402d26c0
jmp 0x14022497b
lea rdx, [rsp + 0x1e0]
mov rcx, rdi
mov r8, rbp
call fcn.1402d2020
jmp 0x140224bbe
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 0x140224db2
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 0x1402247bc
test r12, r12
setne al
test ebp, ebp
setne cl
or cl, al
cmp cl, 1
je 0x140224d96
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.1403a2f40
jmp 0x140224da9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1d0], xmm0
movaps xmmword [rsp + 0x1c0], xmm0
mov edi, dword [rsp + 0x28]
jmp 0x140224751
call fcn.1402adcd0
test rbx, rbx
je 0x1402249cb
xor r13d, r13d
mov eax, dword [r15 + 0x114]
bswap eax
inc eax
bswap eax
mov dword [r15 + 0x114], eax
mov rax, qword [r15 + 0xf8]
lea rdx, [rdi + r13]
mov rcx, r12
mov r8, r15
call qword [case.0x1403053b8.0]
add r13, 0x10
cmp r13, rbx
jb 0x140224dc3
jmp 0x1402249cb
mov ebx, 0x2000
jmp 0x140224960
mov edx, 0x120
mov rcx, r15
call fcn.140230640
jmp 0x140224b66
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.14002fe50
jmp 0x140224af6
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
bt edi, 9
jae 0x140224e6c
call fcn.140030f50
lea rax, [0x140031420]
lea rcx, [0x140031120]
mov edi, dword [rsp + 0x28]
lea rbp, [rsp + 0x200]
jmp 0x140224b04
call fcn.140316c20
lea rax, [0x140317880]
lea rcx, [0x140316af0]
jmp 0x140224e5b
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.14002fe50
jmp 0x140224906
test r12, r12
setne al
test ebp, ebp
setne cl
or cl, al
jne 0x140224d96
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.1403a2f90
test eax, eax
mov edi, dword [rsp + 0x28]
jne 0x140224751
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.14003a250
test eax, eax
jne 0x140224751
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.1403a2f40
jmp 0x140224751
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
bt edi, 9
jae 0x140224f2b
call fcn.140030f50
lea rax, [0x140031420]
lea rcx, [0x140031120]
jmp 0x140224914
call fcn.140316c20
lea rax, [0x140317880]
lea rcx, [0x140316af0]
jmp 0x140224914
mov r15, r14
jmp 0x140224c4a