Function at 0x40cb30
Capabilities:
Get hostname
Initialize winsock library
Terminate process

Disassembly:
sub esp, 0x43c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
push edi
mov edi, dword [esp + 0x454]
xor ebx, ebx
push 0x5c
mov eax, dword [edi]
mov dword [esp + 0x1c], ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call esi
add esp, 8
cmp eax, ebx
je 0x40cb6a
inc eax
jmp 0x40cb6c
mov eax, dword [edi]
push 0x2e
push eax
mov dword [str.zebedee], eax
call esi
add esp, 8
cmp eax, ebx
je 0x40cb7f
mov byte [eax], bl
call fcn.00404b90
push 0x41e208
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x40cbae
push str.winsock_initailization_failed
call dword [sym.imp.MSVCRT.dll__errno]
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00404de0
add esp, 0xc
mov ebp, dword [esp + 0x450]
cmp ebp, 1
jne 0x40cbbf
call fcn.0040caa0
push str.b:c:Dde:f:F:hHk:lmn:o:pPr:sS:tT:uUv:x:z:
push edi
push ebp
call fcn.00401740
add esp, 0xc
cmp eax, 0xffffffff
je 0x40ce21
mov esi, dword [sym.imp.MSVCRT.dll_strtoul]
add eax, 0xffffffbc
cmp eax, 0x36
ja case.0x40cbf1.94
xor edx, edx
mov dl, byte [eax + 0x40d4a4]
jmp dword [edx*4 + 0x40d438]
mov eax, dword [0x41e540]
mov dword [0x41e3ec], eax
jmp 0x40ce09
mov ecx, dword [0x41e540]
mov dword [0x41e3e4], ecx
jmp 0x40ce09
mov dword [0x41e3a8], 1
jmp 0x40ce09
mov dword [0x41a534], ebx
jmp 0x40ce09
mov edx, dword [0x41e540]
mov dword [0x41a540], ebx
mov dword [0x41e3ac], edx
jmp 0x40ce09
mov eax, dword [0x41e540]
push 1
push eax
call fcn.0040bb60
add esp, 8
jmp 0x40ce09
mov ecx, dword [0x41e540]
mov dword [0x41e404], ecx
jmp 0x40ce09
cmp dword [esp + 0x1c], ebx
jne 0x40ce68
cmp dword [esp + 0x14], ebx
jne 0x40ce68
mov dword [esp + 0x18], 1
jmp 0x40ce09
cmp dword [esp + 0x1c], ebx
jne 0x40ce7f
cmp dword [esp + 0x14], ebx
jne 0x40ce7f
mov dword [esp + 0x18], 2
jmp 0x40ce09
mov edx, dword [0x41e540]
push 0x41a530
push edx
call fcn.0040b2f0
add esp, 8
jmp 0x40ce09
inc dword [0x41e3e8]
jmp 0x40ce09
inc dword [0x41a540]
jmp 0x40ce09
mov eax, dword [0x41e540]
mov dword [str.zebedee], eax
jmp 0x40ce09
mov ecx, dword [0x41e540]
push ecx
call fcn.0040b9c0
add esp, 4
jmp 0x40ce09
cmp dword [esp + 0x18], ebx
jne 0x40ce96
inc dword [esp + 0x1c]
jmp 0x40ce09
cmp dword [esp + 0x18], ebx
jne 0x40cead
inc dword [esp + 0x14]
jmp 0x40ce09
mov edx, dword [0x41e540]
push ebx
push ebx
push 0x41e3c8
push edx
call fcn.0040b4d0
add esp, 0x10
jmp 0x40ce09
mov dword [0x41e3a4], 1
jmp 0x40ce09
mov eax, dword [0x41e540]
mov dword [esp + 0x10], eax
jmp 0x40ce09
mov dword [0x41e3d4], 1
jmp 0x40ce09
mov ecx, dword [0x41e540]
push 0x41e3b0
push ecx
call fcn.0040b2f0
add esp, 8
jmp 0x40ce09
mov dword [0x41e3dc], 1
mov dword [0x41a548], ebx
jmp 0x40ce09
mov eax, 1
mov dword [0x41e3dc], eax
mov dword [0x41a548], eax
jmp 0x40ce09
mov edx, dword [0x41e540]
push 0xa
push ebx
push edx
call esi
add esp, 0xc
mov word [0x41a520], ax
jmp 0x40ce09
mov eax, dword [0x41e540]
push ebx
push eax
call fcn.0040bce0
add esp, 8
test eax, eax
jne 0x40ce09
mov ecx, dword [0x41e540]
push ecx
push str.invalid_extended_configuration_argument__s
push ebx
push ebx
call fcn.00404de0
add esp, 0x10
jmp 0x40ce09
mov edx, dword [0x41e540]
push 0x41a532
push edx
call fcn.0040baa0
add esp, 8
jmp 0x40ce09
call fcn.0040caa0
push str.b:c:Dde:f:F:hHk:lmn:o:pPr:sS:tT:uUv:x:z:
push edi
push ebp
call fcn.00401740
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40cbdd
cmp dword [0x41a534], ebx
je 0x40ce2e
call fcn.00407dc0
cmp word [0x41a546], bx
je 0x40ce41
mov dword [0x41e3d8], 0xffffffff
cmp dword [0x41e3ac], ebx
je 0x40cec4
cmp dword [0x41a540], ebx
je 0x40cec4
push str.cant_specify_a_command_for_a_multi_use_client
push ebx
push ebx
call fcn.00404de0
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push str._h_and__p_or__P_are_mutually_exclusive
push ebx
push ebx
call fcn.00404de0
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push str._H_and__p_or__P_are_mutually_exclusive
push ebx
push ebx
call fcn.00404de0
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push str._h_or__H_and__p_or__P_are_mutually_exclusive
push ebx
push ebx
call fcn.00404de0
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push str._h_or__H_and__p_or__P_are_mutually_exclusive
push ebx
push ebx
call fcn.00404de0
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
cmp word [0x41e3b0], bx
jne 0x40cef0
cmp dword [0x41e3dc], ebx
je 0x40cee7
mov eax, dword [0x41a548]
mov word [0x41e3b0], 0x2bde
cmp eax, ebx
je 0x40cef0
mov word [0x41e3b0], 0x2ebd
mov eax, dword [0x41a52c]
push eax
call fcn.0040c9b0
mov ecx, dword [0x41a528]
mov dword [0x41a52c], eax
push ecx
call fcn.0040c9b0
mov dword [0x41a528], eax
mov ax, word [0x41a544]
add esp, 8
cmp ax, 0x3fff
jbe 0x40cf40
push 0x3fff
push str.Warning:_maximum_buffer_size_must_be____hu__rounded_down
push ebx
push 1
call fcn.00404de0
add esp, 0x10
mov word [0x41a544], 0x3fff
jmp 0x40cf63
cmp ax, bx
jne 0x40cf63
push 0x2000
push str.Warning:_buffer_size_must_be___0__set_to__hu
push ebx
push 1
call fcn.00404de0
add esp, 0x10
mov word [0x41a544], 0x2000
mov eax, dword [0x41e3a0]
cmp word [0x41a530], ax
jae 0x40cfa0
mov edx, dword [0x41a530]
and eax, 0xffff
and edx, 0xffff
push eax
push edx
push str.Warning:_specified_keylength___hu__set_to_minkeylength___hu_
push ebx
push 1
call fcn.00404de0
mov ax, word [0x41e3a0]
add esp, 0x14
mov word [0x41a530], ax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40d0a7
mov esi, dword [sym.imp.MSVCRT.dll_strncmp]
push 7
mov ecx, eax
push str.install
push ecx
call esi
add esp, 0xc
test eax, eax
jne 0x40d00a
mov edi, dword [esp + 0x10]
push 8
push 0x41dd18
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x40cff4
mov edx, dword [str.zebedee]
add edi, 8
push edi
push edx
call fcn.004031a0
add esp, 8
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [str.zebedee]
push ebx
push eax
call fcn.004031a0
add esp, 8
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [esp + 0x10]
mov esi, str.remove
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40d037
cmp cl, bl
je 0x40d033
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40d037
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40d013
xor eax, eax
jmp 0x40d03c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40d055
mov eax, dword [str.zebedee]
push eax
call fcn.004033e0
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [esp + 0x10]
mov esi, 0x41dd0c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40d082
cmp cl, bl
je 0x40d07e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40d082
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40d05e
xor eax, eax
jmp 0x40d087
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40d0a7
mov eax, dword [esp + 0x10]
push eax
push str.invalid_argument_to__S_option:__s
push ebx
push ebx
call fcn.00404de0
add esp, 0x10
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x40d167
mov eax, dword [0x41a038]
cmp eax, ebp
jl 0x40d0ff
cmp ecx, 1
jne 0x40d0e8
lea ecx, [esp + 0x20]
push 0x41b3e8
push ecx
call fcn.00407ac0
lea edx, [esp + 0x28]
push edx
push 0x41a5d4
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x10
jmp 0x40d42f
push str.no_string_argument_to_hash
push ebx
push ebx
call fcn.00404de0
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov esi, dword [sym.imp.MSVCRT.dll_printf]
jmp 0x40d10b
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + eax*4]
cmp eax, ebx
je 0x40d42f
cmp ecx, 1
jne 0x40d12b
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00407ac0
add esp, 8
jmp 0x40d13a
push ebx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00407a40
add esp, 0xc
mov edx, dword [0x41a038]
lea ecx, [esp + 0x20]
mov eax, dword [edi + edx*4]
push eax
push ecx
push str._s__s_n
call esi
mov eax, dword [0x41a038]
add esp, 0xc
inc eax
cmp eax, ebp
mov dword [0x41a038], eax
jl 0x40d107
jmp 0x40d42f
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCRT.dll_printf]
cmp eax, ebx
jne 0x40d39d
cmp dword [esp + 0x14], ebx
jne 0x40d3d5
mov eax, dword [0x41e3a4]
cmp eax, ebx
mov eax, dword [0x41a038]
je 0x40d25c
cmp eax, ebp
jge 0x40d1b4
mov edx, dword [edi + eax*4]
push edx
call fcn.0040b670
mov eax, dword [0x41a038]
add esp, 4
inc eax
cmp eax, ebp
mov dword [0x41a038], eax
jl 0x40d199
mov eax, dword [str.localhost]
push 0x2f
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x40d1e7
mov ecx, dword [str.localhost]
push ecx
push str.default_target_host___s__must_not_have_an_address_mask
push ebx
push ebx
call fcn.00404de0
add esp, 0x10
push 1
call dword [sym.imp.MSVCRT.dll_exit]
cmp dword [0x41e3c4], ebx
jne 0x40d205
push 3
push str.localhost
push ebx
push ebx
call fcn.0040b370
add esp, 0x10
mov dword [0x41e3c4], eax
cmp dword [esp + 0x10], ebx
je 0x40d226
mov edx, dword [str.zebedee]
push 0x41e3b0
push fcn.00409cc0
push edx
call fcn.00402e00
jmp 0x40d42c
mov eax, dword [0x41e3ec]
cmp eax, ebx
je 0x40d24a
mov cx, word [0x41a554]
mov dx, word [0x41e3b0]
push ecx
push edx
push eax
call fcn.00409dd0
jmp 0x40d42c
push 0x41e3b0
call fcn.00409cc0
add esp, 4
jmp 0x40d42f
cmp eax, ebp
jge 0x40d27b
mov eax, dword [edi + eax*4]
push eax
call fcn.0040b6e0
mov eax, dword [0x41a038]
add esp, 4
inc eax
cmp eax, ebp
mov dword [0x41a038], eax
jl 0x40d260
mov eax, dword [0x41e3bc]
cmp eax, ebx
jne 0x40d29b
push str.no_server_host_specified
push ebx
push ebx
call fcn.00404de0
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
cmp dword [0x41e3b8], ebx
jne 0x40d2b7
push ebx
push eax
push 0x41e3b8
push str.telnet
call fcn.0040b4d0
add esp, 0x10
mov eax, dword [0x41e3b4]
cmp eax, ebx
jne 0x40d2f5
push 3
push ebx
push ebx
push ebx
call fcn.0040b370
add esp, 0x10
cmp eax, ebx
mov dword [0x41e3b4], eax
jne 0x40d2f5
push str.cant_allocate_space_for_port_list
call dword [sym.imp.MSVCRT.dll__errno]
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00404de0
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push eax
call fcn.004081a0
mov edx, dword [0x41e3b8]
mov esi, eax
push edx
call fcn.004081a0
add esp, 8
cmp esi, eax
je 0x40d327
push str.the_numbers_of_entries_in_the_client_and_target_port_lists_do_not_match
push ebx
push ebx
call fcn.00404de0
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [0x41e3b8]
push eax
call fcn.004081a0
add esp, 4
cmp eax, 1
jle 0x40d367
mov ecx, dword [0x41a540]
mov eax, dword [0x41e3ac]
inc ecx
cmp eax, ebx
mov dword [0x41a540], ecx
je 0x40d367
push str.cant_specify_a_command_with_multiple_target_ports
push ebx
push ebx
call fcn.00404de0
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
cmp dword [esp + 0x10], ebx
je 0x40d38a
mov ecx, dword [0x41e3b4]
mov edx, dword [str.zebedee]
push ecx
push fcn.004085d0
push edx
call fcn.00402e00
jmp 0x40d42c
mov eax, dword [0x41e3b4]
push eax
call fcn.004085d0
add esp, 4
jmp 0x40d42f
call fcn.00406580
cmp eax, ebx
mov dword [0x41e39c], eax
je 0x40d3b8
push eax
push str.privatekey___s__n
call esi
add esp, 8
jmp 0x40d3cf
push str.cant_generate_private_key
call dword [sym.imp.MSVCRT.dll__errno]
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00404de0
add esp, 0xc
cmp dword [esp + 0x14], ebx
je 0x40d42f
cmp dword [0x41e39c], ebx
jne 0x40d3f4
push str.cant_generate_a_identity_without_a_private_key_being_set
push ebx
push ebx
call fcn.00404de0
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
lea edx, [esp + 0x4c]
push 0x400
push edx
call sub.WS2_32.dll_gethostname
mov ecx, dword [0x41e39c]
mov edx, dword [0x41a52c]
lea eax, [esp + 0x4c]
push eax
mov eax, dword [0x41a528]
push ecx
push edx
push eax
call fcn.00407d60
add esp, 0xc
push eax
push str._s__s_n
call esi
add esp, 0xc
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
mov edi, edi
sbb ah, cl
inc eax
add byte [esi - 0x34], bl
inc eax
add byte [eax + 0x160040cc], dl
int 0x40
add byte [ebx - 0x33], dl
inc eax
add byte [eax - 0x33], dh
inc eax
add byte [ebx + 0x70040cd], bl
int3