Function at 0x41e9df
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x149c
call fcn.00420070
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x38
mov eax, dword [edi]
push esi
mov dword [ebp + 8], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0xc], esi
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x458]
push str.CTesting
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x149c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x458]
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x3c], 0x423028
call sub.MSVCRT.dll_strcpy
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x44f]
push eax
push esi
call fcn.00406ddb
push 0x4267c4
call fcn.00410924
lea eax, [ebp - 0x458]
push eax
call fcn.00410924
push dword [esi + 8]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x44f]
push dword [esi + 4]
push str._s:_d
push eax
call ebx
lea eax, [ebp - 0x457]
push 0xff00
push eax
push dword [ebp + 8]
call fcn.00406961
add esp, 0x40
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x41eabb
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x41eab1
push str.RLookup_of_proxys_hostname_failed
jmp 0x41eaec
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov dword [ebp - 0x54], eax
mov ax, word [esi + 8]
push eax
mov word [ebp - 0x58], 2
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [ebp - 0x56], ax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x41eb26
push str.RFailed_to_open_socket_to_proxy
lea eax, [ebp - 0x458]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x458]
pop ecx
push eax
call fcn.00410924
lea eax, [ebp - 0x457]
mov dword [esp], 0x80ff
push eax
push dword [ebp + 8]
call fcn.00406961
add esp, 0xc
xor eax, eax
jmp 0x41edf7
mov dword [0x4283b4], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040e1bb
lea eax, [ebp - 0x48]
push eax
call fcn.00406d2e
pop ecx
lea eax, [ebp - 0x58]
pop ecx
push 0x10
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41eb70
cmp dword [0x428204], 1
jne 0x41edd8
push str.RFailed_to_connect_to_proxy
jmp 0x41ec3d
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
and al, 0x10
push ecx
neg al
sbb eax, eax
and ax, 0xe21a
add eax, 0x1e36
mov dword [edi + 4], eax
xor eax, eax
push eax
push edi
push 0x41e5d1
push eax
push eax
mov dword [0x428268], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 8], eax
cmp dword [0x428204], 1
jne 0x41edd8
cmp dword [0x428268], 0
jne 0x41ebc1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41eba1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x41edd8
push dword [edi + 4]
push dword [ebp - 0x54]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x458]
push str.GET_http:___s:_d__HTTP_1.0
push eax
call ebx
lea eax, [ebp - 0x48]
push eax
call fcn.0041ee54
add esp, 0x14
mov dword [ebp - 0x149c], esi
push 1
pop edi
cmp dword [0x428204], edi
jne 0x41edd8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x48]
push 0x57
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040c28b
add esp, 0x10
test eax, eax
jg 0x41ec75
push str.RCONNECT_attempt_failed
lea eax, [ebp - 0x458]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x458]
pop ecx
push eax
call fcn.00410924
lea eax, [ebp - 0x457]
mov dword [esp], 0x80ff
push eax
push dword [ebp + 8]
call fcn.00406961
add esp, 0xc
jmp 0x41edd8
push dword [ebp - 0x10]
lea eax, [ebp - 0x48]
push 0x57
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040c47b
add esp, 0x10
test eax, eax
jle 0x41edd8
cmp dword [0x428204], edi
jne 0x41edd8
push str.Mozilla_2.0__Macintosh__I__PPC_
lea eax, [ebp - 0x24]
push str.User_Agent
push eax
call fcn.0040f4bf
push str.no_cache
lea eax, [ebp - 0x24]
push str.Pragma
push eax
call fcn.0040f4bf
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040c061
add esp, 0x20
test eax, eax
je 0x41ed9c
mov eax, dword [ebp - 0x38]
push eax
call dword [eax + 0x10]
test eax, eax
pop ecx
jl 0x41ed9c
push str.CWaiting_for_remote_proxys_reply
call fcn.00410924
cmp dword [0x428204], edi
pop ecx
jne 0x41edd8
lea eax, [ebp - 0x458]
push str.Y___
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x454]
push 0x3f9
push eax
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x454]
call fcn.0041d7a4
add esp, 0x14
test eax, eax
jge 0x41ed3d
push str.RNo_reply_from_remote_proxy
jmp 0x41eda9
and byte [ebp + eax - 0x456], 0
mov al, 0x20
cmp byte [ebp - 0x454], al
jle 0x41ed54
inc esi
cmp byte [esi], al
jg 0x41ed4f
cmp byte [esi], al
jne 0x41ed5b
inc esi
jmp 0x41ed54
cmp byte [esi], 0x32
je 0x41ed88
push str.CProxy_test_Failed_
mov byte [ebp - 0x458], 0x52
call fcn.00410924
mov dword [esp], 0x80ff
push esi
push dword [ebp + 8]
call fcn.00406961
add esp, 0xc
xor esi, esi
jmp 0x41ed8a
mov esi, edi
lea eax, [ebp - 0x458]
push eax
call fcn.00410924
pop ecx
mov dword [ebp - 0xc], esi
jmp 0x41edd8
cmp dword [0x428204], edi
jne 0x41edd8
push str.RSend_of_test_data_failed
lea eax, [ebp - 0x458]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x458]
push eax
call fcn.00410924
lea eax, [ebp - 0x457]
push 0x80ff
push eax
push dword [ebp + 8]
call fcn.00406961
add esp, 0x18
mov eax, dword [ebp - 0x38]
push eax
call dword [eax + 0x18]
lea eax, [ebp - 0x48]
push eax
call fcn.0040ec06
lea eax, [ebp - 0x24]
push eax
call fcn.0040f781
mov eax, dword [ebp - 0xc]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret