Function at 0x10037960
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 0x10041f51
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x1005b034]
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.10019010
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.10002900
add esp, 8
mov edi, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x9c], edi
jb 0x10037a0e
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 0x10050524
push eax
push 0x1004df90
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.10007890
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.100190b0
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 0x10037b66
cmp dword [ebp - 0xd4], edi
jb 0x10037ad2
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 0x10037afc
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.1000b8c0
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 0x10037fa7
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 0x10037bbb
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 0x10037c60
cmp dword [ebp - 0xd4], edi
jb 0x10037bf8
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 0x10037c22
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 0x10037b35
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 0x10037e67
lea esp, [esp]
mov edi, dword [ebp - 0x154]
cmp edi, ebx
je 0x10037e62
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 0x10037e17
mov dword [ebp - 0x150], ebx
add esi, dword [ebp - 0x150]
lea edx, [ebp - 0xcc]
push esi
push edx
call fcn.10002900
add esp, 8
mov byte [ebp - 4], 8
cmp dword [ebp - 0xb8], 0x10
mov eax, dword [ebp - 0xcc]
jae 0x10037d36
lea eax, [ebp - 0xcc]
mov ecx, dword [ebp - 0xbc]
push ecx
push eax
lea edx, [ebp - 0xb0]
push edx
call fcn.10007540
lea ecx, [ebp - 0xcc]
cmp eax, 0xffffffff
jne 0x10037fc3
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.10003280
mov edi, 0x10
cmp dword [ebp - 0x10c], edi
jb 0x10037d96
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 0x10037dc9
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 0x10037d07
mov byte [ebp - 4], 4
cmp dword [ebp - 0x9c], 0x10
jb 0x10037e34
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 0x10037ca0
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 0x10037ea6
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 0x10037ed0
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 0x10037f3e
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.1003e6b0
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.10003280
mov edi, 0x10
cmp dword [ebp - 0x128], edi
jb 0x10038007
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 0x1003801f
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 0x1003804e
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 0x10037e67