joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016a90
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
movzx eax, word [edi + 0xa0]
test ax, ax
je 0x10016adc
cmp dword [edi + 0x8c], 0x64
jae 0x10016ab9
add eax, eax
movzx eax, ax
mov dword [esp + 0x14], eax
jmp 0x10016ac2
movzx ecx, ax
mov dword [esp + 0x14], ecx
mov eax, ecx
mov edx, 0x96
cmp ax, dx
jae 0x10016ad2
mov dword [esp + 0x14], edx
jmp 0x10016ae4
mov ecx, 0x1f4
cmp ax, cx
jbe 0x10016ae4
mov dword [esp + 0x14], 0x1f4
mov eax, dword [edi + 0x90]
push eax
mov byte [esp + 0x17], 0
call sub.KERNEL32.dll_GetTickCount
push eax
call fcn.10015350
xor ebx, ebx
mov ecx, 0x2af8
sub ecx, eax
add esp, 8
test ecx, ecx
setle bl
dec ebx
and ebx, ecx
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [edi + 0x3c]
mov ebp, dword [edi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
mov esi, dword [edi + 0x3c]
mov eax, dword [edi + 0x28]
test ebp, ebp
je 0x10016b36
cmp ebp, eax
je 0x10016b3b
call fcn.1002927e
cmp dword [esp + 0x20], esi
je 0x10016c4e
test ebp, ebp
jne 0x10016c02
call fcn.1002927e
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x14]
jne 0x10016b62
call fcn.1002927e
mov edx, dword [esp + 0x20]
mov esi, dword [edx + 8]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.10015350
add esp, 8
cmp eax, 0x2710
ja 0x10016c12
movzx ebp, word [esp + 0x14]
mov ecx, ebp
sub ecx, eax
test ecx, ecx
jg 0x10016c0a
movzx eax, word [esi + 0xe]
cmp ax, 6
jae 0x10016c2d
mov edx, dword [esp + 0x18]
mov dword [esi + 8], edx
inc eax
lea edx, [edi + 0x44]
push edx
movzx edx, word [esi + 0xc]
mov word [esi + 0xe], ax
mov ecx, dword [edi + 0x94]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push edx
add esi, 0x10
push esi
mov byte [esp + 0x1f], 1
call eax
cmp ebx, ebp
jbe 0x10016bd1
mov ebx, ebp
mov ebp, dword [esp + 0x1c]
cmp byte [edi + 0x98], 0
je 0x10016c4e
test ebp, ebp
jne 0x10016c28
call fcn.1002927e
xor eax, eax
mov esi, dword [esp + 0x20]
cmp esi, dword [eax + 0x14]
jne 0x10016bf7
call fcn.1002927e
mov edx, dword [esi]
mov dword [esp + 0x20], edx
jmp 0x10016b28
mov eax, dword [ebp]
jmp 0x10016b54
cmp ebx, ecx
jbe 0x10016bd1
mov ebx, ecx
jmp 0x10016bd1
cmp ebx, 0x3e8
jbe 0x10016c1f
mov ebx, 0x3e8
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], ecx
jmp 0x10016bd5
mov eax, dword [ebp]
jmp 0x10016be9
cmp dword [edi + 0x68], 0
je 0x10016c7e
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
mov ecx, dword [edi + 0x94]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
jmp fcn.10014520
cmp byte [esp + 0x13], 0
je 0x10016c5c
mov byte [edi + 0x98], 0
lea esi, [edi + 0x24]
call fcn.10014550
mov ecx, dword [edi + 0x88]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push 0
dec ecx
push ecx
movzx ecx, word [esp + 0x1c]
push esi
push ecx
mov ecx, eax
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1001a150
Capabilities:
Connect socket

Disassembly:
push esi
push edi
mov esi, ecx
call sub.KERNEL32.dll_GetTickCount
mov edi, dword [esp + 0xc]
push 0x10
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0xb8]
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1001a19c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1001a19c
mov edx, dword [esi]
mov dword [esi + 0xbc], eax
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
pop edi
or eax, 0xffffffff
pop esi
ret 4
mov ecx, dword [edi]
mov dword [esi + 0xa8], ecx
mov edx, dword [edi + 4]
mov dword [esi + 0xac], edx
mov eax, dword [edi + 8]
mov dword [esi + 0xb0], eax
mov ecx, dword [edi + 0xc]
pop edi
mov dword [esi + 0xb4], ecx
mov dword [esi + 0xc4], 1
xor eax, eax
pop esi
ret 4

Function at 0x1001a200
Capabilities:
Set socket configuration

Disassembly:
xor eax, eax
cmp dword [esp + 8], eax
push 4
setne al
lea edx, [esp + 0xc]
push edx
push 0xe
push 0
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0xb8]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
ret 8

Function at 0x1001a460
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x100532d0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 8]
mov esi, ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.100153b0
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0xb8]
push 0x10
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push edi
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xbc], eax
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.10028736
add esp, 0x14
ret 0xc

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

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push esi
push edi
push 0
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xb8]
push eax
push ecx
push edx
call ebx
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esi + 0xc8], 0
mov dword [esi + 0xbc], eax
je 0x1001a541
test edi, edi
jle 0x1001a541
mov ecx, dword [esi + 0xb8]
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
call ebx
test eax, eax
jg 0x1001a541
mov edx, dword [esi + 0xcc]
push 0
push 0x20
mov byte [esi + 0xc8], 0
mov eax, dword [edx + 4]
push 0x432
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
Function at 0x1001a550
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x100532d0]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x2c]
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0xb8]
push 0
push ecx
push eax
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xbc], eax
cmp edi, 0xffffffff
je 0x1001a5b1
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.100154c0
cmp byte [esi + 0xc8], 0
je 0x1001a5f8
test edi, edi
jle 0x1001a5f8
mov edx, dword [esi + 0xb8]
push 2
push 1
lea ecx, [esp + 0x17]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1001a5f8
mov eax, dword [esi + 0xcc]
push 0
push 0x20
mov byte [esi + 0xc8], 0
mov ecx, dword [eax + 4]
push 0x432
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10028736
add esp, 0x1c
ret 0xc

Function at 0x1001b510
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 8
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
call edx
mov ebp, dword [esp + 0x18]
mov esi, ebp
sub esi, 2
push 0
neg esi
sbb esi, esi
push 0
push 0
and esi, 0xfffffff5
add esi, 0x11
push esi
push ebp
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [edi + 0xb8], eax
cmp eax, 0xffffffff
jne 0x1001b564
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0xbc], eax
pop edi
pop esi
xor al, al
pop ebp
add esp, 8
ret 4
cmp ebp, 1
jne 0x1001b5c4
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0xffff
mov dword [esp + 0x28], ebp
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
push eax
call ebp
mov eax, dword [edi + 0xb8]
push 4
lea edx, [esp + 0x10]
push edx
push 8
push 0xffff
push eax
mov dword [esp + 0x20], 1
call ebp
mov edx, dword [edi + 0xb8]
push 4
lea ecx, [esp + 0x14]
push ecx
push 1
push 0xffff
push edx
mov dword [esp + 0x24], 1
call ebp
jmp 0x1001b5d6
cmp ebp, 2
jne 0x1001b5d6
push 0x23
mov ecx, edi
call fcn.1001a6d0
test al, al
je 0x1001b559
cmp esi, 0x11
jne 0x1001b61d
xor eax, eax
push eax
push eax
lea ecx, [esp + 0x20]
push ecx
push eax
push eax
push 4
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xb8]
push 0x9800000c
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x1001b61d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
xor al, al
pop ebp
add esp, 8
ret 4
pop edi
pop esi
mov al, 1
pop ebp
add esp, 8
ret 4
Function at 0x1001b630
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push 0xffffffffffffffff
push 0x10041539
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100532d0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x100532d0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], 0
mov eax, dword [ecx + 0xb8]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, esi
mov edi, eax
call fcn.10015500
mov dword [esp + 0x34], 0
mov dword [esp + 0xc], 1
test edi, edi
jl 0x1001b6c0
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.100154c0
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10028736
add esp, 0x2c
ret 4
Function at 0x1001b6f0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x2c
mov eax, dword [0x100532d0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0xb8], 0xffffffff
push edi
jne 0x1001b7b1
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
call edx
push 0
push 0
push 0
push 6
mov ebp, 1
push ebp
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0xb8], eax
cmp eax, 0xffffffff
jne 0x1001b761
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
mov dword [esi + 0xbc], eax
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10028736
add esp, 0x2c
ret 4
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0xffff
push eax
mov dword [esp + 0x2c], ebp
call edi
mov eax, dword [esi + 0xb8]
push 4
lea edx, [esp + 0x14]
push edx
push 8
push 0xffff
push eax
mov dword [esp + 0x24], ebp
call edi
mov edx, dword [esi + 0xb8]
push 4
lea ecx, [esp + 0x18]
push ecx
push ebp
push 0xffff
push edx
mov dword [esp + 0x28], ebp
call edi
push 0x33
mov ecx, esi
call fcn.1001a6d0
test al, al
je 0x1001b87e
mov ecx, ebx
call fcn.10015400
test al, al
jne 0x1001b7fa
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.100153b0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.1001a150
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10028736
add esp, 0x2c
ret 4
push 0x408
call fcn.1001e2d3
add esp, 4
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
mov edi, eax
call fcn.10015c90
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
jb 0x1001b824
mov eax, dword [eax + 4]
jmp 0x1001b827
add eax, 4
mov ecx, dword [esi + 0xcc]
mov ecx, dword [ecx + 4]
push 0x400
lea edx, [edi + 6]
push edx
push eax
push 0x433
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncGetHostByName]
mov dword [edi], eax
cmp dword [esp + 0x34], ebp
jb 0x1001b85b
mov eax, dword [esp + 0x20]
push eax
call fcn.1001e30d
add esp, 4
cmp dword [edi], 0
jne 0x1001b896
push edi
call fcn.1001e30d
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi]
mov dword [esi + 0xbc], eax
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10028736
add esp, 0x2c
ret 4
mov ecx, ebx
call fcn.10015390
mov ecx, dword [esp + 0x38]
mov word [edi + 4], ax
mov dword [esi + 0xd0], edi
pop edi
mov dword [esi + 0xc4], 1
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10028736
add esp, 0x2c
ret 4
Function at 0x1001bcd0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x1004162b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100532d0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x100532d0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
mov esi, ecx
mov edx, dword [esi + 0xb8]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xbc], eax
cmp ebx, 0xffffffff
je 0x1001be08
xor esi, esi
cmp edi, esi
je 0x1001bd4f
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.100154c0
push 0xd4
call fcn.1001e2d3
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], esi
cmp eax, esi
je 0x1001bd71
mov ecx, eax
call fcn.1001bbf0
mov esi, eax
cmp dword [esi + 0xb8], 0xffffffff
mov dword [esp + 0x3c], 0xffffffff
jne 0x1001bdfe
push 0x23
mov ecx, esi
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xc4], 2
call fcn.1001a6d0
test al, al
je 0x1001bdfe
mov edx, dword [esi + 0xb8]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0xffff
mov ebx, 1
push edx
mov dword [esp + 0x2c], ebx
call edi
mov ecx, dword [esi + 0xb8]
push 4
lea eax, [esp + 0x18]
push eax
push 8
push 0xffff
push ecx
mov dword [esp + 0x28], ebx
call edi
mov eax, dword [esi + 0xb8]
push 4
lea edx, [esp + 0x14]
push edx
push ebx
push 0xffff
push eax
mov dword [esp + 0x24], ebx
call edi
mov eax, esi
jmp 0x1001be0a
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10028736
add esp, 0x30
ret 4

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

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
mov dword [eax], 0
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x1001af6b
cmp dword [ecx + 0xb8], 0xffffffff
je 0x1001af6b
mov eax, dword [esp + 0x10]
push esi
movzx esi, ax
shr eax, 0x10
cmp dword [esp + 0xc], 0x113
push edi
mov edi, eax
jne 0x1001af71
mov esi, 0x20
mov edi, 0x274c
mov ecx, dword [ebx + 8]
push edi
push esi
call fcn.1001ae60
pop edi
pop esi
mov al, 1
pop ebx
ret 0x10
cmp esi, 0x20
jne 0x1001af5f
mov eax, dword [ecx + 0xb8]
push 2
push 1
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1001af5f
mov ecx, dword [ebx + 8]
pop edi
pop esi
mov byte [ecx + 0xc8], 1
mov al, 1
pop ebx
ret 0x10
mov edx, dword [esp + 4]
mov eax, edx
sub eax, 0x113
je 0x1001bf05
sub eax, 0x31f
je 0x1001bf05
sub eax, 1
je 0x1001beee
xor al, al
ret 0x10
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
call fcn.1001bb90
ret 0x10
mov dword [esp + 4], edx
jmp 0x1001af20
Function at 0x1001cff0
Capabilities:
Set socket configuration

Disassembly:
xor eax, eax
cmp dword [esp + 8], eax
push 4
setne al
lea edx, [esp + 0xc]
push edx
push 0xe
push 0
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0xac]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
ret 8

Function at 0x1001d090
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0xac]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xb4], eax
test edi, edi
jge 0x1001d0d9
cmp eax, 0x2733
je 0x1001d0d2
cmp eax, 0xb
je 0x1001d0d2
cmp eax, 0x2734
jne 0x1001d0d9
or byte [esi + 0xb0], 2
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x1001d0e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x100532d0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 8]
mov esi, ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.100153b0
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0xac]
push 0x10
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push edi
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xb4], eax
test edi, edi
jge 0x1001d14c
cmp eax, 0x2733
je 0x1001d145
cmp eax, 0xb
je 0x1001d145
cmp eax, 0x2734
jne 0x1001d14c
or byte [esi + 0xb0], 2
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.10028736
add esp, 0x14
ret 0xc

Function at 0x1001d420
Capabilities:
Connect socket

Disassembly:
push 0xffffffffffffffff
push 0x10041818
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100532d0]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov eax, dword [0x100532d0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
mov esi, ecx
cmp dword [esi + 0xac], 0xffffffff
jne 0x1001d474
mov eax, dword [esi]
mov edx, dword [eax + 0x44]
push 1
call edx
test al, al
jne 0x1001d474
or eax, 0xffffffff
jmp 0x1001d521
push edi
lea ecx, [esp + 0x10]
call fcn.10015840
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
call fcn.10015400
test al, al
je 0x1001d4a0
push 1
push 0
lea ecx, [esp + 0x14]
call fcn.10015ce0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x10]
call fcn.100153b0
mov edx, dword [esi + 0xac]
push 0x10
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xb4], eax
test edi, edi
jne 0x1001d4e0
mov dword [esi + 0xb8], 2
jmp 0x1001d504
cmp eax, 0x2733
je 0x1001d4f3
cmp eax, 0xb
je 0x1001d4f3
cmp eax, 0x2734
jne 0x1001d504
or byte [esi + 0xb0], 4
mov dword [esi + 0xb8], 1
or byte [esi + 0xb0], 3
cmp dword [esp + 0x24], 0x10
jb 0x1001d51f
mov eax, dword [esp + 0x10]
push eax
call fcn.1001e30d
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.10028736
add esp, 0x44
ret 4
Function at 0x1001d540
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push edi
call edx
mov edi, dword [esp + 0x18]
xor ebx, ebx
push ebx
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp edi, 2
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xac], eax
sete al
mov byte [esi + 0xb1], al
call edi
mov dword [esi + 0xb4], eax
lea ecx, [esp + 0x18]
cmp byte [esi + 0xb1], bl
je 0x1001d5ca
mov eax, dword [esi + 0xac]
push ebx
push ebx
push ecx
push ebx
push ebx
push 4
lea edx, [esp + 0x24]
push edx
push 0x9800000c
push eax
mov byte [esi + 0xb0], 3
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x1001d621
call edi
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 4
mov edx, dword [esi + 0xac]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push ecx
push 4
push 0xffff
mov ebx, 1
push edx
mov dword [esp + 0x2c], ebx
call edi
mov ecx, dword [esi + 0xac]
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push ecx
mov dword [esp + 0x20], ebx
call edi
mov eax, dword [esi + 0xac]
push 4
lea edx, [esp + 0x14]
push edx
push ebx
push 0xffff
push eax
mov dword [esp + 0x24], ebx
call edi
xor eax, eax
cmp dword [esi + 0xac], 0xffffffff
pop edi
pop esi
setne al
pop ebx
add esp, 8
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x10041539
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100532d0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x100532d0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], 0
mov eax, dword [ecx + 0xac]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, esi
mov edi, eax
call fcn.10015500
mov dword [esp + 0x34], 0
mov dword [esp + 0xc], 1
test edi, edi
jl 0x1001d6d0
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.100154c0
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10028736
add esp, 0x2c
ret 4

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

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push 0
push ebx
mov esi, ecx
mov ecx, dword [esi + 0xac]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jne 0x1001d73b
test ebx, ebx
je 0x1001d73b
pop edi
mov dword [esi + 0xb4], 0x2733
pop esi
or eax, 0xffffffff
pop ebx
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xb4], eax
test edi, edi
jge 0x1001d762
cmp eax, 0x2733
je 0x1001d762
cmp eax, 0xb
je 0x1001d762
cmp eax, 0x2734
je 0x1001d762
xor al, al
jmp 0x1001d764
mov al, 1
cmp byte [esi + 0xb1], 0
jne 0x1001d771
test al, al
je 0x1001d778
or byte [esi + 0xb0], 1
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
Function at 0x1001d780
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x100532d0]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x28]
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 0xac]
push 0
push ecx
push eax
push edx
mov dword [esp + 0x24], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xb4], eax
test edi, edi
jl 0x1001d810
test ebx, ebx
je 0x1001d7e4
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.100154c0
mov al, 1
cmp byte [esi + 0xb1], 0
jne 0x1001d7f3
test al, al
je 0x1001d7fa
or byte [esi + 0xb0], 1
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10028736
add esp, 0x18
ret 0xc
cmp eax, 0x2733
je 0x1001d7e4
cmp eax, 0xb
je 0x1001d7e4
cmp eax, 0x2734
je 0x1001d7e4
xor al, al
jmp 0x1001d7e6

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

Disassembly:
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0xc4], 0
jne 0x1001d982
xor al, al
pop esi
pop ecx
ret
mov ecx, dword [esi + 0xb0]
push 2
push 1
lea eax, [esp + 0xf]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1001d97d
mov edx, dword [esi + 0xc8]
lea eax, [esi + 4]
push edx
push eax
lea ecx, [esi + 0x8c]
mov byte [esi + 0xc4], 0
call fcn.1001acc0
mov al, 1
pop esi
pop ecx
ret

Function at 0x1001da00
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
mov esi, ecx
call fcn.1001d540
test al, al
jne 0x1001da15
pop esi
ret 4
mov edx, dword [esi + 0xac]
push edi
lea ecx, [esp + 0xc]
push ecx
lea edi, [esi - 4]
push 0x8004667e
push edx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [edi + 0xac]
push edi
call fcn.1001c6b0
pop edi
mov eax, dword [0x100554fc]
inc eax
mov dword [0x100554fc], eax
mov dword [esi + 0xbc], eax
test eax, eax
je 0x1001da45
mov al, 1
pop esi
ret 4