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.14002a420
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.140057f64
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.14002a924
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.140056fc4
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.140057f64
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.1400586b8
mov rsi, rax
jmp 0x140013218
xor esi, esi
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.140058f74
test al, al
je 0x140013255
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140058d1c
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.140058814
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]
lea rdx, [r14 + 0x102]
mov rcx, r13
call fcn.140012e54
test eax, eax
je 0x14001353f
movzx r13d, word [rsp + 0x40]
movzx eax, r13b
sub eax, 0x41
cdqe
lea rbx, [0x140175bc0]
mov rbx, qword [rbx + rax*8]
test rbx, rbx
je 0x1400134e7
mov al, byte [rbx + 0x9d]
mov byte [r14 + 0x31b], al
mov al, byte [rbx + 0x9e]
mov byte [r14 + 0x31c], al
test dword [rbx + 0x1f8], 0x4000
je 0x140013318
lea rcx, [rbx + 0x238]
mov rdx, r14
sub rdx, rbx
mov al, byte [rcx + 0x14]
xor al, byte [rcx]
mov byte [rdx + rcx + 0xe6], al
inc rcx
dec r12
jne 0x140013304
mov eax, dword [rbx + 0x1f8]
shr eax, 0xe
and al, 1
mov byte [r14 + 0x31d], al
movups xmm0, xmmword [rbx + 0x210]
movdqu xmmword [r14 + 0x32e], xmm0
cmp byte [r14 + 0x31b], 0
je 0x1400134e7
cmp byte [r14 + 0x31a], 0
je 0x1400134e7
test rsi, rsi
jne 0x1400134e7
mov ecx, 0x1a0
call fcn.1400e92f4
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140013380
mov rcx, rax
call fcn.1400586b8
mov rsi, rax
jmp 0x140013382
xor esi, esi
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.140058f74
test al, al
je 0x1400134e7
mov eax, dword [rbx + 0x8c]
cmp eax, 0x16
je 0x1400133b6
cmp eax, 0xb
je 0x1400133b6
mov edx, 0xb6597b56
lea rcx, [0x14016e48e]
jmp 0x1400133c2
mov edx, 0xaba33124
lea rcx, [0x14016e480]
mov r8d, InitCommonControls
call fcn.1400016a8
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.140058d1c
mov rbx, rax
test rax, rax
je 0x1400134e7
lea r12, [r14 + 0x340]
mov rax, qword [r12]
mov qword [r12 + 8], rax
mov rbx, qword [rbx]
test rbx, rbx
je 0x1400134b2
lea rcx, [rbx + 0x50]
mov edx, 0x2e
call fcn.1400e9fb8
mov r13, rax
test rax, rax
je 0x14001349f
mov edx, 0x830df3c
mov r8d, 5
lea rcx, [0x14016e49c]
call fcn.1400016a8
lea rcx, [r13 + 1]
sub rax, rcx
movzx edx, byte [rcx]
movzx r8d, byte [rcx + rax]
sub edx, r8d
jne 0x140013450
inc rcx
test r8d, r8d
jne 0x14001343b
test edx, edx
jne 0x14001349f
xor r13d, r13d
cmp dword [rbx + 0x40], r13d
jbe 0x14001349f
lea rcx, [r13*2]
add rcx, r13
mov rax, qword [rbx + 0x48]
mov edx, dword [rax + rcx*4]
mov dword [rsp + 0x48], edx
mov ecx, dword [rax + rcx*4 + 4]
add ecx, 0x7ff
shr ecx, 0xb
lea eax, [rdx - 1]
add eax, ecx
mov dword [rsp + 0x4c], eax
lea rdx, [rsp + 0x48]
mov rcx, r12
call fcn.140013e78
inc r13d
cmp r13d, dword [rbx + 0x40]
jb 0x14001345d
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140013403
movzx r13d, word [rsp + 0x40]
mov rax, qword [r12 + 8]
sub rax, qword [r12]
sar rax, 3
test rax, rax
je 0x1400134e7
mov rdx, qword [r12 + 8]
sub rdx, qword [r12]
sar rdx, 3
lea r9, [0x140012fcc]
mov r8d, 8
mov rcx, qword [r12]
call fcn.1400ea570
mov word [r14], r13w
mov rax, qword [rsp + 0x50]
mov qword [r14 + 0x310], rax
mov qword [r14 + 0x588], rdi
mov qword [r14 + 0x598], rsi
jmp 0x14001353c
test rsi, rsi
je 0x14001351c
mov rcx, rsi
call fcn.140058814
mov rcx, rsi
call fcn.1400e92ec
mov rcx, rdi
call fcn.14005580c
mov rcx, rdi
call fcn.1400e92ec
mov rcx, rdi
call fcn.14005580c
mov rcx, rdi
call fcn.1400e92ec
mov al, r15b
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.1400e8bc0
mov rbx, qword [rsp + 0x3f8]
add rsp, 0x3a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret