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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a6f1
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 main
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x888]
push eax
push 2
call main
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x888]
call main
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x254], 0x373
mov ecx, dword [ebp + 0xc]
call main
movzx ecx, al
test ecx, ecx
je 0x432c67
lea ecx, [ebp - 0x258]
call main
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.00414840
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x464]
push ecx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x432bb0
lea edx, [ebp - 0x464]
push edx
lea ecx, [ebp - 0x258]
call main
push str.explorer.exe
lea ecx, [ebp - 0x258]
call main
jmp 0x432c20
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push str.GetWindowsDirectory_failed:
lea ecx, [ebp - 0x88c]
call main
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x88c]
push ecx
push 1
call main
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88c]
call main
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x890], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call main
mov eax, dword [ebp - 0x890]
jmp 0x43332f
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 main
add esp, 0xc
mov dword [ebp - 0x894], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call main
mov eax, dword [ebp - 0x894]
jmp 0x43332f
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x432cd1
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push str.CreateToolhelp32Snapshot_failed
lea ecx, [ebp - 0x89c]
call main
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x89c]
push ecx
push 1
call main
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x89c]
call main
mov eax, dword [ebp - 0x254]
jmp 0x43332f
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 0x432d51
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push str.Process32First_failed
lea ecx, [ebp - 0x8a0]
call main
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x254]
push ecx
lea edx, [ebp - 0x8a0]
push edx
push 1
call main
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8a0]
call main
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x254]
jmp 0x43332f
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 0x4332a0
cmp dword [ebp - 0x468], 0xffffffff
je 0x4332a0
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 0x433290
cmp dword [ebp - 0x14], 0
jne 0x432e42
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x8a4]
call main
mov dword [ebp - 4], 5
push str.null_token
lea ecx, [ebp - 0x8a8]
call main
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0x8a4]
push ecx
lea edx, [ebp - 0x8a8]
push edx
push 1
call main
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8a8]
call main
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8a4]
call main
mov eax, dword [ebp - 0x468]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x4332b6
xor ecx, ecx
mov word [ebp - 0x87c], cx
push 0x1fe
push 0
lea edx, [ebp - 0x87a]
push edx
call fcn.00414840
add esp, 0xc
xor eax, eax
mov word [ebp - 0x674], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x672]
push ecx
call fcn.00414840
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 main
add esp, 0x14
test eax, eax
jne 0x432f48
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x8ac]
call main
mov dword [ebp - 4], 7
push str.GetUserNameAndDomainNameFromToken_failed
lea ecx, [ebp - 0x8b0]
call main
mov byte [ebp - 4], 8
push 0
lea edx, [ebp - 0x8ac]
push edx
lea eax, [ebp - 0x8b0]
push eax
push 1
call main
add esp, 0x10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8b0]
call main
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8ac]
call main
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 0x4332b6
lea eax, [ebp - 0x87c]
push eax
lea ecx, [ebp - 0x8b8]
call main
mov dword [ebp - 0x8f0], eax
mov ecx, dword [ebp - 0x8f0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call main
add esp, 8
mov byte [ebp - 0x8b1], al
lea ecx, [ebp - 0x8b8]
call main
movzx eax, byte [ebp - 0x8b1]
test eax, eax
je 0x433228
mov dword [ebp - 0x884], 0
lea ecx, [ebp - 0x14]
push ecx
call main
add esp, 4
test eax, eax
je 0x433020
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x8bc]
call main
mov dword [ebp - 4], 9
push str.Using_primary_token_from_elevated_process
lea ecx, [ebp - 0x8c0]
call main
mov byte [ebp - 4], 0xa
push 0
lea eax, [ebp - 0x8bc]
push eax
lea ecx, [ebp - 0x8c0]
push ecx
push 2
call main
add esp, 0x10
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x8c0]
call main
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8bc]
call main
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x884], edx
jmp 0x43309a
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x8c4]
call main
mov dword [ebp - 4], 0xb
push str.Using_linked_token_from_not_elevated_process
lea ecx, [ebp - 0x8c8]
call main
mov byte [ebp - 4], 0xc
push 0
lea ecx, [ebp - 0x8c4]
push ecx
lea edx, [ebp - 0x8c8]
push edx
push 2
call main
add esp, 0x10
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x8c8]
call main
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c4]
call main
mov eax, dword [ebp - 0x14]
push eax
call main
add esp, 4
mov dword [ebp - 0x884], eax
cmp dword [ebp - 0x884], 0
jne 0x433115
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x8cc]
call main
mov dword [ebp - 4], 0xd
push str.GetLinkedToken_failed
lea ecx, [ebp - 0x8d0]
call main
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 main
add esp, 0x10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x8d0]
call main
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8cc]
call main
jmp 0x433226
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x8d4]
call main
mov dword [ebp - 4], 0xf
push str.Linked_token_created
lea ecx, [ebp - 0x8d8]
call main
mov byte [ebp - 4], 0x10
push 0
lea edx, [ebp - 0x8d4]
push edx
lea eax, [ebp - 0x8d8]
push eax
push 2
call main
add esp, 0x10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x8d8]
call main
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8d4]
call main
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 0x433219
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x8dc]
call main
mov dword [ebp - 4], 0x11
push str.User_Token_with_privileges_found
lea ecx, [ebp - 0x8e0]
call main
mov byte [ebp - 4], 0x12
push 0
lea ecx, [ebp - 0x8dc]
push ecx
lea edx, [ebp - 0x8e0]
push edx
push 2
call main
add esp, 0x10
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x8e0]
call main
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8dc]
call main
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 0x433290
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x8e4]
call main
mov dword [ebp - 4], 0x13
push str.User_did_not_match__skipping
lea ecx, [ebp - 0x8e8]
call main
mov byte [ebp - 4], 0x14
push 0
lea edx, [ebp - 0x8e4]
push edx
lea eax, [ebp - 0x8e8]
push eax
push 2
call main
add esp, 0x10
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x8e8]
call main
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8e4]
call main
cmp dword [ebp - 0x14], 0
je 0x4332a0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x468], 0
je 0x4332b6
mov edx, dword [ebp - 0x468]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x250], 0
jne 0x4332d7
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x432d51
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x254], 0
je 0x433329
push str.finished_without_valid_token
lea ecx, [ebp - 0x8ec]
call main
mov dword [ebp - 4], 0x15
push 0x373
lea eax, [ebp - 0x8ec]
push eax
push 1
call main
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8ec]
call main
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.00414831
mov esp, ebp
pop ebp
ret