Function at 0x1400013a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
movdqa xmm0, xmmword [0x140016350]
lea rax, [rbp - 0x3f]
movsxd r9, dword [0x1400211d8]
lea r12, [0x1400211d0]
xor r15d, r15d
mov dword [rbp - 0x40], 0xded8c3ac
movdqu xmmword [rbp - 0x30], xmm0
mov rdi, rdx
mov r14, rcx
movdqa xmm0, xmmword [0x140016360]
mov r8d, r15d
movdqu xmmword [rbp - 0x18], xmm0
mov dword [rbp - 0x3c], 0xbb626f7f
mov r10d, r15d
mov dword [rbp - 0x38], 0x69c5c6c6
dec r9
mov word [rbp - 0x34], 0x764b
mov byte [rbp - 0x32], 0xfa
mov word [rbp - 0x20], 0xd3d8
mov byte [rbp - 0x1e], 0xa
mov word [rbp - 8], 0xcecb
mov byte [rbp - 6], 0xa
nop
movsxd rcx, r8d
mov edx, r15d
cmp rcx, r9
cmovne edx, r8d
mov r8d, r15d
movsxd rcx, edx
movzx ecx, byte [rcx + r12]
xor byte [rax - 1], cl
inc edx
movsxd rcx, edx
cmp rcx, r9
cmovne r8d, edx
movsxd rcx, r8d
lea edx, [r8 + 1]
mov r8d, r15d
movzx ecx, byte [rcx + r12]
xor byte [rax], cl
movsxd rcx, edx
cmp rcx, r9
cmovne r8d, edx
movsxd rcx, r8d
lea edx, [r8 + 1]
mov r8d, r15d
movzx ecx, byte [rcx + r12]
xor byte [rax + 1], cl
movsxd rcx, edx
cmp rcx, r9
cmovne r8d, edx
movsxd rcx, r8d
lea edx, [r8 + 1]
mov r8d, r15d
movzx ecx, byte [rcx + r12]
xor byte [rax + 2], cl
movsxd rcx, edx
cmp rcx, r9
cmovne r8d, edx
movsxd rcx, r8d
lea edx, [r8 + 1]
mov r8d, r15d
movzx ecx, byte [rcx + r12]
xor byte [rax + 3], cl
movsxd rcx, edx
cmp rcx, r9
cmovne r8d, edx
movsxd rcx, r8d
lea edx, [r8 + 1]
mov r8d, r15d
movzx ecx, byte [rcx + r12]
xor byte [rax + 4], cl
movsxd rcx, edx
cmp rcx, r9
cmovne r8d, edx
movsxd rcx, r8d
lea edx, [r8 + 1]
mov r8d, r15d
movzx ecx, byte [rcx + r12]
xor byte [rax + 5], cl
movsxd rcx, edx
cmp rcx, r9
cmovne r8d, edx
movsxd rcx, r8d
lea edx, [r8 + 1]
mov r8d, r15d
movzx ecx, byte [rcx + r12]
xor byte [rax + 6], cl
movsxd rcx, edx
cmp rcx, r9
cmovne r8d, edx
movsxd rcx, r8d
lea edx, [r8 + 1]
mov r8d, r15d
movzx ecx, byte [rcx + r12]
xor byte [rax + 7], cl
movsxd rcx, edx
cmp rcx, r9
cmovne r8d, edx
movsxd rcx, r8d
lea edx, [r8 + 1]
movzx ecx, byte [rcx + r12]
xor byte [rax + 8], cl
movsxd rcx, edx
cmp rcx, r9
lea rax, [rax + 0xf]
mov r8d, r15d
cmovne r8d, edx
movsxd rcx, r8d
lea edx, [r8 + 1]
mov r8d, r15d
movzx ecx, byte [rcx + r12]
xor byte [rax - 6], cl
movsxd rcx, edx
cmp rcx, r9
cmovne r8d, edx
movsxd rcx, r8d
lea edx, [r8 + 1]
mov r8d, r15d
movzx ecx, byte [rcx + r12]
xor byte [rax - 5], cl
movsxd rcx, edx
cmp rcx, r9
cmovne r8d, edx
movsxd rcx, r8d
lea edx, [r8 + 1]
mov r8d, r15d
movzx ecx, byte [rcx + r12]
xor byte [rax - 4], cl
movsxd rcx, edx
cmp rcx, r9
cmovne r8d, edx
movsxd rcx, r8d
lea edx, [r8 + 1]
mov r8d, r15d
movzx ecx, byte [rcx + r12]
xor byte [rax - 3], cl
movsxd rcx, edx
cmp rcx, r9
cmovne r8d, edx
add r10d, 0xf
movsxd rcx, r8d
movzx ecx, byte [rcx + r12]
xor byte [rax - 2], cl
inc r8d
cmp r10d, 0xf
jb 0x140001430
mov edx, r15d
lea r8, [rbp - 0x2f]
mov r10d, r15d
nop dword [rax]
movsxd rax, edx
mov ecx, r15d
cmp rax, r9
cmovne ecx, edx
mov edx, r15d
movsxd rax, ecx
movzx eax, byte [rax + r12]
xor byte [r8 - 1], al
inc ecx
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 1], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 2], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 3], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 4], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 5], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 6], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 7], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
movzx eax, byte [rax + r12]
xor byte [r8 + 8], al
movsxd rax, ecx
cmp rax, r9
lea r8, [r8 + 0x13]
mov edx, r15d
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 0xa], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 9], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 8], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 7], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 6], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 5], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 4], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 3], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
add r10d, 0x13
movsxd rax, edx
movzx eax, byte [rax + r12]
xor byte [r8 - 2], al
inc edx
cmp r10d, 0x13
jb 0x1400015f0
mov edx, r15d
lea r8, [rbp - 0x17]
mov r10d, r15d
nop word [rax + rax]
movsxd rax, edx
mov ecx, r15d
cmp rax, r9
cmovne ecx, edx
mov edx, r15d
movsxd rax, ecx
movzx eax, byte [rax + r12]
xor byte [r8 - 1], al
inc ecx
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 1], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 2], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 3], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 4], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 5], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 6], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 + 7], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
movzx eax, byte [rax + r12]
xor byte [r8 + 8], al
movsxd rax, ecx
cmp rax, r9
lea r8, [r8 + 0x13]
mov edx, r15d
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 0xa], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 9], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 8], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 7], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 6], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 5], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 4], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
movsxd rax, edx
lea ecx, [rdx + 1]
mov edx, r15d
movzx eax, byte [rax + r12]
xor byte [r8 - 3], al
movsxd rax, ecx
cmp rax, r9
cmovne edx, ecx
add r10d, 0x13
movsxd rax, edx
movzx eax, byte [rax + r12]
xor byte [r8 - 2], al
inc edx
cmp r10d, 0x13
jb 0x140001810
lea rcx, [0x1400211e0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1400211f0]
mov qword [0x140022ec0], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140021200]
mov qword [0x140022eb0], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x40
mov r8, rdi
mov qword [0x140022eb8], rax
xor edx, edx
mov rcx, r14
call qword [0x140022ec0]
mov rsi, rax
test rax, rax
jne 0x140001ab8
lea rcx, str.VirtualAllocEx_failed_n
call fcn.140001bb0
jmp 0x140001b79
mov qword [rsp + 0xa0], rbx
mov r9d, r15d
movsxd rbx, dword [0x1400211d8]
mov r11d, r15d
test rdi, rdi
je 0x140001b17
mov r8, r15
lea r10, section..data
dec rbx
nop
movsxd rcx, r9d
lea r10, [r10 + 1]
cmp rcx, rbx
mov rdx, r15
cmovne rdx, r8
movzx eax, byte [rdx + r12]
lea r8, [rdx + 1]
xor byte [r10 - 1], al
mov eax, r15d
cmp rcx, rbx
cmovne eax, r9d
inc r11d
lea r9d, [rax + 1]
movsxd rax, r11d
cmp rax, rdi
jb 0x140001ae0
mov r9, rdi
mov qword [rsp + 0x20], r15
lea r8, section..data
mov rdx, rsi
mov rcx, r14
call qword [0x140022eb0]
mov qword [rsp + 0x30], r15
mov r9, rsi
mov dword [rsp + 0x28], r15d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r15
mov rcx, r14
call qword [0x140022eb8]
mov rbx, rax
test rax, rax
je 0x140001b71
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xa0]
lea r11, [rsp + 0x80]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret