Function at 0x405400
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
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10d8
call fcn.00417000
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov dword [ebp - 0x10d4], ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x10cc], ecx
push 0x7f
lea eax, [ebp - 0xb3]
mov byte [ebp - 0xb4], 0
push 0
push eax
call fcn.004164d0
add esp, 0xc
lea eax, [ebp - 0xb4]
push str.api.goosai.com
push 0x80
push eax
call fcn.00412f77
add esp, 0xc
push str.api.goosai.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x4056db
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x10ba], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10d0], esi
mov eax, 2
movq qword [ebp - 0x10c2], xmm0
push 0x50
mov word [ebp - 0x10b6], 0
mov word [ebp - 0x10c4], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x10c2], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10c0], eax
lea eax, [ebp - 0x10c4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x4056ce
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x10c8]
push 4
push eax
push 0x1005
push 0xffff
push esi
mov dword [ebp - 0x10c8], 0xbb8
call edi
push 4
lea eax, [ebp - 0x10c8]
push eax
push 0x1006
push 0xffff
push esi
call edi
mov eax, dword [str.XNtuRN]
xorps xmm0, xmm0
mov edi, dword [ebp - 0x10cc]
mov ecx, dword [ebp - 0x10d4]
mov dword [ebp - 0x10], eax
mov ax, word [0x4343fc]
mov word [ebp - 0xc], ax
mov al, byte [0x4343fe]
mov byte [ebp - 0xa], al
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 0x34], 0
push eax
push edi
movdqu xmmword [ebp - 0x33], xmm0
movdqu xmmword [ebp - 0x23], xmm0
call fcn.00405930
lea ecx, [edi - 1]
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x405570
mov eax, dword [str.sig]
lea edx, [ebp - 0x34]
mov dword [ecx], eax
mov esi, edx
mov ax, word [0x434404]
mov word [ecx + 4], ax
mov al, byte [edx]
inc edx
test al, al
jne 0x405590
sub edx, esi
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4055a0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x10d8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x10cc]
call fcn.00405350
push 0xfff
lea eax, [ebp - 0x10b3]
mov byte [ebp - 0x10b4], 0
push 0
push eax
call fcn.004164d0
mov esi, dword [ebp - 0x10d8]
add esp, 0xc
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4055f0
push esi
sub ecx, edx
lea eax, [ebp - 0xb4]
push ecx
push eax
push str._api_setupanay
lea eax, [ebp - 0x10b4]
push str.POST__s_HTTP_1.1_r_nHost:__s__r_nContent_Length:__d__r_nConnection:close_r_nAccept_Language:_zh_cn_r_nCache_Conbtrol:no_cache_r_nContent_Type:application_x_www_form_urlencoded_r_n_r_n_s_r_n_r_n
push eax
call fcn.00405b40
push esi
call fcn.00412a22
lea ecx, [ebp - 0x10b4]
add esp, 0x1c
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405630
mov esi, dword [ebp - 0x10d0]
lea eax, [ebp - 0x10b4]
push 0
sub ecx, edx
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4056ce
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
cmp ebx, 5
jg 0x4056ec
push 0x1000
lea eax, [ebp - 0x10b4]
push 0
push eax
call fcn.004164d0
add esp, 0xc
lea eax, [ebp - 0x10b4]
push 0
push 0x1000
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
push esi
test eax, eax
jg 0x405702
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x12c
inc ebx
call edi
lea eax, [ebp - 0x10b4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4056b0
push 0
sub eax, edx
push eax
lea eax, [ebp - 0x10b4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x405660
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x12c
inc ebx
call esi
cmp ebx, 0xa
jle 0x405431
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412a27
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x10b4]
push eax
call fcn.00405730
test eax, eax
jne 0x4056d5
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412a27
mov esp, ebp
pop ebp
ret 4