Function at 0x4328b0
Capabilities:
Enumerate processes
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a4d1
mov eax, dword fs:[0]
push eax
sub esp, 0x8e4
mov eax, dword [0x44eca0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.GetTokenFromValidUserProcess...
lea ecx, [ebp - 0x888]
call fcn.00402690
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x888]
push eax
push 2
call fcn.00437fa0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x888]
call fcn.00407a70
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x254], 0x373
mov ecx, dword [ebp + 0xc]
call fcn.00403200
movzx ecx, al
test ecx, ecx
je 0x432a67
lea ecx, [ebp - 0x258]
call fcn.00402670
mov dword [ebp - 4], 1
xor edx, edx
mov word [ebp - 0x464], dx
push 0x206
push 0
lea eax, [ebp - 0x462]
push eax
call fcn.00414820
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4329b0
lea edx, [ebp - 0x464]
push edx
lea ecx, [ebp - 0x258]
call fcn.004027b0
push str.explorer.exe
lea ecx, [ebp - 0x258]
call fcn.004027f0
jmp 0x432a20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push str.GetWindowsDirectory_failed:
lea ecx, [ebp - 0x88c]
call fcn.00402690
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x88c]
push ecx
push 1
call fcn.00437fa0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88c]
call fcn.00407a70
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x890], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00407a70
mov eax, dword [ebp - 0x890]
jmp 0x43312f
mov dword [ebp - 0x898], 0
lea eax, [ebp - 0x898]
push eax
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042f370
add esp, 0xc
mov dword [ebp - 0x894], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00407a70
mov eax, dword [ebp - 0x894]
jmp 0x43312f
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x432ad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push str.CreateToolhelp32Snapshot_failed
lea ecx, [ebp - 0x89c]
call fcn.00402690
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x89c]
push ecx
push 1
call fcn.00437fa0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x89c]
call fcn.00407a70
mov eax, dword [ebp - 0x254]
jmp 0x43312f
mov dword [ebp - 0x24c], 0x22c
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x432b51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push str.Process32First_failed
lea ecx, [ebp - 0x8a0]
call fcn.00402690
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x254]
push ecx
lea edx, [ebp - 0x8a0]
push edx
push 1
call fcn.00437fa0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8a0]
call fcn.00407a70
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x254]
jmp 0x43312f
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x46c], ecx
mov edx, dword [ebp - 0x46c]
push edx
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0
je 0x4330a0
cmp dword [ebp - 0x468], 0xffffffff
je 0x4330a0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x470], 0xa
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x470]
push ecx
mov edx, dword [ebp - 0x468]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x433090
cmp dword [ebp - 0x14], 0
jne 0x432c42
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x8a4]
call fcn.00402690
mov dword [ebp - 4], 5
push str.null_token
lea ecx, [ebp - 0x8a8]
call fcn.00402690
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0x8a4]
push ecx
lea edx, [ebp - 0x8a8]
push edx
push 1
call fcn.004378e0
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8a8]
call fcn.00407a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8a4]
call fcn.00407a70
mov eax, dword [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4330b6
xor ecx, ecx
mov word [ebp - 0x87c], cx
push 0x1fe
push 0
lea edx, [ebp - 0x87a]
push edx
call fcn.00414820
add esp, 0xc
xor eax, eax
mov word [ebp - 0x674], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x672]
push ecx
call fcn.00414820
add esp, 0xc
mov dword [ebp - 0x678], 0x100
mov dword [ebp - 0x880], 0x100
lea edx, [ebp - 0x880]
push edx
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x678]
push ecx
lea edx, [ebp - 0x87c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d7f0
add esp, 0x14
test eax, eax
jne 0x432d48
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x8ac]
call fcn.00402690
mov dword [ebp - 4], 7
push str.GetUserNameAndDomainNameFromToken_failed
lea ecx, [ebp - 0x8b0]
call fcn.00402690
mov byte [ebp - 4], 8
push 0
lea edx, [ebp - 0x8ac]
push edx
lea eax, [ebp - 0x8b0]
push eax
push 1
call fcn.004378e0
add esp, 0x10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8b0]
call fcn.00407a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8ac]
call fcn.00407a70
mov ecx, dword [ebp - 0x468]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4330b6
lea eax, [ebp - 0x87c]
push eax
lea ecx, [ebp - 0x8b8]
call fcn.00402690
mov dword [ebp - 0x8f0], eax
mov ecx, dword [ebp - 0x8f0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004030a0
add esp, 8
mov byte [ebp - 0x8b1], al
lea ecx, [ebp - 0x8b8]
call fcn.00407a70
movzx eax, byte [ebp - 0x8b1]
test eax, eax
je 0x433028
mov dword [ebp - 0x884], 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042df20
add esp, 4
test eax, eax
je 0x432e20
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x8bc]
call fcn.00402690
mov dword [ebp - 4], 9
push str.Using_primary_token_from_elevated_process
lea ecx, [ebp - 0x8c0]
call fcn.00402690
mov byte [ebp - 4], 0xa
push 0
lea eax, [ebp - 0x8bc]
push eax
lea ecx, [ebp - 0x8c0]
push ecx
push 2
call fcn.004378e0
add esp, 0x10
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x8c0]
call fcn.00407a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8bc]
call fcn.00407a70
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x884], edx
jmp 0x432e9a
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.00402690
mov dword [ebp - 4], 0xb
push str.Using_linked_token_from_not_elevated_process
lea ecx, [ebp - 0x8c8]
call fcn.00402690
mov byte [ebp - 4], 0xc
push 0
lea ecx, [ebp - 0x8c4]
push ecx
lea edx, [ebp - 0x8c8]
push edx
push 2
call fcn.004378e0
add esp, 0x10
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x8c8]
call fcn.00407a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c4]
call fcn.00407a70
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d910
add esp, 4
mov dword [ebp - 0x884], eax
cmp dword [ebp - 0x884], 0
jne 0x432f15
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x8cc]
call fcn.00402690
mov dword [ebp - 4], 0xd
push str.GetLinkedToken_failed
lea ecx, [ebp - 0x8d0]
call fcn.00402690
mov byte [ebp - 4], 0xe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x8cc]
push edx
lea eax, [ebp - 0x8d0]
push eax
push 1
call fcn.004378e0
add esp, 0x10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x8d0]
call fcn.00407a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8cc]
call fcn.00407a70
jmp 0x433026
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x8d4]
call fcn.00402690
mov dword [ebp - 4], 0xf
push str.Linked_token_created
lea ecx, [ebp - 0x8d8]
call fcn.00402690
mov byte [ebp - 4], 0x10
push 0
lea edx, [ebp - 0x8d4]
push edx
lea eax, [ebp - 0x8d8]
push eax
push 2
call fcn.004378e0
add esp, 0x10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x8d8]
call fcn.00407a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8d4]
call fcn.00407a70
mov ecx, dword [ebp + 8]
push ecx
push 1
push 1
push 0
push 0x2000000
mov edx, dword [ebp - 0x884]
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x433019
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x8dc]
call fcn.00402690
mov dword [ebp - 4], 0x11
push str.User_Token_with_privileges_found
lea ecx, [ebp - 0x8e0]
call fcn.00402690
mov byte [ebp - 4], 0x12
push 0
lea ecx, [ebp - 0x8dc]
push ecx
lea edx, [ebp - 0x8e0]
push edx
push 2
call fcn.004378e0
add esp, 0x10
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x8e0]
call fcn.00407a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8dc]
call fcn.00407a70
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 1
mov eax, dword [ebp - 0x884]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x433090
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x8e4]
call fcn.00402690
mov dword [ebp - 4], 0x13
push str.User_did_not_match__skipping
lea ecx, [ebp - 0x8e8]
call fcn.00402690
mov byte [ebp - 4], 0x14
push 0
lea edx, [ebp - 0x8e4]
push edx
lea eax, [ebp - 0x8e8]
push eax
push 2
call fcn.004378e0
add esp, 0x10
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x8e8]
call fcn.00407a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8e4]
call fcn.00407a70
cmp dword [ebp - 0x14], 0
je 0x4330a0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x468], 0
je 0x4330b6
mov edx, dword [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x250], 0
jne 0x4330d7
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x432b51
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x254], 0
je 0x433129
push str.finished_without_valid_token
lea ecx, [ebp - 0x8ec]
call fcn.00402690
mov dword [ebp - 4], 0x15
push 0x373
lea eax, [ebp - 0x8ec]
push eax
push 1
call fcn.00437fa0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8ec]
call fcn.00407a70
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041480e
mov esp, ebp
pop ebp
ret