Function at 0x1002f3d0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037091
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x1004b034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], ecx
call fcn.1001ef50
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [ebx + 0x2c]
mov eax, str.9ZcX_mPPwrhLtOOi07n7DNGX9uoI16KAkMzjTjHotmU
lea esi, [ebp - 0xb0]
mov dword [ebp - 0x9c], 0xf
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 0xb0], bl
call fcn.10002d20
mov eax, esi
push eax
lea ecx, [ebp - 0x104]
push ecx
mov byte [ebp - 4], 1
call fcn.10002420
add esp, 8
mov edi, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x9c], edi
jb 0x1002f47e
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x144]
push 0x10042838
push eax
push 0x10040ad0
push ecx
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x1fc]
mov esi, 0xf
push edx
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 0xb0], bl
call fcn.10007ee0
add esp, 0xc
push eax
call fcn.10002ad0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.10002ad0
add esp, 8
lea ecx, [ebp - 0xe8]
lea eax, [ebp - 0x20c]
call fcn.1001eff0
push ebx
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 4
push ecx
lea edx, [ebp - 0x14c]
push edx
mov dword [ebp - 0x164], 0xc
mov dword [ebp - 0x15c], 1
mov dword [ebp - 0x160], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1002f5d6
cmp dword [ebp - 0xd4], edi
jb 0x1002f542
mov eax, dword [ebp - 0xe8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xd8], ebx
mov byte [ebp - 0xe8], bl
cmp dword [ebp - 0xf0], edi
jb 0x1002f56c
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf4], ebx
mov byte [ebp - 0x104], bl
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x1ac]
mov dword [ebp - 0x148], edx
mov dword [ebp + ecx - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x1f4]
call fcn.100130e0
lea ecx, [ebp - 0x1f4]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1ac]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
xor al, al
jmp 0x1002fa17
push 0x44
lea edx, [ebp - 0x264]
push ebx
push edx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x158]
or dword [ebp - 0x238], 0x101
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
xor eax, eax
add esp, 0xc
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x264], 0x44
cmp dword [ebp - 0xd4], edi
jae 0x1002f62b
lea eax, [ebp - 0xe8]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x264]
push edx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1002f6d0
cmp dword [ebp - 0xd4], edi
jb 0x1002f668
mov eax, dword [ebp - 0xe8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xd8], ebx
mov byte [ebp - 0xe8], bl
cmp dword [ebp - 0xf0], edi
jb 0x1002f692
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf4], ebx
mov byte [ebp - 0x104], bl
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x1ac]
mov dword [ebp - 0x148], edx
mov dword [ebp + ecx - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 4], 6
jmp 0x1002f5a5
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14c]
push ebx
lea eax, [ebp - 0x154]
push eax
push 0x80
lea ecx, [ebp - 0x94]
push ecx
push edx
mov byte [ebp - 0x13d], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002f8d7
lea esp, [esp]
mov edi, dword [ebp - 0x154]
cmp edi, ebx
je 0x1002f8d2
mov dword [ebp - 0x9c], esi
lea eax, [ebp - 0x94]
lea esi, [ebp - 0xb0]
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 0xb0], bl
call fcn.10002d20
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x148]
mov esi, dword [eax]
mov ecx, dword [eax + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x144], ebx
je 0x1002f887
mov dword [ebp - 0x150], ebx
add esi, dword [ebp - 0x150]
lea edx, [ebp - 0xcc]
push esi
push edx
call fcn.10002420
add esp, 8
mov byte [ebp - 4], 8
cmp dword [ebp - 0xb8], 0x10
mov eax, dword [ebp - 0xcc]
jae 0x1002f7a6
lea eax, [ebp - 0xcc]
mov ecx, dword [ebp - 0xbc]
push ecx
push eax
lea edx, [ebp - 0xb0]
push edx
call fcn.10007b90
lea ecx, [ebp - 0xcc]
cmp eax, 0xffffffff
jne 0x1002fa33
lea eax, [ebp - 0x120]
push eax
call fcn.100022c0
add esp, 4
mov edi, eax
lea esi, [ebp - 0xcc]
mov byte [ebp - 4], 0xa
call fcn.100032d0
mov edi, 0x10
cmp dword [ebp - 0x10c], edi
jb 0x1002f806
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 0xf
mov byte [ebp - 4], 7
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], ebx
mov byte [ebp - 0x120], bl
cmp dword [ebp - 0xb8], edi
jb 0x1002f839
mov edx, dword [ebp - 0xcc]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 4]
mov edi, dword [ebp - 0x144]
add dword [ebp - 0x150], 0x1c
mov dword [ebp - 0xb8], esi
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [ebp - 0xbc], ebx
mov byte [ebp - 0xcc], bl
mov dword [ebp - 0x144], edi
cmp edi, eax
jb 0x1002f777
mov byte [ebp - 4], 4
cmp dword [ebp - 0x9c], 0x10
jb 0x1002f8a4
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0x14c]
push ebx
lea edx, [ebp - 0x154]
push edx
push 0x80
lea eax, [ebp - 0x94]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, 0xf
test eax, eax
jne 0x1002f710
mov edi, 0x10
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xd4], edi
jb 0x1002f916
mov eax, dword [ebp - 0xe8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xd8], ebx
mov byte [ebp - 0xe8], bl
cmp dword [ebp - 0xf0], edi
jb 0x1002f940
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf4], ebx
mov byte [ebp - 0x104], bl
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x1ac]
mov dword [ebp - 0x148], edx
mov dword [ebp + ecx - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 4], 0xb
lea edx, [ebp - 0x1f4]
mov dword [ebp - 0x144], edx
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov byte [ebp - 4], 0xc
test byte [ebp - 0x1b4], 1
je 0x1002f9ae
mov eax, dword [ebp - 0x1e4]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1f4]
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov ecx, dword [ebp - 0x1e0]
mov dword [ecx], ebx
mov edx, dword [ebp - 0x1d0]
mov dword [edx], ebx
mov eax, dword [ebp - 0x1c0]
mov dword [eax], ebx
and dword [ebp - 0x1b4], 0xfffffffe
lea ecx, [ebp - 0x1f4]
mov dword [ebp - 0x1b8], ebx
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1f4]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1ac]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov al, byte [ebp - 0x13d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034620
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x13c]
push edx
mov byte [ebp - 0x13d], 1
call fcn.100022c0
add esp, 4
mov edi, eax
lea esi, [ebp - 0xcc]
mov byte [ebp - 4], 9
call fcn.100032d0
mov edi, 0x10
cmp dword [ebp - 0x128], edi
jb 0x1002fa77
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0xb8], edi
jb 0x1002fa8f
mov ecx, dword [ebp - 0xcc]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 0xf
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], ebx
mov byte [ebp - 0xcc], bl
cmp dword [ebp - 0x9c], edi
jb 0x1002fabe
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 0xb0], bl
jmp 0x1002f8d7