Function at 0x5b1630
Capabilities:
Encode data using base64
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x5f1638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov al, byte [esp + 0x54]
push ebp
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], 1
mov byte [esp + 0x2c], al
call fcn.005a8410
mov ebp, dword [esp + 0x58]
mov ecx, esi
push ebp
mov dword [esp + 0x54], 0
call fcn.005b15a0
test eax, eax
jne 0x5b16a7
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0xffffffff
call fcn.005a8410
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 0xc
push ebx
push edi
push 0x800
call fcn.005d03c7
mov ebx, eax
mov eax, dword [esi + 0x24]
add esp, 4
mov dword [esp + 0x18], ebx
test eax, eax
jne 0x5b1703
mov esi, dword [esp + 0x64]
mov eax, dword [esi + 8]
add eax, 0x190
push eax
call fcn.005d03c7
mov edi, eax
mov eax, dword [esi + 4]
add esp, 4
mov dword [esp + 0x64], edi
test eax, eax
jne 0x5b16ea
mov eax, 0x834cf4
mov ecx, dword [esp + 0x68]
push ecx
push eax
push str.CONNECT__s:_d_HTTP_1.1_r_nAccept:___r_nProxy_Connection:_Keep_Alive_r_nContent_length:_0_r_n_r_n
push edi
call fcn.005d1a8e
add esp, 0x10
jmp 0x5b1951
mov dl, byte [esp + 0x64]
push 0
lea ecx, [esp + 0x44]
mov byte [esp + 0x44], dl
call fcn.005a8410
mov eax, dword [0x834cf8]
lea ecx, [esi + 0x1c]
push eax
push 0
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64], 1
call fcn.005b22a0
push 0x3a
push 1
lea ecx, [esp + 0x48]
call fcn.005b1f40
mov edx, dword [0x834cf8]
add esi, 0x2c
push edx
push 0
push esi
lea ecx, [esp + 0x4c]
call fcn.005b22a0
mov eax, dword [esp + 0x48]
lea ecx, [eax + eax]
push ecx
call fcn.005d03c7
mov edi, dword [esp + 0x48]
add esp, 4
test edi, edi
mov dword [esp + 0x2c], eax
jne 0x5b1774
mov edi, 0x834cf4
mov esi, dword [esp + 0x48]
mov ecx, eax
mov eax, 0x55555556
mov ebx, 3
imul esi
mov eax, edx
xor ebp, ebp
shr eax, 0x1f
add edx, eax
mov eax, esi
mov dword [esp + 0x20], edx
cdq
idiv ebx
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x28], edx
jle 0x5b184f
lea ebx, [esi + esi - 4]
mov dword [esp + 0x20], eax
mov dl, byte [edi]
mov al, byte [edi + 1]
inc edi
mov byte [esp + 0x10], dl
inc edi
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov dl, byte [edi]
and eax, 0xff
mov byte [esp + 0x24], dl
mov edx, eax
shr edx, 2
and esi, 0xff
and eax, 3
mov dl, byte [edx + 0x834c30]
inc edi
mov byte [ecx], dl
mov edx, esi
shr edx, 4
shl eax, 4
or edx, eax
inc ecx
and esi, 0xf
inc ecx
mov al, byte [edx + 0x834c30]
add ebp, 4
mov byte [ecx - 1], al
mov eax, dword [esp + 0x24]
and eax, 0xff
mov edx, eax
and eax, 0x3f
shr edx, 6
shl esi, 2
or edx, esi
inc ecx
inc ecx
cmp ebp, ebx
mov dl, byte [edx + 0x834c30]
mov byte [ecx - 2], dl
mov al, byte [eax + 0x834c30]
mov byte [ecx - 1], al
jle 0x5b183c
mov byte [ecx], 0xd
inc ecx
mov byte [ecx], 0xa
inc ecx
xor ebp, ebp
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x5b17b0
mov edx, dword [esp + 0x28]
cmp edx, 1
jne 0x5b1885
mov dl, byte [edi]
mov byte [esp + 0x10], dl
mov eax, dword [esp + 0x10]
and eax, 0xff
mov edx, eax
and eax, 3
shr edx, 2
shl eax, 4
mov dl, byte [edx + 0x834c30]
mov byte [ecx], dl
mov al, byte [eax + 0x834c30]
inc ecx
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
jmp 0x5b18db
cmp edx, 2
jne 0x5b18e0
mov dl, byte [edi]
mov al, byte [edi + 1]
mov byte [esp + 0x10], dl
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x10]
and eax, 0xff
mov edx, eax
and eax, 3
shr edx, 2
shl eax, 4
mov dl, byte [edx + 0x834c30]
mov byte [ecx], dl
mov edx, dword [esp + 0x1c]
and edx, 0xff
inc ecx
mov esi, edx
shr esi, 4
or esi, eax
inc ecx
and edx, 0xf
mov al, byte [esi + 0x834c30]
mov byte [ecx - 1], al
mov dl, byte [edx*4 + 0x834c30]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov esi, dword [esp + 0x2c]
mov byte [ecx], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x64]
repne scasb al, byte es:[edi]
mov edx, dword [ebx + 8]
not ecx
dec ecx
lea eax, [ecx + edx + 0x190]
push eax
call fcn.005d03c7
mov ecx, dword [ebx + 4]
add esp, 4
test ecx, ecx
mov dword [esp + 0x64], eax
jne 0x5b191a
mov ecx, 0x834cf4
mov edx, dword [esp + 0x68]
push esi
push edx
push ecx
push str.CONNECT__s:_d_HTTP_1.1_r_nProxy_Authorization:_Basic__s_r_nAccept:___r_nProxy_Connection:_Keep_Alive_r_nContent_length:_0_r_n_r_n
push eax
call fcn.005d1a8e
push esi
call fcn.005d02de
add esp, 0x18
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 0
push 1
call fcn.005a8410
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x64]
push 0
not ecx
dec ecx
push ecx
push eax
push ebp
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x5b1ad7
push 0
push 0x800
push ebx
push ebp
call sub.WS2_32.dll_recv
test eax, eax
je 0x5b1ad7
cmp eax, 0xffffffff
je 0x5b1ad7
mov byte [ebx + eax], 0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
call fcn.005b24a0
test al, al
je 0x5b19d3
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
call fcn.005b7350
mov edi, 0x853bd8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push 0x853bd8
lea ecx, [esp + 0x3c]
call fcn.005b2210
cmp eax, dword [0x834cf8]
je 0x5b1ad7
push eax
lea eax, [esp + 0x44]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.005b1db0
mov ecx, dword [0x834cf8]
mov byte [esp + 0x58], 2
push ecx
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.005b2010
mov eax, dword [esp + 0x44]
test eax, eax
je 0x5b1a4c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x5b1a43
cmp al, 0xff
je 0x5b1a43
dec al
mov byte [ecx], al
jmp 0x5b1a4c
push ecx
call fcn.005e16b9
add esp, 4
mov edi, 0x853bd4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x68], esi
je 0x5b1acf
mov ebp, dword [esp + 0x38]
test ebp, ebp
jbe 0x5b1aca
cmp esi, ebp
ja 0x5b1aca
movsx eax, byte [0x853bd4]
mov ebx, dword [esp + 0x34]
mov edx, 1
sub edx, esi
add ebp, edx
push ebp
push eax
push ebx
call fcn.005d0d60
add esp, 0xc
test eax, eax
je 0x5b1ac6
jmp 0x5b1a98
mov esi, dword [esp + 0x68]
mov ecx, esi
mov edi, 0x853bd4
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x5b1b19
sub ebx, eax
lea ebp, [ebx + ebp - 1]
lea ebx, [eax + 1]
movsx eax, byte [0x853bd4]
push ebp
push eax
push ebx
call fcn.005d0d60
add esp, 0xc
test eax, eax
jne 0x5b1a94
mov ebx, dword [esp + 0x18]
mov eax, dword [0x834cf8]
cmp eax, dword [0x834cf8]
jne 0x5b1adf
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x5b1aec
push ebx
call fcn.005d02de
add esp, 4
mov eax, dword [esp + 0x64]
pop edi
test eax, eax
pop ebx
je 0x5b1aff
push eax
call fcn.005d02de
add esp, 4
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5b1b2f
mov al, byte [ecx - 1]
test al, al
je 0x5b1b25
cmp al, 0xff
je 0x5b1b25
dec al
mov byte [ecx - 1], al
jmp 0x5b1b2f
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
sub eax, ecx
jmp 0x5b1acf
dec ecx
push ecx
call fcn.005e16b9
add esp, 4
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c
ret 0xc