Function at 0x140070f60
Capabilities:
Acquire debug privileges
Check if file exists
Get file attributes
Set console window title

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 - 0x150]
sub rsp, 0x250
mov rax, qword [0x14023cac0]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor ebx, ebx
mov r12d, ebx
mov dword [rsp + 0x50], ebx
lea rcx, str.Service_Execution__forked_by_espouken
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x50]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14007101a
lea rdx, str.OpenProcessToken_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140071a90
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
lea rdx, [0x140071c70]
mov rcx, rax
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_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x140071861
lea r8, [rsp + 0x70]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x14007105b
lea rdx, str.LookupPrivilegeValueA_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140071a90
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
jmp 0x1400710c4
mov dword [rsp + 0x58], 1
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x5c], rax
mov dword [rsp + 0x64], 2
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400710a4
lea rdx, str.AdjustTokenPrivileges_error:
jmp 0x140071039
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x1400710e9
lea rdx, str.privileges_error_at_assign.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140071a90
lea rdx, [0x140071c70]
mov rcx, rax
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_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140071861
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140074cd0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
lea rcx, [rbp - 0x10]
call fcn.140073ae0
nop
mov r13, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
mov qword [rsp + 0x70], rsi
cmp r13, rsi
je 0x1400717a3
nop word [rax + rax]
mov edi, dword [r13]
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140071796
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.140073bc0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x18], 0
je 0x14007175b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rax
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x48]
call fcn.140073830
nop
mov rcx, qword [rbp - 0x48]
cmp rcx, qword [rbp - 0x40]
je 0x140071713
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400711ff
mov r9d, 0x104
lea r8, [rbp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xor ebx, ebx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
lea rax, [rbp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], bl
jne 0x1400711f0
lea rdx, [rbp + 0x30]
jmp 0x14007121b
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xor ebx, ebx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
xor r8d, r8d
lea rdx, [0x140215ef0]
lea rcx, [rsp + 0x78]
call fcn.140071cb0
or r12d, 4
mov dword [rsp + 0x50], r12d
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rcx, qword [rsp + 0x78]
cmp qword [rbp - 0x78], 0xb
jne 0x14007126e
mov r8d, recv
lea rdx, str.svchost.exe
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14007126e
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140073fe0
nop
or r12d, 1
jmp 0x140071298
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rbx
xor r8d, r8d
lea rdx, [0x140215ef0]
lea rcx, [rbp - 0x68]
call fcn.140071cb0
lea rax, [rbp - 0x68]
or r12d, 2
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], recv
mov byte [rax], 0
test r12b, 2
je 0x14007130b
and r12d, 0xfffffffd
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x14007130b
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140071305
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140071822
call fcn.14019e434
nop
test r12b, 1
je 0x140071365
and r12d, 0xfffffffe
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140071352
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007134d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140071829
call fcn.14019e434
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], recv
mov byte [rsp + 0x30], 0
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rdx, qword [rsp + 0x78]
mov r8, qword [rbp - 0x78]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140071e40
cmp qword [rbp - 0x20], 0
je 0x1400713c8
lea rdx, str.__Service:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140071a90
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
mov rcx, rax
call fcn.140071e40
mov rcx, rax
lea rdx, [0x140215f44]
call fcn.140071a90
lea rdx, [0x140215f54]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140071a90
mov edx, edi
mov rcx, rax
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140215f44]
call fcn.140071a90
lea rdx, [0x140071c70]
mov rcx, rax
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_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rsi, qword [rbp - 0x48]
mov r15, qword [rbp - 0x40]
cmp rsi, r15
je 0x14007166e
nop word [rax + rax]
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.140074270
nop
mov rcx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14007143a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, r14
cmp eax, 0xffffffff
je 0x14007145c
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._tFile_is_present
jmp 0x14007146e
mov edx, 4
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._tFile_is_deleted
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140071a90
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rcx, qword [rbp - 0x68]
cmp qword [rbp - 0x58], 0xa
jne 0x1400714aa
mov r8d, 0xa
lea rdx, str.Signed
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
mov edx, 2
je 0x1400714af
mov edx, 4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140071e40
mov rcx, rax
lea rdx, [0x140215f94]
call fcn.140071a90
mov edx, 7
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140071500
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140071e40
mov rcx, rax
lea rdx, [0x140215f94]
call fcn.140071a90
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov qword [rsp + 0x68], rbx
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1400753e0
test al, al
je 0x1400715b4
mov edx, 4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
cmp rbx, rdi
je 0x1400715a4
nop dword [rax + rax]
lea rdx, str._Flagged
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140071a90
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140071580
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140071e40
mov rcx, rax
lea rdx, [0x140215f98]
call fcn.140071a90
add rbx, 0x20
cmp rbx, rdi
jne 0x140071560
mov edx, 7
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
xor ebx, ebx
lea rdx, [0x140071c70]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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_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 [rsp + 0x58]
test rcx, rcx
je 0x140071626
mov rdx, qword [rsp + 0x60]
call fcn.140071db0
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140071613
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140071830
call fcn.14019e434
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rbx
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140071661
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007165c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140071837
call fcn.14019e434
add rsi, 0x20
cmp rsi, r15
jne 0x140071420
lea rdx, [0x140071c70]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x1400716be
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400716b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007183e
call fcn.14019e434
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], recv
mov byte [rbp - 0x30], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x14007170a
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140071705
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140071845
call fcn.14019e434
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14007175b
mov rdx, qword [rbp - 0x40]
call fcn.140071db0
mov rdx, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x48]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140071755
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007184c
call fcn.14019e434
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x140071796
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140071791
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140071853
call fcn.14019e434
add r13, 4
cmp r13, rsi
jne 0x140071130
mov rcx, r14
call fcn.140072580
lea rdx, [0x140215fc0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140071a90
mov rcx, rax
lea rdx, str.______End______
call fcn.140071a90
mov edx, 1
mov r8d, 0xffffffff
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::ignore_long_long___int64___int____ptr64]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14007185f
mov rdx, qword [rbp]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007185a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007185a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14019e434
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14019e3d0
lea r11, [rsp + 0x250]
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