joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002af50
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1012a048
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1019f010]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x1019eb98]
mov edx, dword [eax + 0xc]
mov ecx, 0x1019eb98
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov di, word [ebp + 0xc]
mov dword [esp + 0x30], 0
mov edx, dword [esi + 0x598]
test eax, eax
jne 0x1002afb5
movzx eax, di
call fcn.10028aa0
push 0x10183a10
push eax
movzx eax, di
push eax
mov ecx, edx
shr ecx, 8
movzx eax, cl
movzx ecx, dl
push eax
push ecx
push str.HTTP__d._d__d__s_s
lea edi, [esp + 0x28]
call fcn.10027920
mov eax, dword [esi]
mov ebx, dword [ebp + 8]
add esp, 0x18
mov edx, edi
push edx
mov edx, dword [eax + 0x10]
push 0
push ebx
mov ecx, esi
call edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x20]
push 0
push eax
push 0
push ecx
xor ecx, ecx
call fcn.10029030
mov edi, dword [esp + 0x2c]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
add esp, 0x1c
mov dword [esp + 0x18], edi
mov edx, dword [edi - 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
push 2
mov dword [esp + 0x18], edx
mov edx, dword [esi + 4]
mov edx, dword [edx + 8]
lea ecx, [esi + 4]
lea eax, [esp + 0x18]
push eax
push ebx
call edx
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002b05f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1002b980
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xc]
push ebx
push edi
xor edi, edi
mov ebx, 1
cmp eax, edi
je 0x1002b9b3
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1002b9b3
xor eax, eax
cmp dword [ebp - 4], 0x103
sete al
cmp eax, edi
jne 0x1002ba1d
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x1002b9d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x10], edx
lea edx, [esi + 8]
push edx
push edi
push esi
push 0x1002beb0
push edi
push edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
call fcn.101124d4
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x1002ba32
push 0x65f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x139f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1002bd40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012a018
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
mov eax, dword [0x1019f010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.10017590
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ebx, [edi + 0x30]
mov dword [ebp - 4], 0
call fcn.10026a20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002bdac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi + 0x34]
je 0x1002bdd3
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002c820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10128472
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1019f010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0xa]
mov dword [esi + 8], eax
lea eax, [esi + 0x30]
push edx
xor edi, edi
push eax
mov dword [esi], 1
mov dword [esi + 4], edi
mov dword [esi + 0xc], ecx
call fcn.100157f0
lea ecx, [ebp + 0xa]
lea eax, [esi + 0x5c]
push ecx
push eax
mov dword [ebp - 4], edi
call fcn.100157f0
mov byte [ebp - 4], 1
mov edx, dword [0x1019eb98]
mov eax, dword [edx + 0xc]
mov ecx, 0x1019eb98
call eax
add eax, 0x10
mov dword [esi + 0x88], eax
mov byte [ebp - 4], 2
mov edx, dword [0x1019eb98]
mov eax, dword [edx + 0xc]
mov ecx, 0x1019eb98
call eax
add eax, 0x10
mov dword [esi + 0x8c], eax
mov byte [ebp - 4], 3
mov eax, dword [esi]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0xffff0001
add ecx, 0xffff
mov word [esi + 0x90], cx
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
cmp eax, edi
je 0x1002c91b
push 0x20
call fcn.1010ed79
add esp, 4
cmp eax, edi
je 0x1002c942
push fcn.10017690
push 0x100176d0
push 7
lea edi, [eax + 4]
push 4
push edi
mov dword [eax], 7
call fcn.1011083e
jmp 0x1002c942
push 4
call fcn.1010ee2e
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x1002c942
mov edx, dword [0x1019eb98]
mov eax, dword [edx + 0xc]
mov ecx, 0x1019eb98
call eax
add eax, 0x10
mov dword [ebx], eax
mov edi, ebx
mov eax, esi
mov dword [esi + 0x94], edi
call fcn.1002c970
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1002d520
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
push 0
push eax
push ecx
push 2
push 0
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 8], eax
test eax, eax
jne 0x1002d55a
call fcn.1001fe70
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
push 0
push ecx
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x10]
push edx
mov dword [esi + 4], ecx
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
push ecx
push 4
push eax
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
test eax, eax
jne 0x1002d5ae
call fcn.1001fe70
mov edx, dword [esi + 8]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1002e190
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebx + 4]
push edi
mov edi, eax
test esi, esi
je 0x1002e1a8
call fcn.1002ef20
jmp 0x1002e1c1
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x1002e218
call fcn.1001fe70
test eax, eax
js 0x1002e22a
mov ecx, dword [ebx]
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1002e1f0
call fcn.1001fe70
test eax, eax
js 0x1002e22a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
test edx, edx
jne 0x1002e1fb
test eax, eax
je 0x1002e21c
xor ecx, ecx
cmp edx, ecx
ja 0x1002e21c
jb 0x1002e208
cmp eax, dword [ebp + 0xc]
ja 0x1002e21c
mov eax, dword [ebx]
mov esi, dword [ebp + 8]
call fcn.1002d520
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebx], eax
jmp 0x1002e1cf
or eax, edx
mov eax, 0x800703ee
je 0x1002e22a
mov eax, 0x800700df
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx + 0x74]
push esi
xor esi, esi
push esi
push eax
mov dword [eax + 0x34], edx
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
mov edx, dword [eax + 0x34]
push 1
lea ecx, [eax + 0x18]
push ecx
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [eax + 0x14], 4
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x1002e3b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x1002e3c2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor edx, edx
lea ecx, [eax + 0x34]
xor esi, esi
cmp word [ecx], 2
push esi
setne dl
push eax
mov dword [eax + 0x14], 3
mov dword [ebp - 4], esi
add eax, 0x18
dec edx
and edx, 0xfffffff4
add edx, 0x1c
mov dword [eax + 0x38], edx
mov edx, dword [eax + 0x38]
push edx
mov edx, dword [ebp + 8]
push ecx
push esi
lea ecx, [ebp - 4]
push ecx
mov dword [eax + 0x10], 2
push 1
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x1002e427
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x1002e436
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002e440
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
lea edx, [eax + 0x34]
xor ecx, ecx
push esi
xor ebx, ebx
cmp word [edx], 2
push edi
setne cl
mov dword [eax + 0x14], 4
lea esi, [eax + 0x50]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
lea edi, [ecx - 1]
xor ecx, ecx
push ecx
push eax
and edi, 0xfffffff4
push esi
add edi, 0x1c
mov dword [esi], edi
mov dword [eax + 0x36], ecx
mov dword [eax + 0x3a], ecx
mov dword [eax + 0x3e], ecx
push edx
mov dword [eax + 0x42], ecx
mov dword [eax + 0x46], ecx
mov dword [eax + 0x4a], ecx
mov word [eax + 0x4e], cx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 1
add eax, 0x18
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x1002e4b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002fbf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
push edi
test esi, esi
je 0x1002fcb0
push esi
xor ebx, ebx
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1002fc20
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x1002fc2f
mov ebx, esi
jmp 0x1002fc31
mov edi, esi
push edi
mov edi, dword [ebp + 0xc]
push ebx
push edi
call fcn.1003e510
add esp, 0xc
test eax, eax
jne 0x1002fc54
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
push edi
call fcn.1003e500
add esp, 4
test eax, eax
jne 0x1002fc75
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
cmp dword [eax], 1
jne 0x1002fcb3
test byte [ebp + 0x10], 1
je 0x1002fcb3
push esi
call fcn.1003ff90
add esp, 4
test eax, eax
jne 0x1002fca4
push 0x10d2
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
push eax
push edi
call fcn.1003fee0
add esp, 8
jmp 0x1002fcb3
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1002fd68
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push esi
call ebx
test eax, eax
je 0x1002fc0f
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x1002fc0f
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x1002fc0f
push esi
call ebx
test eax, eax
je 0x1002fc0f
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x1002fc0f
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x1002fd14
push eax
push edi
call fcn.1003dd10
add esp, 8
push 1
push esi
push edi
call fcn.10041830
add esp, 0xc
test eax, eax
jne 0x1002fd35
push 0x56
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x14]
push ecx
push edi
call fcn.10042260
add esp, 8
test eax, eax
je 0x1002fc43
push edi
call fcn.1003cdc0
add esp, 4
test eax, eax
jne 0x1002fd68
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x18
Function at 0x10031320
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
jbe 0x10031469
push esi
push edi
push 0
push 0
push ebx
push 0x10032100
push 0
push 0
call fcn.101124d4
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x1003144c
mov eax, dword [ebx + 0x74]
lea esi, [ebx + 0x70]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x100313d6
mov edx, dword [esi]
cmp edx, ecx
ja 0x100313d6
mov edi, ecx
mov ecx, dword [esi + 8]
sub edi, edx
sar edi, 2
cmp eax, ecx
jne 0x100313c6
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x10031442
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x100313c6
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x100313b5
xor ecx, ecx
jmp 0x100313b7
add ecx, edx
cmp ecx, eax
jae 0x100313bd
mov ecx, eax
push ecx
call fcn.10033af0
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x10031422
mov edx, dword [esi]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
jmp 0x10031422
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x10031419
mov edx, dword [esi]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x10031442
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x10031419
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x10031408
xor ecx, ecx
jmp 0x1003140a
add ecx, edx
cmp ecx, eax
jae 0x10031410
mov ecx, eax
push ecx
call fcn.10033af0
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x10031422
mov dword [eax], edi
mov eax, dword [ebp - 8]
add dword [esi + 4], 4
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebx + 0xc]
jb 0x10031344
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.vector_T__too_long
call fcn.1010eda6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [ebx + 0x50], 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov dword [ebp - 0xc], 0
pop esi
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, dword [ecx + 0x178]
test edi, edi
je 0x10031bad
mov eax, dword [ebp + 8]
dec eax
xor edx, edx
div dword [ecx + 0x174]
mov ecx, dword [ecx + 0x1b8]
push esi
pop esi
movzx ecx, byte [ecx + edx]
cmp eax, ecx
jne 0x10031bad
mov edx, dword [edi + edx*4]
mov eax, 0xf
cmp eax, edx
sbb eax, eax
neg eax
cmp eax, 1
jne 0x10031bad
test edx, edx
je 0x10031bad
cmp dword [edx + 0x30], 0
je 0x10031bad
mov edx, dword [edx + 0x74]
xor ecx, ecx
lea eax, [ebp - 4]
mov word [ebp - 0x20], cx
push eax
lea ecx, [ebp - 0x20]
push ecx
push edx
mov dword [ebp - 4], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10031bad
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edx
push eax
lea ecx, [ebp + 8]
lea eax, [ebp - 0x20]
call fcn.1002de90
add esp, 8
pop edi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10032380
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10128418
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x1019f010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x74]
push 4
lea ecx, [ebp - 0x10]
push ecx
push 0x7010
push 0xffff
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
lea edi, [ebx + 0x6c]
mov dword [ebx + 4], 1
mov dword [ebp - 0x14], edi
call fcn.10033c60
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esi]
mov eax, dword [edx + 0xe0]
push ebx
mov ecx, esi
call eax
or ecx, 0xffffffff
mov dword [ebp - 4], ecx
add dword [edi + 4], ecx
jne 0x10032409
mov dword [edi], 0
cmp eax, 2
je 0x1003242b
mov ecx, dword [ebp + 8]
push ecx
push esi
call fcn.100326a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push esi
mov eax, ebx
call fcn.10031710
mov ebx, dword [ebp + 8]
push ebx
lea edi, [esi + 0xac]
call fcn.1002bed0
test eax, eax
jne 0x1003245a
mov edx, dword [ebx + 0x24]
push ebx
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10032580
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor ecx, ecx
push edi
mov dword [ebp - 8], ecx
lea ecx, [ecx]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
xor esi, esi
cmp eax, esi
je 0x100325a0
cmp eax, 1
jne 0x10032618
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
cmp dword [ebx + 0x18], eax
lea edi, [ebx + 0x18]
jne 0x10032618
mov edx, dword [ebx + 0x34]
push esi
push esi
mov dword [edi], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 1
push edi
push edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x100325dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
jmp 0x100325ec
mov eax, dword [ebp - 4]
test eax, eax
je 0x100325e7
mov dword [edi], eax
jmp 0x100325ec
mov esi, 0x2775
mov dword [ebp - 4], esi
test esi, esi
jne 0x10032629
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push ebx
push eax
call fcn.10030d70
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc eax
mov dword [ebp - 8], eax
cmp eax, 0x1e
jl 0x10032590
test ecx, ecx
jne 0x1003262c
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
cmp ecx, 0x2733
je 0x1003261c
cmp ecx, 0x2775
jne 0x10032648
mov edx, dword [ebp + 8]
push 0
push 0
push 1
push edx
jmp 0x10032661
cmp ecx, 0x2736
je 0x10032669
cmp ecx, 0x3e3
je 0x10032669
mov eax, dword [ebp + 8]
push ecx
push 4
push 2
push eax
mov eax, dword [ebp + 0xc]
call fcn.10031710
mov edi, dword [ebp + 8]
push ebx
add edi, 0xac
call fcn.1002bed0
test eax, eax
jne 0x1003268a
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx]
push ebx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10032910
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1019f010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [esi + 0x54]
mov dword [ebp - 0x20], eax
movzx eax, word [eax]
cmp eax, 2
je 0x10032964
cmp eax, 0x17
je 0x10032964
mov dword [ebp - 0x1c], 0
movzx eax, word [ebx]
push 6
push 1
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x10032984
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10032a26
mov dword [ebp - 0x1c], 1
cmp ax, word [ebx]
je 0x1003293d
mov eax, 0x273f
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010ee1f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x30]
push 4
lea edx, [ebp - 0x18]
push edx
push 4
push 0xffff
push eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x100329b2
cmp dword [esi + 0x2c], 0
jbe 0x100329b2
mov edx, 1
jmp 0x100329b4
xor edx, edx
mov eax, dword [edi]
push 0
push 0
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x18]
push edx
push 0
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x2c]
push 0
push 0xc
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x98000004
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x100329ed
call esi
cmp dword [ebp - 0x1c], 0
je 0x100329f8
mov eax, dword [ebp - 0x20]
jmp 0x10032a04
movzx edx, word [ebx]
push edx
call fcn.10030bc0
add esp, 4
xor ecx, ecx
cmp word [eax], 2
setne cl
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10032a29
call esi
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop esi
call fcn.1010ee1f
mov esp, ebp
pop ebp
ret
Function at 0x10032f40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0xc], ebx
test ecx, ecx
jle 0x100330b2
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0xac]
push edi
mov dword [ebp - 0x14], eax
jmp 0x10032f6c
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp ebx, eax
jge 0x10032f78
mov dword [ebp - 8], ebx
jmp 0x10032f7d
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
call fcn.10030450
test eax, eax
je 0x10032fa3
mov esi, dword [ebp - 4]
mov dword [esi + 0x18], 0
jmp 0x10032fe3
mov ebx, dword [esi + 0xa0]
mov eax, dword [esi + 0x90]
lea edi, [esi + 0x90]
lea edx, [ebx + 0x38]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x38
mov esi, eax
push 0
push esi
call fcn.10113080
lea ecx, [esi + 0x38]
mov dword [esi + 0x20], ebx
mov ebx, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], ecx
mov dword [ebp - 4], esi
test ebx, ebx
jns 0x10032ff0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 0x10]
push ebx
push edx
lea edi, [esi + 0x18]
push eax
mov dword [edi], ecx
call fcn.10112b90
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x74]
add esp, 0xc
xor eax, eax
push eax
push esi
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 1
mov dword [esi + 0x34], edx
mov ecx, dword [esi + 0x34]
push edi
mov dword [esi + 0x14], 3
lea ebx, [esi + 0x28]
push ecx
mov dword [ebx], 2
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1003304b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1003304e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
cmp eax, 0x3e5
jne 0x1003305f
mov dword [ebp - 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
je 0x10033070
cmp dword [ebp - 4], 0
je 0x10033097
mov edi, dword [ebp + 8]
push esi
add edi, 0xac
call fcn.1002bed0
test eax, eax
jne 0x10033091
mov edx, dword [esi + 0x24]
push esi
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
jne 0x100330ad
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add dword [ebp + 0x10], ecx
sub eax, ecx
mov dword [ebp - 0xc], eax
test eax, eax
jg 0x10032f66
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc