Function at 0x10006b50
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push 0x170
mov eax, 0x1000b58f
call fcn.1000aaab
mov eax, dword [ebp + 8]
mov esi, ecx
push 1
xor ebx, ebx
push 2
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x4d], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.1000271b
test eax, eax
je 0x10006d40
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp eax, ebx
mov dword [ebp - 0x64], eax
je 0x10006d40
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x10006bb3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [ebp - 0x54], edi
mov edi, dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 0x58], esi
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [ebp - 0x5c], eax
jbe 0x10006bd0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebp - 0x58], ebx
je 0x10006bda
cmp dword [ebp - 0x58], esi
je 0x10006be0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x54], eax
je 0x10006c9e
push 0x1000cb4c
lea esi, [ebp - 0x58]
call fcn.10006e56
push eax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 1
call fcn.10006e56
add eax, 0x1c
push eax
push dword [ebp - 0x5c]
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.10006782
push eax
lea eax, [ebp - 0x134]
push eax
mov byte [ebp - 4], 3
call edi
pop ecx
pop ecx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [ebp - 0x58]
cmp esi, ebx
jne 0x10006c84
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x54]
cmp eax, dword [esi + 8]
jb 0x10006c92
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add dword [ebp - 0x54], 0x38
mov esi, dword [ebp - 0x6c]
jmp 0x10006bbf
mov esi, dword [ebp - 0x64]
cmp word [esi], bx
jne 0x10006cac
cmp word [esi + 2], bx
je 0x10006cdb
push 2
push esi
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x134]
push eax
mov byte [ebp - 4], 4
call edi
pop ecx
pop ecx
inc esi
lea ecx, [ebp - 0x4c]
inc esi
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x10006ca1
push 2
push esi
lea ecx, [ebp - 0x88]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
push eax
lea eax, [ebp - 0x134]
push eax
mov byte [ebp - 4], 5
call edi
pop ecx
pop ecx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 2
push esi
lea ecx, [ebp - 0x88]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
push eax
lea eax, [ebp - 0x134]
push eax
mov byte [ebp - 4], 6
call edi
pop ecx
pop ecx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x10
lea eax, [ebp - 0x98]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x44
pop esi
push esi
lea eax, [ebp - 0x17c]
push ebx
push eax
call sub.MSVCR80.dll_memset
mov edx, dword [ebp - 0x68]
add esp, 0xc
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x17c], esi
call fcn.10006782
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], ebx
jne 0x10006d9b
xor eax, eax
jmp 0x10006dc3
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x60], 1
jb 0x10006dc0
mov eax, dword [eax + 4]
jmp 0x10006dc3
add eax, 4
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x10006dcf
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x98]
push edx
lea edx, [ebp - 0x17c]
push edx
push ebx
push eax
push 0x8000400
push ebx
push ebx
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test byte [ebp - 0x60], 1
mov esi, eax
je 0x10006e03
lea ecx, [ebp - 0x88]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, ebx
je 0x10006e31
push dword [ebp - 0x98]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x4d], 1
call esi
push dword [ebp - 0x94]
call esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov al, byte [ebp - 0x4d]
call fcn.1000aaf5
ret