Function at 0x448670
Capabilities:
Access peb ldr_data
Create process on windows
Delete file
Get common file path
Get number of processors
Get process heap flags
Get process heap force flags
Self delete

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x29c]
push ebx
mov edi, esi
sub esp, 0x330
mov dword [ebp - 0x304], eax
xor eax, eax
mov dword [ebp - 0x310], ecx
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov eax, dword [0x717c50]
mov dword [ebp - 0x2fc], edx
test eax, eax
je 0x449158
lea ebx, [ebp - 0x110]
mov byte [ebp - 0x214], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x214]
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x593ac4
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov eax, dword [ebp - 0x304]
mov edx, dword [sym.imp.msvcrt.dll_strlen]
sub esp, 0x10
mov dword [esp], eax
mov dword [ebp - 0x300], edx
call edx
lea ecx, [ebp - 0x214]
mov dword [esp], ecx
mov edi, eax
mov edx, dword [ebp - 0x300]
call edx
mov dword [esp + 4], 0
lea eax, [edi + eax + 0x16]
lea edi, [ebp - 0x214]
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x300], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.debugger_children
mov edx, dword [ebp - 0x304]
mov dword [esp + 4], str._s__s___s_
mov dword [esp + 8], edx
mov dword [ebp - 0x308], eax
mov dword [esp], eax
call fcn.00443b30
mov ecx, dword [sym.imp.msvcrt.dll_strrchr]
mov dword [esp], edi
mov dword [esp + 4], 0x5c
mov dword [ebp - 0x314], ecx
call ecx
mov dword [esp], ebx
test eax, eax
lea edx, [eax + 1]
cmovne edi, edx
mov dword [esp + 4], edi
mov edi, dword [sym.imp.msvcrt.dll_strcpy]
call edi
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, 0x74
add eax, ebx
mov word [eax + 4], dx
mov edx, dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [eax], 0x696e695f
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x30c], edx
call edx
sub esp, 0x10
mov dword [ebp - 0x304], eax
call fcn.0057d110
mov ecx, dword [ebp - 0x300]
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x550
mov eax, dword [ecx + 0x34]
mov dword [esp + 4], str.OpenEvent_failed__last_error__ld._n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x304]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.00444b30
lea edx, [ebp - 0x214]
mov dword [esp + 4], 0x5c
mov dword [esp], edx
mov ecx, dword [ebp - 0x314]
call ecx
lea edx, [ebp - 0x214]
mov dword [esp], ebx
test eax, eax
lea ecx, [eax + 1]
cmove ecx, edx
mov dword [esp + 4], ecx
call edi
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add eax, ebx
mov dword [eax], 0x7474615f
mov dword [eax + 4], 0x686361
xor eax, eax
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp - 0x2fc]
mov dword [esp + 4], 0
test ebx, ebx
mov dword [esp], 0
setne al
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x30c]
call edx
sub esp, 0x10
mov ebx, eax
mov dword [ebp - 0x30c], eax
call fcn.0057d110
mov edi, dword [ebp - 0x300]
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x557
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateEvent_failed__last_error__ld._n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
lea ebx, [ebp - 0x2dc]
setne al
mov edi, ebx
mov dword [esp], eax
call fcn.00444b30
xor eax, eax
mov ecx, 0x10
lea edx, [ebp - 0x2e0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x2e0], 0x44
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov ebx, dword [ebp - 0x2fc]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x308]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
mov ebx, eax
call fcn.0057d110
mov edi, dword [ebp - 0x300]
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x55d
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateProcess_failed__last_error__ld._n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00444b30
mov eax, dword [ebp - 0x308]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, dword [ebp - 0x2fc]
sub esp, 0xc
test edi, edi
je 0x4490e0
lea eax, [ebp - 0x2f4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2f0]
mov ebx, dword fs:[0x18]
mov dword [esp], eax
call dword [0x717c50]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x568
mov eax, dword [ebx + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.CheckRemoteDebuggerPresent_failed__last_error__ld._n
call fcn.00444b30
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x569
mov eax, dword [ebp - 0x2f4]
mov dword [esp + 4], str.Expected_debug___0__got__x._n
mov dword [esp + 8], eax
mov dword [esp], eax
call fcn.00444b30
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x56b
mov dword [esp], str.starting_debugger_loop_n
call fcn.00444260
mov edi, dword [ebp - 0x2fc]
test edi, edi
jne 0x448ea0
mov edx, dword [ebp + 8]
mov eax, esi
call fcn.00447a90
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x594
mov eax, dword [ebp - 0x29c]
mov dword [esp + 4], str.unexpected_dwProcessId__lx_n
mov dword [esp + 8], eax
cmp dword [ebp - 0x2e8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
mov eax, dword [ebp - 0x2f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DebugBreakProcess]
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x597
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.BreakProcess_failed:__lu_n
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.00444b30
mov ecx, 0x4e20
mov edx, esi
mov eax, 0x59a
call fcn.00446690
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x59b
mov eax, dword [ebp - 0x298]
mov dword [esp + 4], str.dwDebugEventCode___ld_n
cmp eax, 2
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
cmp dword [ebp - 0x298], 2
mov ebx, dword [ebp - 0x290]
je 0x449289
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5a1
mov eax, dword [ebp - 0x298]
mov dword [esp + 4], str.dwDebugEventCode___ld_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5a2
xor eax, eax
mov dword [esp + 4], str.unexpected_thread_n
cmp dword [ebp - 0x290], ebx
sete al
mov dword [esp], eax
call fcn.00444b30
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5a3
mov eax, dword [ebp - 0x28c]
mov dword [esp + 4], str.ExceptionCode___lx_n
cmp eax, 0x80000003
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5a5
mov dword [esp + 4], str.ExceptionAddress___DbgBreakPoint_n
mov eax, dword [0x717c4c]
cmp dword [ebp - 0x280], eax
sete al
movzx eax, al
mov dword [esp], eax
mov edi, dword fs:[0x18]
call fcn.00444b30
mov eax, dword [ebp - 0x30c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5a8
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.SetEvent_failed__last_error__ld._n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00444b30
mov eax, dword [sym.imp.kernel32.dll_ContinueDebugEvent]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x300], eax
test edx, edx
jne 0x449229
lea esi, [esi]
nop
mov edx, esi
mov eax, 0x5b2
mov ecx, 0x4e20
call fcn.00446690
mov eax, dword [ebp - 0x298]
lea edx, [eax - 2]
and edx, 0xfffffffd
je 0x448c70
sub eax, 6
cmp eax, 1
jbe 0x448c70
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5b6
mov eax, dword [ebp - 0x298]
mov dword [esp + 4], str.dwDebugEventCode___ld_n
cmp eax, 5
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
mov dword [esp + 8], 0x10002
mov eax, dword [ebp - 0x290]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x294]
mov dword [esp], eax
mov eax, dword [ebp - 0x300]
call eax
sub esp, 0xc
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5b8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.ContinueDebugEvent_failed__last_error__ld._n
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00444b30
mov eax, dword [ebp - 0x310]
test eax, eax
je 0x4490a0
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5bb
mov eax, dword [ebp - 0x2fc]
mov dword [esp + 4], str.didnt_get_any_child_events__flag:__lx_._n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebp - 0x238], 2
sete al
mov dword [esp], eax
call fcn.00444b30
mov eax, dword [ebp - 0x304]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword fs:[0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x30c]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2ec]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5c2
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.CloseHandle_failed__last_error__ld._n
call fcn.00444b30
mov eax, dword [ebp - 0x2f0]
mov dword [esp], eax
call ebx
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5c4
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.CloseHandle_failed__last_error__ld._n
call fcn.00444b30
lea ecx, [ebp - 0x2f8]
lea edx, [ebp - 0x214]
mov dword [esp], 4
mov eax, 0x5c6
call fcn.00445c50
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5c7
mov eax, dword [ebp - 0x2f8]
mov dword [esp + 4], str.Got__ld_failures_from_child_process._n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
lea eax, [ebp - 0x214]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5ca
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.DeleteFileA_failed__last_error__ld._n
call fcn.00444b30
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0x4e20
mov edx, esi
mov eax, 0x571
call fcn.00446690
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x572
mov eax, dword [ebp - 0x298]
mov dword [esp + 4], str.dwDebugEventCode___ld_n
cmp eax, 3
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
call fcn.0057d110
xor edx, edx
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x573
mov eax, dword [ebp - 0x29c]
cmp dword [ebp - 0x294], eax
mov dword [esp + 4], str.unexpected_dwProcessId__x_n
sete dl
mov dword [esp + 8], edx
cmp dword [ebp - 0x2e8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
mov ecx, 0x4e20
mov edx, esi
mov eax, 0x575
call fcn.00446690
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x576
mov eax, dword [ebp - 0x298]
mov dword [esp + 4], str.dwDebugEventCode___ld_n
cmp eax, 6
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
mov edx, esi
mov eax, 0x579
mov edi, dword [ebp - 0x290]
call fcn.004468e0
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x57a
mov eax, dword [ebp - 0x234]
mov dword [esp + 4], str.dll_cnt___d_n
cmp eax, 2
mov dword [esp + 8], eax
seta al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x57c
mov eax, dword [ebp - 0x298]
mov dword [esp + 4], str.dwDebugEventCode___ld_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x57d
xor eax, eax
mov dword [esp + 4], str.unexpected_thread_n
cmp dword [ebp - 0x290], edi
sete al
mov dword [esp], eax
call fcn.00444b30
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x57e
mov eax, dword [ebp - 0x28c]
mov dword [esp + 4], str.ExceptionCode___lx_n
cmp eax, 0x80000003
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x583
mov dword [esp + 4], str.ExceptionAddress__pDbgBreakPoint_n
mov eax, dword [0x717c4c]
cmp dword [ebp - 0x280], eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x44917e
mov eax, dword [sym.imp.kernel32.dll_ContinueDebugEvent]
mov dword [ebp - 0x300], eax
jmp 0x448c70
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5bd
mov eax, dword [ebp - 0x2fc]
mov dword [esp + 4], str.got_child_event__flag:__lx_._n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebp - 0x238], 1
sete al
mov dword [esp], eax
call fcn.00444b30
jmp 0x448d69
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x304]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov dword [esp], 0x64
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [ebp - 0x2e8]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DebugActiveProcess]
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x564
mov eax, dword [ebp - 0x300]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.DebugActiveProcess_failed__last_error__ld._n
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00444b30
jmp 0x4489c7
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x543
mov dword [esp], str.CheckRemoteDebuggerPresent_not_available__skipping_test._n
call fcn.00444ad0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x80010001
mov eax, dword [ebp - 0x290]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x294]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_ContinueDebugEvent]
mov dword [ebp - 0x300], eax
call eax
sub esp, 0xc
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x588
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.ContinueDebugEvent_failed__last_error__ld._n
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.00444b30
mov ecx, 0x4e20
mov edx, esi
mov eax, 0x58b
mov dword [ebp - 0x298], 0xffffffff
call fcn.00446690
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x58c
mov eax, dword [ebp - 0x298]
mov dword [esp + 4], str.dwDebugEventCode___ld_n
cmp eax, 1
mov dword [esp + 8], eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.00444b30
jmp 0x448c70
mov dword [esp + 8], 0x80010001
mov eax, dword [ebp - 0x290]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x294]
mov dword [esp], eax
mov eax, dword [ebp - 0x300]
call eax
sub esp, 0xc
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x59334b
mov dword [eax + 4], 0x5ad
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.ContinueDebugEvent_failed__last_error__ld._n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00444b30
mov dword [ebp - 0x298], 0xffffffff
jmp 0x448c70
mov ecx, 0x4e20
mov edx, esi
mov eax, 0x59f
call fcn.00446690
jmp 0x448b45