Function at 0x14001c168
Capabilities:
Delete file
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xor r14d, r14d
mov edi, r14d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call sub.msvcrt.dll_memset
mov esi, r14d
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r14
call fcn.14001ce74
mov qword [rsp + 0x70], rax
mov byte [rax + 0x21], 1
mov rax, qword [rsp + 0x70]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x70]
mov qword [rax], rax
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x78], r14
call fcn.14001ce74
mov qword [rsp + 0x40], rax
mov byte [rax + 0x21], 1
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x40]
mov qword [rax], rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x48], r14
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x14003f370]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 0x80004005
test eax, eax
jne 0x14001c276
mov rsi, qword [rsp + 0x50]
mov qword [rbp - 0x80], rsi
test rsi, rsi
jne 0x14001c278
mov edi, ebx
mov byte [rsp + 0x30], r14b
test edi, edi
js 0x14001c2c5
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.14001bf38
mov edi, eax
test eax, eax
js 0x14001c2c5
cmp byte [rsp + 0x30], r14b
je 0x14001c2a8
mov rcx, rsi
call fcn.14001bc10
mov r8d, 0x104
lea rdx, [rbp - 0x60]
lea rcx, str._localappdata_microsoftInputPersonalizationTrainedDataStore
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14001c31b
mov edi, ebx
lea rcx, [rsp + 0x38]
call fcn.14001c8fc
nop
lea rcx, [rsp + 0x68]
call fcn.14001c8fc
nop
test rsi, rsi
je 0x14001c2e9
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400362c0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, [rbp - 0x60]
call fcn.14002eab4
mov edi, eax
test eax, eax
js 0x14001c2c5
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x60]
call fcn.14001b7d8
mov edi, eax
test eax, eax
js 0x14001c2c5
lea r8, [rsp + 0x38]
mov rdx, rsi
xor ecx, ecx
call fcn.14001b4d4
mov edi, eax
test eax, eax
js 0x14001c2c5
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14001bf38
mov edi, eax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
cmovne edi, ebx
test edi, edi
js 0x14001c2c5
mov rax, qword [rsp + 0x70]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14001c2c5
mov rcx, qword [rbx + 0x18]
test rcx, rcx
jne 0x14001c3a5
mov r12, r14
jmp 0x14001c3c9
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, eax
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov r12, rax
cmp qword [rbx + 0x18], r14
je 0x14001c3c9
test rax, rax
je 0x14001c4c1
mov rcx, qword [rsp + 0x40]
mov r13, rcx
mov r14, qword [rcx + 8]
cmp byte [r14 + 0x21], 0
jne 0x14001c43a
mov r15, rcx
xor r9d, r9d
mov r8d, 0x400
mov rdx, r12
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.OLEAUT32.dll_VarR8Pow]
test eax, eax
jne 0x14001c3ff
mov r14, qword [r14 + 0x10]
jmp 0x14001c405
mov r15, r14
mov r14, qword [r14]
cmp byte [r14 + 0x21], 0
je 0x14001c3df
mov rcx, qword [rsp + 0x40]
cmp r15, rcx
je 0x14001c43a
xor r9d, r9d
mov r8d, 0x400
mov rdx, qword [r15 + 0x18]
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_VarR8Pow]
xor r14d, r14d
test eax, eax
jne 0x14001c440
mov rcx, qword [rsp + 0x40]
jmp 0x14001c43d
xor r14d, r14d
mov r15, rcx
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp r15, r13
jne 0x14001c458
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rbx + 0x21], r14b
je 0x14001c474
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140036b54
jmp 0x14001c4b7
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x21], r14b
jne 0x14001c49b
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x21], r14b
jne 0x14001c4b7
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x21], r14b
je 0x14001c48a
jmp 0x14001c4b7
mov rax, qword [rbx + 8]
jmp 0x14001c4ae
cmp rbx, qword [rax + 0x10]
jne 0x14001c4b4
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x21], r14b
je 0x14001c4a1
mov rbx, rax
cmp rbx, qword [rsp + 0x70]
jmp 0x14001c391
mov ecx, 0x8007000e
call fcn.140001648
int3