Function at 0x406d00
Capabilities:
Create tcp socket
Initialize winsock library
Start tcp server

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4300d0
push 0x40ee40
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x20f0
call fcn.0040baa0
mov eax, dword [0x432110]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
mov word [ebp - 0x1c0], ax
xor ecx, ecx
mov dword [ebp - 0x1be], ecx
mov dword [ebp - 0x1ba], ecx
mov dword [ebp - 0x1b6], ecx
mov word [ebp - 0x1b2], cx
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x1c8], 0xffffffff
mov dword [ebp - 0x1c4], 0x52f2
lea edx, [ebp - 0x1b0]
push edx
push 0x202
call sub.WS2_32.dll_WSAStartup
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
je 0x406db1
push str.WSAStartup_failed_with_error:__d_r_n
call fcn.00406370
add esp, 4
jmp 0x4073b9
call sub.SSLEAY32.dll_Ordinal_183
call sub.SSLEAY32.dll_Ordinal_74
call sub.SSLEAY32.dll_Ordinal_183
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x406e1f
mov byte [ebp - 0x2e0], 0
push 0xf9
push 0
lea eax, [ebp - 0x2df]
push eax
call fcn.0040b720
add esp, 0xc
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.socket_function_failed_with_error:__ld_r_n
lea ecx, [ebp - 0x2e0]
push ecx
call fcn.0040b79a
add esp, 0xc
lea edx, [ebp - 0x2e0]
push edx
call fcn.00406370
add esp, 4
jmp 0x407350
mov eax, 2
mov word [ebp - 0x1c0], ax
push str.127.0.0.1
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x1bc], eax
movzx ecx, word [ebp - 0x1c4]
push ecx
call sub.WS2_32.dll_htons
mov word [ebp - 0x1be], ax
push 0x10
lea edx, [ebp - 0x1c0]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call sub.WS2_32.dll_bind
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 0xffffffff
jne 0x406edb
mov ecx, dword [ebp - 0x1c4]
add ecx, 1
mov dword [ebp - 0x1c4], ecx
cmp dword [ebp - 0x1c4], 0x53ba
jle 0x406e90
jmp 0x407358
mov byte [ebp - 0x3e0], 0
push 0xf9
push 0
lea edx, [ebp - 0x3df]
push edx
call fcn.0040b720
add esp, 0xc
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.bind_function_failed_with_error__d_r_n
lea eax, [ebp - 0x3e0]
push eax
call fcn.0040b79a
add esp, 0xc
lea ecx, [ebp - 0x3e0]
push ecx
call fcn.00406370
add esp, 4
jmp 0x407350
push 5
mov edx, dword [ebp - 0x1c]
push edx
call sub.WS2_32.dll_listen
cmp eax, 0xffffffff
jne 0x406f36
mov byte [ebp - 0x4e0], 0
push 0xf9
push 0
lea eax, [ebp - 0x4df]
push eax
call fcn.0040b720
add esp, 0xc
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.listen_function_failed_with_error:__d_r_n
lea ecx, [ebp - 0x4e0]
push ecx
call fcn.0040b79a
add esp, 0xc
lea edx, [ebp - 0x4e0]
push edx
call fcn.00406370
add esp, 4
jmp 0x407358
mov dword [ebp - 0x1cc], 1
call sub.SSLEAY32.dll_Ordinal_112
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1dc]
push eax
call sub.SSLEAY32.dll_Ordinal_12
add esp, 4
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x1cc], 0
je 0x4070e9
push 1
push 0x433ae8
mov ecx, dword [ebp - 0x1d0]
push ecx
call sub.SSLEAY32.dll_Ordinal_30
add esp, 0xc
test eax, eax
jg 0x406fe9
call sub.LIBEAY32.dll_Ordinal_227
mov dword [ebp - 0x4e4], eax
mov byte [ebp - 0x5e8], 0
push 0xf9
push 0
lea edx, [ebp - 0x5e7]
push edx
call fcn.0040b720
add esp, 0xc
mov eax, dword [ebp - 0x4e4]
push eax
push str.SSL_CTX_use_certificate_file_failed..._I64u_r_n
lea ecx, [ebp - 0x5e8]
push ecx
call fcn.0040b79a
add esp, 0xc
lea edx, [ebp - 0x5e8]
push edx
call fcn.00406370
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406f60
push 1
push 0x433bf0
mov eax, dword [ebp - 0x1d0]
push eax
call sub.SSLEAY32.dll_Ordinal_24
add esp, 0xc
test eax, eax
jg 0x407065
call sub.LIBEAY32.dll_Ordinal_227
mov dword [ebp - 0x5ec], eax
mov byte [ebp - 0x6f0], 0
push 0xf9
push 0
lea ecx, [ebp - 0x6ef]
push ecx
call fcn.0040b720
add esp, 0xc
mov edx, dword [ebp - 0x5ec]
push edx
push str.SSL_CTX_use_PrivateKey_file_failed..._I64u_r_n
lea eax, [ebp - 0x6f0]
push eax
call fcn.0040b79a
add esp, 0xc
lea ecx, [ebp - 0x6f0]
push ecx
call fcn.00406370
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406f60
mov edx, dword [ebp - 0x1d0]
push edx
call sub.SSLEAY32.dll_Ordinal_5
add esp, 4
test eax, eax
jne 0x4070da
call sub.LIBEAY32.dll_Ordinal_227
mov dword [ebp - 0x6f4], eax
mov byte [ebp - 0x7f8], 0
push 0xf9
push 0
lea eax, [ebp - 0x7f7]
push eax
call fcn.0040b720
add esp, 0xc
mov ecx, dword [ebp - 0x6f4]
push ecx
push str.Private_key_does_not_match_the_certificate_public_key..._I64u_r_n
lea edx, [ebp - 0x7f8]
push edx
call fcn.0040b79a
add esp, 0xc
lea eax, [ebp - 0x7f8]
push eax
call fcn.00406370
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406f60
mov dword [ebp - 0x1cc], 0
jmp 0x406f60
mov ecx, dword [ebp - 0x1d0]
push ecx
call sub.SSLEAY32.dll_Ordinal_75
add esp, 4
mov dword [ebp - 0x1d8], eax
mov edx, 1
test edx, edx
je 0x407323
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.WS2_32.dll_accept
mov dword [ebp - 0x1c8], eax
cmp dword [ebp - 0x1c8], 0xffffffff
jne 0x40718e
mov byte [ebp - 0x2108], 0
push 0xf9
push 0
lea ecx, [ebp - 0x2107]
push ecx
call fcn.0040b720
add esp, 0xc
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.accept_failed_with_error:__ld_r_n
lea edx, [ebp - 0x2108]
push edx
call fcn.0040b79a
add esp, 0xc
lea eax, [ebp - 0x2108]
push eax
call fcn.00406370
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
mov dword [ebp - 4], 0xfffffffe
jmp 0x4073b9
mov edx, dword [ebp - 0x1c8]
push edx
mov eax, dword [ebp - 0x1d8]
push eax
call sub.SSLEAY32.dll_Ordinal_87
add esp, 8
mov ecx, dword [ebp - 0x1d8]
push ecx
call sub.SSLEAY32.dll_Ordinal_35
add esp, 4
cmp eax, 0xffffffff
jne 0x4071dd
push str.SSL_accept__1_r_n
call fcn.00406370
add esp, 4
mov edx, dword [ebp - 0x1c8]
push edx
call sub.WS2_32.dll_closesocket
mov dword [ebp - 4], 0xfffffffe
jmp 0x4070fe
mov byte [ebp - 0x1808], 0
push 0xfff
push 0
lea eax, [ebp - 0x1807]
push eax
call fcn.0040b720
add esp, 0xc
push 0xfff
lea ecx, [ebp - 0x1808]
push ecx
mov edx, dword [ebp - 0x1d8]
push edx
call sub.SSLEAY32.dll_Ordinal_78
add esp, 0xc
mov dword [ebp - 0x804], eax
cmp dword [ebp - 0x804], 0
jg 0x407230
mov dword [ebp - 4], 0xfffffffe
jmp 0x4070fe
mov byte [ebp - 0x2008], 0
push 0x7ff
push 0
lea eax, [ebp - 0x2007]
push eax
call fcn.0040b720
add esp, 0xc
push str.__body___html__r_n
mov ecx, 0x433cf4
call fcn.004031f0
push eax
push str.HTTP_1.1_200_OK_r_nServer:_bfe_1.0.8.14_r_nDate:_Mon__29_Feb_2018_06:21:46_GMT_r_nAccess_Control_Allow_Credentials:_true_r_nAccess_Control_Allow_Origin:__r_nContent_Type:_text_html_r_nContent_Length:_700_r_nConnection:_keep_alive_r_n_r_n_html__r_n_head__title_200_Ok__title___head__body_
push str._s_s_s
lea ecx, [ebp - 0x2008]
push ecx
call fcn.0040b79a
add esp, 0x14
lea edx, [ebp - 0x2008]
push edx
call fcn.0040acb0
add esp, 4
mov dword [ebp - 0x800], eax
mov dword [ebp - 0x7fc], 0
mov eax, dword [ebp - 0x800]
push eax
lea ecx, [ebp - 0x2008]
push ecx
mov edx, dword [ebp - 0x1d8]
push edx
call sub.SSLEAY32.dll_Ordinal_108
add esp, 0xc
add eax, dword [ebp - 0x7fc]
mov dword [ebp - 0x7fc], eax
mov eax, dword [ebp - 0x7fc]
cmp eax, dword [ebp - 0x800]
jl 0x4072d9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4072e2
mov ecx, 1
test ecx, ecx
jne 0x407295
mov dword [ebp - 4], 0xfffffffe
jmp 0x407308
mov edx, dword [ebp - 0x1c8]
push edx
call sub.WS2_32.dll_closesocket
mov dword [ebp - 0x1c8], 0xffffffff
jmp 0x4070fe
mov eax, dword [ebp - 0x1d8]
push eax
call sub.SSLEAY32.dll_Ordinal_96
add esp, 4
mov ecx, dword [ebp - 0x1d8]
push ecx
call sub.SSLEAY32.dll_Ordinal_48
add esp, 4
mov edx, dword [ebp - 0x1d0]
push edx
call sub.SSLEAY32.dll_Ordinal_8
add esp, 4
xor eax, eax
jne 0x406d7f
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], 0xffffffff
je 0x407375
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.WS2_32.dll_closesocket
mov dword [ebp - 0x1c], 0xffffffff
cmp dword [ebp - 0x1c8], 0xffffffff
je 0x407394
mov edx, dword [ebp - 0x1c8]
push edx
call sub.WS2_32.dll_closesocket
mov dword [ebp - 0x1c8], 0xffffffff
call sub.WS2_32.dll_WSACleanup
mov dword [ebp - 4], 0xfffffffe
jmp 0x4073b9
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0040a92b
mov esp, ebp
pop ebp
ret