Function at 0x140012fd4
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, [rax - 0x2d8]
sub rsp, 0x3a0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140163470]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov qword [rsp + 0x50], r8
movzx eax, dx
mov word [rsp + 0x40], ax
mov r14, rcx
mov r13d, eax
lea ebx, [rax - 0x41]
xor esi, esi
lea r12d, [rsi + 0x10]
cmp byte [rcx + 0x319], sil
je 0x1400131bc
cmp byte [rcx + 0x31a], sil
je 0x140013074
lea ecx, [rsi + 0x70]
call fcn.1400e92f4
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14001305f
mov rcx, rax
call fcn.14002a3fc
mov rdi, rax
jmp 0x140013061
xor edi, edi
mov rax, qword [rdi]
mov edx, ebx
mov rcx, rdi
call qword [rax + 8]
mov r15b, al
jmp 0x14001317e
mov ecx, 0x60
call fcn.1400e92f4
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140013095
mov rcx, rax
call fcn.140057e68
mov rdi, rax
jmp 0x140013097
xor edi, edi
mov rax, qword [rdi]
mov edx, ebx
mov rcx, rdi
call qword [rax + 8]
mov r15b, al
test al, al
je 0x14001351c
mov rbx, qword [rdi + 8]
mov r9d, r12d
mov r8b, 7
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14002a900
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, [rsp + 0x60]
mov edx, 0x221d80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140013107
cmp dword [rsp + 0x70], 2
je 0x14001317e
mov ebx, pe_nt_image_headers64
mov r9d, ebx
lea r8, [rbp - 0x80]
lea edx, [rbx - 0x6b]
mov rcx, qword [0x140175a98]
call fcn.140023b00
test eax, eax
jne 0x140013146
movzx edx, word [0x14016a148]
xor edx, 0xbfbf
mov r9d, ebx
lea r8, [rbp - 0x80]
lea rcx, [0x14016a14a]
call fcn.140012e14
mov r8d, r13d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, r12d
lea r8, [0x140129d88]
lea rdx, [rbp + 0x80]
mov r13, qword [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
xor r15b, r15b
jmp 0x140013183
mov r13, qword [rsp + 0x50]
test r15b, r15b
je 0x14001351c
lea rbx, [r14 + 0x568]
mov rdx, rbx
mov rcx, rdi
call fcn.140056ec8
mov r15b, al
test al, al
je 0x1400131b4
mov eax, dword [rbx]
test eax, eax
je 0x1400131b4
inc eax
mov dword [rbx], eax
jmp 0x140013280
xor r15b, r15b
jmp 0x140013280
mov ecx, 0x60
call fcn.1400e92f4
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400131dd
mov rcx, rax
call fcn.140057e68
mov rdi, rax
jmp 0x1400131df
xor edi, edi
mov rax, qword [rdi]
mov edx, ebx
mov rcx, rdi
call qword [rax + 8]
mov r15b, al
test al, al
je 0x14001351c
mov ecx, 0x1a0
call fcn.1400e92f4
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140013216
mov rcx, rax
call fcn.1400585bc
mov rsi, rax
jmp 0x140013218
xor esi, esi
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.140058e78
test al, al
je 0x140013255
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140058c20
test rax, rax
je 0x140013255
lea rdx, [r14 + 0x568]
and dword [rdx], 0
mov rcx, rax
call fcn.140012f70
mov dword [r14 + 0x570], eax
lea rbx, [r14 + 0x568]
cmp dword [rbx], 0
jne 0x14001327b
test rsi, rsi
je 0x140013276
mov rcx, rsi
call fcn.140058718
mov rcx, rsi
call fcn.1400e92ec
xor esi, esi
xor r15b, r15b
mov r13, qword [rsp + 0x50]
test r15b, r15b
je 0x140013507
mov r8d, dword [rbx]
shl r8, 0xb
lea r9, [r14 + 0x360]
invalid
invalid
xchg esi, eax
invalid