joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10195170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], eax
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], 0
mov edi, dword [ebx]
cmp edi, 0xffffffff
jne 0x10007c4f
or eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10020a26
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx + 0x40], 0
push esi
je 0x10007c9f
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test esi, esi
jne 0x10007d15
push 0xa
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10020a26
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebx + 0x48]
mov ebx, dword [ebp + 0xc]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x18]
sub esi, 0xa
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
cmp dword [ebp - 0x14], ebx
jae 0x10007cc8
test esi, esi
jg 0x10007ca5
mov ebx, dword [ebp - 0x1c]
lea eax, [ebx + 0x60]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10007d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10007d44
push esi
push dword [ebx + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10007d2b
mov dword [ebp - 8], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10020a26
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0x60]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [ebp - 8]
add dword [ebx + 0x68], eax
jmp 0x10007d06
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 0xa
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.10020a26
mov esp, ebp
pop ebp
ret 8
Function at 0x10007d80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10195170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0
mov esi, dword [edi]
cmp esi, 0xffffffff
je 0x10007ddd
cmp byte [edi + 0x40], 0
je 0x10007df3
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10007e59
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10020a26
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10007e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10007dc5
push dword [edi + 0x44]
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10007e48
mov dword [ebp - 8], 0
jmp 0x10007e60
push 0
lea eax, [ebp - 8]
push eax
lea eax, [edi + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10020a26
mov esp, ebp
pop ebp
ret 8

Function at 0x10008ae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor al, al
xor ecx, ecx
test edx, edx
jle 0x10008afb
push esi
mov esi, dword [ebp + 8]
xor al, byte [ecx + esi]
inc ecx
cmp ecx, edx
jl 0x10008af2
pop esi
pop ebp
ret

Function at 0x100095b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp byte [edi], 0
jne 0x100095c3
xor ecx, ecx
jmp 0x100095d1
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100095c8
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.10004c70
mov eax, dword [esi + 0x10]
cmp byte [eax + edi - 1], 0x2f
je 0x100095f2
push 1
push 0x1013b744
mov ecx, esi
call fcn.100069d0
cmp dword [esi + 0x14], 0x10
jb 0x100095fc
mov eax, dword [esi]
jmp 0x100095fe
mov eax, esi
push 0
push eax
call fcn.100236a6
add esp, 8
test eax, eax
je 0x10009622
cmp dword [esi + 0x14], 0x10
jb 0x10009617
mov eax, dword [esi]
jmp 0x10009619
mov eax, esi
push eax
call fcn.10023706
add esp, 4
cmp dword [esi + 0x14], 0x10
jb 0x1000962a
mov esi, dword [esi]
push esi
push 0x1013b748
call fcn.10021677
add esp, 8
pop edi
pop esi
pop ebp
ret 4
Function at 0x1000a010
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10136323
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10195170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esi + 0x5c], 0xf
mov dword [esi + 0x58], 0
mov dword [ebp - 4], 0
mov byte [esi + 0x48], 0
mov ebx, dword [ebp + 8]
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
cmp byte [ebx], 0
mov byte [ebp - 4], 1
jne 0x1000a0d4
xor ecx, ecx
jmp 0x1000a0ea
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a0e0
sub ecx, dword [ebp + 8]
push ecx
push ebx
lea ecx, [esi + 0x20]
call fcn.10004c70
push 0
push 0x1013a3c4
lea ecx, [esi + 0x48]
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.10004c70
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000a140
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10136353
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10195170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 4], 0
mov byte [ecx], 0
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x1013a3c4
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.10004c70
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000a230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10136383
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10195170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 1
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea eax, [esi + 0x40]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 0xc], 0
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x28], 0xf
mov dword [eax + 0x24], 0
mov byte [eax + 0x14], 0
mov dword [eax + 0x40], 0xf
mov dword [eax + 0x3c], 0
mov byte [eax + 0x2c], 0
mov dword [ebp - 4], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x48], eax
mov dword [eax + 0x44], eax
mov edx, dword [ebp + 8]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov byte [ebp - 4], 1
cmp byte [edx], 0
jne 0x1000a318
xor eax, eax
jmp 0x1000a329
mov eax, edx
lea ebx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a320
sub eax, ebx
push eax
push edx
lea ecx, [esi + 0x20]
call fcn.10004c70
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 4

Function at 0x1000a3b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101363a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10195170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 4
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov edi, dword [ebp + 8]
mov dword [esi], vtable.TiXmlText.0
mov dword [ebp - 4], 0
cmp byte [edi], 0
jne 0x1000a445
xor ecx, ecx
jmp 0x1000a459
mov ecx, edi
lea ebx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a450
sub ecx, ebx
push ecx
push edi
lea ecx, [esi + 0x20]
call fcn.10004c70
mov byte [esi + 0x40], 0
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 4
Function at 0x1000b5c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
jne 0x1000b5e0
push ebx
push ebx
push ebx
push 2
call fcn.1000d9d0
pop edi
xor al, al
pop ebx
pop ebp
ret 8
push esi
mov esi, dword [edi + 0x18]
test esi, esi
je 0x1000b5f7
mov ecx, esi
mov esi, dword [esi + 0x3c]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x1000b5e8
push 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 0
push ebx
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call fcn.100227af
push ebx
call fcn.10022bc2
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp + 8], esi
call fcn.100227af
add esp, 0x1c
test esi, esi
jg 0x1000b651
push 0
push 0
push 0
push 0xc
mov ecx, edi
call fcn.1000d9d0
pop esi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
lea eax, [esi + 1]
push eax
call fcn.1001fd38
push ebx
mov ebx, dword [ebp + 8]
mov esi, eax
push 1
push ebx
push esi
mov byte [esi], 0
call fcn.10022674
add esp, 0x14
cmp eax, 1
je 0x1000b695
push esi
call fcn.10021ce8
add esp, 4
mov ecx, edi
push 0
push 0
push 0
push 2
call fcn.1000d9d0
pop esi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
mov byte [esi + ebx], 0
mov eax, esi
cmp byte [esi], 0
mov ecx, esi
je 0x1000b6be
mov dl, byte [eax]
cmp dl, 0xd
jne 0x1000b6b5
inc eax
mov byte [ecx], 0xa
inc ecx
cmp byte [eax], 0xa
jne 0x1000b6b9
jmp 0x1000b6b8
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x1000b6a2
push dword [ebp + 0xc]
mov byte [ecx], 0
mov ecx, edi
mov eax, dword [edi]
push 0
push esi
call dword [eax + 8]
push esi
call fcn.10021ce8
add esp, 4
xor eax, eax
cmp byte [edi + 0x40], al
sete al
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x10036a10
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10195170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10026842
mov dword [ebp - 0x14], eax
cmp dword [0x101a0c64], esi
jne 0x10036b03
push 0x800
push esi
push 0x10142744
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10036a90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10036be3
push esi
push esi
push 0x10142744
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10036be3
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10036be3
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x101a0c64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x101a0c68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1014278c
push edi
mov dword [0x101a0c6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x101a0c74], eax
test eax, eax
je 0x10036b00
push 0x101427a8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x101a0c70], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10036b28
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10036b1b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10036b3d
push 4
pop eax
jmp 0x10036be5
cmp dword [ebp - 0x14], esi
je 0x10036b3d
push dword [0x101a0c64]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10036b22
mov eax, dword [0x101a0c70]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10036b9b
cmp dword [0x101a0c74], edi
je 0x10036b9b
push eax
call ebx
push dword [0x101a0c74]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10036b9b
test eax, eax
je 0x10036b9b
call ecx
test eax, eax
je 0x10036b90
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10036b90
test byte [ebp - 8], 1
jne 0x10036b9b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10036bcb
mov eax, dword [0x101a0c68]
cmp eax, edi
je 0x10036bc8
push eax
call ebx
test eax, eax
je 0x10036bc8
call eax
mov esi, eax
test esi, esi
je 0x10036bc8
mov eax, dword [0x101a0c6c]
cmp eax, edi
je 0x10036bc8
push eax
call ebx
test eax, eax
je 0x10036bc8
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x101a0c64]
call ebx
test eax, eax
je 0x10036be3
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10036be5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10020a26
mov esp, ebp
pop ebp
ret
Function at 0x1003dfc0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10195170]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1003e010
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1003e00a
shr eax, 8
cmp al, 2
jne 0x1003e00a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10020a26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.10020a26
mov esp, ebp
pop ebp
ret

Function at 0x10043660
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1004367e
cmp dword [esi + 0x6c], 0
je 0x1004367e
push 2
push 3
push esi
call fcn.1005ae60
add esp, 0xc
push dword [ebp + 0xc]
call fcn.10053ec0
add esp, 4
test esi, esi
je 0x1004369e
cmp dword [esi + 0x6c], 0
je 0x1004369e
push 3
push esi
call fcn.1005aea0
add esp, 8
pop esi
pop ebp
ret
Function at 0x10044560
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005b540
Function at 0x1004dfd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.1004e350
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x1004e054
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1004e02c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.1003e110
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.1004dc30
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x473c], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2e0]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x1004e40d
cmp dword [ebx + ecx*4 + 0x1bc], 0x1004df20
jne 0x1004e40d
cmp dword [esi], 0
je 0x1004e39f
test edi, edi
je 0x1004e40d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.1004d580
add esp, 0x14
cmp eax, 0xffffffff
je 0x1004e40d
test al, 1
je 0x1004e40d
cmp dword [esi], 0
jne 0x1004e3f4
mov eax, dword [ebx]
mov eax, dword [eax + 0x350]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x10196400]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x1004e3f4
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1004e40d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1004e420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x1004e449
push dword [esi + 0x15c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x1004e47f
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x10145f30
push 2
push eax
call fcn.100221a5
push dword [esi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100221a5
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1004e550
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
je 0x1004e570
push eax
call fcn.10044560
add esp, 4
test eax, eax
jne 0x1004e592
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x1004e56c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1004e592
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x1004ec90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101a0cfc]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x1004ece1
push 3
push 2
push eax
push 6
call fcn.10071010
add esp, 0x10
test al, al
je 0x1004ecd5
mov dword [0x101a0cfc], 2
mov esp, ebp
pop ebp
ret
mov dword [0x101a0cfc], 1
jmp 0x1004ece6
cmp eax, 2
je 0x1004ed26
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1004ed0d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x1004ed26
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x1004edf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1004ee38
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1003e110
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.1004dd00
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.1004dd00
add esp, 8
pop edi
pop esi
pop ebp
ret