Function at 0x42dd40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43710b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x449ca0]
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.00402590
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x26c]
push ecx
push 2
call fcn.00434f90
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.00402690
mov dword [ebp - 0x254], 0xd
push 0x5c
mov ecx, dword [ebp + 0xc]
call fcn.00402af0
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0xffffffff
jne 0x42ddd9
mov eax, dword [ebp - 0x254]
jmp 0x42e466
mov ecx, dword [ebp + 0xc]
call fcn.004030d0
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.00402c60
mov dword [ebp - 4], 1
push str.adobearm.exe
lea ecx, [ebp - 0x10]
call fcn.00402730
test eax, eax
jne 0x42dea8
mov dword [ebp - 0x258], 0
lea ecx, [ebp - 0x258]
push ecx
push str.iSkipAdobeArmExe
mov ecx, 0x44dcd8
call fcn.00404b40
push eax
push 0x80000002
call fcn.0042c380
add esp, 0x10
cmp dword [ebp - 0x258], 1
jne 0x42dea8
push str.get_token_from_adobearm.exe_disabled_for_testing
lea ecx, [ebp - 0x270]
call fcn.00402590
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x270]
push edx
push 2
call fcn.004355e0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x270]
call fcn.00402690
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x274], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402690
mov eax, dword [ebp - 0x274]
jmp 0x42e466
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x42df27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push 0x441978
lea ecx, [ebp - 0x278]
call fcn.00402590
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x254]
push ecx
lea edx, [ebp - 0x278]
push edx
push 1
call fcn.004355e0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.00402690
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402690
mov eax, dword [ebp - 0x27c]
jmp 0x42e466
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 0x42dfbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
push 0x4419b8
lea ecx, [ebp - 0x280]
call fcn.00402590
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x280]
push ecx
push 1
call fcn.004355e0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.00402690
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.00402690
mov eax, dword [ebp - 0x284]
jmp 0x42e466
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402730
test eax, eax
jne 0x42e3bc
push str.found
lea ecx, [ebp - 0x288]
call fcn.00402590
mov byte [ebp - 4], 5
push 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x288]
push eax
push 2
call fcn.00434f90
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x288]
call fcn.00402690
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 0x42e3a6
cmp dword [ebp - 0x25c], 0xffffffff
je 0x42e3a6
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x25c]
push eax
call fcn.0042d9c0
add esp, 8
test eax, eax
je 0x42e370
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 0x42e2a8
mov dword [ebp - 0x268], 0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x42e0b8
lea edx, [ebp - 0x260]
push edx
call fcn.0042c640
add esp, 4
test eax, eax
je 0x42e100
push str.Using_primary_token_from_elevated_process_or_ordered_by_caller
lea ecx, [ebp - 0x28c]
call fcn.00402590
mov byte [ebp - 4], 6
push 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28c]
push ecx
push 2
call fcn.00434f90
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28c]
call fcn.00402690
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x268], edx
jmp 0x42e14f
push 0x441a80
lea ecx, [ebp - 0x290]
call fcn.00402590
mov byte [ebp - 4], 7
push 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x290]
push ecx
push 2
call fcn.00434f90
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x290]
call fcn.00402690
mov edx, dword [ebp - 0x260]
push edx
call fcn.0042c120
add esp, 4
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
jne 0x42e1c4
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x294]
call fcn.00402590
mov byte [ebp - 4], 8
push 0x441adc
lea ecx, [ebp - 0x298]
call fcn.00402590
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.00434f90
add esp, 0x10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x298]
call fcn.00402690
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x294]
call fcn.00402690
jmp 0x42e2a6
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 0x42e226
push str.DuplicateTokenEx_success
lea ecx, [ebp - 0x29c]
call fcn.00402590
mov byte [ebp - 4], 0xa
push 0
lea edx, [ebp - 0x29c]
push edx
push 2
call fcn.004355e0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x29c]
call fcn.00402690
mov dword [ebp - 0x254], 0
jmp 0x42e299
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00402590
mov byte [ebp - 4], 0xb
push str.DuplicateTokenEx_failed
lea ecx, [ebp - 0x2a4]
call fcn.00402590
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.00434f90
add esp, 0x10
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2a4]
call fcn.00402690
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a0]
call fcn.00402690
mov ecx, dword [ebp - 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e31b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x2a8]
call fcn.00402590
mov byte [ebp - 4], 0xd
push str.OpenProcessToken_failed
lea ecx, [ebp - 0x2ac]
call fcn.00402590
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.00434f90
add esp, 0x10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2ac]
call fcn.00402690
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.00402690
cmp dword [ebp - 0x260], 0
je 0x42e331
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.00402690
mov eax, dword [ebp - 0x2b0]
jmp 0x42e466
push str.installed_and_found_processes_are_not_the_same
lea ecx, [ebp - 0x2b4]
call fcn.00402590
mov byte [ebp - 4], 0xf
push 0
lea ecx, [ebp - 0x2b4]
push ecx
push 2
call fcn.004355e0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.00402690
cmp dword [ebp - 0x25c], 0
je 0x42e3bc
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 0x42dfbc
cmp dword [ebp - 0x14], 0
je 0x42e3e4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x441b9c
lea ecx, [ebp - 0x2b8]
call fcn.00402590
mov byte [ebp - 4], 0x10
push str.finished_without_process_token
lea ecx, [ebp - 0x2bc]
call fcn.00402590
mov byte [ebp - 4], 0x11
push 0x373
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x2bc]
push ecx
push 1
call fcn.00434f90
add esp, 0x10
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2bc]
call fcn.00402690
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b8]
call fcn.00402690
mov dword [ebp - 0x2c0], 0x373
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402690
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.0041422b
mov esp, ebp
pop ebp
ret