Function at 0x140219678
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r13d, r8d
mov r14, rdx
mov r15, rcx
lea ebx, [r13 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
xor edi, edi
test rax, rax
je 0x140219cf2
mov r8, rbx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov r12, r13
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9, r15
mov r8d, 4
mov rdx, r13
mov rcx, r14
call fcn.1401bb4b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp r15, rax
jne 0x140219731
test r13d, r13d
je 0x140219cd5
mov rcx, rsi
mov rdx, r14
sub rdx, rsi
mov r8, r13
mov al, byte [rdx + rcx]
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x14021971e
jmp 0x140219cd5
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov ebx, 0x6c
mov eax, dword [rdx + rcx]
cmp dword [0x1402d8970], eax
jle 0x140219a47
lea rcx, [0x1402d8970]
call fcn.14027b540
or rbx, 0xffffffffffffffff
cmp dword [0x1402d8970], ebx
jne 0x140219a42
lea rax, [rbp + 0x18]
mov qword [rbp + 0xc8], rax
mov dword [rsp + 0x50], 0x19
mov eax, dword [rsp + 0x50]
xor al, 0x4e
mov byte [rsp + 0x54], al
mov eax, dword [rsp + 0x50]
inc al
lea r8d, [rbx + 0x75]
xor al, r8b
mov byte [rsp + 0x55], al
mov eax, dword [rsp + 0x50]
add al, 2
xor al, 0x52
mov byte [rsp + 0x56], al
mov eax, dword [rsp + 0x50]
add al, 3
lea edx, [rbx + 0x66]
xor al, dl
mov byte [rsp + 0x57], al
mov eax, dword [rsp + 0x50]
add al, 4
lea ecx, [rbx + 0x62]
xor al, cl
mov byte [rsp + 0x58], al
mov eax, dword [rsp + 0x50]
add al, 5
xor al, 0x64
mov byte [rsp + 0x59], al
mov eax, dword [rsp + 0x50]
add al, 6
xor al, 0x56
mov byte [rsp + 0x5a], al
mov eax, dword [rsp + 0x50]
add al, 7
xor al, 0x69
mov byte [rsp + 0x5b], al
mov eax, dword [rsp + 0x50]
add al, 8
xor al, 0x72
mov byte [rsp + 0x5c], al
mov eax, dword [rsp + 0x50]
add al, 9
xor al, r8b
mov byte [rsp + 0x5d], al
mov eax, dword [rsp + 0x50]
add al, 0xa
xor al, 0x75
mov byte [rsp + 0x5e], al
mov eax, dword [rsp + 0x50]
add al, 0xb
xor al, cl
mov byte [rsp + 0x5f], al
mov eax, dword [rsp + 0x50]
add al, 0xc
xor al, 0x6c
mov byte [rsp + 0x60], al
mov eax, dword [rsp + 0x50]
add al, 0xd
xor al, 0x4d
mov byte [rsp + 0x61], al
mov eax, dword [rsp + 0x50]
add al, 0xe
xor al, dl
mov byte [rsp + 0x62], al
mov eax, dword [rsp + 0x50]
add al, 0xf
xor al, 0x6d
mov byte [rsp + 0x63], al
mov eax, dword [rsp + 0x50]
add al, 0x10
xor al, 0x6f
mov byte [rsp + 0x64], al
mov eax, dword [rsp + 0x50]
add al, 0x11
xor al, 0x72
mov byte [rsp + 0x65], al
mov eax, dword [rsp + 0x50]
add al, 0x12
xor al, 0x79
mov byte [rsp + 0x66], al
xor eax, eax
mov byte [rsp + 0x67], al
mov al, byte [rsp + 0x54]
mov rdx, rdi
mov al, byte [rsp + rdx + 0x54]
mov ecx, dword [rsp + 0x50]
add cl, dl
xor cl, al
mov byte [rsp + rdx + 0x54], cl
inc rdx
cmp rdx, 0x13
jb 0x140219880
mov byte [rsp + 0x67], dil
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x30], 0xf
lea rax, [rsp + 0x54]
mov rdi, rbx
inc rdi
cmp byte [rax + rdi], 0
jne 0x1402198b6
lea rcx, [rbp + 0x18]
cmp rdi, 0xf
ja 0x1402198e2
mov qword [rbp + 0x28], rdi
mov r8, rdi
lea rdx, [rsp + 0x54]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov byte [rbp + rdi + 0x18], 0
jmp 0x1402198f0
lea r9, [rsp + 0x54]
mov rdx, rdi
call fcn.1400ada10
nop
mov dword [rsp + 0x68], 0x2a
mov byte [rsp + 0x6c], 0x44
mov byte [rsp + 0x6d], 0x5e
mov byte [rsp + 0x6e], 0x4e
mov byte [rsp + 0x6f], 0x46
mov byte [rsp + 0x70], 0x46
xor eax, eax
mov byte [rsp + 0x71], al
mov al, byte [rsp + 0x6c]
xor edi, edi
mov edx, edi
mov al, byte [rsp + rdx + 0x6c]
mov ecx, dword [rsp + 0x68]
xor cl, al
mov byte [rsp + rdx + 0x6c], cl
inc rdx
cmp rdx, 5
jb 0x14021991f
mov byte [rsp + 0x71], dil
mov qword [rbp - 8], rdi
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], 0xf
mov byte [rbp - 8], dil
lea rax, [rsp + 0x6c]
inc rbx
cmp byte [rax + rbx], dil
jne 0x140219954
lea rcx, [rbp - 8]
cmp rbx, 0xf
ja 0x140219980
mov qword [rbp + 8], rbx
mov r8, rbx
lea rdx, [rsp + 0x6c]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov byte [rbp + rbx - 8], dil
jmp 0x14021998e
lea r9, [rsp + 0x6c]
mov rdx, rbx
call fcn.1400ada10
nop
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x48]
call fcn.1401a82ac
nop
mov qword [rsp + 0x20], rdi
mov r9b, 1
lea r8, [rbp + 0x18]
mov rdx, rax
lea rcx, [0x1402d9450]
call fcn.1401db230
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x1402199f6
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1402199f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1402199f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14027b384
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], 0xf
mov byte [rbp - 8], dil
xor edx, edx
lea r8d, [rdx + 6]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0x14]
lea rcx, [rsp + 0x54]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [0x14028f4e0]
call fcn.14027b36c
nop
lea rcx, [0x1402d8970]
call fcn.14027b4e0
mov ebx, 0x6c
mov dword [rsp + 0x20], r13d
mov r9, rsi
mov r8, r14
mov rdx, r15
lea rcx, [0x1402d9450]
call fcn.1402650b0
mov r9d, eax
test eax, eax
je 0x140219cd5
mov dword [rbp - 0x48], 0xd
mov eax, 0x21
mov word [rbp - 0x44], ax
lea edx, [rax + 0xc]
mov word [rbp - 0x42], dx
lea eax, [rdx - 0xa]
mov word [rbp - 0x40], ax
mov word [rbp - 0x3e], ax
mov word [rbp - 0x3c], ax
lea eax, [rdx - 9]
mov word [rbp - 0x3a], ax
mov word [rbp - 0x38], dx
lea r10d, [rdx + 0x3e]
mov word [rbp - 0x36], r10w
mov word [rbp - 0x34], bx
lea r13d, [rdx + 0x37]
mov word [rbp - 0x32], r13w
lea eax, [rdx + 0x34]
mov word [rbp - 0x30], ax
lea r8d, [rdx + 0x3b]
mov word [rbp - 0x2e], r8w
lea eax, [rdx + 0x3c]
mov word [rbp - 0x2c], ax
mov word [rbp - 0x2a], dx
lea eax, [rdx + 0x4d]
mov word [rbp - 0x28], ax
mov word [rbp - 0x26], r13w
lea r11d, [rdx + 0x4c]
mov word [rbp - 0x24], r11w
lea eax, [rdx + 0x38]
mov word [rbp - 0x22], ax
mov word [rbp - 0x20], dx
lea ecx, [rdx + 0x51]
mov word [rbp - 0x1e], cx
mov word [rbp - 0x1c], r11w
mov word [rbp - 0x1a], bx
mov word [rbp - 0x18], r11w
lea eax, [rdx + 0x4b]
mov word [rbp - 0x16], ax
mov word [rbp - 0x14], cx
lea eax, [rdx + 0xa]
mov word [rbp - 0x12], ax
mov word [rbp - 0x10], dx
lea eax, [rdx + 0x10]
mov word [rbp - 0xe], ax
lea eax, [rdx + 0x48]
mov word [rbp - 0xc], ax
xor eax, eax
mov word [rbp - 0xa], ax
movzx eax, word [rbp - 0x44]
mov rdx, rdi
movzx eax, word [rbp + rdx*2 - 0x44]
mov ecx, dword [rbp - 0x48]
xor cx, ax
mov word [rbp + rdx*2 - 0x44], cx
inc rdx
cmp rdx, 0x1d
jb 0x140219b34
mov word [rbp - 0xa], di
mov dword [rsp + 0x74], ebx
mov eax, 0x40
mov word [rsp + 0x78], ax
mov eax, 0x4c
mov word [rsp + 0x7a], ax
mov eax, 0x5c
mov word [rsp + 0x7c], ax
mov eax, 0x14
mov word [rsp + 0x7e], ax
xor eax, eax
mov word [rbp - 0x80], ax
movzx eax, word [rsp + 0x78]
mov rdx, rdi
movzx eax, word [rsp + rdx*2 + 0x78]
mov ecx, dword [rsp + 0x74]
xor cx, ax
mov word [rsp + rdx*2 + 0x78], cx
inc rdx
cmp rdx, 4
jb 0x140219b8b
mov word [rbp - 0x80], di
mov eax, 0x62
mov word [rbp - 0x7c], ax
mov eax, 0x34
mov word [rbp - 0x7a], ax
mov word [rbp - 0x78], r13w
mov eax, 0x27
mov word [rbp - 0x76], ax
mov eax, 0x55
mov word [rbp - 0x74], ax
lea ecx, [rax + 0x26]
mov word [rbp - 0x72], cx
lea eax, [rcx - 0x22]
mov word [rbp - 0x70], ax
mov word [rbp - 0x6e], bx
mov word [rbp - 0x6c], r8w
mov word [rbp - 0x6a], r10w
lea eax, [rcx - 0x1e]
mov word [rbp - 0x68], ax
lea eax, [rcx - 0xb]
mov word [rbp - 0x66], ax
mov word [rbp - 0x64], r11w
mov word [rbp - 0x62], cx
lea eax, [rcx + 1]
mov word [rbp - 0x60], ax
mov word [rbp - 0x5e], r8w
lea eax, [rcx - 8]
mov word [rbp - 0x5c], ax
lea eax, [rcx - 0x27]
mov word [rbp - 0x5a], ax
mov word [rbp - 0x58], bx
lea eax, [rcx - 7]
mov word [rbp - 0x56], ax
lea eax, [rcx - 5]
mov word [rbp - 0x54], ax
mov word [rbp - 0x52], r11w
lea eax, [rcx + 5]
mov word [rbp - 0x50], ax
lea eax, [rcx - 0x4c]
mov word [rbp - 0x4e], ax
mov word [rbp - 0x4c], di
movzx eax, word [rbp - 0x7c]
mov rcx, rdi
movzx eax, word [rbp + rcx*2 - 0x7c]
sub ax, 7
mov word [rbp + rcx*2 - 0x7c], ax
inc rcx
cmp rcx, 0x18
jb 0x140219c4f
mov dword [rsp + 0x40], r9d
lea rax, [rbp - 0x44]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
lea r9, [rsp + 0x78]
mov r8, r15
lea rcx, [rbp - 0x7c]
call fcn.140278424
nop
xor edx, edx
lea r8d, [rdx + 0x32]
lea rcx, [rbp - 0x7c]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rsp + 0x78]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0x3c]
lea rcx, [rbp - 0x44]
call qword [sym.imp.VCRUNTIME140.dll_memset]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, rdi
mov qword [rsp + 0x20], rdi
mov r9, r15
mov r8d, dword [rbp + 0xc0]
mov rdx, r12
mov rcx, r14
call fcn.1401bb4b0
mov rax, rsi
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret