Function at 0x401060
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8fc
mov eax, dword [0x410004]
xor eax, esp
mov dword [esp + 0x8f8], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
mov edi, dword [ebp + 8]
push str._toolbox.exe__n
call esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x50a]
push ecx
mov word [esp + 0x50c], ax
call fcn.00408040
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x106]
push eax
mov word [esp + 0x108], dx
call fcn.00408040
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x31a]
push edx
mov word [esp + 0x31c], cx
call fcn.00408040
add esp, 0x24
push 0x104
lea eax, [esp + 0x504]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2fc]
push edx
push 0x104
lea eax, [esp + 0x50c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edx, dword [esp + 0x14]
xor ecx, ecx
push 0x1f4
lea eax, [esp + 0x504]
mov word [edx], cx
push eax
lea ecx, [esp + 0x710]
push ecx
call fcn.00401a95
lea edx, [esp + 0x714]
push edx
push str.appdir:_s_n
call fcn.00401aaf
add esp, 0x14
push str._toolbox.exe__App_path:
call esi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x2f8]
push eax
call edi
push 0x40e3e0
call esi
lea ecx, [esp + 0x708]
call fcn.00401500
cmp dword [0x411a64], 0
jne 0x4011b9
push 0x1f90
lea ecx, [esp + 0x2fc]
push ecx
push 0x40e3e4
lea edx, [esp + 0xfc]
push 0x104
push edx
mov dword [0x411a64], 0x1f90
call fcn.00401b74
add esp, 0x14
jmp 0x4011db
lea eax, [esp + 0x2f8]
push eax
push str._susb2http
lea ecx, [esp + 0xf8]
push 0x104
push ecx
call fcn.00401b74
add esp, 0x10
push str._toolbox.exe__Command_string:
call esi
lea edx, [esp + 0xf0]
push edx
call edi
push 0x40e3e0
call esi
lea eax, [esp + 0xf0]
push eax
push str.cmd:_s_n
call fcn.00401b92
push 0x44
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.00408040
add esp, 0x14
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x300]
push ecx
push 0
push 8
push 0
push 0
push 0
lea edx, [esp + 0x110]
push edx
push 0
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40139b
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esp + 0x18]
push ecx
call ebx
mov edx, dword [0x411a64]
push edx
push str.http:__127.0.0.1:_u_
lea eax, [esp + 0xf8]
push 0x104
push eax
call fcn.00401b74
add esp, 0x10
push str._toolbox.exe__Browser_command_string:
call esi
lea ecx, [esp + 0xf0]
push ecx
call edi
push 0x40e3e0
call esi
push 1
push 0x40e3a4
push 0
lea edx, [esp + 0xfc]
push edx
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x401382
ja 0x401376
movzx eax, byte [eax + 0x401488]
jmp dword [eax*4 + 0x401450]
push str._toolbox.exe__Error_opening_browser._n
call esi
jmp 0x401433
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8f8]
xor ecx, esp
call fcn.004016cc
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x400
mov ebx, eax
push ebx
push 0
push 0x1300
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [esp + 0x10]
mov ecx, 0x20
mov esi, str._toolbox.exe__usb2http_create_process_failed_with_error__d:__s_n
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call esi
mov edi, eax
lea eax, [esp + 0x70]
push eax
call esi
add edi, eax
lea ecx, [edi + edi + 0x50]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
push ebx
lea eax, [esp + 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, eax
mov ebx, esi
call section..text
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ecx
call edi
push esi
call edi
mov ecx, dword [esp + 0x904]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004016cc
mov esp, ebp
pop ebp
ret 0x10