Function at 0x14004deb0
Capabilities:
Acquire debug privileges
Enumerate processes

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 - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1401807c0]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r12d, r12d
mov edi, r12d
mov dword [rsp + 0x50], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x50]
mov edx, Ordinal_41
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400421d9
lea rdx, str.Failed_to_open_process_token._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140026750
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, [0x1400319d0]
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]
jmp 0x140042236
lea r8, [rbp - 0x68]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140042230
mov dword [rsp + 0x58], 1
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x5c], rax
mov dword [rsp + 0x64], 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.SearchIndexer.exe
lea rcx, [rsp + 0x78]
call fcn.140001c50
nop
mov dword [rbp + 0x40], pe_nt_image_headers64
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140042284
lea rdx, str.Failed_to_create_snapshot.
jmp 0x140042300
lea rdx, [rbp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400422f0
mov r14, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x78]
mov r15, qword [rsp + 0x78]
lea rcx, [rbp + 0x6c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400422b0
lea rcx, [rsp + 0x78]
cmp r14, 0xf
cmova rcx, r15
cmp rsi, rax
jne 0x1400422df
mov r8, rsi
lea rdx, [rbp + 0x6c]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400426b0
lea rdx, [rbp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400422a2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Process_not_found.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140026750
lea rdx, [0x1400319d0]
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 r14d, r12d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x60]
call fcn.140041490
nop
mov rsi, qword [rbp - 0x60]
mov r15, qword [rbp - 0x58]
cmp rsi, r15
je 0x14004266c
lea rbx, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea r13, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
nop word [rax + rax]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1401564f0]
mov qword [rbp + 0x40], rax
lea rax, [0x140152430]
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0xd8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or edi, 1
mov dword [rsp + 0x50], edi
xor r8d, r8d
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x40], rbx
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x3c], edx
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rbp + 0x58], r13
mov qword [rbp + 0xc0], r12
mov dword [rbp + 0xc8], r12d
lea rdx, str.Found_FAT_Drive:
lea rcx, [rbp + 0x50]
call fcn.140026750
mov rbx, rax
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140042409
mov rdx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140042422
lea rcx, [rsp + 0x58]
call fcn.140006350
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rax
lea rcx, [rbp - 0x40]
call fcn.14003e900
nop
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova r8, qword [rsp + 0x58]
mov rax, qword [rsp + 0x68]
lea r9, [r8 + rax*2]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x40]
call fcn.14003eb80
or edi, 6
lea rax, vtable.std::wstring_convert_class_std::codecvt_utf8_utf16_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
mov qword [rbp - 0x40], rax
lea rcx, [rbp]
call fcn.140004ab0
lea rcx, [rbp - 0x20]
call fcn.140004b20
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400424d5
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x1400424d5
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400277e0
nop
lea rcx, [rsp + 0x30]
call fcn.140004b20
nop
lea rcx, [rsp + 0x58]
call fcn.140004ab0
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x58]
call fcn.140004a00
or edi, 8
call fcn.140002420
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov r8d, 3
lea rdx, [0x140152114]
lea rcx, [rsp + 0x58]
call fcn.140001c50
nop
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x38], 3
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x30], 0
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x10]
call fcn.140004250
nop
or edi, 0x10
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x30]
call fcn.140004250
or edi, 0x20
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.140004b80
nop
lea rcx, [rsp + 0x30]
call fcn.140004b20
nop
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x10]
mov edx, dword [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
call fcn.1400025b0
lea rcx, [rbp - 0x10]
call fcn.140004b20
lea rcx, [rbp - 0x30]
call fcn.140004b20
nop
lea rcx, [rsp + 0x58]
call fcn.140004b20
mov rdx, rsi
mov ecx, r14d
call fcn.140041f00
nop
lea rcx, [rbp + 0x170]
call fcn.140004b20
nop
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x40], rbx
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x3c], edx
mov qword [rbp + 0x58], r13
lea rcx, [rbp + 0x58]
call fcn.140004950
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xd8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
add rsi, 0x20
cmp rsi, r15
jne 0x140042360
lea rcx, [rbp - 0x60]
call fcn.140022860
nop
lea rcx, [rsp + 0x78]
call fcn.140004b20
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14011ab50
lea r11, [rsp + 0x2a0]
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
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, dword [rbp + 0x48]
jmp 0x14004231f
jmp 0x140042140