Function at 0x180016950
Capabilities:
Contain obfuscated stackstrings
Delete registry value
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x1800624d0]
xor rax, rsp
mov qword [rbp + 0x280], rax
xor r9d, r9d
xor edx, edx
mov r8d, 0xbf
lea rcx, [0x18005c5c0]
call fcn.18003aed0
mov sil, 1
movzx r15d, sil
xor r14d, r14d
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], r14b
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xfe
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
xor ecx, ecx
call fcn.180015020
test al, al
jne 0x180016bfe
mov dword [rbp + 0x130], 0x6e0055
mov eax, 0x6b
mov word [rbp + 0x134], ax
movabs rax, 0x6e0077006f006e
mov qword [rbp + 0x136], rax
mov word [rbp + 0x13e], r14w
lea r8d, [r14 + 2]
lea rdx, [0x180054b90]
lea rcx, [rbp + 0x130]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
movabs rax, 0x59004400410045
mov qword [rbp + 0x142], rax
mov word [rbp + 0x14a], r14w
lea r8d, [r14 + 3]
lea rdx, [0x180054bde]
lea rcx, [rbp + 0x130]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov eax, dword [0x180054c52]
mov dword [rbp + 0x150], eax
movzx eax, word [0x180054c56]
mov word [rbp + 0x154], ax
movsd xmm0, qword [0x180054d08]
movsd qword [rbp + 0x156], xmm0
movzx eax, word [0x180054d10]
mov word [rbp + 0x15e], ax
mov eax, dword [0x180054d40]
mov dword [rbp + 0x160], eax
movzx eax, word [0x180054d44]
mov word [rbp + 0x164], ax
mov dword [rbp + 0x166], 0x64
mov eax, 0x52
mov word [rbp + 0xe0], ax
mov dword [rbp + 0xe1], 0x484349
mov eax, 0x3a
mov word [rbp + 0xe4], ax
mov eax, 0x5c
mov word [rbp + 0xe5], ax
mov eax, 0x45
mov word [rbp + 0xe6], ax
mov dword [rbp + 0xe7], 0x35544944
mov eax, 0x30
mov word [rbp + 0xeb], ax
mov eax, 0x57
mov word [rbp + 0xec], ax
mov dword [rbp + 0xed], 0x657778
mov eax, 0x62
mov word [rbp + 0xf0], ax
mov dword [rbp + 0xf8], 0x6f0062
mov eax, 0x72
mov word [rbp + 0xfc], ax
mov dword [rbp + 0xfe], 0x5c0061
mov dword [rbp + 0x102], 0x69006c
mov dword [rbp + 0x106], 0x5c0062
mov ecx, 0x74
mov word [rbp + 0x10a], cx
mov dword [rbp + 0x10c], 0x720068
mov dword [rbp + 0x110], 0x610065
mov dword [rbp + 0x114], 0x5c0064
mov dword [rbp + 0x118], 0x740076
mov dword [rbp + 0x11c], 0x720068
mov dword [rbp + 0x120], 0x610065
mov dword [rbp + 0x124], 0x550064
mov dword [rbp + 0x128], 0x2e004c
mov dword [rbp + 0x12c], 0x63
lea r8, [rbp + 0xf8]
lea rdx, [rbp + 0x130]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
jmp 0x180016eeb
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sub.RPCRT4.dll_MesEncodeIncrementalHandleCreate
mov edi, eax
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sub.RPCRT4.dll_MesEncodeIncrementalHandleCreate
mov ebx, eax
movsd xmm0, qword [0x18005c668]
mulsd xmm0, qword [0x180057200]
addsd xmm0, qword [0x1800571b0]
cvttsd2si rcx, xmm0
mov dword [rsp + 0x40], ecx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8d, 0xdf
lea rdx, [0x18005c5e8]
lea rcx, [rsp + 0x40]
call fcn.18000c070
movzx esi, sil
test edi, edi
cmovne esi, r14d
mov edi, r15d
test ebx, ebx
cmovne edi, r14d
lea r9, [rsp + 0x58]
xor r8d, r8d
mov edx, 0x117
xor ecx, ecx
call fcn.1800254d0
test al, al
jne 0x180016e1f
mov r8d, 3
lea rdx, [0x180054d54]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov r8d, 2
lea rdx, [0x180054d58]
lea rcx, [rbp + 0xe2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea rcx, [rbp + 0xe0]
dec rcx
nop dword [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x180016cf0
movzx eax, word [0x1800543a0]
mov word [rcx], ax
mov r8d, 1
lea rdx, [0x180054d5c]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov dword [rbp + 0xe5], 0x794465
mov r8d, 3
lea rdx, [0x180054d60]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
movzx eax, word [0x180054d64]
mov word [rbp + 0xeb], ax
movzx eax, byte [0x180054d66]
mov byte [rbp + 0xed], al
mov r8d, 1
lea rdx, [0x180054d68]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
movzx eax, word [0x180054d6c]
mov word [rbp + 0xee], ax
mov dword [rbp + 0xf0], 0x6f7773
mov r8d, 2
lea rdx, [0x180054d70]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov bl, 1
xor edx, edx
mov r8d, 0x140
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rbp - 0x60]
xor edx, edx
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileExA]
mov rdi, rax
movzx ebx, bl
cmp rax, 0xffffffffffffffff
cmove ebx, r14d
lea rax, [rbp + 0x170]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x36]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirA]
test bl, bl
je 0x180016e98
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x180016e98
test sil, sil
je 0x180016e4f
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call sub.RPCRT4.dll_MesIncrementalHandleReset
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180016e4f
call sub.RPCRT4.dll_MesHandleFree
test dil, dil
je 0x180016e85
mov qword [rsp + 0x40], r14
lea r8, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call sub.RPCRT4.dll_MesDecodeIncrementalHandleCreate
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180016e76
call sub.RPCRT4.dll_MesHandleFree
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180016e85
call sub.RPCRT4.dll_MesHandleFree
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x120
call fcn.180035940
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x180016ed8
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180016ed3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180016ed3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c238
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x180016f2a
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180016f25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180016f25
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c238
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.18004c9e0
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret