Function at 0x140001d70
Capabilities:
Create thread
Enumerate processes
Get token membership
Inject thread
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 - 0x650]
sub rsp, 0x750
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x640], rax
xor r13d, r13d
lea rcx, str.EblanatorihjaDLL
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov dword [rbp + 0x148], r13d
mov qword [rbp - 0x80], r13
mov dword [rbp + 0x140], r13d
mov word [rbp + 0x144], 0x500
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp + 0x140]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140001e3a
lea r8, [rbp + 0x148]
mov rdx, qword [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140001e3a
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp + 0x148], 1
je 0x140001e70
lea rdx, str.This_application_requires_admin_privileges._Please_run_as_administrator.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400039d0
mov rcx, rax
lea rdx, [0x140003bb0]
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 0x1400026d8
xorps xmm0, xmm0
movups xmmword [rbp + 0x1d0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1e0], xmm1
mov r8d, 9
lea rdx, str.khoor_ljl
lea rcx, [rbp + 0x1d0]
call fcn.140003d00
nop
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp + 0x190]
call fcn.140001700
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x30]
call fcn.140003380
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x30]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x140001f1d
lea rdx, str.Config_file_not_found._Creating_a_new_one...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400039d0
mov rcx, rax
lea rdx, [0x140003bb0]
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]
lea rcx, [rbp + 0x190]
call fcn.1400019f0
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x150]
call fcn.140001290
nop
cmp qword [rbp + 0x160], 0
jne 0x140001f53
lea rdx, str.Failed_to_read_config_file_or_process_name_not_specified.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400039d0
jmp 0x1400025bb
mov dword [rbp + 0x1f0], 0x238
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140002582
mov r12d, r13d
lea rdx, [rbp + 0x1f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov r14, 0xffffffffffffffff
test eax, eax
je 0x1400021da
mov r11d, 0xa
movabs r10, 0x7fffffffffffffff
movabs r9, 0x7ffffffffffffffe
lea rdx, [rbp + 0x150]
cmp qword [rbp + 0x168], 0xf
cmova rdx, qword [rbp + 0x150]
mov rsi, qword [rbp + 0x160]
add rsi, rdx
lea rbx, [rbp + 0x150]
cmp qword [rbp + 0x168], 0xf
cmova rbx, qword [rbp + 0x150]
xorps xmm0, xmm0
movups xmmword [rbp + 0x170], xmm0
cmp rbx, rsi
jne 0x14000201e
mov rdx, r13
mov qword [rbp + 0x180], rdx
mov r10d, 7
mov qword [rbp + 0x188], r10
mov word [rbp + 0x170], r13w
jmp 0x14000212e
sub rsi, rbx
mov edi, 7
mov qword [rbp + 0x188], rdi
cmp rsi, r9
ja 0x140002708
cmp rsi, rdi
jbe 0x1400020da
mov rdi, rsi
or rdi, 7
cmp rdi, r9
jbe 0x140002098
mov rdi, r9
lea rcx, [r10 + r10]
cmp rcx, 0x1000
jb 0x1400020c5
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000270e
mov rcx, rax
call fcn.140004380
mov rcx, rax
test rax, rax
je 0x140002388
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x188], rdi
jmp 0x1400020e1
cmp rdi, 0xa
cmovb rdi, r11
lea rcx, [rdi + 1]
cmp rcx, r10
ja 0x14000270e
add rcx, rcx
jne 0x140002052
mov rax, r13
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x188], rdi
jmp 0x1400020e1
call fcn.140004380
mov qword [rbp + 0x170], rax
mov qword [rbp + 0x188], rdi
jmp 0x1400020e1
mov rax, qword [rbp + 0x170]
lea r8, [rbp + 0x170]
cmp rdi, 7
cmova r8, rax
mov rcx, r8
mov rdx, rsi
test rsi, rsi
je 0x140002114
nop dword [rax + rax]
movsx eax, byte [rbx]
mov word [rcx], ax
lea rcx, [rcx + 2]
lea rbx, [rbx + 1]
sub rdx, 1
jne 0x140002100
mov qword [rbp + 0x180], rsi
mov word [r8 + rsi*2], r13w
mov r10, qword [rbp + 0x188]
mov rdx, qword [rbp + 0x180]
lea rcx, [rbp + 0x21c]
mov rax, r14
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140002140
lea r8, [rbp + 0x170]
mov r9, qword [rbp + 0x170]
cmp r10, 7
cmova r8, r9
cmp rdx, rax
jne 0x14000233c
lea rcx, [rbp + 0x21c]
test rdx, rdx
je 0x140002198
lea rax, [rbp + 0x21c]
sub r8, rax
nop
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x14000233c
add rcx, 2
sub rdx, 1
jne 0x140002180
mov r12d, dword [rbp + 0x1f8]
cmp r10, 7
jbe 0x1400021da
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x1400021d2
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002388
mov rcx, r9
call fcn.1400043bc
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12d, r12d
je 0x140002582
lea rdx, str.Select_a_DLL_file_to_inject:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400039d0
mov word [rbp + 0x430], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x432]
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
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
mov qword [rbp + 0x20], rax
mov dword [rbp - 0x70], 0x98
mov qword [rbp - 0x68], r13
lea rax, [rbp + 0x430]
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], 0x104
lea rax, str.DLL_Files
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x10], 0x1800
lea rcx, [rbp - 0x70]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
cmp eax, 1
jne 0x14000252a
lea rdx, [rbp + 0x430]
lea rcx, [rbp + 0x1b0]
call fcn.140001850
nop
lea rdx, [rbp + 0x1b0]
cmp qword [rbp + 0x1c8], 0xf
cmova rdx, qword [rbp + 0x1b0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
nop word [rax + rax]
inc r14
cmp byte [rdx + r14], 0
jne 0x1400022d0
mov r8, r14
lea rcx, [rsp + 0x60]
call fcn.140003d00
mov r8d, r12d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140002441
mov r8, qword [rsp + 0x70]
inc r8
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
mov rcx, rbx
test rax, rax
jne 0x14000238f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x140002441
cmp r10, 7
jbe 0x140002373
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x14000236b
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002388
mov rcx, r9
call fcn.1400043bc
lea rdx, [rbp + 0x1f0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140001f91
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x70]
inc r9
mov qword [rsp + 0x20], r13
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
mov rcx, rbx
test eax, eax
jne 0x1400023dc
mov rdx, rdi
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x140002441
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rdi
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, rax
test rax, rax
jne 0x14000240a
xor r8d, r8d
mov rcx, rbx
jmp 0x1400023c0
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140002481
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000247c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000247c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400043bc
test bl, bl
je 0x1400024c0
lea rdx, str.DLL_successfully_injected_into_process
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400039d0
lea rdx, [rbp + 0x150]
cmp qword [rbp + 0x168], 0xf
cmova rdx, qword [rbp + 0x150]
mov r8, qword [rbp + 0x160]
mov rcx, rax
call fcn.140004130
jmp 0x1400024d3
lea rdx, str.Failed_to_inject_DLL.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400039d0
lea rdx, [0x140003bb0]
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]
nop
mov rdx, qword [rbp + 0x1c8]
cmp rdx, 0xf
jbe 0x14000254d
inc rdx
mov rcx, qword [rbp + 0x1b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002523
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002523
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400043bc
jmp 0x14000254d
lea rdx, str.Failed_to_select_DLL_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400039d0
mov rcx, rax
lea rdx, [0x140003bb0]
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]
lea rdx, str.Press_any_key_to_exit...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400039d0
mov rcx, rax
lea rdx, [0x140003bb0]
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 [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov ebx, r13d
jmp 0x1400025d0
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.1400039d0
lea rdx, [rbp + 0x150]
cmp qword [rbp + 0x168], 0xf
cmova rdx, qword [rbp + 0x150]
mov r8, qword [rbp + 0x160]
mov rcx, rax
call fcn.140004130
lea rdx, [0x140003bb0]
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 ebx, 1
mov rdx, qword [rbp + 0x168]
cmp rdx, 0xf
jbe 0x140002614
inc rdx
mov rcx, qword [rbp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000260f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000260f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400043bc
mov qword [rbp + 0x160], r13
mov qword [rbp + 0x168], 0xf
mov byte [rbp + 0x150], 0
lea rcx, [rbp + 0x30]
call fcn.140001640
nop
mov rdx, qword [rbp + 0x1a8]
cmp rdx, 0xf
jbe 0x14000267b
inc rdx
mov rcx, qword [rbp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002676
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002676
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400043bc
movdqa xmm0, xmmword [0x140006900]
movdqu xmmword [rbp + 0x1a0], xmm0
mov byte [rbp + 0x190], 0
mov rdx, qword [rbp + 0x1e8]
cmp rdx, 0xf
jbe 0x1400026d6
inc rdx
mov rcx, qword [rbp + 0x1d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400026d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400026d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400043bc
mov eax, ebx
mov rcx, qword [rbp + 0x640]
xor rcx, rsp
call fcn.140004360
lea r11, [rsp + 0x750]
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
call fcn.1400011b0
nop
call fcn.140001110
int3