Function at 0x140101070
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov r10, qword [rsp + 0xd0]
mov r15, rcx
xor ecx, ecx
mov rdi, qword [r10]
mov ebp, 1
mov r13, qword [rdi]
cmp dword [rdi + 0x28], 2
setge cl
lea rax, [rdx + r13*4]
lea rbx, [r13*2]
add rbx, r13
mov dword [rsp + 0xd8], ecx
mov qword [rsp + 0x40], rax
add rbx, qword [r10 + 0x40]
lea rcx, [r15 + r13*4]
lea rax, [r8 + r13*4]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0x50], rax
shl rbx, 2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rbp + 7]
mov rcx, rax
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x140101120
mov dword [0x14014d1fc], 7
jmp 0x140101200
lea rsi, [rax + r13*4]
lea r12, [rsi + r13*4]
lea r13, [r12 + r13*4]
cmp dword [rdi + 0x28], ebp
je 0x14010113b
cmp dword [rsp + 0xd8], 0
je 0x14010114b
mov eax, dword [rsp + 0xc8]
inc eax
test eax, 0xfffffffd
je 0x140101157
xor ebp, ebp
mov dword [0x14014d1fc], 5
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb8]
xor r8d, r8d
mov rdx, rbx
call fcn.140101868
test eax, eax
je 0x14010119b
test ebp, ebp
je 0x1401011e8
mov rdx, r15
mov rax, qword [rbx]
mov rcx, qword [rsp + 0xc0]
mov r8, qword [rax]
shl r8, 3
call sub.msvcrt.dll_memcpy
mov ebx, 1
jmp 0x1401011ea
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call fcn.140101868
test eax, eax
je 0x140101211
cmp dword [rsp + 0xc8], 1
jne 0x1401011c5
test ebp, ebp
je 0x1401011e8
mov rdx, qword [rsp + 0xb8]
jmp 0x14010117d
test ebp, ebp
je 0x1401011e8
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb8]
xor r9d, r9d
mov r8, rbx
call fcn.140101990
test eax, eax
jne 0x140101194
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp dword [rsp + 0xc8], 0xffffffff
jne 0x140101238
test ebp, ebp
je 0x1401011e8
mov r8, qword [rdi]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
shl r8, 2
call sub.msvcrt.dll_memcpy
jmp 0x1401012bf
cmp dword [rsp + 0xd8], 0
je 0x140101285
test ebp, ebp
je 0x1401011e8
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140015690]
mov rbp, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x40]
and qword [rsp + 0x28], 0
mov rcx, rbp
mov r9d, 1
mov r8, rsi
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
jne 0x1401012c7
jmp 0x1401011e8
test ebp, ebp
je 0x1401011e8
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call qword [fcn.140015690]
mov rcx, qword [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, 1
mov rdx, rsi
call rbx
test eax, eax
je 0x1401011e8
mov rbp, qword [rsp + 0xb8]
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
and qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, 1
mov rdx, rbp
mov rcx, r15
call rbx
test eax, eax
mov rax, qword [rdi + 0x40]
je 0x140101717
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
mov rcx, qword [rsp + 0xe0]
and qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, 1
mov rdx, rsi
call rbx
test eax, eax
je 0x14010134c
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc0]
xor r8d, r8d
call fcn.140101d70
xor ebx, ebx
test eax, eax
setne bl
jmp 0x1401011ea
cmp dword [rsp + 0xd8], 0
je 0x140101490
mov r9, r13
mov r8, rdi
mov rdx, r14
mov rcx, r15
call fcn.14010286c
test eax, eax
je 0x1401011e8
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0xe0]
mov r8, r14
mov rdx, r14
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
call fcn.140100424
test eax, eax
je 0x1401011e8
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140015690]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, r14
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
je 0x1401011e8
cmp dword [rsp + 0xd8], 0
je 0x1401015d3
and qword [rsp + 0x30], 0
mov r8, rsi
mov rdx, r14
mov rcx, r14
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
call fcn.140100424
xor ebx, ebx
test eax, eax
mov rax, qword [rsp + 0x48]
setne bl
test rax, rax
je 0x140101458
mov r10, qword [rsp + 0xd0]
mov r9, r14
mov r11, rsi
sub r9, rbp
sub rbp, rsi
mov r8, rsi
neg r11
mov r15, rax
mov rax, qword [r10 + 8]
lea rdx, [r8 + rbp]
add rax, r11
mov ecx, dword [rax + r8]
xor ecx, dword [rdx + r9]
xor ecx, dword [r8]
xor ecx, dword [rdx]
mov dword [r8], ecx
lea r8, [r8 + 4]
dec r15
jne 0x14010142c
mov r15, qword [rsp + 0xb0]
test ebx, ebx
je 0x140101804
and qword [rsp + 0x30], 0
mov r8, r12
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
call fcn.140100424
test eax, eax
je 0x140101804
mov ebx, 1
jmp 0x140101806
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140015690]
mov rdx, qword [rsp + 0xe0]
and qword [rsp + 0x28], 0
mov rcx, rdx
mov r9d, 1
mov r8, rsi
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
je 0x1401011e8
and qword [rsp + 0x30], 0
mov r8, r14
mov rdx, r15
mov rcx, r15
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
call fcn.140100424
test eax, eax
je 0x1401011e8
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140015690]
mov r10, qword [rsp + 0xd0]
and qword [rsp + 0x28], 0
mov rdx, qword [r10 + 8]
mov r9d, 1
mov r8, r12
mov rcx, r14
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
je 0x1401011e8
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140015690]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, r12
mov rdx, r12
mov rcx, r14
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
je 0x1401011e8
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140015690]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, r12
mov rdx, r12
mov rcx, r14
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
je 0x1401011e8
mov r9, r13
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.14010286c
test eax, eax
je 0x1401011e8
and qword [rsp + 0x30], 0
mov r8, r14
mov rdx, r14
mov rcx, r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
call fcn.140100424
test eax, eax
je 0x1401011e8
and qword [rsp + 0x30], 0
mov r8, rsi
mov rdx, r14
mov rcx, r14
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
call fcn.140100424
test eax, eax
je 0x1401011e8
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 0x58]
mov rcx, rbx
call qword [fcn.140015690]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, rsi
mov rdx, r15
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
je 0x1401011e8
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 0x58]
mov rcx, rbx
call qword [fcn.140015690]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, rsi
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
je 0x1401011e8
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 0x58]
mov rcx, rbx
call qword [fcn.140015690]
and qword [rsp + 0x28], 0
mov ebp, 1
mov r9d, ebp
mov r8, r12
mov rdx, rsi
mov rcx, r15
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
je 0x1401011e8
mov r8, qword [rdi]
mov rcx, qword [rsp + 0xc0]
mov rdx, rsi
shl r8, 2
call sub.msvcrt.dll_memcpy
and qword [rsp + 0x30], 0
mov r8, rsi
mov rdx, r12
mov rcx, r14
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
call fcn.140100424
test eax, eax
je 0x1401011e8
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 0x58]
mov rcx, rbx
call qword [fcn.140015690]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0xe0]
and qword [rsp + 0x28], 0
mov r9d, ebp
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
je 0x1401011e8
mov ebx, ebp
jmp 0x1401011ea
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140015690]
mov rcx, qword [rsp + 0xe0]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, r12
mov rdx, rsi
mov qword [rsp + 0x20], rdi
call rbx
xor ecx, ecx
test eax, eax
setne cl
cmp dword [rsp + 0xd8], 0
je 0x14010178b
test ecx, ecx
je 0x140101789
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140015690]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, r12
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
jne 0x140101793
xor ecx, ecx
test ecx, ecx
je 0x1401011e8
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 0x58]
mov rcx, rbx
call qword [fcn.140015690]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, rsi
mov rdx, rbp
mov rcx, r15
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
je 0x1401011e8
mov r9, r13
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.14010286c
test eax, eax
je 0x1401011e8
and qword [rsp + 0x30], 0
mov r8, r14
mov rdx, r14
mov rcx, r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
call fcn.140100424
jmp 0x1401013ca
xor ebx, ebx
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1401011ea
mov r14, qword [rsp + 0xe0]
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0xc0]
sub r14, r15
sub r9, r15
sub rsi, r15
sub r12, r15
sub r8, r15
mov ecx, dword [rsi + r15]
mov eax, dword [r14 + r15]
xor ecx, dword [r15]
xor eax, dword [r12 + r15]
xor eax, ecx
mov dword [r9 + r15], eax
mov dword [r8 + r15], ecx
lea r15, [r15 + 4]
dec rdx
jne 0x140101838
mov r14, qword [rsp + 0x58]
jmp 0x1401011ea