Function at 0x140007311
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbp, r9
mov esi, r8d
mov rdi, rdx
mov ebx, ecx
lea rcx, [0x1402b7de0]
lea rdx, [0x1402b7ea0]
call fcn.1400f5160
mov dword [rsp + 0x20], 0xf0000000
xor r13d, r13d
lea rcx, [rsp + 0x70]
xor edx, edx
xor r8d, r8d
mov r9d, 0x18
call rax
test eax, eax
je 0x1400075dd
mov r14, qword [rsp + 0x70]
lea rcx, [0x1402b7de0]
lea rdx, [0x1402b91a0]
call fcn.1400f5160
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
xor r13d, r13d
mov rcx, r14
mov edx, ebx
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
je 0x1400075be
mov r14, qword [rsp + 0x68]
lea rcx, [0x1402b7de0]
lea rdx, [0x1402b9260]
call fcn.1400f5160
mov dword [rsp + 0x20], 0
xor r13d, r13d
lea r9, [rsp + 0x44]
mov rcx, r14
mov edx, 2
xor r8d, r8d
call rax
test eax, eax
je 0x1400075a1
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x48], eax
mov ecx, eax
mov qword [rsp + 0x60], rcx
lea rdx, [rcx + 4]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400075a1
mov edx, dword [rsp + 0x44]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
je 0x140007585
mov r12, rax
mov edx, dword [rsp + 0x44]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
je 0x14000758a
mov r13, rax
mov r14d, dword [rsp + 0xf8]
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
mov r8, qword [rsp + 0x60]
call fcn.140201ae0
mov dword [rsp + 0x4c], r14d
test r14d, r14d
je 0x140007574
mov ebp, dword [rsp + 0x100]
mov r14, qword [rsp + 0xf0]
add dword [rsp + 0x48], 4
mov eax, 1
mov dword [rsp + 0x5c], eax
bswap eax
mov r9, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov dword [r9 + rcx], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov ecx, ebx
mov rdx, rdi
mov r8d, esi
call fcn.1400075f1
mov r8d, dword [rsp + 0x44]
mov rcx, r12
mov rdx, r13
call fcn.140201ae0
cmp dword [rsp + 0xe8], 2
jb 0x140007539
mov r15d, 1
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], eax
mov ecx, ebx
mov rdx, rdi
mov r8d, esi
mov r9, r13
call fcn.1400075f1
cmp dword [rsp + 0x44], 0
je 0x140007518
xor ecx, ecx
mov al, byte [r13 + rcx]
xor byte [r12 + rcx], al
inc rcx
mov eax, dword [rsp + 0x44]
cmp rcx, rax
jb 0x140007501
jmp 0x14000751a
xor eax, eax
test ebp, ebp
je 0x14000752c
mov r8d, eax
mov rcx, r13
mov rdx, r12
call fcn.140201ae0
inc r15d
cmp r15d, dword [rsp + 0xe8]
jne 0x1400074d7
mov r15d, dword [rsp + 0x44]
mov ebp, dword [rsp + 0x4c]
cmp ebp, r15d
cmovb r15d, ebp
mov rcx, r14
mov rdx, r12
mov r8, r15
call fcn.140201ae0
add r14, r15
mov eax, dword [rsp + 0x5c]
inc eax
sub ebp, r15d
mov dword [rsp + 0x4c], ebp
mov ebp, dword [rsp + 0x100]
jne 0x140007481
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r13d, 1
jmp 0x14000758d
xor r13d, r13d
jmp 0x140007596
xor r13d, r13d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x68]
lea rcx, [0x1402b7de0]
lea rdx, [0x1402b9220]
call fcn.1400f5160
mov rcx, rsi
call rax
mov rsi, qword [rsp + 0x70]
lea rcx, [0x1402b7de0]
lea rdx, [0x1402b7f20]
call fcn.1400f5160
mov rcx, rsi
xor edx, edx
call rax
mov eax, r13d
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret