joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5c30
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d5dce
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4eb984]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
test byte [0x582b3c], 1
jne 0x4b5c89
or dword [0x582b3c], 1
mov dword [esp + 0x14], 0
mov ecx, 0x57ea18
call fcn.004b3420
push 0x4d6690
call fcn.004c3aa6
add esp, 4
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esp + 0x1c]
push 1
push esi
mov ecx, 0x57ea18
call fcn.004b44a0
mov bl, byte [esp + 0x20]
push 0
test bl, bl
push 0x57ea18
sete al
movzx ecx, al
push ecx
push 0
push 0
push esi
push 0
call fcn.004b3c10
test al, al
jne 0x4b5cf9
mov eax, dword [0x57ea20]
cmp eax, 0xffffffff
je 0x4b5cd9
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x57ea20], 0xffffffff
mov ecx, 0x582a3a
call fcn.00478720
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 8
test bl, bl
je 0x4b5d16
push 0x57ea18
push 0x10000
push 0x4b45c0
call fcn.004c28fb
add esp, 0xc
jmp 0x4b5d3b
mov eax, dword [0x57ea20]
cmp eax, 0xffffffff
je 0x4b5d31
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x57ea20], 0xffffffff
mov ecx, 0x582a3a
call fcn.00478720
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x4b5d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push 0x533438
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b5d99
push 0x40
push 0x2bc
call fcn.004750b0
push eax
push 0x2bd
call fcn.004750b0
push eax
mov eax, dword [0x535584]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
ret
push 0
push 0x533438
mov ecx, esi
call fcn.004b4df0
pop esi
ret
Function at 0x4b5db0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d5dfe
mov eax, dword fs:[0]
push eax
mov eax, 0x3004
call fcn.004c0c80
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x3000], eax
push esi
mov eax, dword [0x4eb984]
xor eax, esp
push eax
lea eax, [esp + 0x300c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x301c]
test esi, esi
je 0x4b5e35
push 0x4df880
push esi
call fcn.00460550
test al, al
jne 0x4b5e0f
call fcn.004b38f0
test al, al
je 0x4b5e35
push 0x30
push 0x65
call fcn.004750b0
push eax
push 0x596
call fcn.004750b0
push eax
mov eax, dword [0x535584]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4b5f9e
cmp byte [0x533431], 0
jne 0x4b5e71
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call fcn.004b3c10
test al, al
jne 0x4b5f9e
push esi
push 0x201
call fcn.004750b0
push eax
call fcn.004ac840
add esp, 8
jmp 0x4b5f9e
push 1
push 0x800
lea ecx, [esp + 0x10]
push ecx
push str.Rar_EX
call fcn.0049eb60
test al, al
je 0x4b5f9e
push 0x800
lea edx, [esp + 0x200c]
push edx
call fcn.0049f5a0
lea eax, [esp + 8]
push eax
call fcn.0049f540
push 1
call fcn.0049aa70
push 0x800
push 0x550d52
mov ecx, 0x541ef0
call fcn.00415140
mov ecx, dword [0x5420fc]
mov dword [0x54dcf0], ecx
push 0x4d7800
mov ecx, 0x551d54
call fcn.0047f330
push 0
push 0
mov ecx, 0x541ef0
mov dword [0x54cce0], 4
call fcn.00419ae0
cmp byte [0x533430], 0
jne 0x4b5f9e
lea edx, [esp + 0x1008]
push edx
push esi
call fcn.00460390
push 0x800
lea eax, [esp + 0x100c]
push eax
mov ecx, eax
push ecx
call fcn.00461910
test byte [0x586c64], 1
jne 0x4b5f66
or dword [0x586c64], 1
mov dword [esp + 0x3014], 0
mov ecx, 0x582b40
call fcn.004b3420
push 0x4d66e0
call fcn.004c3aa6
add esp, 4
mov dword [esp + 0x3014], 0xffffffff
push 0
lea edx, [esp + 0x100c]
push edx
mov ecx, 0x582b40
call fcn.004b44a0
lea eax, [esp + 0x2008]
push eax
call fcn.0049f540
push 0x582b40
push 0x10000
push 0x4b45c0
call fcn.004c28fb
add esp, 0xc
mov ecx, dword [esp + 0x300c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x3000]
xor ecx, esp
call fcn.004c0c62
add esp, 0x3010
ret 4
Function at 0x4b7370
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
push 0x588c88
call fcn.00427c40
mov edi, dword [esp + 0xc]
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x589088], eax
mov dword [0x58908c], edx
mov dword [0x589090], esi
mov cl, byte [edi]
test cl, cl
je 0x4b7400
jmp 0x4b73b0
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x588c88]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x588c88]
mov dword [0x589088], eax
mov dword [0x58908c], edx
mov dword [0x589090], esi
mov cl, byte [edi]
test cl, cl
jne 0x4b73b0
pop edi
pop esi
ret 4
Function at 0x4b7950
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp byte [0x54aa5c], 0
push ebp
mov ebp, dword [esp + 0x10]
je 0x4b79eb
push ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebp
push edi
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x4b79e9
push esi
movsx eax, byte [edi]
mov esi, dword [0x589088]
xor eax, esi
and eax, 0xff
mov ecx, dword [0x589090]
shr esi, 8
xor esi, dword [eax*4 + 0x588c88]
mov edx, ecx
mov eax, esi
mov dword [0x589088], eax
movzx eax, al
add eax, dword [0x58908c]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x58908c], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x588c88]
or edx, 2
mov dword [0x589090], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor byte [edi], cl
inc edi
sub ebx, 1
jne 0x4b7974
pop esi
pop edi
pop ebx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0
push ebp
push edx
push eax
call fcn.0043edf0
pop ebp
ret 0xc
Function at 0x4bb3f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push eax
push 4
lea ecx, [esp + 8]
push 1
push ecx
call fcn.004c4096
add esp, 0x10
cmp eax, 4
je 0x4bb40e
xor eax, eax
pop ecx
ret 4
mov ecx, dword [esp + 8]
lea edx, [esp]
xor eax, eax
sub ecx, edx
lea esp, [esp]
lea edx, [ecx + eax]
mov dl, byte [esp + edx]
cmp dl, byte [esp + eax]
jne 0x4bb431
inc eax
cmp eax, 4
jl 0x4bb420
xor ecx, ecx
cmp eax, 4
sete cl
mov eax, ecx
pop ecx
ret 4
Function at 0x4c09b0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c09dd
test al, 0x10
jne 0x4c09d4
and eax, 0xffffffdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4c09dd
mov eax, 1
pop esi
ret 4
push esi
push 0x4bf
call fcn.004750b0
push eax
mov eax, dword [0x51f844]
push eax
call fcn.004ace90
add esp, 0xc
xor eax, eax
pop esi
ret 4

Function at 0x4c0c62
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4eb984]
jne 0x4c0c6c
repz ret
jmp fcn.004c5d43

Function at 0x4cf17f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004c6c76
and dword [ebp - 4], 0
cmp dword [0x58a2e4], 0
mov ebx, eax
jne 0x4cf230
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4cf2e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4cf2e1
push eax
call fcn.004c6c04
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x58a2e4], eax
call esi
push eax
call fcn.004c6c04
mov dword [esp], 0x4e152c
push edi
mov dword [0x58a2e8], eax
call esi
push eax
call fcn.004c6c04
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x58a2ec], eax
call esi
push eax
call fcn.004c6c04
pop ecx
mov dword [0x58a2f4], eax
test eax, eax
je 0x4cf230
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c6c04
pop ecx
mov dword [0x58a2f0], eax
mov eax, dword [0x58a2f0]
cmp eax, ebx
je 0x4cf288
cmp dword [0x58a2f4], ebx
je 0x4cf288
push eax
call fcn.004c6c7f
push dword [0x58a2f4]
mov esi, eax
call fcn.004c6c7f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4cf288
test edi, edi
je 0x4cf288
call esi
test eax, eax
je 0x4cf27f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4cf27f
test byte [ebp - 0xc], 1
jne 0x4cf288
or dword [ebp + 0x10], 0x200000
jmp 0x4cf2c1
mov eax, dword [0x58a2e8]
cmp eax, ebx
je 0x4cf2c1
push eax
call fcn.004c6c7f
pop ecx
test eax, eax
je 0x4cf2c1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4cf2c1
mov eax, dword [0x58a2ec]
cmp eax, ebx
je 0x4cf2c1
push eax
call fcn.004c6c7f
pop ecx
test eax, eax
je 0x4cf2c1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x58a2e4]
call fcn.004c6c7f
pop ecx
test eax, eax
je 0x4cf2e1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4cf2e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [eax + 0x70], 0
mov dword [eax + 0x4c], ecx
jne 0x10002ab3
mov dword [eax + 0x70], 1
mov dword [eax + 0x54], ecx
mov edx, ecx
sub edx, dword [eax + 0x54]
cmp edx, 0x2710
jge 0x10002ac8
cmp edx, 0xffffd8f0
jge 0x10002acd
mov dword [eax + 0x54], ecx
jmp 0x10002ad1
test edx, edx
js 0x10002aec
mov edx, dword [eax + 0x50]
add dword [eax + 0x54], edx
push esi
push edi
mov edi, ecx
sub edi, dword [eax + 0x54]
pop edi
pop esi
js 0x10002ae7
add edx, ecx
mov dword [eax + 0x54], edx
jmp fcn.100024b0
ret

Function at 0x10002ca0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x100357ec]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi], vtable.CTcpSocket.0
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, vtable.CBuffer.0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
lea ecx, [esi + 0x18]
push ecx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x14], edi
xor ecx, ebp
mov dword [esi + 0x64], 0xffffffff
mov eax, esi
pop edi
call fcn.10012a2e
mov esp, ebp
pop ebp
ret
Function at 0x10003270
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0
cmp ebx, 0x40000
jl 0x100032cd
jmp 0x10003290
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
push 0
push 0x40000
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x100032b1
inc edi
cmp edi, 0xf
jl 0x10003292
cmp edi, 0xf
je 0x100032fe
add dword [ebp - 4], eax
sub ebx, 0x40000
add esi, 0x40000
cmp ebx, 0x40000
jge 0x10003290
test ebx, ebx
jle 0x100032f6
xor edi, edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x100032ee
inc edi
cmp edi, 0xf
jl 0x100032d3
cmp edi, 0xf
je 0x100032fe
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x10003301
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10003510
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x198]
xor ebx, ebx
cmp eax, ebx
jne 0x10003532
mov dword [esi + 0x1b8], 0x598
jmp 0x10003549
cmp eax, 0x598
jbe 0x10003543
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x1b8], eax
push edi
mov dword [esi + 0x64], ebx
call fcn.10003670
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, 1
push 0x1003e6f8
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
mov dword [ebp - 8], ebx
call edi
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x10003588
push 0x1003e6f8
call edi
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
mov ebx, 0x40000
push ecx
mov dword [ebp - 4], ebx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 4]
push edx
push 0x1002
push 0xffff
push eax
mov dword [ebp - 4], ebx
call edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.10003700
test eax, eax
je 0x1000361d
lea eax, [esi + 0x58]
push eax
push 0
push esi
push 0x10003880
push 0
push 0
call fcn.100134a5
add esp, 0x18
mov dword [esi + 0x54], eax
test eax, eax
je 0x1000360f
mov ecx, dword [esi + 0x2c]
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x5c], 8
push 0x65f
jmp 0x1000362b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x5c], 0xb
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, esi
call fcn.10003f70
push edi
call ebx
mov edi, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10003700
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100357ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x11
push 2
xor edi, edi
push 2
mov dword [ebp - 0x18], edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
jne 0x10003742
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012a2e
mov esp, ebp
pop ebp
ret 8
push edi
push edi
lea ecx, [ebp - 0x24]
push ecx
push edi
push edi
push 4
lea edx, [ebp - 0x1c]
push edx
push 0x9800000c
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffffb
push 0xffff
push ecx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push 0xffff
push eax
call edi
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0
push 0
push 0
push 0
push ebx
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.10010c34
mov ecx, dword [ebp - 0x20]
add esp, 4
push 0
push 0
push ecx
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x20]
push edi
mov byte [edi + edx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
push edi
mov ebx, eax
call fcn.10012a23
add esp, 4
test ebx, ebx
je 0x1000372e
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
push 0x30
push edx
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x10003867
mov edx, dword [esi + 0x40]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10003860
cmp eax, 0xffffffff
jne 0x10003857
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10003860
mov dword [ebp - 0x18], 0
jmp 0x10003867
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
xor ecx, ebp
pop ebx
call fcn.10012a2e
mov esp, ebp
pop ebp
ret 8
Function at 0x10003c00
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [eax + 0x14]
push ebx
test eax, eax
jne 0x10003c23
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10003c3c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
xor eax, eax
pop ebx
ret
push edi
lea eax, [esi + 0x19c]
push eax
lea ecx, [esi + 0x1d8]
mov ebx, 1
push ecx
mov dword [esi + 0x60], ebx
mov ecx, esi
mov eax, esi
mov dword [esi + 0x64], ebx
call fcn.10004b10
mov edx, dword [esi + 0x40]
xor edi, edi
push edi
push edi
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10003c85
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x10003c85
xor edi, edi
mov eax, dword [esi + 0x48]
push eax
call fcn.10002c90
add esp, 4
test edi, edi
pop edi
je 0x10003ca0
mov eax, 0x80004005
call fcn.10001280
mov eax, ebx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esp, [esp]
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x40]
push 0
push 0x598
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x10003d82
cmp edi, 0x10
jne 0x10003d08
mov edx, dword [ebx + 0x70]
mov ecx, eax
mov eax, 0x1002fb58
sub edx, eax
cmp ecx, 4
jb 0x10003dba
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x10003d08
sub ecx, 4
add eax, 4
jmp 0x10003cf0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebx + 0x1c0]
mov edx, dword [ebx + 0x1c8]
mov eax, dword [ebx + 0x70]
lea esi, [ebx + 0x1d8]
cmp edi, 0x18
jl 0x10003d36
push ecx
push edi
push eax
mov edi, edx
call fcn.10005090
jmp 0x10003d40
cmp edi, 0xc
jne 0x10003db0
call fcn.10004f40
cmp eax, 2
jne 0x10003cc0
mov edx, dword [ebx + 0x48]
push edx
call fcn.10002c90
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10003d64
mov eax, 0x4c7
mov ecx, 1
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x34], 4
pop edi
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x38], eax
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
cmp edi, 0xffffffff
jne 0x10003cc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10003dd7
cmp eax, 0x2744
je 0x10003cc0
cmp eax, 0x2746
je 0x10003cc0
jmp 0x10003d64
push 0xd
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x10003d49
xor eax, eax
pop edi
mov dword [ebx + 0x30], 1
mov dword [ebx + 0x34], 5
mov dword [ebx + 0x3c], eax
pop esi
mov dword [ebx + 0x38], eax
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
Function at 0x10003df0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push edi
jmp 0x10003e00
mov eax, dword [esi + 0x194]
test eax, eax
jle 0x10003f2a
lea edi, [esi + 0x160]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x17c]
cmp ebx, dword [esi + 0x180]
je 0x10003e3b
mov eax, dword [ebx + 4]
mov dword [esi + 0x17c], eax
mov dword [eax + 8], 0
jmp 0x10003e4d
test ebx, ebx
je 0x10003e4d
xor eax, eax
mov dword [esi + 0x17c], eax
mov dword [esi + 0x180], eax
xor eax, eax
cmp ebx, eax
je 0x10003e5f
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
dec dword [esi + 0x178]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x10003f2a
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
push 0
sub eax, ecx
push eax
push ecx
mov ecx, dword [esi + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jle 0x10003eac
lea eax, [esi + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [esi + 0x194], edi
lea eax, [esi + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10003eb1
cmp edi, 0xffffffff
je 0x10003ed7
push ebx
lea edi, [esi + 0x98]
call fcn.10001480
test eax, eax
jne 0x10003e00
mov edx, dword [ebx]
push ebx
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10003e00
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10003f35
lea edi, [esi + 0x160]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x17c]
xor ecx, ecx
cmp eax, ecx
je 0x10003f0b
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0x17c]
mov dword [ebx + 4], ecx
jmp 0x10003f17
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [esi + 0x180], ebx
inc dword [esi + 0x178]
push edi
mov dword [esi + 0x17c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 1
push ebx
lea edi, [esi + 0x98]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], 3
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
call fcn.10001480
test eax, eax
jne 0x10003f67
mov edx, dword [ebx]
push ebx
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret