Function at 0x140386940
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rsi, r9
mov rbx, r8
mov qword [rbp - 0x40], rdx
mov qword [rbp], rcx
call fcn.140367a40
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], 0xb
xor ecx, ecx
mov edx, 1
mov r8d, 0x1d5e5565
mov r9d, 0xb7c556e3
call fcn.140387010
mov rcx, qword [rax]
mov qword [rbp - 0x30], rcx
mov eax, dword [rax + 7]
mov dword [rbp - 0x29], eax
mov byte [rbp - 0x25], 0
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x38], rsi
mov rcx, rsi
call fcn.140368ec0
mov r8, qword [rbp - 0x18]
cmp r8, 0x10
jb 0x140386a40
mov rcx, qword [rbp - 0x30]
lea rdx, [r8 + 1]
cmp rdx, 0x1000
jb 0x140386a3b
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x140386f5a
mov rcx, r8
not rcx
movabs rdx, 0x7fffffffffffffd7
and rdx, rcx
and ecx, 0x28
mov r9, r8
and r9, 0xffffffffffffffd7
or r9, rcx
xor r8, 0x28
or rdx, r8
not rdx
add rdx, rdx
mov rcx, r9
not rcx
mov r8, rdx
xor r8, rcx
xor rcx, r9
and rcx, rdx
xor rcx, r9
and r8, rdx
lea rdx, [rcx + r8*2]
mov rcx, rax
call fcn.1400a6550
mov rdx, qword [rbx + 8]
lea rcx, [fcn.140386940]
lea eax, [rcx + rcx]
add eax, 0x2961
lea r8d, [rcx + rcx]
add r8d, 0x2960
not r8d
mov ecx, r8d
and ecx, eax
and r8d, 0xfffffffe
xor r8d, eax
or r8d, ecx
mov dword [rbp - 0xc], r8d
mov r10d, 0xb307a81f
xor esi, esi
mov r11d, 0xb307a81e
mov edi, 0xb307a85d
mov qword [rbp - 0x48], rdx
mov r14, rdx
nop
mov r14, qword [r14]
cmp r14, qword [rbp - 0x48]
je 0x140386f42
mov qword [rbp - 8], r14
cmp dword [rbp - 0xc], 0xffffffff
je 0x140386ab3
mov eax, dword [0x140427774]
mov eax, dword [0x140427770]
movsxd r15, dword [0x140427774]
mov r14d, dword [0x140427770]
mov rax, qword [rbp - 0x40]
mov r12, qword [rax + 0x198]
mov rbx, qword [rax + 0x1a0]
mov dword [rbp + 0xc], 0
cmp r12, rbx
je 0x140386b46
mov rax, qword [rbp - 8]
lea r13, [rax + 0x18]
nop word [rax + rax]
mov rcx, r12
mov rdx, r13
xor r8d, r8d
call fcn.14024c700
sub rax, qword [0x1405203c0]
add rax, qword [0x140531610]
movabs rcx, 0x8765dbb92e31e5a3
cmp rax, rcx
jne 0x140386b30
add r12, 0x20
cmp r12, rbx
jne 0x140386af0
jmp 0x140386b3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x38]
mov dword [rbp + 0xc], eax
mov r10d, 0xb307a81f
mov r11d, 0xb307a81e
lea rax, [0x140427774]
add r15, rax
lea rbx, [fcn.140386940]
nop word [rax + rax]
mov ecx, dword [0x140534d80]
lea eax, [rcx - 1]
imul eax, ecx
mov ecx, dword [0x1405203cc]
add ecx, r10d
xor edx, edx
div ecx
test edx, edx
jne 0x140386b82
test sil, sil
je 0x140386bb0
mov eax, dword [0x140534d84]
mov ecx, dword [0x1405203cc]
mov edx, ecx
xor edx, 0xb307a839
and ecx, 0x3307a839
lea ecx, [rdx + rcx*2]
cmp eax, ecx
jge 0x140386b60
jmp 0x140386b7d
mov r12d, dword [0x1405202c0]
mov ecx, dword [0x140534d80]
lea eax, [rcx - 1]
imul eax, ecx
mov ecx, dword [0x1405203cc]
mov edx, ecx
xor edx, 0xb307a81f
and ecx, 0x3307a81f
lea ecx, [rdx + rcx*2]
xor edx, edx
div ecx
test edx, edx
lea eax, [r12 + 1]
mov dword [0x1405202c0], eax
mov ecx, r12d
not ecx
mov edx, dword [0x140534d80]
mov r8d, 0xb6a8ee37
sub r8d, edx
imul r8d, edx
test r8b, 1
jne 0x140386bf0
mov edx, eax
not edx
and ecx, edx
xor r12d, eax
or r12d, ecx
not r12d
or r12d, ecx
xor r12d, edx
and r12d, eax
mov edx, dword [0x1405203cc]
mov eax, 0xb307a81d
add edx, eax
cmp r12d, edx
mov dword [rbp - 0x10], edx
jne 0x140386c55
mov eax, dword [0x140534d80]
nop dword [rax]
lea eax, [rbx + rbx]
add eax, 0x4600
mov ecx, eax
not ecx
test ecx, eax
jne 0x140386c40
test r14d, r14d
jg 0x140386cd0
xor r13d, r13d
mov r14, qword [rbp - 8]
mov rax, qword [r14 + 0x10]
mov qword [rbp - 0x30], rax
mov r15d, dword [rbp + 0xc]
mov dword [rbp - 0x28], r15d
mov rcx, qword [rbp]
lea rdx, [rbp - 0x58]
lea r8, [rbp - 0x30]
call fcn.140371e20
mov eax, dword [0x1405203cc]
lea ecx, [rax - 0x4cf857e2]
lea edx, [rbx + rbx]
add edx, 0xf20
mov r8d, edx
xor r8d, ecx
not ecx
not edx
and edx, ecx
or edx, r8d
not edx
mov ecx, eax
xor ecx, 0xb307a81d
not eax
and eax, 0x4cf857e2
or eax, ecx
not eax
lea eax, [rcx + rax*2]
cmp edx, eax
mov r9d, dword [rbp - 0x10]
je 0x140386e50
jmp 0x140386ea0
xor ecx, ecx
xor r13d, r13d
jmp 0x140386cf2
mov eax, 8
sub eax, ecx
mov ecx, eax
cmp eax, r14d
jge 0x140386c58
movsxd rax, ecx
mov edx, dword [0x140534d84]
cmp edx, 0x5b
jg 0x140386d20
mov edx, dword [0x140534d80]
mov r8d, edx
sub r8d, dword [0x1405203cc]
imul r8d, edx
test r8b, 1
je 0x140386d30
nop word [rax + rax]
mov edx, dword [0x140534d84]
cmp edx, 0x28
jge 0x140386d20
jmp 0x140386d00
add rax, r15
mov r8, qword [rax]
mov edx, dword [0x140534d80]
lea eax, [rdx - 1]
imul eax, edx
mov r9d, dword [0x1405203cc]
add r9d, r10d
xor edx, edx
div r9d
test edx, edx
mov edx, dword [0x140534d80]
lea eax, [rdx - 1]
imul eax, edx
mov edx, dword [0x1405203cc]
mov r9d, edx
xor r9d, 0xb307a81f
and edx, 0x3307a81f
lea r9d, [r9 + rdx*2]
xor edx, edx
div r9d
test edx, edx
jne 0x140386d53
mov rax, r8
not rax
mov edx, dword [0x1405203cc]
add edx, r11d
lea r9d, [rbx + rbx]
add r9d, 0x24a0
xor edx, r9d
not edx
test edx, r9d
jne 0x140386e30
nop word [rax + rax]
mov dl, 1
test dl, dl
je 0x140386e30
mov rdx, r13
not rdx
and rdx, r8
nop
mov r8d, dword [0x140534d84]
cmp r8d, 0x2c
jg 0x140386dc0
mov r8, r13
and r8, rax
mov r13, rdx
xor r13, r8
neg ecx
nop dword [rax + rax]
mov eax, dword [0x140534d84]
cmp eax, 0x40
jg 0x140386e00
mov eax, dword [0x140534d80]
lea edx, [rax + 1]
imul edx, eax
test dl, 1
je 0x140386ce0
mov edx, dword [0x140534d80]
lea eax, [rdx - 1]
imul eax, edx
mov r8d, dword [0x1405203cc]
lea r9d, [r8 - 0x4cf857e1]
xor edx, edx
div r9d
add r8d, 0xb307a81d
cmp edx, r8d
jne 0x140386de0
jmp 0x140386deb
mov edx, dword [0x140534d84]
mov r9d, dword [0x1405203cc]
add r9d, edi
cmp edx, r9d
jge 0x140386e30
jmp 0x140386db0
xor ecx, ecx
cmp r12d, r9d
setne dl
mov rax, qword [0x140427778]
mov r8d, dword [0x140534d84]
cmp r8d, 0x47
jg 0x140386ea0
mov cl, dl
nop
test sil, sil
jne 0x140386e89
mov edx, dword [0x140534d80]
lea r8d, [rdx - 1]
imul r8d, edx
test r8b, 1
je 0x140386eb0
mov edx, dword [0x140534d84]
cmp edx, 0x1d
jge 0x140386e70
jmp 0x140386e75
mov rax, qword [0x140427778]
jmp 0x140386e50
movabs rdx, 0x66af4720710200e4
sub rdx, rcx
mov ecx, dword [0x140534d80]
nop word cs:[rax + rax]
mov ecx, dword [0x140534d80]
lea r8d, [rcx - 1]
imul r8d, ecx
and r8d, 1
mov ecx, dword [0x1405203cc]
mov r9d, ecx
xor r9d, 0x6a4abe74
and ecx, 0x6a4abe74
lea ecx, [r9 + rcx*2]
add ecx, 0x48bce9a9
cmp r8d, ecx
jne 0x140386ed0
movabs rcx, 0x66af4720710200e3
sub rcx, rdx
sub rax, r13
and rax, rcx
add qword [0x140531610], rax
mov rdx, qword [r14 + 0x10]
mov rcx, qword [rbp - 0x38]
mov r8d, r15d
call fcn.140368fa0
mov r10d, 0xb307a81f
mov r11d, 0xb307a81e
jmp 0x140386a90
mov rax, qword [rbp]
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.14039c09c
int3