Function at 0x402102
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
call fcn.00401e94
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov eax, 0x402626
lea edx, [ebp - 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov edx, dword [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x4021dc
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40a0d0
mov dword [esp], eax
call sub.msvcrt.dll__itoa
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_create_ReadShell_session_thread__error___s
call fcn.00402dec
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0xffffffff
mov eax, 0
jmp 0x4024a7
mov eax, 0x4027df
lea edx, [ebp - 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov edx, dword [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4022a7
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40a0d0
mov dword [esp], eax
call sub.msvcrt.dll__itoa
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_create_ReadShell_session_thread__error___s
call fcn.00402dec
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateThread
sub esp, 8
mov eax, 0
jmp 0x4024a7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], 3
call sub.KERNEL32.dll_WaitForMultipleObjects
sub esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x402337
cmp eax, 2
je 0x40236e
test eax, eax
jne 0x4023a2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateThread
sub esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateProcess
sub esp, 8
jmp 0x4023f8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateThread
sub esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateProcess
sub esp, 8
jmp 0x4023f8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateThread
sub esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateThread
sub esp, 8
jmp 0x4023f8
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40a0d0
mov dword [esp], eax
call sub.msvcrt.dll__itoa
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], str.WaitForMultipleObjects_error:__s
call fcn.00402dec
nop
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.WSOCK32.DLL_shutdown
sub esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.WSOCK32.DLL_closesocket
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_DisconnectNamedPipe
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.dll_DisconnectNamedPipe
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, 1
leave
ret