Function at 0x1401cf200
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov r12, rcx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x1401cfa53
xor r14d, r14d
mov qword [rbp - 0x18], r14
mov dword [rbp - 0x10], r14d
mov qword [rbp - 8], r14
add rcx, 0xffffffffffffffe8
call fcn.1400026b0
lea rdi, [rax + 0x18]
mov qword [rsp + 0x70], rdi
lea rcx, [0x14042f270]
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x60], rbx
mov ecx, dword [r12]
test ecx, ecx
je 0x1401cf9ef
or rsi, 0xffffffffffffffff
dec ecx
je 0x1401cf433
dec ecx
jne 0x1401cf5e1
lea rdx, str.Chrome
lea rcx, [rbp - 0x68]
call fcn.140001eb0
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x28]
mov rcx, r12
call fcn.1401cf030
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1401cf306
cmp dword [rbx + 0x10], r14d
jl 0x1401cf2f7
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1401cf2f7
call fcn.1400026b0
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1401cf2ec
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x60], rax
jmp 0x1401cf306
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.140002560
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401cf325
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401cf343
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x60]
cmp dword [rax - 0x10], 0
je 0x1401cf5dc
mov r8d, 0xa
lea rdx, str.chrome.exe
lea rcx, [rsp + 0x60]
call fcn.140002740
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401cf5dc
lea rcx, [0x14042f270]
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x70], rax
mov r8, qword [rsp + 0x70]
lea rdx, str._______1____s_
lea rcx, [rbp - 0x70]
call fcn.14001bdb0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r14
mov rbx, qword [rbp - 0x70]
mov r9, rbx
mov r8, rdi
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401cf3f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401cf410
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1401cf42e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1401cfa53
lea rdx, str.Firefox
lea rcx, [rbp - 0x78]
call fcn.140001eb0
nop
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x60]
mov rcx, r12
call fcn.1401cf030
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1401cf4af
cmp dword [rbx + 0x10], 0
jl 0x1401cf4a0
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1401cf4a0
call fcn.1400026b0
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1401cf495
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x60], rax
jmp 0x1401cf4af
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.140002560
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401cf4ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401cf4ec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x60]
cmp dword [rax - 0x10], 0
je 0x1401cf5dc
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, str.firefox.exe
lea rcx, [rsp + 0x60]
call fcn.140002740
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401cf5dc
lea rcx, [0x14042f270]
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x80], rax
mov r8, qword [rsp + 0x70]
lea rdx, str._requestPending__osint__url___s_
lea rcx, [rbp - 0x80]
call fcn.14001bdb0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r14
mov rbx, qword [rbp - 0x80]
mov r9, rbx
mov r8, rdi
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401cf599
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401cf5b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1401cf5d7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1401cfa53
mov rdi, qword [rsp + 0x70]
lea r12, [rdi - 0x18]
mov rcx, r12
call fcn.1400026b0
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
cmp dword [rbx - 0x10], 0
jl 0x1401cf650
lea rdx, str.file:___
mov rcx, rbx
call fcn.1402513f0
test rax, rax
je 0x1401cf650
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x1401cf650
lea r8, [0x140360770]
lea rdx, str.file:___
lea rcx, [rsp + 0x78]
call fcn.1400b93d0
lea r8, [0x14033ff78]
lea rdx, [0x140344610]
lea rcx, [rsp + 0x78]
call fcn.1400b93d0
mov rbx, qword [rsp + 0x78]
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, rbx
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x1401cf997
mov qword [rbp - 0x40], r14
mov dword [rbp - 0x38], r14d
mov qword [rbp - 0x30], r14
lea rcx, [0x14042f270]
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
mov r9d, 0x20019
lea r8, str.http_shellopencommand
mov rdx, 0xffffffff80000000
lea rcx, [rbp - 0x40]
call fcn.14000b4d0
test eax, eax
jne 0x1401cf968
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov r13, qword [rbp - 0x40]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov r11d, dword [rbp + 0xb8]
inc r11d
mov dword [rbp + 0xb8], r11d
lea edx, [r11 + 1]
test edx, edx
jns 0x1401cf72e
mov ecx, 0x80070057
call fcn.140001290
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x1401cf755
lea rcx, [rsp + 0x68]
call fcn.140002650
mov rbx, qword [rsp + 0x68]
mov r11d, dword [rbp + 0xb8]
lea eax, [r11 + r11]
mov dword [rbp + 0xc0], eax
mov dword [rbp + 0xb8], r14d
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0xc8]
xor r8d, r8d
lea rdx, [0x140360770]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401cf93c
mov eax, dword [rbp + 0xc8]
cmp eax, 1
je 0x1401cf7ad
cmp eax, 2
jne 0x1401cf93c
mov ecx, dword [rbp + 0xc0]
test rbx, rbx
je 0x1401cf7db
test ecx, ecx
je 0x1401cf7d7
test cl, 1
jne 0x1401cf93c
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x1401cf7db
jmp 0x1401cf93c
mov word [rbx], r14w
shr ecx, 1
mov dword [rbp + 0xb8], ecx
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140251840
test eax, eax
js 0x1401cf931
cmp eax, dword [rbx - 0xc]
jg 0x1401cf931
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
mov r8, rdi
lea rdx, [0x1403445d4]
lea rcx, [rsp + 0x68]
call fcn.1400b93d0
test eax, eax
jne 0x1401cf85f
lea r8d, [rax + 2]
lea rdx, [0x1403445cc]
lea rcx, [rsp + 0x68]
call fcn.140002740
mov r8d, dword [rdi - 0x10]
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140002740
mov r8d, 1
lea rdx, [0x140341220]
lea rcx, [rsp + 0x68]
call fcn.140002740
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp]
call fcn.1402577d0
xor r11d, r11d
mov qword [rbp - 0x58], r11
mov qword [rbp - 0x50], r11
mov qword [rbp - 0x48], r11
mov rbx, qword [rsp + 0x68]
mov ecx, dword [rbx - 0x10]
inc ecx
movsxd rdi, ecx
mov eax, 2
mul rdi
cmovo rax, rsi
mov rcx, rax
call fcn.140218cbc
mov r13, rax
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.1402577d0
mov r11, rbx
mov rdx, r13
sub rdx, rbx
nop word [rax + rax]
movzx ecx, word [r11]
mov word [rdx + r11], cx
add r11, 2
test cx, cx
jne 0x1401cf8c0
lea rax, [rbp - 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1401cf927
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call fcn.1402512b0
jmp 0x1401cf968
mov ecx, 0x80070057
call fcn.140001290
int3
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140251840
test eax, eax
js 0x1401cf95d
cmp eax, dword [rbx - 0xc]
jg 0x1401cf95d
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
jmp 0x1401cf968
mov ecx, 0x80070057
call fcn.140001290
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401cf983
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1401cf992
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x78]
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401cf9b2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401cf9d2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock xadd dword [r12 + 0x10], esi
dec esi
test esi, esi
jg 0x1401cf9ed
mov rcx, qword [r12]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1401cfa53
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r14
mov r9, rdi
lea r8, str.iexplore.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rdx, [rbx - 0x18]
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401cfa35
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1401cfa53
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
add rsp, 0x170
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret