Function at 0x140013d40
Capabilities:
Enumerate processes

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb60
mov rdi, rsp
mov ecx, 0x2d8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb70]
mov rax, qword [0x140056008]
xor rax, rsp
mov qword [rsp + 0xb58], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov qword [rsp + 0x468], 0
mov r8, qword [rsp + 0xb70]
mov edx, 0x208
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x50]
call fcn.140013bb8
mov r8d, dword [rsp + 0xb78]
lea rdx, [rsp + 0x50]
lea rcx, str.GetShellPIDMatchingInstallerSessionID::_Looking_for_Process_and_session_ID:
call fcn.140013a3c
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x470], rax
cmp qword [rsp + 0x470], 0
je 0x140013e34
lea rdx, str.QueryFullProcessImageNameW
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x468], rax
cmp qword [rsp + 0x468], 0
jne 0x140013e34
mov eax, dword [rsp + 0x30]
jmp 0x140014002
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x478], rax
cmp qword [rsp + 0x478], 0xffffffffffffffff
jne 0x140013e75
cmp qword [rsp + 0x478], 0
je 0x140013e6c
mov rcx, qword [rsp + 0x478]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x140014002
mov dword [rsp + 0x490], 0x238
lea rdx, [rsp + 0x490]
mov rcx, qword [rsp + 0x478]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140013ebb
cmp qword [rsp + 0x478], 0
je 0x140013eb2
mov rcx, qword [rsp + 0x478]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x140014002
lea rax, [rsp + 0x6f0]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov dword [rsp + 0xb14], 0x208
mov qword [rsp + 0x38], 0
mov r8d, dword [rsp + 0x498]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140013f3a
mov rax, qword [rsp + 0x468]
mov qword [rsp + 0xb50], rax
lea r9, [rsp + 0xb14]
lea r8, [rsp + 0x6f0]
xor edx, edx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0xb50]
call qword [0x1400197b0]
lea rcx, [rsp + 0x6f0]
call fcn.140013bb8
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x6f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140013fb5
mov dword [rsp + 0xb34], 0
lea rdx, [rsp + 0xb34]
mov ecx, dword [rsp + 0x498]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x140013fb5
mov eax, dword [rsp + 0xb78]
cmp dword [rsp + 0xb34], eax
jne 0x140013fb5
mov eax, dword [rsp + 0x498]
mov dword [rsp + 0x30], eax
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x50]
lea rcx, str.GetShellPIDMatchingInstallerSessionID::_ProcessID_found_:
call fcn.140013a3c
jmp 0x140013fd2
lea rdx, [rsp + 0x490]
mov rcx, qword [rsp + 0x478]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140013ebb
cmp qword [rsp + 0x478], 0
je 0x140013feb
mov rcx, qword [rsp + 0x478]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x38], 0
je 0x140013ffe
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14004e040]
call fcn.140015370
mov rax, rdi
mov rcx, qword [rsp + 0xb58]
xor rcx, rsp
call fcn.140015470
add rsp, 0xb60
pop rdi
ret