Function at 0x42f370
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439bd5
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.004378e0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.00407a70
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 0x42f409
mov eax, dword [ebp - 0x254]
jmp 0x42fa96
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 0x42f4d8
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.0042dc00
add esp, 0x10
cmp dword [ebp - 0x258], 1
jne 0x42f4d8
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.00437fa0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x270]
call fcn.00407a70
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x274], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407a70
mov eax, dword [ebp - 0x274]
jmp 0x42fa96
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x42f557
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push 0x446250
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.00437fa0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.00407a70
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407a70
mov eax, dword [ebp - 0x27c]
jmp 0x42fa96
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 0x42f5ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push 0x446290
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.00437fa0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.00407a70
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.00407a70
mov eax, dword [ebp - 0x284]
jmp 0x42fa96
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402810
test eax, eax
jne 0x42f9ec
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.004378e0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x288]
call fcn.00407a70
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 0x42f9d6
cmp dword [ebp - 0x25c], 0xffffffff
je 0x42f9d6
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x25c]
push eax
call fcn.0042eff0
add esp, 8
test eax, eax
je 0x42f9a0
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 0x42f8d8
mov dword [ebp - 0x268], 0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x42f6e8
lea edx, [ebp - 0x260]
push edx
call fcn.0042df20
add esp, 4
test eax, eax
je 0x42f730
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.004378e0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28c]
call fcn.00407a70
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x268], edx
jmp 0x42f77f
push 0x446358
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.004378e0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x290]
call fcn.00407a70
mov edx, dword [ebp - 0x260]
push edx
call fcn.0042d910
add esp, 4
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
jne 0x42f7f4
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x294]
call fcn.00402690
mov byte [ebp - 4], 8
push 0x4463b4
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.004378e0
add esp, 0x10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x298]
call fcn.00407a70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x294]
call fcn.00407a70
jmp 0x42f8d6
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 0x42f856
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.00437fa0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x29c]
call fcn.00407a70
mov dword [ebp - 0x254], 0
jmp 0x42f8c9
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.004378e0
add esp, 0x10
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2a4]
call fcn.00407a70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a0]
call fcn.00407a70
mov ecx, dword [ebp - 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42f94b
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.004378e0
add esp, 0x10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2ac]
call fcn.00407a70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.00407a70
cmp dword [ebp - 0x260], 0
je 0x42f961
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.00407a70
mov eax, dword [ebp - 0x2b0]
jmp 0x42fa96
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.00437fa0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.00407a70
cmp dword [ebp - 0x25c], 0
je 0x42f9ec
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 0x42f5ec
cmp dword [ebp - 0x14], 0
je 0x42fa14
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x446474
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.004378e0
add esp, 0x10
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2bc]
call fcn.00407a70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b8]
call fcn.00407a70
mov dword [ebp - 0x2c0], 0x373
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407a70
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