Function at 0x140386ae0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffff0e4a
mov eax, dword [0x1405afc90]
add eax, r14d
cdqe
add rax, qword [0x1405afce0]
mov r9d, dword [0x1405afd78]
lea ecx, [r9 + 0x2c843f40]
lea edx, [r9 + 0x2c843f3f]
lea r8d, [r9 + 0xe6b5a17]
add r9d, 0x724c5eb9
call qword [case.0x14012b313.0]
add r14d, dword [0x1405afc9c]
movsxd r10, r14d
add r10, qword [0x1405afcc0]
mov ecx, dword [0x1405afd78]
lea r9d, [rcx - 0x7c950f20]
add ecx, 0x7e6d8955
mov dword [rsp + 0x20], ecx
lea rcx, [rbp - 0x50]
mov rdx, rbx
mov r8, rax
mov rax, r10
call qword [case.0x14012b313.0]
lea r14, [rdi + 4]
mov ebx, dword [rdi + 0x24]
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
mov eax, dword [0x1405afc94]
mov ecx, dword [0x1405afd78]
add eax, ecx
add eax, 0x2c834d89
cdqe
add rax, qword [0x1405afcd8]
mov rcx, r14
mov edx, 0xeb6a9cd6
mov r8d, 0xe46227fa
call qword [case.0x14012b313.0]
mov r15, rax
cmp rax, 0xf
jbe 0x140386be9
lea rcx, [rbp - 0x28]
mov rdx, r15
mov r9, r14
call fcn.140088ec0
jmp 0x140386c02
mov qword [rbp - 0x18], r15
lea rcx, [rbp - 0x28]
mov rdx, r14
mov r8, r15
call fcn.14046c800
mov byte [rbp + r15 - 0x28], 0
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x28]
mov r8d, ebx
call fcn.1403a6080
mov rax, qword [rbp - 0x10]
cmp rax, 0x10
setae cl
movzx edx, byte [0x1405d0871]
test dl, cl
jne 0x140386c2c
xor dl, cl
je 0x140386c99
lea r8, [rax + rax]
sub r8, rax
add r8, qword [0x1405afd70]
mov rcx, qword [rbp - 0x28]
movabs rdx, 0x210af5208b051cea
add rdx, r8
cmp rdx, 0x1000
jb 0x140386c73
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140387124
add rax, 0x28
mov rdx, rax
mov rcx, r8
mov eax, 0xffff0e4a
add eax, dword [0x1405afca4]
cdqe
add rax, qword [0x1405afcc8]
mov r8d, 0xb3592b21
mov r9d, 0xb76ee74b
call qword [case.0x14012b313.0]
mov eax, dword [rdi]
mov dword [rdi + 0x34], eax
lea rcx, [rbp - 0x28]
call fcn.14027ca20
mov eax, dword [rbp - 0x28]
lea rdx, [rdi + 0x2c]
mov dword [rdi + 0x38], eax
mov dword [rdi + 0x30], 0xb2317ee
lea rcx, [rbp - 0x50]
call fcn.1403a6480
mov r8d, dword [rdi + 0x438]
mov rdx, qword [rdi + 0x430]
lea rcx, [rbp - 0x50]
call fcn.1403a64f0
cmp qword [0x1405d3580], 0
jne 0x140386d18
mov ecx, 0x30
call fcn.14044489c
mov qword [rax + 0x28], 0xf
lea rcx, [0x140489448]
mov qword [rax + 8], rcx
mov dword [rax], 0
mov qword [rax + 0x20], 0
mov byte [rax + 0x10], 0
mov qword [0x1405d3580], rax
mov rdx, qword [0x1405d3580]
mov qword [rbp - 8], 0xf
mov qword [rbp - 0x10], 0
movzx eax, byte [0x1405afd80]
add al, 0xd8
mov byte [rbp - 0x20], al
lea rax, [0x140489448]
mov qword [rbp - 0x28], rax
mov edi, dword [rdx]
nop dword [rax + rax]
mov r14, qword [0x1405afb48]
mov eax, dword [0x1405d35c4]
cmp eax, 0x26
jl 0x140386da0
nop word cs:[rax + rax]
mov rax, qword [0x1405afb48]
xor eax, eax
sub eax, dword [0x1405afd78]
mov ecx, eax
xor ecx, 0xd37bc0c1
and eax, 0x537bc0c1
add eax, eax
add eax, ecx
jne 0x140386d70
jmp 0x140386d50
mov eax, dword [0x1405d35c0]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x140386da0
movsxd r15, dword [r14]
mov ebx, dword [0x1404ad180]
test edi, edi
je 0x140386dcb
add rdx, 8
lea rcx, [rbp - 0x28]
call fcn.140279a10
mov rax, r15
xor rax, r14
not r15
not r14
and r14, r15
or r14, rax
not r14
lea r8, [rax + r14*2]
nop word cs:[rax + rax]
mov eax, dword [0x1405afb40]
mov ecx, dword [0x1405afd78]
lea r14d, [rcx + rax]
add r14d, 0x2c843f40
mov dword [0x1405afb40], r14d
cmp ecx, 0xd37bc0c1
je 0x140386e7a
mov r9d, dword [0x1405afb40]
mov eax, dword [0x1405afd78]
mov ecx, eax
xor ecx, 0x2c843f40
and eax, 0x2c843f40
add eax, eax
mov edx, ecx
xor edx, eax
and eax, ecx
lea eax, [rdx + rax*2]
mov ecx, r9d
sub ecx, eax
shl r9d, cl
mov eax, r9d
shl eax, cl
mov edx, r9d
mov ecx, eax
shl edx, cl
mov eax, r9d
mov ecx, edx
shl eax, cl
mov edx, r9d
mov ecx, eax
shl edx, cl
mov ecx, edx
shl r9d, cl
shl r9d, cl
mov eax, r9d
mov ecx, edx
shl eax, cl
add eax, r9d
mov dword [0x1405afb40], eax
jmp 0x140386df0
xor ecx, ecx
and r14d, eax
nop
test cl, cl
jne 0x140386eaf
mov edx, dword [0x1405d35c0]
lea eax, [rdx - 1]
imul eax, edx
mov r9d, dword [0x1405afd78]
lea r10d, [r9 + 0x2c843f41]
xor edx, edx
div r10d
add r9d, 0x2c843f3f
cmp edx, r9d
je 0x140386ebc
mov eax, dword [0x1405d35c4]
cmp eax, 0x54
jge 0x140386e80
jmp 0x140386e84
mov eax, dword [0x1405d35c4]
mov eax, 0x2c843f3f
nop word [rax + rax]
mov ecx, dword [0x1405d35c0]
mov edx, ecx
not edx
add edx, 2
imul edx, ecx
and edx, 1
mov ecx, dword [0x1405afd78]
add ecx, eax
cmp edx, ecx
jne 0x140386ed0
test r14d, r14d
je 0x140386ef9
xor r15d, r15d
jmp 0x140386f09
xor eax, eax
mov r15d, 0
test ebx, ebx
jg 0x14038707f
lea rcx, [rbp - 0x50]
lea r9, [rbp - 0x28]
mov edx, 0xb2317ee
mov r8d, edi
call fcn.1403a64a0
mov rax, qword [rbp - 8]
cmp rax, 0x10
jb 0x140386f84
mov rcx, qword [rbp - 0x20]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140386f58
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jae 0x14038700d
add rax, 0x28
mov rdx, rax
mov rcx, r8
mov eax, dword [0x1405afca4]
sub eax, dword [0x1405afd78]
add eax, 0xd37acf0b
cdqe
add rax, qword [0x1405afcc8]
mov r8d, 0xb3592b21
mov r9d, 0xb76ee74b
call qword [case.0x14012b313.0]
lea rcx, [rbp - 0x50]
mov rdx, rsi
call fcn.1403a6640
mov eax, 0x90e8643a
sub eax, dword [0x1405afca0]
mov ecx, eax
xor ecx, 0x6f188d7c
and eax, 0x6f188d7c
lea eax, [rcx + rax*2]
neg eax
cdqe
add rax, qword [0x1405afcb8]
lea rcx, [rbp - 0x50]
call qword [case.0x14012b313.0]
mov rax, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
movzx eax, word [0x1404ad188]
mov eax, dword [0x1405d35c0]
mov ecx, dword [0x1405afd78]
mov edx, eax
sub edx, ecx
add edx, 0x73f7434c
imul edx, eax
and edx, 1
add ecx, 0x2c843f3f
cmp edx, ecx
jne 0x140386fe0
movzx eax, word [0x1404ad188]
mov ecx, dword [0x1405d35c4]
cmp ecx, 0x5d
jge 0x140386fe0
xor ecx, ecx
test r14d, r14d
setne cl
mov dx, 0xb3bd
sub dx, word [0x1405afd7c]
mov r8d, ecx
xor r8d, edx
and ecx, edx
lea ecx, [r8 + rcx*2]
mov edx, eax
xor edx, 0x137d
and eax, 0x137d
lea eax, [rdx + rax*2]
sub eax, r15d
add eax, 0x283d
mov edx, eax
xor edx, 0xffffc446
and eax, 0x4446
lea eax, [rdx + rax*2]
test ax, cx
setne al
or al, byte [0x1405d0871]
and al, 1
mov byte [0x1405d0871], al
call fcn.140424a4c
lea rcx, [fcn.140386ae0]
add ecx, ecx
add ecx, 0x5e0
xor edx, edx
jmp 0x1403870fa
movzx r15d, word [r9]
mov r9d, edx
not r9d
not r15d
mov r10d, r9d
xor r10d, r15d
and r10d, r9d
and r15d, edx
or r15d, r10d
mov edx, eax
mov r9d, dword [0x1405afd78]
mov r10d, 0xd37bc0be
sub r10d, r9d
add r9d, 0x2c843f41
xor r9d, eax
not eax
and r10d, eax
and eax, 2
and edx, 0xfffffffd
or edx, eax
or r10d, r9d
not r10d
lea eax, [rdx + r10*2]
mov edx, r15d
cmp eax, ebx
jge 0x140386f09
movsxd r9, eax
add r9, r8
mov r10d, dword [0x1405d35c4]
cmp r10d, 0x5b
jle 0x1403870a0
nop dword [rax]
movzx r10d, word [r9]
mov r10d, ecx
not r10d
test r10d, ecx
jne 0x140387110
jmp 0x1403870a0
call fcn.140424a4c
int3