joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4861c0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 1
cmp dword [esi + 0x10], 0xffffffff
je 0x4861d9
call fcn.00486220
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
je 0x486214
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x486214
mov ecx, esi
call fcn.00487050
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4865a0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x10], 0xffffffff
je 0x486631
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x14], xmm0
push edi
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4865f5
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x486631
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x486631
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x486631
mov ecx, esi
call fcn.00487050
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0052b789
mov esp, ebp
pop ebp
ret 8
Function at 0x486650
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0xffffffff
mov eax, dword [esi + 0xc]
je 0x48684b
cmp eax, 0xffffffff
je 0x486835
mov ebx, dword [sym.imp.WS2_32.dll_select]
xor eax, eax
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov dword [ebp - 0x108], eax
xor ecx, ecx
test eax, eax
je 0x4866ae
mov edx, dword [esi + 8]
nop dword [eax + eax]
cmp dword [ebp + ecx*4 - 0x104], edx
je 0x4866ae
inc ecx
cmp ecx, eax
jb 0x4866a0
cmp ecx, eax
jne 0x4866ce
cmp eax, 0x40
jae 0x4866ce
mov eax, dword [esi + 8]
mov dword [ebp + ecx*4 - 0x104], eax
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
xor ecx, ecx
test eax, eax
je 0x4866e5
mov edx, dword [esi + 0xc]
cmp dword [ebp + ecx*4 - 0x104], edx
je 0x4866e5
inc ecx
cmp ecx, eax
jb 0x4866d7
cmp ecx, eax
jne 0x4866fe
cmp eax, 0x40
jae 0x4866fe
mov eax, dword [esi + 0xc]
mov dword [ebp + ecx*4 - 0x104], eax
inc dword [ebp - 0x108]
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 2
call ebx
cmp eax, 0xffffffff
je 0x486854
lea eax, [ebp - 0x108]
push eax
push dword [esi + 8]
call edi
test eax, eax
jne 0x4867cb
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x486747
mov eax, dword [ebp - 0x108]
jmp 0x486692
mov edx, dword [ebp - 0x108]
xor ecx, ecx
test edx, edx
je 0x4867b3
mov eax, dword [esi + 0xc]
cmp dword [ebp + ecx*4 - 0x104], eax
je 0x48677c
inc ecx
cmp ecx, edx
jb 0x486756
mov ecx, esi
call fcn.00486930
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
lea eax, [edx - 1]
cmp ecx, eax
jae 0x4867ac
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + ecx*4 - 0x100]
mov dword [ebp + ecx*4 - 0x104], eax
inc ecx
mov edx, dword [ebp - 0x108]
lea eax, [edx - 1]
cmp ecx, eax
jb 0x486790
dec edx
mov dword [ebp - 0x108], edx
mov ecx, esi
call fcn.00486930
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x108]
xor ecx, ecx
test edx, edx
je 0x486833
mov eax, dword [esi + 8]
nop word [eax + eax]
cmp dword [ebp + ecx*4 - 0x104], eax
je 0x486806
inc ecx
cmp ecx, edx
jb 0x4867e0
mov ecx, esi
call fcn.00486870
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
lea eax, [edx - 1]
cmp ecx, eax
jae 0x48682c
nop dword [eax]
mov eax, dword [ebp + ecx*4 - 0x100]
mov dword [ebp + ecx*4 - 0x104], eax
inc ecx
mov edx, dword [ebp - 0x108]
lea eax, [edx - 1]
cmp ecx, eax
jb 0x486810
dec edx
mov dword [ebp - 0x108], edx
mov ecx, esi
call fcn.00486870
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
cmp eax, 0xffffffff
jne 0x4867b5
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x486870
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x48691a
lea ecx, [ebp - 4]
mov dword [ebp - 4], 4
push ecx
lea ecx, [ebp - 8]
push ecx
push 0x1001
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
push dword [ebp - 4]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x8000
push eax
push 0x1001
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
je 0x48691a
push 0x23ac
call fcn.0052b79c
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, eax
call fcn.00485a20
mov esi, eax
test esi, esi
je 0x48690a
mov ecx, esi
mov dword [esi + 8], edi
call fcn.00486eb0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x486930
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x4869da
lea ecx, [ebp - 4]
mov dword [ebp - 4], 4
push ecx
lea ecx, [ebp - 8]
push ecx
push 0x1001
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
push dword [ebp - 4]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x8000
push eax
push 0x1001
push 0xffff
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
je 0x4869da
push 0x23ac
call fcn.0052b79c
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, eax
call fcn.00485a20
mov esi, eax
test esi, esi
je 0x4869ca
mov ecx, esi
mov dword [esi + 0xc], edi
call fcn.00486f80
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4869f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5e44e8]
sub esp, 0xc
cmp dword [eax + 0xe64], 0
push esi
mov esi, ecx
je 0x486a11
call fcn.00486650
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
jne 0x486a22
xor esi, esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], 4
push ecx
lea ecx, [ebp - 8]
push ecx
push 0x1001
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
push dword [ebp - 4]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x8000
push eax
push 0x1001
push 0xffff
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
je 0x486ab7
push 0x23ac
call fcn.0052b79c
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, eax
call fcn.00485a20
mov esi, eax
test esi, esi
je 0x486aa7
mov ecx, esi
mov dword [esi + 0x10], edi
call fcn.00487050
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor esi, esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x486c10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5e44e8]
push esi
mov esi, ecx
cmp dword [eax + 0xe64], 0
je 0x486d01
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x486c5b
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x10
push ecx
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x3c]
jmp 0x486d1c
cmp dword [esi + 0xc], 0xffffffff
je 0x486ceb
push 0x41
push 0
push 0x5e1db0
mov dword [ebp - 0x44], 0x1c
call fcn.0052d9b0
add esp, 0xc
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
push eax
lea eax, [ebp - 0x30]
movq qword [ebp - 0x20], xmm0
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
movups xmm0, xmmword [ebp - 0x28]
push 0x41
push 0x5e1db0
lea eax, [ebp - 0x14]
push eax
push 0x17
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.WS2_32.dll_inet_ntop]
mov ecx, 0x5e1db0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x486cc4
sub ecx, edx
mov eax, str._unavailable_
mov ecx, 0x5e1db0
cmove ecx, eax
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
mov ecx, str._unavailable_
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
mov ecx, str._unavailable_
pop esi
cmovne ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x486d40
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x486d69
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x486d67
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x486d67
mov eax, dword [eax]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x486d70
Capabilities:
Convert ip address from string
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x20], 4
mov edi, ecx
movlpd qword [esp + 0x28], xmm0
push 0
push edi
mov esi, edx
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x486ded
cmp dword [eax + 4], 0x17
jne 0x486ded
push esi
push edi
push 0x17
mov bl, 1
call dword [sym.imp.WS2_32.dll_inet_pton]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
push 0
push edi
movlpd qword [esp + 0x38], xmm0
xor bl, bl
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x486e69
mov ecx, edx
test ecx, ecx
je 0x486e69
nop
cmp dword [ecx + 4], 0x17
jne 0x486e62
mov eax, dword [ecx + 0x18]
mov bl, 1
movups xmm0, xmmword [eax + 8]
movups xmmword [esi], xmm0
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
jne 0x486e50
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x486e80
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x486ea9
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x486ea7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x486ea7
mov eax, dword [eax]
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x486f80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
mov ebx, ecx
or edi, 0xffffffff
push 1
push 6
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
test eax, eax
push 4
lea eax, [ebp - 0x20]
cmovne edi, ecx
push eax
push 8
push 0xffff
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x486fe4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 0x98000004
push dword [ebx + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0x2710
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 8], 0x3e8
call dword [sym.imp.WS2_32.dll_WSAIoctl]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
pop ebx
call fcn.0052b789
mov esp, ebp
pop ebp
ret

Function at 0x487120
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x604a2c], 2
push esi
mov esi, ecx
jb 0x487179
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x1006
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x487179
push 4
lea eax, [ebp + 8]
push eax
push 0x1005
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x487179
or eax, 0xffffffff
pop esi
pop ebp
ret 4
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x487180
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x604a2c], 2
push esi
mov esi, ecx
jb 0x4871d9
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x1006
push 0xffff
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4871d9
push 4
lea eax, [ebp + 8]
push eax
push 0x1005
push 0xffff
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4871d9
or eax, 0xffffffff
pop esi
pop ebp
ret 4
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x4871e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5e44e8]
push esi
push edi
mov esi, ecx
cmp dword [eax + 0xe64], 0
je 0x48721d
cmp dword [esi + 8], 0xffffffff
mov edi, dword [ebp + 8]
je 0x487204
push edi
call fcn.00487120
cmp dword [esi + 0xc], 0xffffffff
je 0x487212
push edi
mov ecx, esi
call fcn.00487180
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
cmp byte [0x604a2c], 2
jae 0x48722e
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x1006
push 0xffff
push dword [esi + 0x10]
call edi
cmp eax, 0xffffffff
je 0x487226
push 4
lea eax, [ebp + 8]
push eax
push 0x1005
push 0xffff
push dword [esi + 0x10]
call edi
inc eax
neg eax
pop edi
sbb eax, eax
pop esi
pop ebp
ret 4

Function at 0x487560
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, eax
mov edx, dword [esi + 0x23a4]
add eax, edx
cmp eax, dword [esi + 0x23a8]
jb 0x487620
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x23a4]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x23a8]
sub eax, ecx
push eax
lea eax, [esi + 0x7c]
add eax, ecx
push ebx
push eax
call fcn.0052d430
mov ecx, dword [ebp + 0x10]
lea edx, [esi + 0x7c]
add esp, 8
push dword [esi + 0x23a8]
call fcn.00488430
add esp, 8
test al, al
je 0x487642
mov ecx, dword [esi + 0x23a8]
xor edx, edx
mov edi, dword [esi + 0x23a4]
mov eax, ecx
sub eax, edi
mov dword [esi + 0x23a4], 0
sub edi, ecx
add ebx, eax
add edi, dword [ebp + 0xc]
cmp edi, ecx
jb 0x487620
nop
push ecx
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, ebx
call fcn.00488430
add esp, 8
test al, al
je 0x487642
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x23a8]
add ebx, ecx
sub edi, ecx
mov dword [esi + 0x14], eax
cmp edi, ecx
jae 0x4875f0
mov edx, dword [esi + 0x23a4]
push edi
lea ecx, [esi + 0x7c]
add ecx, edx
push ebx
push ecx
call fcn.0052d430
mov eax, dword [ebp + 0xc]
add esp, 0xc
add dword [esi + 0x23a4], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x487650
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, eax
mov edx, dword [esi + 0x23a4]
add eax, edx
cmp eax, dword [esi + 0x23a8]
jb 0x487710
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x23a4]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x23a8]
sub eax, ecx
push eax
lea eax, [esi + 0x7c]
add eax, ecx
push ebx
push eax
call fcn.0052d430
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0x7c]
add esp, 8
push dword [esi + 0x23a8]
call fcn.00488430
add esp, 8
test al, al
je 0x487732
mov ecx, dword [esi + 0x23a8]
xor edx, edx
mov edi, dword [esi + 0x23a4]
mov eax, ecx
sub eax, edi
mov dword [esi + 0x23a4], 0
sub edi, ecx
add ebx, eax
add edi, dword [ebp + 0xc]
cmp edi, ecx
jb 0x487710
nop
push ecx
push ecx
mov ecx, dword [esi + 0x10]
mov edx, ebx
call fcn.00488430
add esp, 8
test al, al
je 0x487732
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x23a8]
add ebx, ecx
sub edi, ecx
mov dword [esi + 0x14], eax
cmp edi, ecx
jae 0x4876e0
mov edx, dword [esi + 0x23a4]
push edi
lea ecx, [esi + 0x7c]
add ecx, edx
push ebx
push ecx
call fcn.0052d430
mov eax, dword [ebp + 0xc]
add esp, 0xc
add dword [esi + 0x23a4], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4881a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5e44e8]
cmp dword [eax + 0xe64], 0
je 0x4881b7
pop ebp
jmp fcn.00487d10
pop ebp
jmp fcn.00487f70

Function at 0x488360
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [sym.imp.WS2_32.dll_recv]
mov esi, 1
nop word [eax + eax]
mov eax, dword [0x5e44e8]
cmp dword [eax + 0xe64], 0
je 0x4883a2
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
jne 0x4883ae
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
jne 0x4883ae
xor eax, eax
jmp 0x4883b5
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
jne 0x4883ae
or eax, eax
jmp 0x4883b5
push 0
push esi
push edi
push eax
call ecx
test eax, eax
jle 0x4883bf
add edi, eax
sub esi, eax
jmp 0x4883ce
je 0x488408
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4883e3
mov ecx, dword [sym.imp.WS2_32.dll_recv]
test esi, esi
jne 0x488380
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.VSocket::ReadExactHTTP_:_HTTP_socket_error:__d_n
push 4
push 0x5d6df8
call fcn.0041d510
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
push str.VSocket::ReadExactHTTP_:_zero_bytes_read3_n
push 4
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x488430
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x5d60c4]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edx
mov ebx, ecx
mov dword [esp + 0x10], 0
cmp dword [ebp + 8], edi
jbe 0x488525
mov dword [esp + 0x18], 1
xor esi, esi
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
push ecx
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 1
push ecx
lea eax, [ebx + 1]
push 0
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, eax
inc esi
mov al, byte [0x5d960f]
test ecx, ecx
jne 0x4884cb
test al, al
jne 0x4884cb
cmp esi, 0x258
jl 0x488478
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
cmp esi, 0x258
jge 0x4884b4
test al, al
jne 0x4884b4
test ecx, ecx
js 0x4884b4
cmp ecx, 1
jg 0x4884b4
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov esi, dword [ebp + 8]
test eax, eax
je 0x48850e
push 0
mov eax, esi
sub eax, edi
push eax
mov eax, dword [esp + 0x1c]
add eax, edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0x10], eax
jmp 0x488512
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4884b4
cmp eax, 0xffffffff
je 0x4884b4
add edi, eax
cmp edi, esi
jb 0x488466
mov ecx, dword [esp + 0x12c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x48ead0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push esi
mov esi, edx
mov dword [ebp - 4], eax
cmp dword [ecx + 0x5c], eax
jne 0x48eae6
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 4
jb 0x48eb90
mov edx, dword [0x5d718c]
push edi
nop word [eax + eax]
movzx edi, byte [esi + 3]
movzx eax, byte [esi + 2]
shl edi, 8
or edi, eax
lea eax, [ebx - 4]
cmp edi, eax
ja 0x48eb8c
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
shl cx, 8
or cx, ax
mov eax, 0x4453
cmp cx, ax
jne 0x48eb75
cmp edx, 0xffffffff
jne 0x48eb55
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x48eb4b
mov edx, 1
mov dword [0x5d718c], edx
jmp 0x48eb59
xor edx, edx
mov dword [0x5d718c], edx
jmp 0x48eb75
test edx, edx
je 0x48eb75
cmp edi, 5
jb 0x48eb75
cmp byte [esi + 8], 0
ja 0x48eb75
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov ecx, 0xfffffffc
add esi, 4
sub ecx, edi
add esi, edi
add ebx, ecx
cmp ebx, 4
jae 0x48eb00
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret