Function at 0x140102cb0
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 ebp, 1
mov rdi, qword [r10]
mov r13, qword [rdi]
cmp dword [rdi + 0x28], 2
mov qword [rsp + 0x48], r13
setge cl
lea rax, [rdx + r13*4]
mov dword [rsp + 0xd8], ecx
mov qword [rsp + 0x40], rax
lea rcx, [r15 + r13*4]
lea rax, [r8 + r13*4]
mov qword [rsp + 0xe0], rcx
lea rbx, [r13*2]
mov qword [rsp + 0x50], rax
add rbx, r13
add rbx, qword [r10 + 0x40]
shl rbx, 2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
lea edx, [rbp + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x58], rax
mov r14, rax
test rax, rax
jne 0x140102d60
mov dword [0x140151210], 7
jmp 0x140102e40
lea rsi, [rax + r13*4]
lea r12, [rsi + r13*4]
lea r13, [r12 + r13*4]
cmp dword [rdi + 0x28], ebp
je 0x140102d7b
cmp dword [rsp + 0xd8], 0
je 0x140102d8b
mov eax, dword [rsp + 0xc8]
inc eax
test eax, 0xfffffffd
je 0x140102d97
xor ebp, ebp
mov dword [0x140151210], 5
mov rbx, qword [rsp + 0xd0]
xor r8d, r8d
mov rcx, qword [rsp + 0xb8]
mov rdx, rbx
call fcn.1401034ac
test eax, eax
je 0x140102ddb
test ebp, ebp
je 0x140102e28
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 0x140102e2a
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call fcn.1401034ac
test eax, eax
je 0x140102e51
cmp dword [rsp + 0xc8], 1
jne 0x140102e05
test ebp, ebp
je 0x140102e28
mov rdx, qword [rsp + 0xb8]
jmp 0x140102dbd
test ebp, ebp
je 0x140102e28
mov rdx, qword [rsp + 0xc0]
xor r9d, r9d
mov rcx, qword [rsp + 0xb8]
mov r8, rbx
call fcn.1401035e0
test eax, eax
jne 0x140102dd4
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 0x140102e78
test ebp, ebp
je 0x140102e28
mov r8, qword [rdi]
mov rcx, rsi
mov rdx, qword [rsp + 0x40]
shl r8, 2
call sub.msvcrt.dll_memcpy
jmp 0x140102eff
cmp dword [rsp + 0xd8], 0
je 0x140102ec5
test ebp, ebp
je 0x140102e28
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
mov rbp, qword [rsp + 0xb8]
mov r9d, 1
and qword [rsp + 0x28], 0
mov rcx, rbp
mov rdx, qword [rsp + 0x40]
mov r8, rsi
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
jne 0x140102f07
jmp 0x140102e28
test ebp, ebp
je 0x140102e28
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call qword [fcn.140009050]
mov rcx, qword [rsp + 0x40]
mov r9, rdi
and qword [rsp + 0x20], 0
mov r8d, 1
mov rdx, rsi
call rbx
test eax, eax
je 0x140102e28
mov rbp, qword [rsp + 0xb8]
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
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 0x140103358
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rcx, qword [rsp + 0xe0]
mov r9, rdi
and qword [rsp + 0x20], 0
mov r8d, 1
mov rdx, rsi
call rbx
test eax, eax
je 0x140102f8c
mov rdx, qword [rsp + 0xd0]
xor r8d, r8d
mov rcx, qword [rsp + 0xc0]
call fcn.1401039c0
xor ebx, ebx
test eax, eax
setne bl
jmp 0x140102e2a
cmp dword [rsp + 0xd8], 0
je 0x1401030d1
mov r9, r13
mov r8, rdi
mov rdx, r14
mov rcx, r15
call fcn.140104504
test eax, eax
je 0x140102e28
and qword [rsp + 0x30], 0
mov r8, r14
mov rcx, qword [rsp + 0xe0]
mov rdx, r14
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
call fcn.140101fe0
test eax, eax
je 0x140102e28
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, r14
mov qword [rsp + 0x20], rdi
mov rdx, r14
mov rcx, r15
call rbx
test eax, eax
je 0x140102e28
cmp dword [rsp + 0xd8], 0
je 0x140103214
and qword [rsp + 0x30], 0
mov r8, rsi
mov qword [rsp + 0x28], r13
mov rdx, r14
mov rcx, r14
mov qword [rsp + 0x20], rdi
call fcn.140101fe0
xor ebx, ebx
test eax, eax
mov rax, qword [rsp + 0x48]
setne bl
test rax, rax
je 0x140103099
mov r10, qword [rsp + 0xd0]
mov r9, r14
sub r9, rbp
mov r11, rsi
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]
sub r15, 1
jne 0x14010306c
mov r15, qword [rsp + 0xb0]
test ebx, ebx
je 0x140103445
and qword [rsp + 0x30], 0
mov r8, r12
mov qword [rsp + 0x28], r13
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x20], rdi
call fcn.140101fe0
test eax, eax
je 0x140103445
mov ebx, 1
jmp 0x140103447
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, qword [rsp + 0xe0]
mov r9d, 1
and qword [rsp + 0x28], 0
mov rcx, rdx
mov r8, rsi
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
je 0x140102e28
and qword [rsp + 0x30], 0
mov r8, r14
mov qword [rsp + 0x28], r13
mov rdx, r15
mov rcx, r15
mov qword [rsp + 0x20], rdi
call fcn.140101fe0
test eax, eax
je 0x140102e28
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
mov r10, qword [rsp + 0xd0]
mov r9d, 1
and qword [rsp + 0x28], 0
mov r8, r12
mov rcx, r14
mov qword [rsp + 0x20], rdi
mov rdx, qword [r10 + 8]
call rbx
test eax, eax
je 0x140102e28
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, r12
mov qword [rsp + 0x20], rdi
mov rdx, r12
mov rcx, r14
call rbx
test eax, eax
je 0x140102e28
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, r12
mov qword [rsp + 0x20], rdi
mov rdx, r12
mov rcx, r14
call rbx
test eax, eax
je 0x140102e28
mov r9, r13
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.140104504
test eax, eax
je 0x140102e28
and qword [rsp + 0x30], 0
mov r8, r14
mov qword [rsp + 0x28], r13
mov rdx, r14
mov rcx, r12
mov qword [rsp + 0x20], rdi
call fcn.140101fe0
test eax, eax
je 0x140102e28
and qword [rsp + 0x30], 0
mov r8, rsi
mov qword [rsp + 0x28], r13
mov rdx, r14
mov rcx, r14
mov qword [rsp + 0x20], rdi
call fcn.140101fe0
test eax, eax
je 0x140102e28
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 0x58]
mov rcx, rbx
call qword [fcn.140009050]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, rsi
mov qword [rsp + 0x20], rdi
mov rdx, r15
mov rcx, rsi
call rbx
test eax, eax
je 0x140102e28
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 0x58]
mov rcx, rbx
call qword [fcn.140009050]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, rsi
mov qword [rsp + 0x20], rdi
mov rdx, rbp
mov rcx, rsi
call rbx
test eax, eax
je 0x140102e28
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 0x58]
mov rcx, rbx
call qword [fcn.140009050]
and qword [rsp + 0x28], 0
mov ebp, 1
mov r9d, ebp
mov qword [rsp + 0x20], rdi
mov r8, r12
mov rdx, rsi
mov rcx, r15
call rbx
test eax, eax
je 0x140102e28
mov r8, qword [rdi]
mov rdx, rsi
mov rcx, qword [rsp + 0xc0]
shl r8, 2
call sub.msvcrt.dll_memcpy
and qword [rsp + 0x30], 0
mov r8, rsi
mov qword [rsp + 0x28], r13
mov rdx, r12
mov rcx, r14
mov qword [rsp + 0x20], rdi
call fcn.140101fe0
test eax, eax
je 0x140102e28
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 0x58]
mov rcx, rbx
call qword [fcn.140009050]
mov r8, qword [rsp + 0x50]
mov r9d, ebp
mov rdx, qword [rsp + 0xe0]
mov rcx, rsi
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
call rbx
test eax, eax
je 0x140102e28
mov ebx, ebp
jmp 0x140102e2a
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
mov rcx, qword [rsp + 0xe0]
mov r9d, 1
and qword [rsp + 0x28], 0
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 0x1401033cc
test ecx, ecx
je 0x1401033ca
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140009050]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, r12
mov qword [rsp + 0x20], rdi
mov rdx, rbp
mov rcx, r12
call rbx
test eax, eax
jne 0x1401033d4
xor ecx, ecx
test ecx, ecx
je 0x140102e28
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax + 0x58]
mov rcx, rbx
call qword [fcn.140009050]
and qword [rsp + 0x28], 0
mov r9d, 1
mov r8, rsi
mov qword [rsp + 0x20], rdi
mov rdx, rbp
mov rcx, r15
call rbx
test eax, eax
je 0x140102e28
mov r9, r13
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.140104504
test eax, eax
je 0x140102e28
and qword [rsp + 0x30], 0
mov r8, r14
mov qword [rsp + 0x28], r13
mov rdx, r14
mov rcx, r12
mov qword [rsp + 0x20], rdi
call fcn.140101fe0
jmp 0x14010300a
xor ebx, ebx
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140102e2a
mov r14, qword [rsp + 0xe0]
sub rsi, r15
mov r9, qword [rsp + 0x50]
sub r14, r15
mov r8, qword [rsp + 0xc0]
sub r9, r15
sub r12, r15
sub r8, r15
mov ecx, dword [rsi + r15]
xor ecx, dword [r15]
mov eax, dword [r14 + r15]
xor eax, dword [r12 + r15]
xor eax, ecx
mov dword [r9 + r15], eax
mov dword [r8 + r15], ecx
lea r15, [r15 + 4]
sub rdx, 1
jne 0x140103479
mov r14, qword [rsp + 0x58]
jmp 0x140102e2a