Function at 0x140196d30
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov eax, dword [rcx + 0x160]
mov ecx, eax
not ecx
mov edx, ecx
and edx, 0xfffffeff
and eax, 0x100
or eax, edx
xor ecx, eax
test ecx, eax
je 0x140196e20
mov rdi, qword [rsi + 0x128]
mov ecx, 0x24255d5a
mov edx, 0xd3203660
mov r8d, 0x95aaddb9
call fcn.1401a71e0
cmp rdi, rax
jbe 0x140196d9f
mov qword [rsi + 0x128], 0
mov eax, dword [rsi + 0x120]
mov ecx, dword [0x1406128a0]
mov edx, ecx
not edx
mov r8d, edx
and r8d, eax
mov r9d, ecx
xor ecx, eax
not eax
and r9d, eax
or r9d, r8d
and eax, edx
or eax, ecx
not eax
add eax, eax
mov ecx, r9d
xor ecx, eax
and eax, r9d
lea edi, [rcx + rax*2]
mov ecx, 0x24255d5a
mov edx, 0xd3203660
mov r8d, 0x95aaddb9
call fcn.1401a71e0
mov rcx, qword [rsi + 0x128]
sub rax, rcx
test dil, 4
mov ecx, dword [rsi + 0x134]
lea r8d, [rcx + rcx + 0x7d0]
lea edx, [rcx + rcx + 0x1b58]
cmove edx, r8d
movsxd rdi, dword [0x1404ceb40]
mov cl, 1
test cl, cl
je 0x140196e60
jmp 0x140196e27
mov cl, 1
jmp 0x140197445
mov ecx, dword [0x1405ab198]
mov r8d, ecx
xor r8d, 0x395b149c
and ecx, 0x395b149c
lea ecx, [r8 + rcx*2]
add ecx, 0xeacd262f
lea r8, [fcn.140196d30]
add r8d, r8d
add r8d, 0x4060
test r8d, ecx
je 0x140196e6d
nop dword [rax]
mov ecx, dword [0x14061288c]
cmp ecx, 0x42
jge 0x140196e60
jmp 0x140196e27
lea rcx, [0x1404ceb40]
add rdi, rcx
mov ecx, dword [0x1405ab198]
mov r8d, ecx
xor r8d, 0x24283acb
and ecx, 0x24283acb
lea ecx, [r8 + rcx*2]
lea r8, [fcn.140196d30]
add r8d, r8d
add r8d, 0x3780
xor r8d, ecx
not r8d
test r8d, ecx
jne 0x140196ebe
mov ebx, dword [0x1404ceb54]
mov ecx, dword [0x14061288c]
cmp ecx, 0x1e
jl 0x140196eee
lea rcx, [fcn.140196d30]
add ecx, ecx
add ecx, 0x2c60
mov r8d, ecx
not r8d
nop word cs:[rax + rax]
mov r9d, dword [0x1404ceb54]
test r8d, ecx
jne 0x140196ee0
jmp 0x140196ead
mov cl, 1
cmp rax, rdx
jb 0x140197445
movaps xmm0, xmmword [0x1404c9fc0]
movups xmmword [0x140605cef], xmm0
movups xmmword [0x140605cdf], xmm0
movups xmmword [0x140605ccf], xmm0
movups xmmword [0x140605cbf], xmm0
mov rcx, qword [0x140612a68]
test rcx, rcx
je 0x140196f44
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x14016c073.0]
mov qword [0x140612a68], 0
mov byte [0x140612968], 1
cmp qword [0x1406127a8], 0
jne 0x140196f81
mov ecx, 0x700
mov edx, 0x743e8d5a
mov r8d, 0x9d1363d8
call fcn.1400a9190
mov qword [rbp - 8], rax
mov rcx, rax
call fcn.1400958f0
mov rax, qword [rbp - 8]
mov qword [0x1406127a8], rax
mov r12, qword [0x1406127a8]
lea r13, [r12 + 0x558]
mov rcx, qword [r12 + 0x558]
lea rdx, [fcn.140196d30]
lea r8d, [rdx + rdx]
add r8d, 0x1fe0
mov eax, r8d
not eax
and r8d, eax
add edx, edx
add edx, 0x1fe1
and eax, 0xfffffffe
xor eax, edx
or eax, r8d
nop word cs:[rax + rax]
mov edx, dword [0x14061288c]
cmp edx, 0xe
jg 0x140196fe0
cmp eax, 0xffffffff
je 0x140196ffb
mov edx, dword [0x140612888]
mov r8d, 1
sub r8d, edx
imul r8d, edx
test r8b, 1
jne 0x140196fd0
jmp 0x140196fdb
mov r8d, dword [0x1405a9b8c]
mov r15d, r8d
neg r15d
mov eax, dword [0x14061288c]
cmp eax, 0x26
jg 0x140197020
jmp 0x140197015
mov eax, dword [0x14061288c]
cmp eax, 0x47
jl 0x140197033
mov eax, dword [0x140612888]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
jne 0x140197020
jmp 0x140197015
dec r15d
neg r15d
mov dword [0x1405a9b8c], r15d
test r8d, r15d
mov dword [rbp - 8], r8d
jne 0x140197051
test ebx, ebx
jg 0x14019728f
xor r14d, r14d
mov eax, dword [0x140612888]
nop word [rax + rax]
mov eax, dword [0x140612888]
mov edx, dword [0x1405ab198]
mov r8d, edx
not r8d
add r8d, eax
imul r8d, eax
and r8d, 1
mov eax, edx
xor eax, 0x24283aca
and edx, 0x24283aca
lea eax, [rax + rdx*2]
cmp r8d, eax
jne 0x140197060
test rcx, rcx
je 0x140197152
cmp dword [r12 + 0x574], 1
jne 0x1401970b5
mov r8, qword [r12 + 0x560]
xor edx, edx
call fcn.1404ad740
mov rcx, qword [r13]
test rcx, rcx
setne r8b
sete al
movzx edx, byte [0x140612890]
xor al, dl
not dl
and dl, r8b
xor dl, al
xor al, 1
mov r8d, eax
or r8b, dl
test r8b, 1
je 0x140197101
xor al, dl
test al, 1
jne 0x140197101
mov r8d, dword [0x1405ab198]
lea edx, [r8 - 0x34b67123]
add r8d, 0x20367493
call fcn.1400a8b80
cmp qword [0x1406127a8], 0
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
mov byte [r12 + 0x570], 1
jne 0x14019716b
mov ecx, 0x700
mov edx, 0x743e8d5a
mov r8d, 0x9d1363d8
call fcn.1400a9190
mov qword [rbp - 0x10], rax
mov rcx, rax
call fcn.1400958f0
mov rax, qword [rbp - 0x10]
mov qword [0x1406127a8], rax
jmp 0x14019716b
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
mov byte [r12 + 0x570], 1
mov rdi, qword [0x1406127a8]
mov r8, qword [rdi + 0x370]
mov rax, qword [rdi + 0x378]
add rax, qword [0x140612898]
mov rcx, r8
sub rcx, rax
mov rax, qword [0x1405ab1a0]
movabs rdx, 0xdae741641b4969dc
xor rdx, rax
movabs r9, 0x5ae741641b4969dc
and r9, rax
lea rax, [rdx + r9*2]
add rax, rcx
movabs rcx, 0xae43dbbca47ffe5f
sub rcx, rax
shr rcx, 5
imul eax, ecx, 0xcccccccd
test eax, eax
jle 0x140197252
mov ebx, 0x80
mov r12d, 1
cmp dword [r8 + rbx + 8], 0
je 0x140197202
jmp 0x14019720a
add rbx, 0xa0
inc r12
cmp dword [r8 + rbx + 8], 0
jne 0x14019720a
cmp qword [r8 + rbx + 8], 0
je 0x140197230
mov edx, dword [r8 + rbx - 0x5c]
add r8, rbx
mov dword [rsp + 0x28], 0x53acbe50
mov dword [rsp + 0x20], 0x6328299b
mov rcx, rdi
mov r9d, 0x7d23a3d3
call fcn.1400aa4a0
mov r8, qword [rdi + 0x370]
mov rax, qword [rdi + 0x378]
sub rax, r8
shr rax, 5
imul eax, eax, 0xcccccccd
cdqe
cmp r12, rax
jl 0x1401971f0
mov rax, qword [rdi + 0x390]
mov rcx, qword [rdi + 0x398]
xor r8d, r8d
test dword [rbp - 8], r15d
setne r8b
movzx edx, word [0x1404cebfc]
or r8d, 0xf600
mov r9d, dword [0x14061288c]
cmp r9d, 0x43
jge 0x140197480
jmp 0x140197458
mov eax, 2
xor r14d, r14d
nop word [rax + rax]
lea edx, [rax - 2]
movsxd rdx, edx
movzx edx, word [rdi + rdx]
mov r8d, edx
xor r8d, edx
not r8d
and r8d, r14d
xor r8d, edx
mov r14d, r8d
cmp eax, ebx
jge 0x140197054
add eax, 2
jmp 0x1401972a0
mov rbx, rax
cmp rax, rdi
je 0x140197564
mov dword [rbx + 0x30], 0
mov dword [rbx + 0x28], 0
mov r8, qword [rbx + 0x58]
test r8, r8
je 0x1401972fe
mov rcx, qword [rbx + 0x50]
mov dl, 1
call fcn.1404ad740
mov r8, qword [rbx + 0x98]
test r8, r8
je 0x140197318
mov rcx, qword [rbx + 0x90]
mov dl, 1
call fcn.1404ad740
mov rcx, qword [rbx + 0x10]
movzx eax, byte [0x1405ab1a8]
mov edx, eax
xor dl, 0x25
and al, 0x25
add al, al
add al, dl
cmp byte [rcx + 0x19], al
jne 0x140197350
nop word cs:[rax + rax]
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140197340
jmp 0x1401972d0
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1401972d0
mov rcx, rbx
mov rbx, rax
cmp rcx, qword [rax + 0x10]
je 0x140197350
mov rax, rbx
jmp 0x1401972d0
mov rcx, rdx
cmp rdx, rax
je 0x1401973cf
mov dword [rcx + 0x20], 0xffffffff
mov r8, qword [rcx + 0x10]
movzx edx, byte [0x140612621]
add dl, byte [r8 + 0x19]
je 0x1401973c0
mov rdx, qword [rcx + 8]
cmp byte [rdx + 0x19], 0
jne 0x140197380
mov r8, rcx
mov rcx, rdx
cmp r8, qword [rdx + 0x10]
je 0x1401973a0
mov rdx, rcx
jmp 0x140197380
mov rdx, r8
mov r8, qword [r8]
cmp byte [r8 + 0x19], 0
je 0x1401973c0
jmp 0x140197380
cmp qword [0x1406127a8], 0
jne 0x140197405
mov ecx, 0x700
mov edx, 0x743e8d5a
mov r8d, 0x9d1363d8
call fcn.1400a9190
mov qword [rbp - 8], rax
mov rcx, rax
call fcn.1400958f0
mov rax, qword [rbp - 8]
mov qword [0x1406127a8], rax
mov rbx, qword [0x1406127a8]
mov rdi, qword [rbx + 0x3b0]
test rdi, rdi
je 0x140197428
mov rcx, rdi
call fcn.140097230
mov rcx, rdi
call fcn.1400a8b90
mov qword [rbx + 0x3b0], 0
mov rax, qword [rsi]
mov rax, qword [rax + 0x30]
mov rcx, rsi
call qword [case.0x14016c073.0]
xor ecx, ecx
mov eax, ecx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r9d, dword [0x140612888]
mov r10d, 1
sub r10d, r9d
imul r10d, r9d
test r10b, 1
je 0x140197497
nop word cs:[rax + rax]
mov r9d, dword [0x140612888]
lea r10d, [r9 - 1]
imul r10d, r9d
test r10b, 1
jne 0x140197480
jmp 0x140197458
movsx r8d, r8w
add r8d, 0x9ff
sub edx, r14d
xor edx, r8d
not edx
and edx, r8d
movzx edx, dx
mov r8d, dword [0x1406128a0]
mov r9d, r8d
xor r9d, edx
and r8d, edx
lea edx, [r9 + r8*2]
mov dword [0x1406128a0], edx
mov rdx, rax
neg rdx
dec rax
xor rax, rdx
and rax, rcx
xor rax, rdx
and rdx, rcx
lea rax, [rax + rdx*2]
movzx ecx, byte [0x1405ab1a0]
add cl, 0x7f
shr rax, cl
test eax, eax
jle 0x140197544
xor ebx, ebx
nop word cs:[rax + rax]
mov dword [rsp + 0x28], 0x53acbe50
mov dword [rsp + 0x20], 0x6328299b
mov rcx, rdi
mov edx, ebx
xor r8d, r8d
mov r9d, 0x7d23a3d3
call fcn.1400aa4a0
mov rax, qword [rdi + 0x398]
sub rax, qword [rdi + 0x390]
inc ebx
movzx ecx, byte [0x1405ab1a0]
add cl, 0x7f
shr rax, cl
cmp ebx, eax
jl 0x140197500
mov rax, qword [0x1406126d8]
test rax, rax
je 0x1401973cf
mov rdi, qword [rax + 0x20]
mov rbx, qword [rdi]
cmp rbx, rdi
jne 0x1401972dc
mov rax, qword [0x1406126d8]
mov rax, qword [rax + 0x30]
mov rcx, qword [rax]
cmp rcx, rax
jne 0x140197388
jmp 0x1401973cf