Function at 0x42f570
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439e25
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
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.GetTokenFromSpecificProcess:
lea ecx, [ebp - 0x26c]
call fcn.00402690
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x26c]
push ecx
push 2
call fcn.00437ae0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.00407ae0
mov dword [ebp - 0x254], 0xd
push 0x5c
mov ecx, dword [ebp + 0xc]
call fcn.00402bd0
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0xffffffff
jne 0x42f609
mov eax, dword [ebp - 0x254]
jmp 0x42fc96
mov ecx, dword [ebp + 0xc]
call fcn.004031d0
mov edx, dword [ebp - 0x250]
add edx, 1
sub eax, edx
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00402d40
mov dword [ebp - 4], 1
push str.adobearm.exe
lea ecx, [ebp - 0x10]
call fcn.00402810
test eax, eax
jne 0x42f6d8
mov dword [ebp - 0x258], 0
lea ecx, [ebp - 0x258]
push ecx
push str.iSkipAdobeArmExe
mov ecx, 0x452d20
call fcn.004031f0
push eax
push 0x80000002
call fcn.0042de00
add esp, 0x10
cmp dword [ebp - 0x258], 1
jne 0x42f6d8
push str.get_token_from_adobearm.exe_disabled_for_testing
lea ecx, [ebp - 0x270]
call fcn.00402690
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x270]
push edx
push 2
call fcn.004381a0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x270]
call fcn.00407ae0
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x274], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407ae0
mov eax, dword [ebp - 0x274]
jmp 0x42fc96
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x42f757
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push 0x446320
lea ecx, [ebp - 0x278]
call fcn.00402690
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x254]
push ecx
lea edx, [ebp - 0x278]
push edx
push 1
call fcn.004381a0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.00407ae0
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407ae0
mov eax, dword [ebp - 0x27c]
jmp 0x42fc96
mov dword [ebp - 0x24c], 0x22c
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42f7ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push 0x446360
lea ecx, [ebp - 0x280]
call fcn.00402690
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x280]
push ecx
push 1
call fcn.004381a0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.00407ae0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x284], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407ae0
mov eax, dword [ebp - 0x284]
jmp 0x42fc96
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402810
test eax, eax
jne 0x42fbec
push str.found
lea ecx, [ebp - 0x288]
call fcn.00402690
mov byte [ebp - 4], 5
push 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x288]
push eax
push 2
call fcn.00437ae0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x288]
call fcn.00407ae0
mov ecx, dword [ebp - 0x244]
push ecx
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0
je 0x42fbd6
cmp dword [ebp - 0x25c], 0xffffffff
je 0x42fbd6
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x25c]
push eax
call fcn.0042f1f0
add esp, 8
test eax, eax
je 0x42fba0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x264], 0xa
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x264]
push edx
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42fad8
mov dword [ebp - 0x268], 0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x42f8e8
lea edx, [ebp - 0x260]
push edx
call fcn.0042e120
add esp, 4
test eax, eax
je 0x42f930
push str.Using_primary_token_from_elevated_process_or_ordered_by_caller
lea ecx, [ebp - 0x28c]
call fcn.00402690
mov byte [ebp - 4], 6
push 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28c]
push ecx
push 2
call fcn.00437ae0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28c]
call fcn.00407ae0
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x268], edx
jmp 0x42f97f
push 0x446428
lea ecx, [ebp - 0x290]
call fcn.00402690
mov byte [ebp - 4], 7
push 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x290]
push ecx
push 2
call fcn.00437ae0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x290]
call fcn.00407ae0
mov edx, dword [ebp - 0x260]
push edx
call fcn.0042db10
add esp, 4
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
jne 0x42f9f4
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x294]
call fcn.00402690
mov byte [ebp - 4], 8
push 0x446484
lea ecx, [ebp - 0x298]
call fcn.00402690
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x294]
push ecx
lea edx, [ebp - 0x298]
push edx
push 1
call fcn.00437ae0
add esp, 0x10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x298]
call fcn.00407ae0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x294]
call fcn.00407ae0
jmp 0x42fad6
mov eax, dword [ebp + 8]
push eax
push 1
push 1
push 0
push 0x2000000
mov ecx, dword [ebp - 0x268]
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x42fa56
push str.DuplicateTokenEx_success
lea ecx, [ebp - 0x29c]
call fcn.00402690
mov byte [ebp - 4], 0xa
push 0
lea edx, [ebp - 0x29c]
push edx
push 2
call fcn.004381a0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x29c]
call fcn.00407ae0
mov dword [ebp - 0x254], 0
jmp 0x42fac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00402690
mov byte [ebp - 4], 0xb
push str.DuplicateTokenEx_failed
lea ecx, [ebp - 0x2a4]
call fcn.00402690
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x254]
push ecx
lea edx, [ebp - 0x2a0]
push edx
lea eax, [ebp - 0x2a4]
push eax
push 1
call fcn.00437ae0
add esp, 0x10
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2a4]
call fcn.00407ae0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a0]
call fcn.00407ae0
mov ecx, dword [ebp - 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42fb4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x2a8]
call fcn.00402690
mov byte [ebp - 4], 0xd
push str.OpenProcessToken_failed
lea ecx, [ebp - 0x2ac]
call fcn.00402690
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x2ac]
push edx
push 1
call fcn.00437ae0
add esp, 0x10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2ac]
call fcn.00407ae0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.00407ae0
cmp dword [ebp - 0x260], 0
je 0x42fb61
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407ae0
mov eax, dword [ebp - 0x2b0]
jmp 0x42fc96
push str.installed_and_found_processes_are_not_the_same
lea ecx, [ebp - 0x2b4]
call fcn.00402690
mov byte [ebp - 4], 0xf
push 0
lea ecx, [ebp - 0x2b4]
push ecx
push 2
call fcn.004381a0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.00407ae0
cmp dword [ebp - 0x25c], 0
je 0x42fbec
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42f7ec
cmp dword [ebp - 0x14], 0
je 0x42fc14
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x446544
lea ecx, [ebp - 0x2b8]
call fcn.00402690
mov byte [ebp - 4], 0x10
push str.finished_without_process_token
lea ecx, [ebp - 0x2bc]
call fcn.00402690
mov byte [ebp - 4], 0x11
push 0x373
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x2bc]
push ecx
push 1
call fcn.00437ae0
add esp, 0x10
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2bc]
call fcn.00407ae0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b8]
call fcn.00407ae0
mov dword [ebp - 0x2c0], 0x373
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407ae0
mov eax, dword [ebp - 0x2c0]
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