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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ab15
mov eax, dword fs:[0]
push eax
sub esp, 0x8e4
mov eax, dword [0x44ec90]
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.00402790
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x888]
push eax
push 2
call fcn.00438620
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x888]
call fcn.00407b20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x254], 0x373
mov ecx, dword [ebp + 0xc]
call fcn.004032c0
movzx ecx, al
test ecx, ecx
je 0x432957
lea ecx, [ebp - 0x258]
call fcn.00401850
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.004148c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4328a0
lea edx, [ebp - 0x464]
push edx
lea ecx, [ebp - 0x258]
call fcn.00407e20
push str.explorer.exe
lea ecx, [ebp - 0x258]
call fcn.004028b0
jmp 0x432910
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push str.GetWindowsDirectory_failed:
lea ecx, [ebp - 0x88c]
call fcn.00402790
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x88c]
push ecx
push 1
call fcn.00438620
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88c]
call fcn.00407b20
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x890], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00407b20
mov eax, dword [ebp - 0x890]
jmp 0x43301f
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.0042f4e0
add esp, 0xc
mov dword [ebp - 0x894], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00407b20
mov eax, dword [ebp - 0x894]
jmp 0x43301f
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4329c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push str.CreateToolhelp32Snapshot_failed
lea ecx, [ebp - 0x89c]
call fcn.00402790
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x89c]
push ecx
push 1
call fcn.00438620
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x89c]
call fcn.00407b20
mov eax, dword [ebp - 0x254]
jmp 0x43301f
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 0x432a41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push str.Process32First_failed
lea ecx, [ebp - 0x8a0]
call fcn.00402790
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x254]
push ecx
lea edx, [ebp - 0x8a0]
push edx
push 1
call fcn.00438620
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8a0]
call fcn.00407b20
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x254]
jmp 0x43301f
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 0x432f90
cmp dword [ebp - 0x468], 0xffffffff
je 0x432f90
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 0x432f80
cmp dword [ebp - 0x14], 0
jne 0x432b32
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x8a4]
call fcn.00402790
mov dword [ebp - 4], 5
push str.null_token
lea ecx, [ebp - 0x8a8]
call fcn.00402790
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0x8a4]
push ecx
lea edx, [ebp - 0x8a8]
push edx
push 1
call fcn.00437f60
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8a8]
call fcn.00407b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8a4]
call fcn.00407b20
mov eax, dword [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x432fa6
xor ecx, ecx
mov word [ebp - 0x87c], cx
push 0x1fe
push 0
lea edx, [ebp - 0x87a]
push edx
call fcn.004148c0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x674], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x672]
push ecx
call fcn.004148c0
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.0042da60
add esp, 0x14
test eax, eax
jne 0x432c38
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x8ac]
call fcn.00402790
mov dword [ebp - 4], 7
push str.GetUserNameAndDomainNameFromToken_failed
lea ecx, [ebp - 0x8b0]
call fcn.00402790
mov byte [ebp - 4], 8
push 0
lea edx, [ebp - 0x8ac]
push edx
lea eax, [ebp - 0x8b0]
push eax
push 1
call fcn.00437f60
add esp, 0x10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8b0]
call fcn.00407b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8ac]
call fcn.00407b20
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 0x432fa6
lea eax, [ebp - 0x87c]
push eax
lea ecx, [ebp - 0x8b8]
call fcn.00402790
mov dword [ebp - 0x8f0], eax
mov ecx, dword [ebp - 0x8f0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00403160
add esp, 8
mov byte [ebp - 0x8b1], al
lea ecx, [ebp - 0x8b8]
call fcn.00407b20
movzx eax, byte [ebp - 0x8b1]
test eax, eax
je 0x432f18
mov dword [ebp - 0x884], 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042e390
add esp, 4
test eax, eax
je 0x432d10
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x8bc]
call fcn.00402790
mov dword [ebp - 4], 9
push str.Using_primary_token_from_elevated_process
lea ecx, [ebp - 0x8c0]
call fcn.00402790
mov byte [ebp - 4], 0xa
push 0
lea eax, [ebp - 0x8bc]
push eax
lea ecx, [ebp - 0x8c0]
push ecx
push 2
call fcn.00437f60
add esp, 0x10
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x8c0]
call fcn.00407b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8bc]
call fcn.00407b20
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x884], edx
jmp 0x432d8a
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.00402790
mov dword [ebp - 4], 0xb
push str.Using_linked_token_from_not_elevated_process
lea ecx, [ebp - 0x8c8]
call fcn.00402790
mov byte [ebp - 4], 0xc
push 0
lea ecx, [ebp - 0x8c4]
push ecx
lea edx, [ebp - 0x8c8]
push edx
push 2
call fcn.00437f60
add esp, 0x10
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x8c8]
call fcn.00407b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c4]
call fcn.00407b20
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042db80
add esp, 4
mov dword [ebp - 0x884], eax
cmp dword [ebp - 0x884], 0
jne 0x432e05
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x8cc]
call fcn.00402790
mov dword [ebp - 4], 0xd
push str.GetLinkedToken_failed
lea ecx, [ebp - 0x8d0]
call fcn.00402790
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.00437f60
add esp, 0x10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x8d0]
call fcn.00407b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8cc]
call fcn.00407b20
jmp 0x432f16
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x8d4]
call fcn.00402790
mov dword [ebp - 4], 0xf
push str.Linked_token_created
lea ecx, [ebp - 0x8d8]
call fcn.00402790
mov byte [ebp - 4], 0x10
push 0
lea edx, [ebp - 0x8d4]
push edx
lea eax, [ebp - 0x8d8]
push eax
push 2
call fcn.00437f60
add esp, 0x10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x8d8]
call fcn.00407b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8d4]
call fcn.00407b20
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 0x432f09
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x8dc]
call fcn.00402790
mov dword [ebp - 4], 0x11
push str.User_Token_with_privileges_found
lea ecx, [ebp - 0x8e0]
call fcn.00402790
mov byte [ebp - 4], 0x12
push 0
lea ecx, [ebp - 0x8dc]
push ecx
lea edx, [ebp - 0x8e0]
push edx
push 2
call fcn.00437f60
add esp, 0x10
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x8e0]
call fcn.00407b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8dc]
call fcn.00407b20
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 0x432f80
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x8e4]
call fcn.00402790
mov dword [ebp - 4], 0x13
push str.User_did_not_match__skipping
lea ecx, [ebp - 0x8e8]
call fcn.00402790
mov byte [ebp - 4], 0x14
push 0
lea edx, [ebp - 0x8e4]
push edx
lea eax, [ebp - 0x8e8]
push eax
push 2
call fcn.00437f60
add esp, 0x10
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x8e8]
call fcn.00407b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8e4]
call fcn.00407b20
cmp dword [ebp - 0x14], 0
je 0x432f90
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x468], 0
je 0x432fa6
mov edx, dword [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x250], 0
jne 0x432fc7
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x432a41
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x254], 0
je 0x433019
push str.finished_without_valid_token
lea ecx, [ebp - 0x8ec]
call fcn.00402790
mov dword [ebp - 4], 0x15
push 0x373
lea eax, [ebp - 0x8ec]
push eax
push 1
call fcn.00438620
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8ec]
call fcn.00407b20
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.00414838
mov esp, ebp
pop ebp
ret