Function at 0x1400b7390
Capabilities:
Delete file
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x2f8]
sub rsp, 0x3e0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rsi, rcx
mov rdx, qword [rcx]
mov rdx, qword [rdx + 0x10]
lea rcx, [rbp - 0x28]
call fcn.140136640
nop
lea rbx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
jb 0x1400b73f2
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x1400b790b
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1400b790b
mov edx, 2
mov rcx, rbx
call fcn.1402e7208
test eax, eax
jne 0x1400b790b
lea edx, [rax + 6]
mov rcx, rbx
call fcn.1402e7208
test eax, eax
jne 0x1400b790b
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.1401368d0
nop
lea rdx, [0x14040abe8]
lea rcx, [rbp + 0x38]
call fcn.14007eba0
test al, al
jne 0x1400b7901
lea rdx, str.HFS
lea rcx, [rbp + 0x38]
call fcn.14007eba0
test al, al
jne 0x1400b7901
xor ecx, ecx
call fcn.1402e6c58
mov rcx, rax
call fcn.1402e72f4
call fcn.1402e72c8
mov edx, eax
lea rcx, [rbp + 0x18]
call fcn.140096b40
nop
mov r8d, reloc.WLDAP32.dll_Ordinal_41
lea rdx, str._365738BD_270F_4193_A034_86FF5AB26AAE.tmp
lea rcx, [rbp + 0x18]
call fcn.14007e3d0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xc0]
call fcn.1402dd440
lea r8, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae r8, qword [rbp + 0x18]
mov rdx, rbx
lea rcx, [rbp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400b78f7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rbp + 0x18]
call fcn.14007ec70
nop
lea rcx, [rbp + 0x38]
call fcn.14007ec70
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.1400ac220
nop
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x70], 1
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rsp + 0x68]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHParseDisplayName]
cmp byte [rsp + 0x70], r14b
je 0x1400b75a1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdx]
mov rax, qword [rsp + 0x68]
mov qword [rdx], rax
test rcx, rcx
je 0x1400b75a1
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400b76ee
mov qword [rsp + 0x48], r14
lea r8, [rsp + 0x48]
lea rdx, [0x1403ff0c8]
call qword [sym.imp.SHELL32.dll_SHCreateItemFromIDList]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400b76e2
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], r14
mov byte [rbp - 0x78], 1
lea rcx, [rbp + 0x98]
cmp qword [rbp + 0xb0], 8
cmovae rcx, qword [rbp + 0x98]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHParseDisplayName]
cmp byte [rbp - 0x78], 0
je 0x1400b7636
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rdx]
mov rax, qword [rbp - 0x80]
mov qword [rdx], rax
test rcx, rcx
je 0x1400b7636
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400b76cd
mov qword [rsp + 0x58], rcx
mov qword [rbp - 0x70], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.140092470
nop
mov rax, qword [rsi]
xor r9d, r9d
lea r8, [rbp - 0x70]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rax + 0x10]
call fcn.14008cb70
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400b76c8
mov rax, qword [rbp - 0x60]
sub rax, rcx
sar rax, 3
lea rdx, [rax*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b76c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b793d
call fcn.1401aed44
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x40], r14
test rcx, rcx
je 0x1400b76dd
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400b76ee
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rbx, qword [rsi + 8]
mov rdi, 0xffffffffffffffff
test rbx, rbx
je 0x1400b77ac
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
movdqa xmm0, xmmword [0x140415690]
movdqu xmmword [rbp + 0x68], xmm0
mov word [rbp + 0x58], r14w
mov r8, rdi
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400b7725
lea rcx, [rbp + 0x58]
call fcn.14007ece0
nop
lea rdx, [rbp + 0x58]
mov rcx, rbx
call fcn.14015f8f0
nop
lea rcx, [rbp + 0x58]
call fcn.14007ec70
mov rbx, qword [rsi + 8]
mov rax, qword [rbx]
mov rsi, qword [rax + 0x88]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
movdqa xmm0, xmmword [0x140415690]
movdqu xmmword [rbp + 0x88], xmm0
mov word [rbp + 0x78], r14w
mov r8, rdi
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400b7784
lea rcx, [rbp + 0x78]
call fcn.14007ece0
nop
lea rdx, [rbp + 0x78]
mov rcx, rbx
call rsi
nop
lea rcx, [rbp + 0x78]
call fcn.14007ec70
call fcn.1400a3380
lea rdx, [rbp - 0x38]
mov rcx, qword [rax]
call fcn.1400af940
nop
mov rbx, qword [rax]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
movdqa xmm0, xmmword [0x140415690]
movdqu xmmword [rbp + 8], xmm0
mov word [rbp - 8], r14w
mov r8, rdi
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400b77e4
lea rcx, [rbp - 8]
call fcn.14007ece0
lea r8, [rbx + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x1400b7806
mov r8, qword [r8]
mov qword [rbp - 0x58], r14
mov dword [rbp - 0x50], r14d
mov qword [rbp - 0x48], r14
mov dword [rsp + 0x28], 0xf003f
mov rdx, 0xffffffff80000001
lea rcx, [rbp - 0x58]
call fcn.1400a5100
test eax, eax
jne 0x1400b788e
lea rcx, [rbp - 8]
mov rbx, qword [rbp - 0x58]
cmp qword [rbp + 0x10], 8
jb 0x1400b7846
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1400b7884
mov rax, rdi
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400b7850
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140404a50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x1400b789d
mov rcx, rbx
jmp 0x1400b7897
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400b789d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 8]
call fcn.14007ec70
nop
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x1400b78d8
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400b78d8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400b78d8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], r14
test rcx, rcx
je 0x1400b78ee
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rcx, [rbp + 0x98]
jmp 0x1400b7905
lea rcx, [rbp + 0x18]
call fcn.14007ec70
nop
lea rcx, [rbp + 0x38]
call fcn.14007ec70
nop
lea rcx, [rbp - 0x28]
call fcn.14007ec70
mov al, 1
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1401aed20
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1402df98c
nop
int3
add rcx, 8
jmp 0x1400b7390