Function at 0x434400
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7491
mov eax, dword fs:[0]
push eax
mov eax, 0x79e4
call fcn.0057c7a0
mov eax, dword [0x630490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x79a4], edx
mov ebx, ecx
mov dword [ebp - 0x799c], ebx
mov dword [ebp - 0x79ec], 0
lea ecx, [ebp - 0x7888]
mov dword [ebp - 4], 1
call fcn.0040a1f0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x79a0], 0x50
xorps xmm0, xmm0
lea eax, [ebp + 8]
movlpd qword [ebp - 0x79e8], xmm0
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
movlpd qword [ebp - 0x79e0], xmm0
mov byte [ecx], 0
call fcn.004047b0
lea edx, [ebp - 0x79a0]
lea ecx, [ebp - 0x7840]
call fcn.00435260
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7828]
push 0
push 0x603cf2
mov dword [ebp - 0x7814], 0xf
mov dword [ebp - 0x7818], 0
mov byte [ebp - 0x7828], 0
call fcn.00404be0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x7840]
mov esi, dword [ebp - 0x782c]
mov edx, 0x603cf3
mov edi, dword [ebp - 0x7840]
cmp esi, 0x10
push 0
cmovae ecx, edi
call fcn.00405ec0
add esp, 4
test eax, eax
jne 0x43451f
cmp dword [ebp - 0x7830], eax
setne al
test eax, eax
sete al
test al, al
jne 0x435112
cmp word [ebp - 0x79a0], 0
je 0x435112
cmp esi, 0x10
lea ecx, [ebp - 0x7840]
cmovae ecx, edi
call fcn.00435840
test al, al
je 0x434568
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x7840]
push eax
lea ecx, [ebp - 0x7828]
call fcn.004047b0
jmp 0x434610
xorps xmm0, xmm0
mov dword [ebp - 0x78a8], 0
movq qword [ebp - 0x78b0], xmm0
mov dword [ebp - 0x78b0], 0
mov dword [ebp - 0x78ac], 0
mov dword [ebp - 0x78a8], 0
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
lea eax, [ebp - 0x7840]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004047b0
lea ecx, [ebp - 0x78b0]
call fcn.004355f0
mov esi, dword [ebp - 0x78b0]
add esp, 0x18
test al, al
je 0x4345f3
lea eax, [ebp - 0x7828]
cmp eax, esi
je 0x4345f3
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.004047b0
mov byte [ebp - 4], 4
test esi, esi
je 0x434610
push dword [ebp - 0x78ac]
push esi
call fcn.00406d80
push esi
call fcn.0044f438
add esp, 4
mov edx, 0x603d12
lea ecx, [ebp - 0x7828]
call fcn.00406dc0
test al, al
je 0x43472b
push 0x604bdc
lea edx, [ebp - 0x7840]
mov byte [ebp - 0x7888], 0
lea ecx, [ebp - 0x78bc]
call fcn.00409970
mov esi, eax
add esp, 4
lea eax, [ebp - 0x7884]
cmp eax, esi
je 0x434692
cmp dword [ebp - 0x7870], 0x10
jb 0x43466b
push dword [ebp - 0x7884]
call fcn.0044f438
add esp, 4
push esi
lea ecx, [ebp - 0x7884]
mov dword [ebp - 0x7870], 0xf
mov dword [ebp - 0x7874], 0
mov byte [ebp - 0x7884], 0
call fcn.004045a0
cmp dword [ebp - 0x78a8], 0x10
jb 0x4346a9
push dword [ebp - 0x78bc]
call fcn.0044f438
add esp, 4
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413320
cmp dword [ebp - 0x7814], 0x10
jb 0x4346ce
push dword [ebp - 0x7828]
call fcn.0044f438
add esp, 4
cmp dword [ebp - 0x782c], 0x10
mov dword [ebp - 0x7814], 0xf
mov dword [ebp - 0x7818], 0
mov byte [ebp - 0x7828], 0
jb 0x434700
push dword [ebp - 0x7840]
call fcn.0044f438
add esp, 4
lea ecx, [ebp - 0x7888]
mov dword [ebp - 0x782c], 0xf
mov dword [ebp - 0x7830], 0
mov byte [ebp - 0x7840], 0
call fcn.00406710
jmp 0x435201
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
push 4
lea eax, [ebp - 0x78a4]
mov dword [ebp - 0x7994], edi
push eax
push 0x1005
push 0xffff
push edi
mov dword [ebp - 0x78a4], 0x1388
call esi
push 4
lea eax, [ebp - 0x78a4]
push eax
push 0x1006
push 0xffff
push edi
call esi
mov esi, dword [ebp - 0x79a0]
xorps xmm0, xmm0
mov eax, 2
movq qword [ebp - 0x78e2], xmm0
push esi
mov dword [ebp - 0x78da], 0
mov word [ebp - 0x78d6], 0
mov word [ebp - 0x78e4], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp - 0x7814], 0x10
mov word [ebp - 0x78e2], ax
lea eax, [ebp - 0x7828]
cmovae eax, dword [ebp - 0x7828]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x78e0], eax
lea eax, [ebp - 0x78e4]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x434895
mov byte [ebp - 0x7888], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x79bc]
call fcn.004187f0
push eax
mov edx, 0x604bec
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x78bc]
call fcn.00405a50
add esp, 4
lea ecx, [ebp - 0x7884]
push eax
call fcn.00409850
lea ecx, [ebp - 0x78bc]
call fcn.00404540
lea ecx, [ebp - 0x79bc]
mov byte [ebp - 4], 4
call fcn.00404540
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413320
lea ecx, [ebp - 0x7828]
call fcn.00404540
lea ecx, [ebp - 0x7840]
call fcn.00404540
lea ecx, [ebp - 0x7888]
call fcn.00406710
lea ecx, [ebp + 8]
call fcn.00404540
lea ecx, [ebp + 0x20]
call fcn.00404540
jmp 0x435235
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x7840]
mov dword [ebp - 0x78c0], 0xf
push eax
lea ecx, [ebp - 0x78d4]
mov dword [ebp - 0x78c4], 0
mov byte [ebp - 0x78d4], 0
call fcn.004047b0
mov byte [ebp - 4], 7
cmp si, 0x50
je 0x434937
movzx edx, si
lea ecx, [ebp - 0x79d4]
call fcn.004057c0
mov esi, eax
push 0x604c00
lea edx, [ebp - 0x78d4]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x78bc]
call fcn.00409970
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x79bc]
call fcn.00405b80
add esp, 4
lea ecx, [ebp - 0x79bc]
call fcn.00404540
lea ecx, [ebp - 0x78bc]
call fcn.00404540
lea ecx, [ebp - 0x79d4]
mov byte [ebp - 4], 7
call fcn.00404540
push 0x603d13
lea ecx, [ebp - 0x78a0]
call fcn.00404470
push 0x604c04
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov ecx, esp
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004047b0
lea ecx, [ebp - 0x78bc]
call fcn.00434280
push eax
mov edx, str.GET
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x79bc]
call fcn.00405a50
add esp, 0x1c
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x79d4]
call fcn.00405ae0
add esp, 4
lea ecx, [ebp - 0x78a0]
push eax
call fcn.00409850
lea ecx, [ebp - 0x79d4]
call fcn.00404540
lea ecx, [ebp - 0x79bc]
call fcn.00404540
lea ecx, [ebp - 0x78bc]
mov byte [ebp - 4], 0xa
call fcn.00404540
lea eax, [ebp - 0x78d4]
mov edx, 0x604c1c
push eax
lea ecx, [ebp - 0x79bc]
call fcn.00408180
add esp, 4
push 0x604c18
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x79d4]
call fcn.00405ae0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x78a0]
mov byte [ebp - 4], 0xe
call fcn.00404600
lea ecx, [ebp - 0x79d4]
call fcn.00404540
lea ecx, [ebp - 0x79bc]
mov byte [ebp - 4], 0xa
call fcn.00404540
push 0x604c24
lea ecx, [ebp - 0x78a0]
call fcn.00408270
push 0x604c38
lea ecx, [ebp - 0x78a0]
call fcn.00408270
push 0x604c70
lea ecx, [ebp - 0x78a0]
call fcn.00408270
push 0x604cc8
lea ecx, [ebp - 0x78a0]
call fcn.00408270
push 0x604c54
lea ecx, [ebp - 0x78a0]
call fcn.00408270
push 0x604d44
lea ecx, [ebp - 0x78a0]
call fcn.00408270
push 0x604d68
lea ecx, [ebp - 0x78a0]
call fcn.00408270
cmp dword [ebp - 0x788c], 0x10
lea eax, [ebp - 0x78a0]
push 0
push dword [ebp - 0x7890]
cmovae eax, dword [ebp - 0x78a0]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x434b5f
mov byte [ebp - 0x7888], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x79bc]
call fcn.004187f0
push eax
mov edx, 0x604d6c
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x79d4]
call fcn.00405a50
add esp, 4
lea ecx, [ebp - 0x7884]
push eax
call fcn.00409850
lea ecx, [ebp - 0x79d4]
call fcn.00404540
lea ecx, [ebp - 0x79bc]
mov byte [ebp - 4], 0xa
call fcn.00404540
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413320
lea ecx, [ebp - 0x78a0]
call fcn.00404540
lea ecx, [ebp - 0x78d4]
call fcn.00404540
jmp 0x43485f
push 0x7800
lea eax, [ebp - 0x7810]
push 0
push eax
call fcn.0057b730
add esp, 0xc
lea eax, [ebp - 0x7990]
xor edi, edi
push 0xa8
push edi
push eax
call fcn.0057b730
add esp, 8
lea ecx, [ebp - 0x7990]
call fcn.00433060
push edi
push 0x7800
lea eax, [ebp - 0x7810]
mov byte [ebp - 4], 0x10
push eax
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4350d1
mov ebx, dword [ebp - 0x79dc]
mov esi, dword [ebp - 0x79e0]
jmp 0x434bd0
add edi, eax
lea eax, [ebp - 0x7810]
push str._r_n_r_n
push eax
call fcn.0057a4f0
add esp, 8
mov dword [ebp - 0x79a0], eax
test eax, eax
je 0x434d17
lea eax, [ebp - 0x7810]
push 0x604d94
push eax
call fcn.0057a4f0
add esp, 8
test eax, eax
je 0x434f6f
cmp eax, dword [ebp - 0x79a0]
ja 0x434edd
add eax, 0xf
push eax
call fcn.0057a770
mov ebx, edx
add esp, 4
mov esi, eax
test ebx, ebx
jl 0x434e4b
jg 0x434c3e
test esi, esi
je 0x434e4b
mov eax, dword [ebp - 0x79a4]
test eax, eax
je 0x434c53
push 0
push 0
push ebx
push esi
call eax
add esp, 0x10
mov eax, dword [ebp - 0x79a0]
lea ecx, [ebp - 0x7810]
sub eax, ecx
add eax, 4
cmp edi, eax
jle 0x434d23
sub edi, eax
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov eax, edi
cdq
cmovae ecx, dword [ebp + 0x20]
mov edi, eax
push ecx
push 0x22
push ecx
lea ecx, [ebp - 0x7990]
mov dword [ebp - 0x7998], edx
call fcn.00433200
mov eax, dword [ebp - 0x7990]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x7984], 6
je 0x434d5e
lea eax, [ebp + 0x20]
mov byte [ebp - 0x7888], 0
push eax
mov edx, 0x604dfc
lea ecx, [ebp - 0x79bc]
call fcn.00408180
add esp, 4
mov byte [ebp - 4], 0x11
push 0x604df4
mov edx, eax
lea ecx, [ebp - 0x79d4]
call fcn.00405ae0
add esp, 4
lea ecx, [ebp - 0x7884]
push eax
call fcn.00409850
lea ecx, [ebp - 0x79d4]
call fcn.00404540
lea ecx, [ebp - 0x79bc]
mov byte [ebp - 4], 0x10
call fcn.00404540
lea ecx, [ebp - 0x7990]
call fcn.00433260
jmp 0x434ef4
cmp edi, 0x7800
jge 0x4350c1
push 0
mov eax, 0x7800
sub eax, edi
push eax
lea eax, [ebp - 0x7810]
add eax, edi
push eax
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x434bd0
mov ecx, dword [ebp - 0x79e4]
mov edi, dword [ebp - 0x79e8]
mov dword [ebp - 0x7998], ecx
jmp 0x434dd7
push dword [ebp - 0x7998]
mov eax, dword [ebp - 0x79a0]
lea ecx, [ebp - 0x7990]
push edi
add eax, 4
push eax
call fcn.00432310
mov eax, dword [ebp - 0x7990]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x7984], 6
je 0x434db9
lea eax, [ebp + 0x20]
mov byte [ebp - 0x7888], 0
push eax
mov edx, 0x604e10
lea ecx, [ebp - 0x79bc]
call fcn.00408180
add esp, 4
mov byte [ebp - 4], 0x12
push 0x604e08
jmp 0x434cd1
mov edx, dword [ebp - 0x79a4]
test edx, edx
je 0x434dd1
push dword [ebp - 0x7998]
push edi
push ebx
push esi
call edx
add esp, 0x10
mov ecx, dword [ebp - 0x7998]
cmp dword [ebp - 0x79a0], 0
je 0x4350cb
mov eax, edi
or eax, ecx
jne 0x434f79
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x7990]
push 0x22
push eax
call fcn.00433200
mov eax, dword [ebp - 0x7990]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x7984], 6
je 0x434f79
lea eax, [ebp + 0x20]
mov byte [ebp - 0x7888], 0
push eax
mov edx, 0x604e98
lea ecx, [ebp - 0x79bc]
call fcn.00408180
add esp, 4
mov byte [ebp - 4], 0x13
push 0x604e90
jmp 0x434cd1
push 0x604dcc
lea ecx, [ebp - 0x7884]
mov byte [ebp - 0x7888], 0
call fcn.00405a10
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x799c]
lea eax, [ebp - 0x7888]
push eax
call fcn.00413320
lea ecx, [ebp - 0x7990]
call fcn.00430e80
lea ecx, [ebp - 0x78a0]
call fcn.00404540
lea ecx, [ebp - 0x78d4]
call fcn.00404540
lea ecx, [ebp - 0x7828]
call fcn.00404540
lea ecx, [ebp - 0x7840]
call fcn.00404540
lea ecx, [ebp - 0x7888]
call fcn.00406710
lea ecx, [ebp + 8]
call fcn.00404540
lea ecx, [ebp + 0x20]
call fcn.00404540
mov eax, dword [ebp - 0x799c]
jmp 0x435237
push 0x604da4
lea ecx, [ebp - 0x7884]
mov byte [ebp - 0x7888], 0
call fcn.00405a10
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x799c]
lea eax, [ebp - 0x7888]
push eax
call fcn.00413320
lea ecx, [ebp - 0x7990]
call fcn.00430e80
lea ecx, [ebp - 0x78a0]
call fcn.00404540
lea ecx, [ebp - 0x78d4]
call fcn.00404540
lea ecx, [ebp - 0x7828]
call fcn.00404540
lea ecx, [ebp - 0x7840]
call fcn.00404540
lea ecx, [ebp - 0x7888]
call fcn.00406710
lea ecx, [ebp + 8]
call fcn.00404540
lea ecx, [ebp + 0x20]
call fcn.00404540
mov eax, dword [ebp - 0x799c]
jmp 0x435237
push 0x604e18
jmp 0x434ee2
push 0
push 0x7800
lea eax, [ebp - 0x7810]
push eax
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x43502c
jmp 0x434fa0
cdq
mov ecx, eax
mov eax, dword [ebp - 0x7998]
add edi, ecx
adc eax, edx
mov dword [ebp - 0x7998], eax
cmp eax, ebx
jg 0x435032
jl 0x434fbd
cmp edi, esi
ja 0x435032
push edx
push ecx
lea eax, [ebp - 0x7810]
push eax
lea ecx, [ebp - 0x7990]
call fcn.00432310
mov eax, dword [ebp - 0x7990]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x7984], 6
jne 0x43504a
mov eax, dword [ebp - 0x79a4]
test eax, eax
je 0x434ffc
push dword [ebp - 0x7998]
push edi
push ebx
push esi
call eax
add esp, 0x10
cmp edi, esi
jne 0x43500a
mov eax, dword [ebp - 0x7998]
cmp ebx, eax
je 0x435038
push 0
push 0x7800
lea eax, [ebp - 0x7810]
push eax
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x434fa0
mov eax, dword [ebp - 0x7998]
cmp ebx, eax
jl 0x435076
jg 0x43503c
cmp esi, edi
jbe 0x435076
mov byte [ebp - 0x7888], 0
push 0x604eb4
jmp 0x43509a
lea eax, [ebp + 0x20]
mov byte [ebp - 0x7888], 0
push eax
mov edx, 0x604eac
lea ecx, [ebp - 0x79bc]
call fcn.00408180
add esp, 4
mov byte [ebp - 4], 0x14
push 0x604ea4
jmp 0x434cd1
cmp eax, ebx
jl 0x43508e
jg 0x435080
cmp edi, esi
jbe 0x43508e
mov byte [ebp - 0x7888], 0
push 0x604edc
jmp 0x43509a
mov byte [ebp - 0x7888], 1
push 0x604f04
lea ecx, [ebp - 0x7884]
call fcn.00405a10
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x7990]
call fcn.00433260
jmp 0x434f00
push 0x604e38
jmp 0x434ee2
mov ebx, dword [ebp - 0x799c]
push 0x604e64
lea ecx, [ebp - 0x7884]
mov byte [ebp - 0x7888], 0
call fcn.00405a10
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413320
lea ecx, [ebp - 0x7990]
call fcn.00430e80
jmp 0x434b44
push 7
push 0x604bd4
lea ecx, [ebp - 0x7884]
mov byte [ebp - 0x7888], 0
call fcn.00404be0
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413320
cmp dword [ebp - 0x7814], 0x10
jb 0x435150
push dword [ebp - 0x7828]
call fcn.0044f438
add esp, 4
cmp dword [ebp - 0x782c], 0x10
mov dword [ebp - 0x7814], 0xf
mov dword [ebp - 0x7818], 0
mov byte [ebp - 0x7828], 0
jb 0x435182
push dword [ebp - 0x7840]
call fcn.0044f438
add esp, 4
cmp dword [ebp - 0x7858], 0x10
mov dword [ebp - 0x782c], 0xf
mov dword [ebp - 0x7830], 0
mov byte [ebp - 0x7840], 0
jb 0x4351b4
push dword [ebp - 0x786c]
call fcn.0044f438
add esp, 4
cmp dword [ebp - 0x7870], 0x10
mov dword [ebp - 0x7858], 0xf
mov dword [ebp - 0x785c], 0
mov byte [ebp - 0x786c], 0
jb 0x4351e6
push dword [ebp - 0x7884]
call fcn.0044f438
add esp, 4
mov dword [ebp - 0x7870], 0xf
mov dword [ebp - 0x7874], 0
mov byte [ebp - 0x7884], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x435212
push dword [ebp + 8]
call fcn.0044f438
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov byte [ebp + 8], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
jb 0x435235
push dword [ebp + 0x20]
call fcn.0044f438
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057732c
mov esp, ebp
pop ebp
ret