Function at 0x140106c60
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rcx
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rbp + 0xb0]
mov r10d, dword [rbp + 0xc0]
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
lea r11, [0x140426b18]
mov qword [rbp - 0x30], r11
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0xf
mov byte [rbp], 0
mov qword [rbp - 8], r11
mov dword [rbp - 0x48], edx
mov dword [rbp - 0x44], r10d
mov dword [rbp - 0x40], r9d
movsxd r12, dword [0x14042934c]
mov r15d, dword [0x140429340]
mov dword [rbp - 0x3c], r8d
mov dword [rbp - 0x38], 0
mov rdx, rax
call fcn.1402470b0
mov rdx, qword [rbp + 0xa8]
movzx r14d, byte [rbp + 0xc8]
lea rax, [rbp - 8]
lea r9, [0x14042934c]
add r9, r12
nop word cs:[rax + rax]
mov ecx, dword [0x140564018]
cmp ecx, 0x38
jg 0x140106d59
mov ecx, dword [0x140500c70]
lea r8d, [rcx + 1]
mov dword [0x140500c70], r8d
mov r10d, dword [0x140564018]
cmp r10d, 0x2c
jle 0x140106db1
mov r10d, dword [0x140500c70]
lea ecx, [r10 + r10]
lea r8d, [r10 + rcx]
inc r8d
not ecx
imul r8d, ecx
mov ecx, r10d
sub ecx, r8d
imul ecx, r8d
shl r10d, cl
shl r10d, cl
mov r8d, r10d
shl r8d, cl
mov dword [0x140564014], 1
mov r11d, r10d
mov ecx, r8d
shl r11d, cl
add r11d, r10d
mov dword [0x140500c70], r11d
mov ecx, dword [0x140564018]
cmp ecx, 0x3e
jge 0x140106d30
jmp 0x140106d3b
mov r10d, ecx
not r10d
xor ecx, r10d
and ecx, r8d
xor ecx, r10d
not ecx
mov r12d, r10d
xor r12d, ecx
and r12d, r10d
or r12d, ecx
not r12d
mov ecx, dword [0x140564018]
nop word [rax + rax]
mov ecx, dword [0x140564018]
cmp ecx, 0x29
jg 0x140106de0
test r12d, r12d
jne 0x140106e52
mov ecx, 0x1ce0d36a
lea r8, [fcn.140106c60]
add r8d, r8d
add r8d, 0x3a40
mov r10d, r8d
not r10d
nop dword [rax]
mov r11d, dword [0x140500cc0]
add r11d, ecx
mov r13d, r11d
xor r13d, 0x13109680
and r11d, 0x13109680
add r11d, r11d
add r11d, r13d
jne 0x140106e40
mov r11d, dword [0x140564018]
cmp r11d, 0x26
jle 0x140106e47
test r10d, r8d
jne 0x140106e10
jmp 0x140106e33
xor ecx, ecx
test r15d, r15d
jg 0x14010712a
xor r13d, r13d
mov ecx, 0x2ff16a18
nop word [rax + rax]
mov r8d, dword [0x140564018]
mov r9d, dword [0x140500cc0]
add r9d, ecx
cmp r8d, r9d
jl 0x140106ea3
nop word cs:[rax + rax]
mov r8d, dword [0x140564014]
mov r9d, dword [0x140500cc0]
neg r9d
add r9d, r8d
inc r9d
imul r9d, r8d
test r9b, 1
jne 0x140106e80
jmp 0x140106e60
mov rcx, rax
call fcn.1402470b0
mov byte [rbp + 0x20], r14b
mov rax, qword [0x140564158]
xor edx, edx
test r12d, r12d
setne dl
mov rcx, qword [0x140429338]
mov r8d, dword [0x140564018]
cmp r8d, 0xa
lea r8, [rdx - 1]
sub rcx, r13
mov r9, rcx
not r9
neg rdx
and rdx, r9
xor rcx, r8
or rcx, rdx
not rcx
mov edx, dword [0x140564018]
movabs r8, 0x6c1d07d84fbb425
nop dword [rax]
mov rdx, qword [0x140564028]
add rdx, r8
mov r9d, dword [0x140564018]
mov r10d, dword [0x140500cc0]
mov r11d, r10d
xor r11d, 0x2ff16a3e
and r10d, 0x2ff16a3e
lea r10d, [r11 + r10*2]
cmp r9d, r10d
jge 0x140106f00
add rdx, rcx
movabs rcx, 0xf93e2f827b044bdb
add rcx, rdx
nop word cs:[rax + rax]
mov edx, dword [0x140564014]
lea r8d, [rdx - 1]
imul r8d, edx
test r8b, 1
jne 0x140106f7f
mov qword [0x140564028], rcx
mov edx, dword [0x140564014]
lea r8d, [rdx - 1]
imul r8d, edx
test r8b, 1
je 0x140106f8d
cmp dword [0x140500cc0], 0xd00e9616
jne 0x140106f50
jmp 0x140106f64
test rax, rax
jne 0x140106fb3
mov ecx, 0x700
call fcn.1403e3fbc
mov qword [rbp + 0x28], rax
mov rcx, rax
call fcn.140098b60
mov rax, qword [rbp + 0x28]
mov qword [0x140564158], rax
mov rcx, qword [0x140564158]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov r10, qword [0x1404ee420]
mov rdx, qword [rbp + 0xb8]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x48]
mov rdx, rsi
mov r8, rdi
call r10
mov rax, qword [0x140564028]
add rax, qword [rbp + 0x18]
cmp rax, 0x10
jb 0x14010707e
mov rdx, qword [rbp]
mov rcx, qword [0x140564020]
lea r8, [rcx + rax]
inc r8
mov rcx, qword [0x140500cb8]
movabs r9, 0x3afac4504707c182
xor r9, rcx
movabs r10, 0x45053bafb8f83e7d
xor r10, rcx
and r10, rcx
lea rcx, [r9 + r10*2]
cmp r8, rcx
jbe 0x140107064
mov rcx, qword [rdx - 8]
sub rdx, rcx
add rdx, 0xfffffffffffffff8
movabs r8, 0x3afac4504707b1a3
add r8, qword [0x140500cb8]
cmp rdx, r8
jae 0x1401071ff
add rax, 0x28
mov r8, rax
mov rdx, rcx
mov dword [rsp + 0x28], 0xce73d831
mov dword [rsp + 0x20], 0x5101423f
xor ecx, ecx
xor r9d, r9d
call fcn.1401074e0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0xf
mov byte [rbp], 0
mov rax, qword [rbp - 0x10]
cmp rax, 0x10
jb 0x140107113
mov rdx, qword [rbp - 0x28]
lea r8, [rax + 1]
cmp r8, 0x1000
jb 0x1401070f9
mov rcx, qword [rdx - 8]
mov r8, qword [0x140500cb8]
sub r8, rdx
add r8, rcx
movabs rdx, 0xc5053bafb8f84e75
sub rdx, r8
cmp rdx, 0x20
jae 0x140107204
mov rdx, rax
xor rdx, 0x28
not rax
movabs r8, 0x7fffffffffffffd7
and r8, rax
or r8, rdx
not r8
lea r8, [rdx + r8*2]
mov rdx, rcx
mov dword [rsp + 0x28], 0xce73d831
mov dword [rsp + 0x20], 0x5101423f
xor ecx, ecx
xor r9d, r9d
call fcn.1401074e0
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [fcn.140106c60]
add r8d, r8d
add r8d, 0x21e0
xor r13d, r13d
nop
mov r10d, dword [0x140564018]
nop word [rax + rax]
mov r10d, dword [0x140500cc0]
add r10d, 0x2ff169eb
xor r10d, r8d
not r10d
test r10d, r8d
jne 0x140107150
movsxd r10, ecx
add r10, r9
mov r10, qword [r10]
nop word cs:[rax + rax]
mov r11d, dword [0x140564014]
lea ebx, [r11 - 1]
imul ebx, r11d
test bl, 1
je 0x1401071b0
nop word cs:[rax + rax]
mov r11d, dword [0x140564018]
cmp r11d, 0x17
jge 0x1401071a0
jmp 0x140107180
xor r13, r10
nop word cs:[rax + rax]
cmp dword [0x140500cc0], 0xd00e9616
jne 0x1401071c0
mov r10d, ecx
xor r10d, 0xf883fb88
and ecx, 0x7883fb88
lea ecx, [r10 + rcx*2]
mov r10d, 0xd10af901
sub r10d, ecx
mov ecx, 0xd886fd81
sub ecx, r10d
cmp ecx, r15d
jl 0x140107140
jmp 0x140106e55
call fcn.1403c3cac
call fcn.1403c3cac
int3