Function at 0x140220000
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 [0x140430040]
xor rax, rsp
mov qword [rsp + 0x218], rax
test rdx, rdx
je 0x1402204c6
mov r13, rdx
mov rbx, rcx
call fcn.14022c810
mov r12, rax
call fcn.1402199e0
mov ebp, eax
mov ecx, 1
call fcn.14022c820
movaps xmm6, xmmword [0x1403d4b30]
movaps xmmword [rsp + 0x1c0], xmm6
movaps xmmword [rsp + 0x1d0], xmm6
test eax, 0x40000000
mov dword [rsp + 0x28], eax
je 0x1402206cc
mov edi, eax
xor ecx, ecx
call fcn.14022c820
test eax, 0x40000000
je 0x1402207ed
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.14003a250
test eax, eax
je 0x1402207ed
lea r14, [rsp + 0x88]
mov r8d, 0x138
mov rcx, r14
mov dl, 0xaa
call fcn.1402b6a10
mov ecx, 1
call fcn.14022c760
test rax, rax
je 0x140220575
mov r15, rax
add rax, 0x128
mov qword [rsp + 0x30], rax
cmp dword [r15 + 0x128], 0xfff
ja 0x140220665
cmp qword [r15 + 0x120], r12
jne 0x140220665
cmp dword [r15 + 0x130], ebp
jne 0x140220665
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 r13, 0x10000
mov r14d, 0x10000
cmovb r14, r13
cmp rax, rcx
ja 0x14022070e
test byte [rsp + 0x38], 1
jne 0x14022028b
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 [str._a_]
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 [str._a_]
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 [str._a_]
xor eax, eax
nop dword [rax]
movzx ecx, byte [rsp + rax + 0x1c0]
xor byte [rsp + rax + 0x1e0], cl
inc rax
cmp rsi, rax
jne 0x140220220
test edi, 0x2000000
je 0x14022084f
cmp dword [rsp + 0x2c], 0x12000000
jne 0x14022076a
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, rbx
mov rbp, r14
cmp r13, 0x10
jb 0x140220346
mov rbp, r14
mov rdi, rbx
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rbx
cmp rbp, 0x2000
mov r13d, 0x2000
cmovb r13, rbp
mov ebx, r13d
and ebx, 0x3ff0
cmp qword [r15 + 0x100], 0
je 0x140220713
cmp ebx, 0x10
jne 0x140220563
movups xmmword [rdi], xmm7
shr r13, 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 [str._a_]
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 r13, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
ja 0x1402202ab
mov ecx, dword [r15 + 0x114]
mov rax, qword [r15 + 0xf8]
test rbp, rbp
jne 0x1402204e0
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 [str._a_]
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 [str._a_]
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 [str._a_]
test byte [rsp + 0x38], 1
jne 0x140220427
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 0x140220410
test edi, 0x2000000
je 0x140220784
cmp dword [rsp + 0x2c], 0x12000000
jne 0x1402207d3
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 rbx, r14
mov cl, 1
mov qword [rsp + 0x38], rcx
mov esi, 0
sub r13, r14
movabs rcx, 0x1000000000000
jne 0x140220152
lea rax, [rsp + 0x88]
cmp r15, rax
je 0x140220758
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14022053d
call fcn.140278ca0
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 [str._a_]
cmp rbp, 8
jne 0x14022064d
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 0x140220369
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 0x140220632
movups xmmword [rdi + 0x10], xmm7
jmp 0x1402202dc
mov rsi, rbx
mov ecx, 0x138
call fcn.140133a30
test rax, rax
je 0x140220895
mov r15, rax
lea r8, [0x14011a1b0]
mov ecx, 1
mov rdx, rax
call fcn.140147370
test eax, eax
je 0x140220895
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 rbx, [rsp + 0x50]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov edx, 0x30
mov rcx, rdi
call fcn.1401474d0
mov rcx, r15
mov rdx, rdi
mov r8, rbx
xor r9d, r9d
call fcn.140119e00
test eax, eax
je 0x14022070e
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 rbx, rsi
mov edi, dword [rsp + 0x28]
jmp 0x140220108
test rbx, rbx
je 0x1402202df
mov rcx, rdi
xor edx, edx
mov r8, rbx
call fcn.1402b6a10
jmp 0x1402202df
lea rdx, [rsp + 0x1e0]
mov rcx, rdi
mov r8, rbp
call fcn.1402b6370
jmp 0x14022051e
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.1401474d0
mov r8d, 0x30
mov rcx, r15
mov rdx, rdi
call fcn.14011a000
test eax, eax
je 0x14022070e
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 0x14022011c
test r12, r12
setne al
test ebp, ebp
setne cl
or cl, al
cmp cl, 1
je 0x1402206f2
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.14031fc90
jmp 0x140220705
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1d0], xmm0
movaps xmmword [rsp + 0x1c0], xmm0
mov edi, dword [rsp + 0x28]
jmp 0x1402200b1
call fcn.140292318
test rbx, rbx
je 0x14022032c
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 [str._a_]
add r13, 0x10
cmp r13, rbx
jb 0x14022071f
jmp 0x14022032c
mov edx, 0x120
mov rcx, r15
call fcn.140227f10
jmp 0x1402204c6
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.14002fe50
jmp 0x140220266
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
bt edi, 9
jae 0x1402207be
call fcn.140030f50
lea rax, [0x140031420]
lea rcx, [0x140031120]
mov edi, dword [rsp + 0x28]
lea rbp, [rsp + 0x200]
jmp 0x140220464
call fcn.1402f9b40
lea rax, [0x1402fa780]
lea rcx, [0x1402f9a10]
jmp 0x1402207ad
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
call fcn.14002fe50
jmp 0x140220456
test r12, r12
setne al
test ebp, ebp
setne cl
or cl, al
jne 0x1402206f2
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.14031fce0
test eax, eax
mov edi, dword [rsp + 0x28]
jne 0x1402200b1
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.14003a250
test eax, eax
jne 0x1402200b1
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.14031fc90
jmp 0x1402200b1
lea rcx, [rsp + 0x1e0]
mov edx, 0x100
mov r8, r15
bt edi, 9
jae 0x14022087d
call fcn.140030f50
lea rax, [0x140031420]
lea rcx, [0x140031120]
jmp 0x140220274
call fcn.1402f9b40
lea rax, [0x1402fa780]
lea rcx, [0x1402f9a10]
jmp 0x140220274
mov r15, r14
jmp 0x1402205aa