Function at 0x1400091b0
Capabilities:
Acquire debug privileges
Check if file exists
Create directory
Delete file
Execute command
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x690
lea rcx, str.C:HPG666.txt
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [0x1403d66e8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005eb0
lea rcx, str.sc_delete_hpgg
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x1403d6708]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [rsp + 0x60], 0
lea rcx, str.r5apex.exe
call fcn.140007970
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14000923e
lea rcx, [0x1403d6730]
call fcn.140001850
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
xor edx, edx
lea rcx, str.C:HPG
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000925e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
lea r8, str.GlobalHPGExistEvent
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov qword [rsp + 0xe0], rax
cmp qword [rsp + 0xe0], 0
jne 0x1400092bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x8c], eax
cmp dword [rsp + 0x8c], 2
jne 0x14000929e
jmp 0x1400092bd
lea rcx, [0x1403d6788]
call fcn.140001850
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
jmp 0x1400092ec
lea rcx, [0x1403d67a8]
call fcn.140001850
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea rcx, [rsp + 0xb8]
call fcn.140002110
nop
call fcn.140009120
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x1403d67c8]
lea rcx, [rsp + 0x268]
call fcn.140007010
mov qword [rsp + 0x210], rax
mov rax, qword [rsp + 0x210]
mov qword [rsp + 0x218], rax
mov rcx, qword [rsp + 0x218]
call fcn.1400082e0
mov byte [rsp + 0x51], al
lea rcx, [rsp + 0x268]
call fcn.140002540
movzx eax, byte [rsp + 0x51]
test eax, eax
je 0x14000956d
call fcn.140004880
lea rax, [rsp + 0x3d0]
mov qword [rsp + 0x120], rax
lea rdx, str.C:HPGIDSvia64.sys
mov rcx, qword [rsp + 0x120]
call fcn.140007070
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x148], rax
lea rax, [rsp + 0x3f0]
mov qword [rsp + 0x138], rax
lea rdx, str.IDSvia64
mov rcx, qword [rsp + 0x138]
call fcn.140007070
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x150], rax
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x150]
call fcn.1400010e0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140002950
call fcn.140004950
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x1403d6818]
call fcn.140001850
lea rax, [rsp + 0x410]
mov qword [rsp + 0x158], rax
lea rdx, str.C:HPGhpgg.sys
mov rcx, qword [rsp + 0x158]
call fcn.140007070
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x180], rax
lea rax, [rsp + 0x430]
mov qword [rsp + 0x170], rax
lea rdx, str.hpgg
mov rcx, qword [rsp + 0x170]
call fcn.140007070
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x188], rax
mov rdx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x188]
call fcn.1400010e0
call fcn.140009120
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.C:HPG888.txt
lea rcx, [rsp + 0x288]
call fcn.140007010
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x198], rax
mov rcx, qword [rsp + 0x198]
call fcn.1400082e0
mov byte [rsp + 0x52], al
lea rcx, [rsp + 0x288]
call fcn.140002540
movzx eax, byte [rsp + 0x52]
test eax, eax
je 0x140009558
lea rdx, [0x1403d6868]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005eb0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
jmp 0x14000956b
lea rdx, [0x1403d6878]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005eb0
jmp 0x140009580
lea rdx, [0x1403d6888]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005eb0
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 1
lea rdx, [0x1403d68a8]
lea rcx, [rsp + 0x470]
call fcn.140006df0
nop
mov edx, 1
lea rcx, [rsp + 0x2d0]
call fcn.140007130
nop
lea rax, [rsp + 0x2e0]
mov qword [rsp + 0x1a0], rax
lea rcx, [rsp + 0x470]
call fcn.140008900
mov rdx, rax
mov rcx, qword [rsp + 0x1a0]
call qword [sym.imp.MSVCP140.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_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
lea rdx, [rsp + 0x2a8]
lea rcx, [rsp + 0x2d0]
call fcn.140008fc0
mov qword [rsp + 0x1a8], rax
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0xb8]
call fcn.140007620
lea rcx, [rsp + 0x2a8]
call fcn.140002540
lea rcx, [rsp + 0x100]
call fcn.140002110
nop
lea rcx, [rsp + 0xb8]
call fcn.140003570
mov rdx, rax
lea rcx, [0x1403d68b8]
call fcn.140001850
lea rcx, [0x1403d68d0]
call fcn.140001850
lea rdx, [rsp + 0x100]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140005b30
lea rdx, [0x1403d6918]
lea rcx, [rsp + 0x100]
call fcn.140006270
movzx eax, al
test eax, eax
je 0x14000969c
lea rcx, [0x1403d6920]
call fcn.140001850
jmp 0x140009716
lea rcx, [0x1403d6930]
call fcn.140001850
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xb8]
call fcn.1400076a0
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
lea rdx, str.C:HPG777.txt
lea rcx, [rsp + 0x580]
call fcn.140001fd0
nop
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x580]
call fcn.140005e60
lea rcx, [rsp + 0x580]
call fcn.1400034e0
nop
lea rcx, [rsp + 0x580]
call fcn.1400027a0
mov dword [rsp + 0x208], 1
lea rax, str.123.186.147.162
mov qword [rsp + 0x1c0], rax
mov dword [rsp + 0x90], 0x11d8
lea rax, str.8346C5877265C998BCA44CE9BA2A1A9D28F0A55194D6C676F0909FF24B53AEFCCA7FF4BE443DF1A8CD
mov qword [rsp + 0x1b8], rax
lea rax, [0x1403d69b4]
mov qword [rsp + 0x1b0], rax
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov dl, 1
mov cl, 1
call fcn.14000b7a0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x1b0]
mov r8, qword [rsp + 0x1b8]
movzx edx, word [rsp + 0x90]
mov rcx, qword [rsp + 0x1c0]
call fcn.14000b7f0
mov byte [rsp + 0x50], 0
lea rcx, [rsp + 0xb8]
call fcn.140003570
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14000c6f0
movzx eax, al
test eax, eax
je 0x1400097f2
xor r9d, r9d
lea r8, [0x1403d69b8]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140009811
xor r9d, r9d
lea r8, [0x1403d69c0]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [rsp + 0x6a0], 2
cmp dword [rsp + 0x6a0], 3
jne 0x140009842
lea rax, str.D:DwmTest.dll
mov qword [rsp + 0x240], rax
mov dword [rsp + 0x54], 0x2c30
jmp 0x140009a25
cmp dword [rsp + 0x6a0], 2
jne 0x1400099b2
lea rcx, [rsp + 0x248]
call fcn.140002110
nop
lea rdx, str.dwm.exe
lea rcx, [rsp + 0x248]
call fcn.140007740
lea rcx, [rsp + 0x248]
call fcn.140003570
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x1c8], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
inc qword [rsp + 0x70]
mov rax, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x70]
cmp byte [rax + rcx], 0
jne 0x1400098a0
mov rax, qword [rsp + 0x70]
inc rax
mov qword [rsp + 0x1d0], rax
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14000a03c
mov qword [rsp + 0x1d8], rax
mov rax, qword [rsp + 0x1d8]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x1e0], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
inc qword [rsp + 0x68]
mov rax, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x68]
cmp byte [rax + rcx], 0
jne 0x14000991c
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x1e8], rcx
mov qword [rsp + 0x78], 0xffffffffffffffff
inc qword [rsp + 0x78]
mov rcx, qword [rsp + 0x1e8]
mov rdx, qword [rsp + 0x78]
cmp byte [rcx + rdx], 0
jne 0x140009952
mov rcx, qword [rsp + 0x78]
inc rcx
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x80]
mov r8, rcx
mov rdx, qword [rsp + 0xe8]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
mov rcx, qword [rsp + 0xe8]
call fcn.140007970
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x248]
call fcn.140002540
jmp 0x140009a25
lea rcx, str.Invalid_Params_n
call fcn.140001850
lea rcx, str.Usage:_dll_path__process_name__n
call fcn.140001850
lea rcx, [0x1403d6a20]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rsp + 0x94], 0
lea rcx, [rsp + 0x100]
call fcn.140002540
nop
lea rcx, [rsp + 0x2d0]
call fcn.140007820
nop
lea rcx, [rsp + 0x470]
call fcn.1400077e0
nop
lea rcx, [rsp + 0xb8]
call fcn.140002540
mov eax, dword [rsp + 0x94]
jmp 0x140009f22
cmp dword [rsp + 0x54], 0
jne 0x140009a93
lea rcx, str.Process_not_found_n
call fcn.140001850
lea rcx, [0x1403d6a3c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rsp + 0xac], 0xffffffff
lea rcx, [rsp + 0x100]
call fcn.140002540
nop
lea rcx, [rsp + 0x2d0]
call fcn.140007820
nop
lea rcx, [rsp + 0x470]
call fcn.1400077e0
nop
lea rcx, [rsp + 0xb8]
call fcn.140002540
mov eax, dword [rsp + 0xac]
jmp 0x140009f22
mov edx, dword [rsp + 0x54]
lea rcx, str.Process_pid:__d_n
call fcn.140001850
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov qword [rsp + 0xb0], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0xb0]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140009b68
mov dword [rsp + 0xf0], 1
mov eax, recv
imul rax, rax, 0
mov dword [rsp + rax + 0xfc], 2
mov eax, recv
imul rax, rax, 0
lea rax, [rsp + rax + 0xf4]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140009b5a
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0xf0]
xor edx, edx
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x54]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140009c02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
mov edx, dword [rsp + 0x98]
lea rcx, str.OpenProcess_failed:_0x_X_n
call fcn.140001850
lea rcx, [0x1403d6aa4]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rsp + 0x9c], 0xfffffffe
lea rcx, [rsp + 0x100]
call fcn.140002540
nop
lea rcx, [rsp + 0x2d0]
call fcn.140007820
nop
lea rcx, [rsp + 0x470]
call fcn.1400077e0
nop
lea rcx, [rsp + 0xb8]
call fcn.140002540
mov eax, dword [rsp + 0x9c]
jmp 0x140009f22
mov rcx, qword [rsp + 0x58]
call fcn.140007a00
movzx eax, al
test eax, eax
jne 0x140009c85
lea rcx, str.Invalid_Process_Architecture._n
call fcn.140001850
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1403d6ad0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rsp + 0xa0], 0xfffffffd
lea rcx, [rsp + 0x100]
call fcn.140002540
nop
lea rcx, [rsp + 0x2d0]
call fcn.140007820
nop
lea rcx, [rsp + 0x470]
call fcn.1400077e0
nop
lea rcx, [rsp + 0xb8]
call fcn.140002540
mov eax, dword [rsp + 0xa0]
jmp 0x140009f22
lea rcx, [rsp + 0x220]
call fcn.140002110
nop
lea rcx, [0x1403d6ae0]
call fcn.140001850
lea rdx, [rsp + 0x220]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140005b30
lea rdx, [0x1403d6b64]
lea rcx, [rsp + 0x220]
call fcn.140006270
movzx eax, al
test eax, eax
je 0x140009d28
lea rcx, [rsp + 0xb8]
call fcn.140003570
lea rcx, [0x140008350]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, str.C:UsersAdministratorDesktopAA.dll
lea r8, [0x1403d6b90]
lea rdx, [0x1403d6622]
mov rcx, rax
call fcn.14000cde0
jmp 0x140009df0
lea rax, [rsp + 0x450]
mov qword [rsp + 0x1f0], rax
lea rdx, str.present
mov rcx, qword [rsp + 0x1f0]
call fcn.140007010
mov qword [rsp + 0x1f8], rax
mov rcx, qword [rsp + 0x1f8]
call fcn.140007a80
mov qword [rsp + 0x200], rax
lea rax, [0x1403d6623]
cmp qword [rsp + 0x200], rax
jne 0x140009d9b
lea rcx, [0x1403d6bb0]
call fcn.140001850
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea rcx, [rsp + 0xb8]
call fcn.140003570
lea rcx, [0x140008350]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, str.C:UsersAdministratorDesktopAB.dll
lea r8, str.downloadFilehpg
lea rdx, [0x1403d6624]
mov rcx, rax
call fcn.14000cde0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9b, 1
mov r8d, 8
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x58]
call fcn.140004a20
movzx eax, al
test eax, eax
jne 0x140009eaf
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Error_while_mapping._n
call fcn.140001850
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rsp + 0xa4], 0xfffffff8
lea rcx, [rsp + 0x220]
call fcn.140002540
nop
lea rcx, [rsp + 0x100]
call fcn.140002540
nop
lea rcx, [rsp + 0x2d0]
call fcn.140007820
nop
lea rcx, [rsp + 0x470]
call fcn.1400077e0
nop
lea rcx, [rsp + 0xb8]
call fcn.140002540
mov eax, dword [rsp + 0xa4]
jmp 0x140009f22
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1403d6c70]
call fcn.140001850
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov dword [rsp + 0xa8], 0
lea rcx, [rsp + 0x220]
call fcn.140002540
lea rcx, [rsp + 0x100]
call fcn.140002540
lea rcx, [rsp + 0x2d0]
call fcn.140007820
lea rcx, [rsp + 0x470]
call fcn.1400077e0
lea rcx, [rsp + 0xb8]
call fcn.140002540
mov eax, dword [rsp + 0xa8]
add rsp, 0x690
pop rdi
ret