Function at 0x140317420
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x78
call fcn.1403cb200
sub rsp, rax
mov r12, qword [rsp + 0xe0]
xor r14d, r14d
mov rax, r12
mov qword [rsp + 0x58], r14
shl rax, 4
mov rbp, r9
add rax, 6
mov r15, rdx
mov esi, r14d
mov ebx, r14d
cmp rax, 0x1555555
ja 0x140317c62
lea rbx, [r12 + r12*2]
xor r8d, r8d
shl rbx, 9
lea rdx, [0x1404c05a8]
lea rcx, [rbx + 0x220]
call fcn.14026ec50
mov qword [rsp + 0x30], rax
mov rdi, rax
test rax, rax
je 0x140317c5f
imul rcx, r12, 0x21
xor r8d, r8d
lea rdx, [0x1404c05a8]
call fcn.14026ec50
mov qword [rsp + 0x50], rax
mov rsi, rax
test rax, rax
je 0x140317c5a
lea rcx, [r12*8]
xor r8d, r8d
lea rdx, [0x1404c05a8]
call fcn.14026ec50
mov qword [rsp + 0x58], rax
mov rcx, rax
test rax, rax
je 0x140317c5a
mov rax, rdi
mov qword [rsp + 0x38], r14
and eax, 0x3f
sub rdi, rax
add rdi, 0x40
mov qword [rsp + 0x68], rdi
lea r13, [rbx + rdi]
test r12, r12
je 0x140317941
mov rax, qword [rsp + 0xd0]
sub rcx, rax
mov qword [rsp + 0x28], r14
sub rbp, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0xd8], rbp
mov rbx, rax
mov rbp, qword [rsp + 0xe8]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x60], rcx
mov rcx, qword [rbx]
call fcn.140279f80
cmp eax, 0x100
jg 0x14031756f
mov rcx, qword [rbx]
call fcn.140279e00
test eax, eax
jne 0x14031756f
mov rdi, qword [rbx]
jmp 0x1403175a5
mov rcx, rbp
call fcn.14027ac10
mov rdi, rax
test rax, rax
je 0x140317bbb
mov rax, qword [rsp + 0xc0]
mov r9, rbp
mov rdx, qword [rbx]
mov rcx, rdi
mov r8, qword [rax + 0x10]
call fcn.1402d42f0
test eax, eax
je 0x140317c39
mov rcx, qword [rsp + 0x58]
mov rax, rbx
sub rax, qword [rsp + 0xd0]
mov ebp, r14d
mov qword [rax + rcx], rdi
mov rcx, rdi
call fcn.140273060
shl eax, 3
test eax, eax
jle 0x14031767e
mov rdi, qword [rsp + 0x28]
mov r15d, ebp
mov r12, qword [rsp + 0x60]
add rdi, 2
add rdi, rsi
mov rcx, qword [r12 + rbx]
call fcn.14027ddf0
mov rdx, rax
mov ecx, ebp
test ebp, ebp
jns 0x1403175f8
lea ecx, [rbp + 7]
sar ecx, 3
add ebp, 8
movsxd rax, ecx
add r15, 8
mov rcx, qword [rdx + rax*8]
mov rax, rcx
mov byte [rdi - 2], cl
shr rax, 8
mov byte [rdi - 1], al
mov rax, rcx
shr rax, 0x10
mov byte [rdi], al
shr rcx, 0x18
mov byte [rdi + 1], cl
shr rcx, 8
mov rax, rcx
mov byte [rdi + 2], cl
shr rax, 8
mov byte [rdi + 3], al
mov rax, rcx
shr rcx, 0x18
mov byte [rdi + 5], cl
shr rax, 0x10
mov byte [rdi + 4], al
add rdi, 8
mov rcx, qword [r12 + rbx]
call fcn.140273060
shl eax, 3
cmp ebp, eax
jl 0x1403175e3
mov r12, qword [rsp + 0xe0]
mov qword [rsp + 0x48], r15
mov rax, qword [rsp + 0x48]
mov r15, qword [rsp + 0xc8]
cmp rax, 0x21
jge 0x14031769c
jmp 0x140317681
mov rax, r14
mov rcx, qword [rsp + 0x28]
mov r8d, 0x21
add rcx, rax
sub r8, rax
add rcx, rsi
xor edx, edx
call fcn.1403ccc50
mov rdi, qword [rsp + 0xd8]
mov r8d, 4
mov rcx, r13
mov rax, qword [rdi + rbx]
mov rdx, qword [rax + 0x10]
call fcn.1402e87a0
test eax, eax
je 0x140317c0c
mov rax, qword [rdi + rbx]
lea rcx, [r13 + 0x20]
mov r8d, 4
mov rdx, qword [rax + 0x18]
call fcn.1402e87a0
test eax, eax
je 0x140317c0c
mov rax, qword [rdi + rbx]
lea rcx, [r13 + 0x40]
mov r8d, 4
mov rdx, qword [rax + 0x20]
call fcn.1402e87a0
test eax, eax
je 0x140317c0c
mov rbx, qword [rsp + 0x20]
mov r8d, 1
mov rcx, rbx
mov rdx, r13
call fcn.140055e00
lea rbp, [r13 + 0x60]
mov rdx, r13
mov rcx, rbp
call fcn.140056580
mov r8d, 2
mov rdx, rbp
mov rcx, rbx
call fcn.140055e00
lea rsi, [r13 + 0xc0]
mov r8, r13
mov rcx, rsi
mov rdx, rbp
call fcn.1400568c0
mov r8d, 3
mov rdx, rsi
mov rcx, rbx
call fcn.140055e00
mov rdx, rbp
mov rcx, rbp
call fcn.140056580
mov r8d, 4
mov rdx, rbp
mov rcx, rbx
call fcn.140055e00
mov rdx, rsi
mov rcx, rsi
call fcn.140056580
mov r8d, 6
mov rdx, rsi
mov rcx, rbx
call fcn.140055e00
lea rdi, [r13 + 0x120]
mov r8, r13
mov rcx, rdi
mov rdx, rbp
call fcn.1400568c0
mov r8d, 5
mov rdx, rdi
mov rcx, rbx
call fcn.140055e00
lea rbx, [r13 + 0x180]
mov r8, r13
mov rcx, rbx
mov rdx, rsi
call fcn.1400568c0
mov rcx, qword [rsp + 0x20]
mov r8d, 7
mov rdx, rbx
call fcn.140055e00
mov rdx, rbp
mov rcx, rbp
call fcn.140056580
mov rcx, qword [rsp + 0x20]
mov r8d, 8
mov rdx, rbp
call fcn.140055e00
mov rdx, rsi
mov rcx, rsi
call fcn.140056580
mov rcx, qword [rsp + 0x20]
mov r8d, 0xc
mov rdx, rsi
call fcn.140055e00
mov rdx, rdi
mov rcx, rdi
call fcn.140056580
mov rcx, qword [rsp + 0x20]
mov r8d, 0xa
mov rdx, rdi
call fcn.140055e00
mov rdx, rbx
mov rcx, rbx
call fcn.140056580
mov rcx, qword [rsp + 0x20]
mov r8d, 0xe
mov rdx, rbx
call fcn.140055e00
mov r8, r13
mov rdx, rsi
mov rcx, rsi
call fcn.1400568c0
mov rcx, qword [rsp + 0x20]
mov r8d, 0xd
mov rdx, rsi
call fcn.140055e00
mov r8, r13
mov rdx, rdi
mov rcx, rdi
call fcn.1400568c0
mov rdx, rdi
mov r8d, 0xb
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call fcn.140055e00
mov r8, r13
mov rdx, rbx
mov rcx, rbx
call fcn.1400568c0
mov r8d, 0xf
mov rdx, rbx
mov rcx, rdi
call fcn.140055e00
mov r8, r13
mov rdx, rbp
mov rcx, rsi
call fcn.1400568c0
mov r8d, 9
mov rdx, rsi
mov rcx, rdi
call fcn.140055e00
mov rdx, rbp
mov rcx, rbp
call fcn.140056580
mov r8d, 0x10
mov rdx, rbp
mov rcx, rdi
call fcn.140055e00
mov rax, qword [rsp + 0x38]
add rdi, 0x600
mov rbx, qword [rsp + 0x40]
inc rax
add qword [rsp + 0x28], 0x21
add rbx, 8
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0xe8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x40], rbx
cmp rax, r12
jb 0x14031754f
mov rdi, qword [rsp + 0x68]
movzx eax, byte [rsi + 0x1f]
mov ebx, 0xff
shr eax, 6
mov rdx, rdi
mov r8d, eax
mov dword [rsp + 0x28], ebx
shr r8d, 1
and eax, 1
add r8d, eax
mov rcx, r13
call fcn.140055e60
mov r8d, 0x60
mov rdx, r13
mov rcx, r15
call fcn.1403cc5a0
cmp ebx, 0xff
mov rdx, r14
sete dl
cmp rdx, r12
jae 0x140317aad
lea ecx, [rbx - 1]
mov eax, ecx
lea rbp, [rdx + rdx*2]
and eax, 7
shr ecx, 3
mov dword [rsp + 0x20], eax
mov rax, r12
mov r12d, dword [rsp + 0x20]
shl rbp, 9
add rbp, rdi
mov qword [rsp + 0x38], rcx
imul r14, rdx, 0x21
sub rax, rdx
lea r8d, [rcx + 1]
mov rdi, rax
mov qword [rsp + 0x40], r8
lea rax, [r8 + r14]
movzx r8d, byte [rax + rsi]
lea rax, [rcx + r14]
movzx ecx, byte [rax + rsi]
shl r8d, 8
or r8d, ecx
mov ecx, r12d
shr r8d, cl
mov ecx, 0x3f
and r8d, 0x3f
sub ecx, r8d
mov eax, r8d
shr eax, 5
dec eax
mov edx, eax
and eax, r8d
not edx
and ecx, edx
and edx, 1
or ecx, eax
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
mov rcx, r13
lea ebx, [rdx + rax*2]
mov rdx, rbp
mov r8d, ebx
shr r8d, 1
call fcn.140055e60
lea rdx, [r13 + 0x20]
lea rcx, [r13 + 0x80]
call fcn.1400544c0
mov r8d, ebx
lea rdx, [r13 + 0x20]
and r8d, 1
mov r10d, 4
neg r8
mov r9, r8
not r9
mov rcx, qword [rdx + 0x60]
mov rax, r9
and rax, qword [rdx]
and rcx, r8
xor rcx, rax
mov qword [rdx], rcx
lea rdx, [rdx + 8]
sub r10, 1
jne 0x140317a4f
mov r8, r13
mov rdx, r15
mov rcx, r15
call fcn.1400568c0
mov r8, qword [rsp + 0x40]
add r14, 0x21
mov rcx, qword [rsp + 0x38]
add rbp, 0x600
sub rdi, 1
jne 0x1403179c8
mov r12, qword [rsp + 0xe0]
xor r14d, r14d
mov rdi, qword [rsp + 0x68]
mov ebx, dword [rsp + 0x28]
add ebx, 0xfffffffb
mov rdx, r15
mov rcx, r15
mov dword [rsp + 0x28], ebx
call fcn.140056580
mov rdx, r15
mov rcx, r15
call fcn.140056580
mov rdx, r15
mov rcx, r15
call fcn.140056580
mov rdx, r15
mov rcx, r15
call fcn.140056580
mov rdx, r15
mov rcx, r15
call fcn.140056580
cmp ebx, 5
jae 0x140317979
test r12, r12
je 0x140317bb5
mov rbp, rsi
movzx edx, byte [rbp]
mov ecx, 0x3f
and edx, 0x1f
add edx, edx
sub ecx, edx
mov eax, edx
shr eax, 5
dec eax
mov r8d, eax
and eax, edx
not r8d
mov rdx, rdi
and ecx, r8d
and r8d, 1
or ecx, eax
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
mov rcx, r13
lea ebx, [r8 + rax*2]
mov r8d, ebx
shr r8d, 1
call fcn.140055e60
lea rdx, [r13 + 0x20]
lea rcx, [r13 + 0x80]
call fcn.1400544c0
mov r8d, ebx
lea rdx, [r13 + 0x20]
and r8d, 1
mov r10d, 4
neg r8
mov r9, r8
not r9
mov rcx, qword [rdx + 0x60]
mov rax, r9
and rax, qword [rdx]
and rcx, r8
xor rcx, rax
mov qword [rdx], rcx
lea rdx, [rdx + 8]
sub r10, 1
jne 0x140317b70
mov r8, r13
mov rdx, r15
mov rcx, r15
call fcn.1400568c0
add rbp, 0x21
add rdi, 0x600
sub r12, 1
jne 0x140317b00
mov rsi, qword [rsp + 0x50]
mov r14d, 1
mov rbx, qword [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x1404c05a8]
mov rcx, rbx
call fcn.14026eca0
xor r8d, r8d
lea rdx, [0x1404c05a8]
mov rcx, rsi
call fcn.14026eca0
mov rcx, qword [rsp + 0x58]
lea rdx, [0x1404c05a8]
xor r8d, r8d
call fcn.14026eca0
mov eax, r14d
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140273ec0
lea r8, [0x1404627b8]
xor edx, edx
lea rcx, [0x1404c05a8]
call fcn.140273fd0
mov edx, 0x92
xor r8d, r8d
lea ecx, [r8 + 0x10]
call fcn.1402740c0
jmp 0x140317bbb
call fcn.140273ec0
lea r8, [0x1404627b8]
xor edx, edx
lea rcx, [0x1404c05a8]
call fcn.140273fd0
mov edx, 0x80003
jmp 0x140317c2b
mov rbx, rdi
jmp 0x140317c62
mov rbx, rax
call fcn.140273ec0
lea r8, [0x1404627b8]
xor edx, edx
lea rcx, [0x1404c05a8]
call fcn.140273fd0
xor r8d, r8d
mov edx, 0xc0100
lea ecx, [r8 + 0x10]
call fcn.1402740c0
jmp 0x140317bc0