Function at 0x10008e30
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports
Send data
Send data on socket
Send http request

Disassembly:
sub esp, 0x164
mov eax, dword [esp + 0x174]
push ebx
push ebp
push esi
push edi
mov ecx, eax
mov edi, 0x10
xor edx, edx
xor bl, bl
mov dword [esp + 0x44], edi
shr ecx, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], edi
jne 0x100093f3
and eax, 0xffff
cmp eax, edi
jg 0x1000971f
je 0x100095a9
mov ebp, dword [esp + 0x180]
dec eax
je 0x10008f1b
dec eax
je 0x100094b0
sub eax, 6
jne 0x10009403
lea eax, [esp + 0x38]
lea ecx, [esp + 0x64]
push eax
mov edx, ebp
push ecx
push edx
mov dword [esp + 0x44], edi
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10008ec9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10009403
push esi
call fcn.100098d0
add esp, 4
test eax, eax
jne 0x10008ee8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
mov eax, dword [esp + 0x178]
push 0x23
push 0x401
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x10009403
push esi
call fcn.10009940
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
push ebp
call fcn.10009910
mov esi, eax
add esp, 4
test esi, esi
jne 0x10008f3c
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
mov eax, dword [esi + 0x1c]
lea ebx, [esi + 0x1c]
cmp ebp, eax
jne 0x100090c1
mov cl, byte [esi + 7]
test cl, cl
je 0x100090c1
cmp byte [esi + 0x2c34], 1
je 0x10009403
xor ecx, ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x54]
mov dword [esp + 0x2c], ecx
push edx
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x3c], ecx
lea edi, [esi + 0x2a]
push ecx
mov ecx, dword [ebx]
push 0x27f6
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x10009034
mov cx, word [esp + 0x56]
cmp cx, word [esi + 0xa]
jne 0x10009058
movsx eax, byte [esi + 0x2d]
lea ebp, [esi + 0x2c28]
lea edx, [esp + 0x74]
push ebp
push edx
push eax
push edi
call fcn.100089a0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1000909d
mov word [esp + 0x28], 2
mov cx, word [ebp]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov al, byte [esi + 0x2d]
cmp al, 3
jne 0x10008ffe
lea edx, [esp + 0x74]
push edx
call fcn.10008780
add esp, 4
jmp 0x10009002
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], eax
push 0x10
sub edx, edi
push ecx
mov ecx, dword [ebx]
lea eax, [edi + esi + 0x2a]
push edx
push eax
push ecx
call fcn.10008de0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10009403
mov edx, dword [esi + 0x18]
push 0x20
push edx
mov eax, dword [esp + 0x180]
push 0x401
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
lea eax, [esi + 0x20]
xor ecx, ecx
mov edx, eax
push 0x10
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov word [edx + 8], cx
mov byte [eax + 3], 1
mov ecx, dword [esi + 0xc]
mov dword [eax + 4], ecx
mov dx, word [esi + 0xa]
mov word [eax + 8], dx
mov edx, dword [esp + 0x14]
lea ecx, [esi + 8]
add edx, 0xa
push ecx
push edx
push eax
mov eax, dword [ebx]
push eax
call fcn.10008de0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10009403
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x178]
push 0x20
push ecx
push 0x401
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
cmp byte [esi], 0
je 0x100090c9
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x2c2c]
lea ebp, [esi + 0x2c2c]
test ecx, ecx
jle 0x100090eb
mov byte [esi + 0x2c34], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
push 0
lea ecx, [esp + 0x40]
push 0
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x30]
push 1
lea edi, [esi + 0x20]
push ecx
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], 0x2800
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x10009131
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10009403
jmp 0x100093f3
mov eax, dword [esp + 0x10]
mov dword [ebp], eax
mov ecx, dword [esp + 0x10]
mov byte [esi + ecx + 0x20], 0
mov al, byte [esi]
test al, al
je 0x100094a7
mov al, byte [esi + 2]
test al, al
jne 0x100094a7
mov al, byte [esi + 1]
cmp al, 3
jne 0x100092f8
mov cl, byte [esi + 6]
test cl, cl
je 0x100092d9
lea edi, [esi + 0x2c28]
lea edx, [esp + 0x74]
push edi
push edx
push esi
call fcn.10008bb0
add esp, 0xc
cmp eax, 1
jne 0x1000920c
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x100091cf
mov eax, dword [esp + 0x178]
lea ecx, [esi + 0x2828]
push 0x400
lea edx, [esp + 0x78]
push ecx
push edx
push 0x402
push eax
call dword [sym.imp.WS2_32.dll_WSAAsyncGetHostByName]
mov dword [esi + 0x2824], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
mov cx, word [edi]
mov eax, dword [esp + 0x178]
lea edx, [esp + 0x74]
push ecx
push edx
push eax
push ebx
call fcn.100087a0
add esp, 0x10
test al, al
jne 0x10009403
mov ecx, dword [esp + 0x180]
push ecx
call fcn.10009940
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
cmp eax, 3
jne 0x10009034
mov dx, word [edi]
lea eax, [esp + 0x38]
mov word [esi + 0x2c2a], dx
mov edx, dword [esi + 0x18]
lea ecx, [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getpeername]
mov ax, word [esi + 0x2c2a]
push eax
call dword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [esi + 0xa], ax
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x18], ecx
push ebx
push edx
mov dword [esp + 0x24], ecx
call fcn.10008d20
add esp, 8
test eax, eax
jne 0x10009269
mov byte [esp + 0x15], 1
mov byte [esp + 0x14], 5
mov byte [esp + 0x17], 1
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x18]
push 0xa
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x178]
mov ebp, dword [sym.imp.USER32.dll_PostMessageA]
cmp eax, 0xffffffff
jne 0x100092a6
mov edx, dword [esi + 0x18]
push 0x20
push edx
push 0x401
push edi
call ebp
mov eax, dword [ebx]
push 0x21
push 0x401
push edi
push eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x100092ca
mov ecx, dword [esi + 0x18]
push 0x20
push ecx
push 0x401
push edi
call ebp
mov byte [esi + 7], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
cmp al, 3
jne 0x100092f8
mov al, byte [esi + 6]
test al, al
jne 0x100092f8
push esi
call fcn.10008840
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
push esi
call fcn.100084b0
add esp, 4
test eax, eax
jne 0x1000932b
mov al, byte [esi + 1]
test al, al
jne 0x1000944c
mov ecx, dword [esp + 0x180]
push ecx
call fcn.10009940
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
cmp eax, 4
je 0x1000940e
cmp eax, 5
je 0x1000940e
cmp eax, 8
jne 0x1000936a
mov ecx, dword [ebp]
lea edx, [esi + 0x2c28]
lea eax, [esp + 0x74]
push edx
sub ecx, 0xf
push eax
lea edx, [esi + 0x28]
push ecx
push edx
mov byte [esi + 1], 1
call fcn.100085c0
add esp, 0x10
jmp 0x1000944c
cmp eax, 2
jne 0x1000944c
lea edi, [esi + 0x2c28]
lea eax, [esp + 0x74]
push edi
push eax
push esi
mov byte [esi + 6], 1
call fcn.10008bb0
add esp, 0xc
test eax, eax
je 0x10009403
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x100093d5
mov ecx, dword [esp + 0x178]
lea edx, [esi + 0x2828]
push 0x400
lea eax, [esp + 0x78]
push edx
push eax
push 0x402
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncGetHostByName]
mov dword [esi + 0x2824], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
mov dx, word [edi]
mov ecx, dword [esp + 0x178]
lea eax, [esp + 0x74]
push edx
push eax
push ecx
push ebx
call fcn.100087a0
add esp, 0x10
test al, al
jne 0x10009403
mov edx, dword [esp + 0x180]
push edx
call fcn.10009940
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
lea ecx, [esi + 0x2c28]
lea edx, [esp + 0x74]
push ecx
push edx
push eax
push ebp
push edi
mov byte [esi + 1], 1
call fcn.10008670
add esp, 0x14
test eax, eax
jne 0x10009448
mov eax, dword [esp + 0x180]
push eax
call fcn.10009940
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
mov byte [esi + 4], 1
cmp byte [esi + 1], 1
jne 0x100094a7
lea ecx, [esp + 0x74]
mov byte [esi + 3], 0
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x1000949b
mov ecx, dword [esp + 0x178]
lea edx, [esi + 0x2828]
push 0x400
lea eax, [esp + 0x78]
push edx
push eax
push 0x402
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncGetHostByName]
mov dword [esi + 0x2824], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
mov dx, word [esi + 0x2c28]
jmp 0x100093d8
mov ebp, dword [esp + 0x180]
mov bl, 1
push ebp
call fcn.10009910
mov esi, eax
add esp, 4
test esi, esi
jne 0x100094d1
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
mov al, byte [esi]
test bl, bl
je 0x100094e0
test al, al
jne 0x100094e9
mov edi, dword [esi + 0x18]
jmp 0x100094ec
test al, al
je 0x100094e9
mov edi, dword [esi + 0x18]
jmp 0x100094ec
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x2c30]
mov ecx, dword [esi + 0x2c2c]
cmp ecx, eax
jle 0x10009403
mov cl, byte [esi + 4]
test cl, cl
je 0x10009403
mov cl, byte [esi + 3]
test cl, cl
je 0x10009403
lea eax, [eax + esi + 0x20]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0x2c2c]
mov ebx, dword [esi + 0x2c30]
lea eax, [esp + 0x40]
sub ecx, ebx
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x28], ecx
push edx
push eax
lea ecx, [esp + 0x30]
push 1
push ecx
push edi
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x10009629
mov edx, dword [esp + 0x40]
mov ebp, dword [esi + 0x2c30]
mov ecx, dword [esi + 0x2c2c]
add ebp, edx
mov eax, ebp
mov dword [esi + 0x2c30], ebp
cmp ecx, eax
jne 0x10009403
mov al, byte [esi + 0x2c34]
mov dword [esi + 0x2c30], ebx
test al, al
mov dword [esi + 0x2c2c], ebx
je 0x10009403
mov eax, dword [esi + 0x18]
mov byte [esi + 0x2c34], bl
cmp edi, eax
jne 0x100095a1
mov eax, dword [esi + 0x1c]
push 1
push eax
jmp 0x1000903a
mov ebp, dword [esp + 0x180]
push ebp
call fcn.10009910
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x10009403
mov edi, dword [esp + 0x178]
push 0x23
push 0x401
push edi
push ebp
mov byte [esi + 3], 1
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov al, byte [esi + 4]
test al, al
jne 0x10009403
cmp byte [esi + 1], 1
jne 0x1000966d
mov edi, dword [str.HTTP_1.0_200_OK_r_n_r_n]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], edi
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
push ebx
push ebx
lea edx, [esp + 0x48]
push ecx
mov ecx, dword [esi + 0x18]
push edx
lea eax, [esp + 0x30]
push 1
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1000964e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10009403
push ebp
call fcn.10009940
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
mov byte [esi + 4], 1
mov byte [esi + 2], 1
mov dword [esi + 0x2c30], ebx
mov dword [esi + 0x2c2c], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
test al, al
jne 0x10009403
cmp byte [esi + 1], 3
jne 0x100096db
xor edx, edx
push ebx
mov dword [esp + 0x18], edx
mov byte [esp + 0x18], 5
mov dword [esp + 0x1c], edx
mov byte [esp + 0x1b], 1
mov dword [esp + 0x20], edx
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x18]
push 0xa
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100096bc
mov edx, dword [esi + 0x18]
push 0x20
push edx
push 0x401
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esi + 0x2c30], ebx
mov dword [esi + 0x2c2c], ebx
mov byte [esi + 4], 1
mov byte [esi + 2], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
test al, al
jne 0x10009403
cmp byte [esi + 1], 2
jne 0x10009403
xor eax, eax
push ebx
mov dword [esp + 0x4c], eax
mov byte [esp + 0x4d], 0x5a
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x54], al
mov edx, dword [esi + 0x18]
push 8
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100096bc
mov eax, dword [esi + 0x18]
push 0x20
push eax
jmp 0x100096b0
sub eax, 0x20
je 0x100093f3
sub eax, 0x3e3
je 0x10009786
dec eax
jne 0x10009403
mov eax, dword [0x1001cbdc]
cmp eax, edx
je 0x10009403
mov ecx, dword [esp + 0x180]
cmp dword [eax + 0x2824], ecx
je 0x10009767
mov eax, dword [eax + 0x2c38]
cmp eax, edx
jne 0x1000974a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
cmp eax, edx
je 0x10009403
mov ecx, dword [eax + 0x18]
push ecx
call fcn.10009940
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
mov esi, dword [0x1001cbdc]
cmp esi, edx
je 0x10009403
mov eax, dword [esp + 0x180]
cmp dword [esi + 0x2824], eax
je 0x100097b8
mov esi, dword [esi + 0x2c38]
cmp esi, edx
jne 0x1000979b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
cmp esi, edx
je 0x10009403
mov al, byte [esi + 7]
test al, al
je 0x10009876
xor edx, edx
mov dword [esp + 0x28], edx
mov word [esp + 0x28], 2
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov ax, word [esi + 0x2c28]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov ecx, dword [esi + 0x2834]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x2c30]
mov edx, dword [esi + 0x2c2c]
lea ecx, [esp + 0x28]
push edi
sub edx, eax
push ecx
mov ecx, dword [esi + 0x1c]
lea eax, [eax + esi + 0x2a]
push edx
push eax
push ecx
call fcn.10008de0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10009857
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x178]
push 0x20
push edx
push 0x401
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
pop edi
mov dword [esi + 0x2c2c], eax
mov dword [esi + 0x2c30], eax
mov byte [esi + 0x2c34], al
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
mov edx, dword [esi + 0x2834]
mov cx, word [esi + 0x2c28]
push ecx
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [esp + 0x17c]
push eax
lea eax, [esi + 0x1c]
push edx
push eax
call fcn.100087a0
add esp, 0x10
test al, al
jne 0x10009403
mov ecx, dword [esi + 0x18]
push ecx
call fcn.10009940
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret