Function at 0x14035ff90
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, r8
mov r12, rdx
mov rdi, rcx
mov eax, dword [0x1405863b0]
mov ecx, dword [0x140586470]
add eax, ecx
add eax, 0x9fee1096
cdqe
add rax, qword [0x140586400]
mov ecx, 1
xor edx, edx
mov r8d, 0x7a793d62
mov r9d, 0x91ee4193
call qword [case.0x1401238cb.0]
mov esi, 0xffff0e4a
mov ecx, dword [0x1405863bc]
add ecx, esi
movsxd r10, ecx
add r10, qword [0x1405863e0]
mov dword [rsp + 0x20], 0xfc3cf042
lea rcx, [rbp - 0x58]
mov rdx, rbx
mov r8, rax
mov r9d, 0x56e6b1a1
mov rax, r10
call qword [case.0x1401238cb.0]
lea r14, [rdi + 4]
mov ebx, dword [rdi + 0x24]
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0xf
add esi, dword [0x1405863b4]
mov byte [rbp - 0x28], 0
movsxd rax, esi
add rax, qword [0x1405863f8]
mov rcx, r14
mov edx, 0x8739fdfb
mov r8d, 0x3055fa9
call qword [case.0x1401238cb.0]
mov r15, rax
cmp rax, 0xf
jbe 0x140360082
lea rcx, [rbp - 0x28]
mov rdx, r15
mov r9, r14
call fcn.14008d4c0
jmp 0x14036009b
mov qword [rbp - 0x18], r15
lea rcx, [rbp - 0x28]
mov rdx, r14
mov r8, r15
call fcn.140440940
mov byte [rbp + r15 - 0x28], 0
mov eax, dword [0x1405a995c]
cmp eax, 0x2e
lea rcx, [rbp - 0x58]
lea rdx, [rbp - 0x28]
mov r8d, ebx
call fcn.14037ba90
mov ecx, dword [0x1405a9958]
mov edx, dword [0x140586470]
mov eax, ecx
sub eax, edx
add eax, 0x6010fdb3
imul eax, ecx
mov ecx, edx
xor ecx, 0x9fef024e
and edx, 0x1fef024e
lea ecx, [rcx + rdx*2]
xor edx, edx
div ecx
test edx, edx
nop word cs:[rax + rax]
mov rax, qword [rbp - 0x10]
cmp rax, 0x10
setb cl
setae r8b
movzx edx, byte [0x1405a6c18]
mov r9d, dword [0x1405a995c]
mov r10d, 0x9fef028e
add r10d, dword [0x140586470]
cmp r9d, r10d
jge 0x1403600f0
xor cl, r8b
and cl, dl
and dl, r8b
xor cl, r8b
or cl, dl
test cl, 1
je 0x140360218
mov rbx, qword [rbp - 0x28]
lea r14, [rax + 1]
cmp r14, 0x1000
jb 0x140360165
mov rcx, qword [rbx - 8]
sub rbx, rcx
add rbx, 0xfffffffffffffff8
cmp rbx, 0x20
jae 0x140360284
add rax, 0x28
mov r14, rax
mov rbx, rcx
mov esi, 0xffff0e4a
lea rax, [fcn.14035ff90]
lea r15d, [rax + rax]
add r15d, 0x38e0
nop dword [rax]
mov eax, dword [0x1405863c4]
add eax, esi
cdqe
add rax, qword [0x1405863e8]
mov r9d, dword [0x140586470]
lea r8d, [r9 - 0x5e60a5bd]
add r9d, 0x22be1610
mov rcx, rbx
mov rdx, r14
call qword [case.0x1401238cb.0]
mov eax, dword [0x1405a995c]
cmp eax, 0xe
jl 0x140360218
nop dword [rax]
mov eax, dword [0x1405863c4]
add eax, esi
cdqe
add rax, qword [0x1405863e8]
mov rcx, rbx
mov rdx, r14
mov r8d, 0x1b057f7
mov r9d, 0x82cf13c4
call qword [case.0x1401238cb.0]
mov eax, dword [0x140586470]
mov ecx, eax
xor ecx, 0x9fef024d
mov edx, eax
and edx, 0x1fef024d
lea ecx, [rcx + rdx*2]
xor ecx, r15d
not ecx
and ecx, r15d
add eax, 0x9fef024c
cmp ecx, eax
jne 0x1403601c0
jmp 0x140360180
mov eax, dword [rdi]
mov dword [rdi + 0x34], eax
lea rcx, [rbp - 0x28]
call fcn.1402759e0
mov eax, dword [rbp - 0x28]
lea rdx, [rdi + 0x2c]
mov dword [rdi + 0x38], eax
mov dword [rdi + 0x30], 0xb2317db
lea rcx, [rbp - 0x58]
call fcn.14037be70
mov r8d, dword [rdi + 0x438]
mov rdx, qword [rdi + 0x430]
lea rcx, [rbp - 0x58]
call fcn.14037bee0
cmp qword [0x1405a9910], 0
movabs rbx, 0x210af5208b051cf8
jne 0x140360327
mov ecx, 0x30
call fcn.14041885c
mov rdi, rax
xor eax, eax
test al, al
je 0x140360289
jmp 0x1403602d3
call fcn.1403f89dc
mov qword [rdi + 0x28], 0xf
lea rax, [0x14045cff8]
mov qword [rdi + 8], rax
mov dword [rdi], 0
mov qword [rdi + 0x20], 0
mov byte [rdi + 0x10], 0
mov eax, 0x9fef024d
add eax, dword [0x140586470]
mov qword [0x1405a9910], rdi
lea rcx, [fcn.14035ff90]
add ecx, ecx
add ecx, 0x1200
test ecx, eax
je 0x140360327
mov ecx, 0x55
call fcn.1403f8a54
mov qword [0x1405a9950], rax
lea rcx, [0x140360a20]
call fcn.140418e40
mov rax, qword [0x140586468]
add rax, rbx
mov qword [rdi + 0x28], rax
lea rax, [0x14045cff8]
mov qword [rdi + 8], rax
mov dword [rdi], 0
mov qword [rdi + 0x20], 0
mov byte [rdi + 0x10], 0
mov qword [0x1405a9910], rdi
jmp 0x140360289
lea rcx, [0x14045cff8]
mov eax, 0x9fef024c
xor r8d, r8d
nop word cs:[rax + rax]
mov rdx, qword [0x1405a9910]
mov qword [rbp - 8], 0xf
mov qword [rbp - 0x10], 0
mov byte [rbp - 0x20], 0
mov qword [rbp - 0x28], rcx
test r8b, r8b
je 0x140360387
mov qword [rbp - 8], 0xf
mov qword [rbp - 0x10], 0
mov byte [rbp - 0x20], 0
mov qword [rbp - 0x28], rcx
mov edx, dword [0x1405a995c]
cmp edx, 0x54
jmp 0x140360340
add eax, dword [0x140586470]
mov edi, dword [rdx]
mov ecx, 0x9fef024c
lea r8, [fcn.14035ff90]
add r8d, r8d
add r8d, 0x4300
mov r9d, r8d
not r9d
and r9d, r8d
mov r10d, 0x9fef025d
nop word cs:[rax + rax]
mov r8d, dword [0x140586470]
add r8d, ecx
cmp r9d, r8d
jne 0x1403603e3
mov r8, qword [0x140586268]
mov r11d, dword [0x1405a995c]
cmp r11d, 0x25
jle 0x140360402
mov r8, qword [0x140586268]
mov r8d, dword [0x1405a995c]
mov r11d, dword [0x140586470]
add r11d, r10d
cmp r8d, r11d
jge 0x1403603c0
jmp 0x1403603cf
movsxd r9, dword [r8]
mov rcx, r9
and rcx, r8
mov r10d, 0x9fef024c
nop word cs:[rax + rax]
mov r11d, dword [0x1405a9958]
lea esi, [r11 - 1]
imul esi, r11d
and esi, 1
mov r11d, dword [0x140586470]
add r11d, r10d
cmp esi, r11d
jne 0x140360420
mov qword [rbp - 0x30], r12
mov r10, r8
xor r10, r8
not r10
and r10, r9
xor r10, r8
xor r8d, r8d
test r8b, r8b
lea r13, [r10 + rcx*2]
mov ecx, dword [0x1405a9958]
lea r8d, [rcx - 1]
imul r8d, ecx
test r8b, 1
jne 0x140360483
mov esi, dword [0x140480a44]
mov ecx, dword [0x1405a995c]
cmp ecx, 0x40
jl 0x1403604af
mov ecx, 0x9fef0271
nop dword [rax + rax]
mov r8d, dword [0x140480a44]
mov r8d, dword [0x1405a995c]
mov r9d, dword [0x140586470]
add r9d, ecx
cmp r8d, r9d
jge 0x140360490
jmp 0x140360472
mov ecx, dword [0x1405a9958]
lea r8d, [rcx - 1]
imul r8d, ecx
test r8b, 1
jne 0x1403608a0
jmp 0x14036088f
add rdx, 8
lea rcx, [rbp - 0x28]
call fcn.140272c30
mov r14d, dword [0x140586260]
mov eax, r14d
xor eax, 1
mov ecx, r14d
and ecx, 1
lea r15d, [rax + rcx*2]
mov dword [0x140586260], r15d
xor r14d, r15d
not r14d
test r14d, r15d
je 0x140360507
xor r12d, r12d
jmp 0x140360513
xor eax, eax
mov r12d, 0
test esi, esi
jg 0x140360574
mov eax, dword [0x1405a995c]
cmp eax, 0x53
jle 0x14036055a
mov ecx, 0x9fef024e
nop word cs:[rax + rax]
mov eax, dword [0x1405a995c]
cmp eax, 0x18
jg 0x140360530
mov edx, dword [0x1405a9958]
lea eax, [rdx - 1]
imul eax, edx
mov r8d, dword [0x140586470]
add r8d, ecx
xor edx, edx
div r8d
test edx, edx
jne 0x140360530
mov eax, dword [0x1405a9958]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x140360680
jmp 0x140360668
mov ecx, 0x9fef024d
lea rdx, [fcn.14035ff90]
add edx, edx
add edx, 0x4860
xor r12d, r12d
jmp 0x1403605b3
not eax
and eax, 0x7ffffffd
or eax, r8d
not eax
add eax, eax
mov r9d, r8d
xor r9d, eax
and eax, r8d
lea eax, [r9 + rax*2]
cmp eax, esi
jge 0x140360513
movsxd r8, eax
mov r9d, dword [0x1405a995c]
cmp r9d, 0x5c
jg 0x140360650
nop word [rax + rax]
movzx r9d, word [r13 + r8]
cmp dword [0x140586470], 0x6010fdb4
jne 0x140360650
mov r8d, r9d
xor r8d, r9d
not r8d
and r8d, r12d
xor r8d, r9d
mov r12d, r8d
mov r8d, eax
xor r8d, 2
nop dword [rax + rax]
mov r9d, dword [0x1405a995c]
cmp r9d, 0x11
jg 0x140360620
mov r9d, dword [0x140586470]
add r9d, ecx
test edx, r9d
je 0x140360590
mov r9d, dword [0x1405a995c]
cmp r9d, 0x25
mov r9d, dword [0x1405a995c]
cmp r9d, 0x20
jg 0x14036062b
cmp dword [0x140586470], 0x6010fdb4
jne 0x140360600
jmp 0x14036060d
movzx r9d, word [r13 + r8]
mov r9d, dword [0x1405a995c]
cmp r9d, 0x5c
jge 0x140360650
jmp 0x1403605d0
mov eax, dword [0x1405a995c]
cmp eax, 0x57
jl 0x14036068e
nop word cs:[rax + rax]
cmp dword [0x140586470], 0x6010fdb4
jne 0x140360680
jmp 0x140360668
lea rcx, [rbp - 0x58]
lea r9, [rbp - 0x28]
mov edx, 0xb2317db
mov r8d, edi
call fcn.14037be90
mov rsi, qword [rbp - 0x30]
nop word [rax + rax]
mov rax, qword [rbp - 8]
mov rcx, qword [0x140586468]
add rcx, rbx
mov edx, dword [0x1405a995c]
cmp edx, 0x30
jl 0x1403606de
nop dword [rax]
cmp dword [0x140586470], 0x6010fdb4
jne 0x1403606d0
jmp 0x1403606b0
cmp rax, rcx
jbe 0x1403607bf
mov rcx, qword [rbp - 0x20]
cmp byte [0x1405a71c8], 0
jne 0x140360705
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14036078d
mov edx, dword [0x1405a995c]
cmp edx, 0x1c
nop
mov r8, qword [rcx - 8]
mov rdx, qword [0x140586468]
mov r9d, dword [0x1405a9958]
lea r10d, [r9 - 1]
imul r10d, r9d
and r10d, 1
mov r9d, dword [0x140586470]
mov r11d, r9d
xor r11d, 0x9fef024c
and r9d, 0x1fef024c
lea r9d, [r11 + r9*2]
cmp r10d, r9d
jne 0x140360710
add rcx, 0xfffffffffffffff8
sub rcx, r8
movabs r9, 0x210af5208b051d09
mov r10, rdx
xor r10, r9
and rdx, r9
lea rdx, [r10 + rdx*2]
cmp rcx, rdx
jae 0x140360819
add rax, qword [0x140586468]
movabs rdx, 0x210af5208b051d11
add rdx, rax
mov rcx, r8
mov eax, dword [0x1405863c4]
mov r9d, dword [0x140586470]
sub eax, r9d
add eax, 0x60100bfe
cdqe
add rax, qword [0x1405863e8]
lea r8d, [r9 - 0x5e60a5bd]
add r9d, 0x22be1610
call qword [case.0x1401238cb.0]
lea rcx, [rbp - 0x58]
mov rdx, rsi
call fcn.14037bff0
mov eax, dword [0x1405863c0]
mov ecx, dword [0x140586470]
mov edx, ecx
xor edx, 0x9fef024c
and ecx, 0x1fef024c
lea ecx, [rdx + rcx*2]
add eax, ecx
add eax, 0xffff0e4a
cdqe
add rax, qword [0x1405863d8]
lea rcx, [rbp - 0x58]
call qword [case.0x1401238cb.0]
mov rax, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
and r14d, r15d
movzx eax, word [0x140480a50]
xor ecx, ecx
cmp r14d, 1
sbb ecx, ecx
sub eax, r12d
sub ax, word [0x140586474]
add eax, 0x115e
and eax, ecx
mov ecx, dword [0x1405a995c]
cmp ecx, 0x59
jg 0x140360867
test ax, ax
setne cl
or cl, byte [0x1405a6c18]
and cl, 1
mov byte [0x1405a6c18], cl
mov ecx, dword [0x1405a995c]
cmp ecx, 0x10
jle 0x14036088a
mov byte [0x1405a6c18], 0
mov ecx, dword [0x1405a9958]
mov edx, dword [0x140586470]
neg edx
add edx, ecx
inc edx
imul edx, ecx
test dl, 1
jne 0x14036083c
jmp 0x140360847
call fcn.1403f89dc
mov ecx, dword [0x1405a995c]
cmp ecx, 0x5c
jl 0x1403608ad
nop word [rax + rax]
mov ecx, dword [0x1405a995c]
cmp ecx, 0x2b
jge 0x1403608a0
jmp 0x14036088f
cmp edi, eax
jne 0x1403604cc
jmp 0x1403604d9