joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40315f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.0040295d
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00405970
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x4031c0
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.00402ab3
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4031eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x403221
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40320e
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x403211
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
lea ecx, [ebp - 4]
call fcn.00402919
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d9b1
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40d9ec
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40d9d3
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40d9e4
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40d9ee
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40d9c9
xor eax, eax
pop edi
pop esi
ret
Function at 0x40df63
Capabilities:
Inspect section memory permissions

Disassembly:
cmp eax, ebx
je 0x40e160
add eax, esi
mov dword [ebp - 0x44], eax
dec esp
loop 0x40defb
aad 0x8b
inc ebp
adc byte [ebx + 0x74c33b00], cl
aaa

Function at 0x40dfff
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40e025
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40e020
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40e00a
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40e012
cmp edx, ebx
jne 0x40e160
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40dfe1
add eax, dword [eax + 4]
jmp 0x40dfce
mov dword [ebp + 0xc], ebx
jmp 0x40e030

Function at 0x40e055
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40e048
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40e066
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40e0c4
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40e0ab
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40e0b4
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40e0be
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40e0a0
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40e02a
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40e111
dec eax
je 0x40e108
sub eax, 3
je 0x40e0ff
mov dword [ebp - 4], 0x40
jmp 0x40e12e
mov dword [ebp - 4], 4
jmp 0x40e114
mov dword [ebp - 4], 0x20
jmp 0x40e114
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40e160
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40e0e0
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040d971
and eax, 0x75ff5032
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x40e16c
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005990
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
push ebx
push esi
mov esi, eax
push edi
test esi, esi
je 0x100059e2
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.MSVCR90.dll__stat64i32]
add esp, 8
test eax, eax
jl 0x100059e2
push 0
push esi
call dword [sym.imp.MSVCR90.dll__open]
mov edi, eax
add esp, 8
test edi, edi
jl 0x100059e2
mov ebx, dword [esp + 0x24]
lea ecx, [ebx + 0xa]
push ecx
call dword [sym.libxml2.dll_xmlMallocAtomic]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100059eb
mov eax, str.allocating_catalog_data
call fcn.10004a00
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x38
ret
push ebx
push esi
push edi
call dword [sym.imp.MSVCR90.dll__read]
push edi
mov ebx, eax
call dword [sym.imp.MSVCR90.dll__close]
add esp, 0x10
test ebx, ebx
jge 0x10005a17
push esi
call dword [sym.libxml2.dll_xmlFree]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x38
ret
pop edi
mov byte [ebx + esi], 0
mov eax, esi
pop esi
pop ebx
add esp, 0x38
ret

Function at 0x100089b0
Capabilities:
Query environment variable

Disassembly:
cmp dword [0x1010c138], 0
jne 0x10008a18
push str.XML_DEBUG_CATALOG
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x100089d5
mov dword [0x1010c128], 1
push esi
push 0x1c
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100089f9
mov dword [0x1010c134], esi
mov dword [0x1010c138], 1
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x18], 0
mov dword [0x1010c134], esi
mov dword [0x1010c138], 1
pop esi
ret
Function at 0x1000e8c0
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x1000e8fa
test esi, esi
je 0x1000e8fa
xor ecx, ecx
test edx, edx
jle 0x1000e8e9
push edi
nop
movzx edi, byte [ecx + esi]
add edi, eax
imul edi, edi, 0x401
mov eax, edi
shr edi, 6
inc ecx
xor eax, edi
cmp ecx, edx
jl 0x1000e8d0
pop edi
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret
xor eax, eax
ret

Function at 0x1000e900
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
test edx, edx
jle 0x1000e929
push ebp
jmp 0x1000e910
movzx ebp, byte [ecx + edi]
add ebp, eax
imul ebp, ebp, 0x401
mov eax, ebp
shr ebp, 6
inc ecx
xor eax, ebp
cmp ecx, edx
jl 0x1000e910
pop ebp
add eax, 0x3a
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
xor ecx, ecx
test esi, esi
jle 0x1000e958
nop
movzx edx, byte [ecx + ebx]
add edx, eax
imul edx, edx, 0x401
mov eax, edx
shr edx, 6
inc ecx
xor eax, edx
cmp ecx, esi
jl 0x1000e940
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret
Function at 0x10015ea0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_malloc]
push esi
push edi
mov edi, dword [0x1010c198]
test edi, edi
jne 0x10015eda
push 4
call ebx
mov esi, eax
add esp, 4
test esi, esi
je 0x10015ece
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
mov edi, esi
mov dword [0x1010c198], edi
test esi, esi
je 0x10015eeb
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [0x1010c198]
mov esi, dword [esp + 0x10]
lea ecx, [esi + 0x84]
push ecx
call sym.libxml2.dll_initdocbDefaultSAXHandler
lea edx, [esi + 0xf4]
push edx
call sym.libxml2.dll_inithtmlDefaultSAXHandler
mov eax, dword [0x100fac08]
mov ecx, dword [0x100fac10]
lea edx, [esi + 0x14]
push 1
push edx
mov dword [esi + 0x180], 0
mov dword [esi + 0x184], eax
mov dword [esi + 0x188], ecx
call sym.libxml2.dll_initxmlDefaultSAXHandler
mov eax, dword [0x1010c1ac]
mov ecx, dword [sym.imp.MSVCR90.dll_free]
mov edx, dword [sym.imp.MSVCR90.dll_realloc]
mov dword [esi + 0x190], eax
mov eax, dword [0x100fac18]
mov dword [esi + 0x164], ecx
mov ecx, dword [0x100fac30]
mov dword [esi + 0x170], edx
mov edx, dword [0x100fac38]
mov dword [esi + 0x194], eax
mov eax, dword [0x100fac20]
mov dword [esi + 0x1b0], ecx
mov ecx, dword [0x1010c1c4]
mov dword [esi + 0x1b4], edx
mov edx, dword [0x1010c1b4]
mov dword [esi + 0x198], eax
mov eax, dword [0x1010c1a4]
mov dword [esi + 0x19c], ecx
mov ecx, dword [0x1010c1bc]
mov dword [esi + 0x1a0], edx
mov edx, dword [0x1010c20c]
mov dword [esi + 0x1a4], eax
mov eax, dword [0x1010c1cc]
mov dword [esi + 0x1a8], ecx
mov ecx, dword [0x100fac28]
mov dword [esi + 0x1ac], edx
mov edx, dword [0x1010c1f4]
mov dword [esi + 0x18c], eax
mov eax, dword [0x1010c1fc]
mov dword [esi + 0x174], ecx
mov ecx, dword [0x1010c204]
mov dword [esi + 0x178], edx
mov edx, dword [0x1010c1d4]
mov dword [esi + 0x17c], eax
mov eax, dword [0x1010c1dc]
mov dword [esi + 0x200], ecx
mov ecx, dword [0x1010c1e4]
mov dword [esi + 0x1b8], edx
mov edx, dword [0x1010c1ec]
push 0x34
mov dword [esi + 4], sym.libxml2.dll_xmlInitializeDict
mov dword [esi + 8], sym.libxml2.dll_xmlSAX2GetSystemId
mov dword [esi + 0xc], sym.libxml2.dll_xmlSAX2GetLineNumber
mov dword [esi + 0x10], sym.libxml2.dll_xmlSAX2GetColumnNumber
mov dword [esi + 0x168], ebx
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x16c], sym.libxml2.dll_xmlStrdup
mov dword [esi], str.20901
mov dword [esi + 0x1bc], eax
mov dword [esi + 0x1f8], ecx
mov dword [esi + 0x1fc], edx
push 0
add esi, 0x1c4
push esi
call sub.MSVCR90.dll_memset
add esp, 0x1c
test edi, edi
je 0x10016080
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebx
ret

Function at 0x100168e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
call fcn.10059ad0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100fbd44], eax
jne 0x100168f9
mov eax, 0x100fac00
ret
jmp sym.libxml2.dll_xmlGetGlobalState
Function at 0x10016b10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, eax
xor eax, eax
push edi
mov esi, ecx
test edx, edx
je 0x10016b4b
mov cl, byte [edx]
movzx edi, cl
mov eax, edi
shl eax, 4
sub eax, edi
add eax, eax
test cl, cl
je 0x10016b4b
push ebp
mov edi, eax
mov ebp, eax
shl edi, 5
shr ebp, 3
movsx ecx, cl
add edi, ebp
inc edx
add edi, ecx
mov cl, byte [edx]
xor eax, edi
test cl, cl
jne 0x10016b30
pop ebp
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
xor eax, edx
test esi, esi
je 0x10016b7d
mov cl, byte [esi]
test cl, cl
je 0x10016b7d
mov edx, eax
mov edi, eax
shl edx, 5
shr edi, 3
movsx ecx, cl
add edx, edi
inc esi
add edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x10016b63
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
xor eax, edx
test ebx, ebx
je 0x10016baf
mov cl, byte [ebx]
test cl, cl
je 0x10016baf
mov edx, eax
mov esi, eax
shl edx, 5
shr esi, 3
movsx ecx, cl
add edx, esi
inc ebx
add edx, ecx
mov cl, byte [ebx]
xor eax, edx
test cl, cl
jne 0x10016b95
mov ecx, dword [esp + 0x10]
xor edx, edx
div dword [ecx + 4]
pop edi
pop esi
pop ebx
mov eax, edx
ret
Function at 0x10016bc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov ebx, eax
mov esi, ecx
test edx, edx
je 0x10016d22
mov cl, byte [edx]
movzx edi, cl
mov eax, edi
shl eax, 4
sub eax, edi
add eax, eax
test cl, cl
je 0x10016c04
mov edi, eax
mov ebp, eax
shl edi, 5
shr ebp, 3
movsx ecx, cl
add edi, ebp
inc edx
add edi, ecx
mov cl, byte [edx]
xor eax, edi
test cl, cl
jne 0x10016be6
mov ebp, dword [esp + 0x18]
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
lea edx, [edx + ecx + 0x3a]
xor eax, edx
test esi, esi
je 0x10016c3a
mov cl, byte [esi]
test cl, cl
je 0x10016c3a
mov edi, edi
mov edx, eax
mov edi, eax
shl edx, 5
shr edi, 3
movsx ecx, cl
add edx, edi
inc esi
add edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x10016c20
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
xor eax, edx
test ebx, ebx
je 0x10016c7c
mov cl, byte [ebx]
test cl, cl
je 0x10016c6c
mov edx, eax
mov esi, eax
shl edx, 5
shr esi, 3
movsx ecx, cl
add edx, esi
inc ebx
add edx, ecx
mov cl, byte [ebx]
xor eax, edx
test cl, cl
jne 0x10016c52
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
lea edx, [edx + ecx + 0x3a]
xor eax, edx
test ebp, ebp
je 0x10016ca2
mov cl, byte [ebp]
test cl, cl
je 0x10016ca2
mov edx, eax
mov esi, eax
shl edx, 5
shr esi, 3
movsx ecx, cl
add edx, esi
inc ebp
add edx, ecx
mov cl, byte [ebp]
xor eax, edx
test cl, cl
jne 0x10016c87
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
xor eax, edx
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x10016cea
mov cl, byte [edx]
test cl, cl
je 0x10016cda
mov edi, edi
mov esi, eax
mov edi, eax
shl esi, 5
shr edi, 3
movsx ecx, cl
add esi, edi
inc edx
add esi, ecx
mov cl, byte [edx]
xor eax, esi
test cl, cl
jne 0x10016cc0
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
lea edx, [edx + ecx + 0x3a]
xor eax, edx
mov edx, dword [esp + 0x20]
test edx, edx
je 0x10016d12
mov cl, byte [edx]
test cl, cl
je 0x10016d12
mov esi, eax
mov edi, eax
shl esi, 5
shr edi, 3
movsx ecx, cl
add esi, edi
inc edx
add esi, ecx
mov cl, byte [edx]
xor eax, esi
test cl, cl
jne 0x10016cf8
mov ecx, dword [esp + 0x14]
xor edx, edx
div dword [ecx + 4]
pop edi
pop esi
pop ebp
pop ebx
mov eax, edx
ret
movzx ecx, byte [esi]
mov eax, ecx
shl eax, 4
sub eax, ecx
add eax, eax
jmp 0x10016c14
Function at 0x10024670
Capabilities:
Initialize winsock library
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x198], eax
cmp dword [0x1010c240], 0
push esi
jne 0x10024742
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10024742
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push str.no_proxy
mov dword [0x1010c248], 0x15
call esi
add esp, 4
test eax, eax
je 0x100246d9
cmp byte [eax], 0x2a
jne 0x100246d9
cmp byte [eax + 1], 0
je 0x10024742
push str.ftp_proxy
call esi
add esp, 4
test eax, eax
jne 0x100246f5
push str.FTP_PROXY
call esi
add esp, 4
test eax, eax
je 0x100246fe
push eax
call sym.libxml2.dll_xmlNanoFTPScanProxy
add esp, 4
push str.ftp_proxy_user
call esi
add esp, 4
test eax, eax
je 0x1002471b
push eax
call dword [sym.libxml2.dll_xmlMemStrdup]
add esp, 4
mov dword [0x1010c24c], eax
push str.ftp_proxy_password
call esi
add esp, 4
test eax, eax
je 0x10024738
push eax
call dword [sym.libxml2.dll_xmlMemStrdup]
add esp, 4
mov dword [0x1010c250], eax
mov dword [0x1010c240], 1
mov ecx, dword [esp + 0x19c]
pop esi
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret

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

Disassembly:
test esi, esi
je 0x10024e20
cmp dword [esi + 0x2c], 0xffffffff
je 0x10024e20
mov ecx, dword [esi + 0x440]
test ecx, ecx
jl 0x10024e20
cmp ecx, 0x400
jg 0x10024e20
mov eax, dword [esi + 0x444]
test eax, eax
jl 0x10024e20
cmp eax, 0x400
jg 0x10024e20
cmp ecx, eax
jg 0x10024e20
test ecx, ecx
jle 0x10024dd4
sub eax, ecx
push eax
lea eax, [ecx + esi + 0x3c]
push eax
lea ecx, [esi + 0x3c]
push ecx
call dword [sym.imp.MSVCR90.dll_memmove]
mov edx, dword [esi + 0x440]
add esp, 0xc
sub dword [esi + 0x444], edx
mov dword [esi + 0x440], 0
mov eax, 0x400
sub eax, dword [esi + 0x444]
jne 0x10024de2
ret
mov edx, dword [esi + 0x2c]
push 0
push eax
mov eax, dword [esi + 0x440]
lea ecx, [eax + esi + 0x3c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x10024e24
push str.recv_failed
push 9
xor eax, eax
call fcn.10071a30
mov eax, dword [esi + 0x2c]
add esp, 8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x2c], 0xffffffff
or eax, 0xffffffff
ret
add dword [esi + 0x444], eax
mov ecx, dword [esi + 0x444]
mov byte [ecx + esi + 0x3c], 0
ret

Function at 0x10024fa0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x114
push esi
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x1002501f
mov eax, dword [esi + 0x2c]
cmp eax, 0xffffffff
je 0x1002501f
lea ecx, [esp + 8]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push edx
inc eax
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x1002500e
test eax, eax
je 0x10025004
mov eax, esi
call fcn.10024e40
pop esi
add esp, 0x114
ret
xor eax, eax
pop esi
add esp, 0x114
ret
push str.select
push 9
xor eax, eax
call fcn.10071a30
add esp, 8
or eax, 0xffffffff
pop esi
add esp, 0x114
ret
Function at 0x10025030
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xcc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x10025068
push str.USER_anonymous_r_n
lea eax, [esp + 8]
push 0xc8
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0xc
jmp 0x10025081
push eax
push str.USER__s_r_n
lea ecx, [esp + 0xc]
push 0xc8
push ecx
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x10
lea eax, [esp + 4]
mov byte [esp + 0xcb], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10025090
sub eax, edx
push 0
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
xor eax, eax
test esi, esi
jge 0x100250c4
push str.send_failed
push 9
call fcn.10071a30
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0xcc]
pop esi
xor ecx, esp
call fcn.100ca320
add esp, 0xcc
ret

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

Disassembly:
sub esp, 0xcc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x10025118
push str.PASS_anonymous__r_n
lea eax, [esp + 8]
push 0xc8
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0xc
jmp 0x10025131
push eax
push str.PASS__s_r_n
lea ecx, [esp + 0xc]
push 0xc8
push ecx
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x10
lea eax, [esp + 4]
mov byte [esp + 0xcb], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10025140
sub eax, edx
push 0
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
xor eax, eax
test esi, esi
jge 0x10025174
push str.send_failed
push 9
call fcn.10071a30
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0xcc]
pop esi
xor ecx, esp
call fcn.100ca320
add esp, 0xcc
ret

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

Disassembly:
sub esp, 0xcc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
mov esi, dword [esp + 0xd4]
or eax, 0xffffffff
test esi, esi
je 0x1002520b
cmp dword [esi + 0x2c], eax
je 0x1002520b
push str.QUIT_r_n
lea eax, [esp + 8]
push 0xc8
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
lea eax, [esp + 0x10]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100251d7
push 0
sub eax, edx
mov edx, dword [esi + 0x2c]
push eax
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
xor eax, eax
test esi, esi
jge 0x1002520b
push str.send_failed
push 9
call fcn.10071a30
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0xcc]
pop esi
xor ecx, esp
call fcn.100ca320
add esp, 0xcc
ret
Function at 0x100257d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x194
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x19c]
test edi, edi
je 0x100258f3
cmp dword [edi + 0x2c], 0xffffffff
je 0x100258f3
test eax, eax
jne 0x1002581f
pop edi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100ca320
add esp, 0x194
ret
push eax
push str.CWD__s_r_n
lea eax, [esp + 0xc]
push 0x190
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
lea eax, [esp + 0x14]
add esp, 0x10
mov byte [esp + 0x193], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10025847
push esi
push 0
sub eax, edx
mov edx, dword [edi + 0x2c]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jge 0x10025893
push str.send_failed
push 9
xor eax, eax
call fcn.10071a30
add esp, 8
mov eax, esi
pop esi
pop edi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100ca320
add esp, 0x194
ret
mov eax, edi
call fcn.10024e40
cmp eax, 4
jne 0x100258b9
pop esi
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100ca320
add esp, 0x194
ret
cmp eax, 2
jne 0x100258da
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100ca320
add esp, 0x194
ret
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100ca320
add esp, 0x194
ret
mov ecx, dword [esp + 0x194]
pop edi
xor ecx, esp
or eax, 0xffffffff
call fcn.100ca320
add esp, 0x194
ret

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

Disassembly:
sub esp, 0x194
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x19c]
test edi, edi
je 0x10025a21
cmp dword [edi + 0x2c], 0xffffffff
je 0x10025a21
test eax, eax
je 0x10025a21
push eax
push str.DELE__s_r_n
lea eax, [esp + 0xc]
push 0x190
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
lea eax, [esp + 0x14]
add esp, 0x10
mov byte [esp + 0x193], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10025975
push esi
push 0
sub eax, edx
mov edx, dword [edi + 0x2c]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jge 0x100259c1
push str.send_failed
push 9
xor eax, eax
call fcn.10071a30
add esp, 8
mov eax, esi
pop esi
pop edi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100ca320
add esp, 0x194
ret
mov eax, edi
call fcn.10024e40
cmp eax, 4
jne 0x100259e7
pop esi
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100ca320
add esp, 0x194
ret
cmp eax, 2
jne 0x10025a08
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100ca320
add esp, 0x194
ret
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100ca320
add esp, 0x194
ret
mov ecx, dword [esp + 0x194]
pop edi
xor ecx, esp
or eax, 0xffffffff
call fcn.100ca320
add esp, 0x194
ret
Function at 0x10025e00
Capabilities:
Get socket status

Disassembly:
sub esp, 0x21c
push ebx
push esi
mov esi, dword [esp + 0x228]
or ebx, 0xffffffff
push edi
test esi, esi
je 0x10025e82
cmp dword [esi + 0x2c], ebx
je 0x10025e82
mov eax, dword [esi + 0x30]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push eax
call edi
mov eax, dword [esi + 0x2c]
mov ecx, 1
mov dword [esp + 0x120], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x12c]
mov dword [esp + 0x130], eax
mov dword [esp + 0x28], eax
push ecx
inc eax
push eax
mov dword [esi + 0x30], ebx
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x28], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x10025e8e
mov edx, dword [esi + 0x2c]
push edx
call edi
mov dword [esi + 0x2c], ebx
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x21c
ret
jne 0x10025ea5
mov eax, dword [esi + 0x2c]
push eax
call edi
mov dword [esi + 0x2c], ebx
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x21c
ret
mov eax, esi
call fcn.10024e40
cmp eax, 2
je 0x10025e99
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
mov dword [esi + 0x2c], ebx
pop esi
mov eax, ebx
pop ebx
add esp, 0x21c
ret