Function at 0x52c7b0
Capabilities:
Acquire debug privileges
Check os version
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c4
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x7c0], eax
mov eax, dword [esp + 0x7c8]
mov ecx, dword [esp + 0x7d0]
mov edx, dword [esp + 0x7d8]
push esi
xor esi, esi
push 0x90
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1a0]
push esi
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x1a4], esi
call fcn.005dfd60
add esp, 0xc
call fcn.004d96c0
lea ecx, [esp + 0x198]
push ecx
mov dword [0x75264c], esi
mov dword [esp + 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x52c845
pop esi
mov ecx, dword [esp + 0x7c0]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x7c4
ret 0x14
mov eax, dword [esp + 0x1a8]
push ebx
push ebp
push edi
cmp eax, 2
jne 0x52cf80
push 0x643dac
call fcn.004f4be0
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, esi
je 0x52d173
push str.VDMDBG.DLL
call fcn.004f4be0
mov ebx, eax
mov dword [esp + 0x24], ebx
cmp dword [0x752648], esi
je 0x52c8a6
push esi
push esi
push esi
push str.LogStarted
push 0x60c800
push esi
push esi
push 1
push str.c:_testkp.log
call fcn.004f63e0
add esp, 0x24
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x643d6c
push edi
call esi
push 0x643d58
push edi
mov ebp, eax
call esi
push 0x643d40
push edi
mov dword [esp + 0x40], eax
call esi
push 0x643d10
push edi
mov dword [esp + 0x48], eax
call esi
mov dword [esp + 0x28], eax
test ebx, ebx
je 0x52c8ec
push str.VDMEnumTaskWOWEx
push ebx
call esi
mov dword [esp + 0x44], eax
jmp 0x52c8f4
mov dword [esp + 0x44], 0
test ebp, ebp
je 0x52cf67
cmp dword [esp + 0x38], 0
je 0x52cf67
cmp dword [esp + 0x40], 0
je 0x52cf67
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x400
mov dword [esp + 0x18], eax
xor edi, edi
lea esp, [esp]
test edi, edi
je 0x52c94a
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x18]
add eax, eax
mov dword [esp + 0x18], eax
push eax
push 0
call ebx
push eax
call esi
mov edi, eax
test edi, edi
je 0x52ca05
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
push edi
call ebp
test eax, eax
je 0x52ca26
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], eax
je 0x52c930
lea eax, [esp + 0x10]
xor ebp, ebp
push eax
mov dword [esp + 0x14], ebp
call fcn.004efe60
mov eax, dword [esp + 0x20]
shr eax, 2
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
jbe 0x52cf15
cmp dword [0x752648], 0
mov byte [esp + 0x2cc], 0
je 0x52c9e6
push eax
push ebp
push str.OpProc__d___d_
push 0x7521d0
call fcn.005dfb23
push 0
push 0
push 0
push 0x7521d0
push 0x60c800
push 0
push 0
push 1
push str.c:_testkp.log
call fcn.004f63e0
add esp, 0x34
cmp dword [esp + 0x7e4], 0
je 0x52ca53
mov ecx, dword [edi + ebp*4]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
jmp 0x52ca84
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ecx
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x52d173
push eax
call esi
jmp 0x52d173
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edx
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x52d173
push eax
call esi
jmp 0x52d173
mov edx, dword [esp + 0x10]
push 1
push edx
call fcn.004d8790
mov eax, dword [edi + ebp*4]
add esp, 8
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov esi, eax
call fcn.004d8790
add esp, 8
test esi, esi
jne 0x52cc4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x52cc0e
push 0x90
lea edx, [esp + 0x240]
push esi
push edx
call fcn.005dfd60
add esp, 0xc
lea eax, [esp + 0x238]
push eax
mov dword [esp + 0x23c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x248], 2
jne 0x52ce80
lea ecx, [esp + 0x14]
push ecx
push esi
push 0x28
mov dword [esp + 0x38], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x52cb17
lea edx, [esp + 0x14]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x52ce80
lea eax, [esp + 0x60]
push eax
push 0x643ce8
push 0
mov dword [esp + 0x68], 1
mov dword [esp + 0x74], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x70]
push edx
push 0x10
lea eax, [esp + 0x68]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x52cb65
mov edx, dword [esp + 0x14]
push edx
jmp 0x52ce7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x52cb97
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x34], 0
je 0x52ce80
mov ecx, dword [esp + 0x34]
mov dword [ecx], 1
jmp 0x52ce80
cmp dword [esp + 0x7e4], 0
je 0x52cbb6
mov edx, dword [edi + ebp*4]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
jmp 0x52cbe7
mov eax, dword [esp + 0x10]
push 1
push eax
call fcn.004d8790
mov ecx, dword [edi + ebp*4]
add esp, 8
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 0x10]
push 0
push edx
mov esi, eax
call fcn.004d8790
add esp, 8
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0x10
lea eax, [esp + 0x78]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x52cc4d
cmp dword [esp + 0x7e4], 0
je 0x52ce80
call fcn.004d9b00
test eax, eax
je 0x52ce80
cmp ebx, 5
jne 0x52ce80
mov eax, dword [edi + ebp*4]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x52ce80
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x50]
push edx
push esi
mov byte [esp + 0x2dc], 0
call dword [esp + 0x48]
test eax, eax
je 0x52cc95
mov ecx, dword [esp + 0x48]
push 0x104
lea eax, [esp + 0x2d0]
push eax
push ecx
push esi
call dword [esp + 0x50]
test eax, eax
jne 0x52cd19
mov byte [esp + 0x2cc], al
jmp 0x52ce79
mov eax, dword [esp + 0x28]
test eax, eax
je 0x52cd19
push 0x104
lea edx, [esp + 0x2d0]
push edx
push esi
call eax
cmp byte [esp + 0x2cc], 0
je 0x52ce79
lea eax, [esp + 0x2cc]
push eax
call fcn.00502ab0
lea ecx, [esp + 0x2cc]
push 0x7e
push ecx
call fcn.005e0940
add esp, 8
test eax, eax
je 0x52cd19
push 0x400
lea edx, [esp + 0x3d4]
push edx
lea eax, [esp + 0x2d4]
push eax
call fcn.004d8160
dec eax
add esp, 0xc
cmp eax, 0x102
ja 0x52cd19
lea ecx, [esp + 0x3d0]
push ecx
lea edx, [esp + 0x2d0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x2cc], 0
je 0x52ce79
mov eax, dword [esp + 0x30]
cmp byte [eax], 0
je 0x52ce4d
cmp dword [0x693914], 0x4db
je 0x52ce4d
push eax
lea eax, [esp + 0x2d0]
push eax
call fcn.0052c590
add esp, 8
cmp eax, 0xffffffff
je 0x52ce79
mov eax, dword [0x693914]
test eax, eax
je 0x52cd8e
cmp eax, 1
jne 0x52cd80
call fcn.004d9b00
test eax, eax
je 0x52cd80
push 0
call fcn.00503120
test eax, eax
jne 0x52cd89
mov ecx, dword [edi + ebp*4]
push ecx
call fcn.0052a9e0
mov eax, dword [0x693914]
cmp eax, 1
jne 0x52ce32
cmp dword [0x752648], 0
mov dword [0x75264c], eax
je 0x52cdc7
push 0
push 0
push 0
push str.OpenProcob
push 0x60c800
push 0
push 0
push eax
push str.c:_testkp.log
call fcn.004f63e0
add esp, 0x24
mov edx, dword [esp + 0x10]
push 1
push edx
call fcn.004d8790
add esp, 8
cmp dword [0x752648], 0
je 0x52ce02
push 0
push 0
push 0
push str.Termi
push 0x60c800
push 0
push 0
push 1
push str.c:_testkp.log
call fcn.004f63e0
add esp, 0x24
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xfa
call ebx
push 0
push esi
call fcn.004e4500
add esp, 8
push 0x32
call ebx
mov eax, dword [esp + 0x10]
push 0
push eax
call fcn.004d8790
mov eax, dword [0x693914]
add esp, 8
cmp eax, 0x4d9
je 0x52ce79
cmp eax, 0x4db
je 0x52ce79
mov eax, dword [0x752acc]
test eax, eax
je 0x52ce79
inc dword [eax]
jmp 0x52ce79
xor eax, eax
nop
mov cl, byte [esp + eax + 0x2cc]
mov byte [eax + 0x752650], cl
inc eax
test cl, cl
jne 0x52ce50
push 0x752650
call fcn.0052a5f0
push 0x752650
call fcn.0052a550
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x7dc]
mov edx, dword [edi + ebp*4]
mov ebx, dword [esp + 0x3c]
push esi
lea ecx, [esp + 0x2d0]
push ecx
push 0
push edx
call ebx
test eax, eax
je 0x52cf15
lea eax, [esp + 0x2cc]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52ceb0
sub eax, edx
lea eax, [esp + eax + 0x2c3]
push str.NTVDM.EXE
push eax
call fcn.005f095a
add esp, 8
test eax, eax
jne 0x52cf08
mov eax, dword [esp + 0x44]
test eax, eax
je 0x52cf08
mov ecx, dword [edi + ebp*4]
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 0
mov ecx, dword [edi + ebp*4]
push 0x52aa00
push ecx
call eax
cmp dword [esp + 0x58], 0
jne 0x52cf15
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jb 0x52c9a1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x52cf2c
cmp eax, 0xffffffff
je 0x52cf2c
lea edx, [esp + 0x10]
push edx
call fcn.004dca10
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x24], 0
je 0x52d15a
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x52d175
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call esi
test ebx, ebx
je 0x52d173
push ebx
call esi
jmp 0x52d173
cmp eax, 1
jne 0x52d173
push str.Kernel32.DLL
call fcn.004f4be0
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x52d173
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push ebx
call esi
push str.Process32First
push ebx
mov edi, eax
call esi
push str.Process32Next
push ebx
mov ebp, eax
call esi
mov dword [esp + 0x2c], eax
test eax, eax
je 0x52d16c
test ebp, ebp
je 0x52d16c
test edi, edi
je 0x52d16c
push 0
push 2
call edi
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x52d16c
lea ecx, [esp + 0x7c]
push ecx
push eax
mov dword [esp + 0x84], 0x128
call ebp
test eax, eax
je 0x52d15a
mov ebx, dword [esp + 0x7dc]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x7e4], 0
je 0x52d03b
mov edx, dword [esp + 0x84]
push edx
push 1
push 0x410
jmp 0x52d04a
mov eax, dword [esp + 0x84]
push eax
push 1
push 0x1fffff
call ebp
mov edx, dword [esp + 0x84]
push ebx
lea ecx, [esp + 0xa4]
push ecx
push 0
push edx
mov esi, eax
call dword [esp + 0x4c]
test eax, eax
je 0x52d15a
mov eax, dword [esp + 0x30]
cmp byte [eax], 0
je 0x52d105
cmp dword [0x693914], 0x4db
je 0x52d105
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.0052c590
add esp, 8
cmp eax, 0xffffffff
je 0x52d139
test esi, esi
je 0x52d139
mov eax, dword [0x693914]
test eax, eax
je 0x52d0c3
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0052a9e0
mov eax, dword [0x693914]
cmp eax, 1
jne 0x52d0ea
push 0x14
call edi
push 0
push esi
mov dword [0x75264c], 1
call fcn.004e4500
add esp, 8
push 0x32
call edi
mov eax, dword [0x693914]
cmp eax, 0x4d9
je 0x52d139
cmp eax, 0x4db
je 0x52d139
mov eax, dword [0x752acc]
test eax, eax
je 0x52d139
inc dword [eax]
jmp 0x52d139
xor eax, eax
jmp 0x52d110
mov cl, byte [esp + eax + 0xa0]
mov byte [eax + 0x752650], cl
inc eax
test cl, cl
jne 0x52d110
push 0x752650
call fcn.0052a5f0
push 0x752650
call fcn.0052a550
add esp, 8
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x7c]
push edx
push eax
mov dword [esp + 0x84], 0x128
call dword [esp + 0x34]
test eax, eax
jne 0x52d020
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x52d175
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [esp + 0x7d0]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.005dfbbe
add esp, 0x7c4
ret 0x14