joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1070
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x6b1a94]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1a4], 0
je 0x4d1182
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x58]
mov ecx, esi
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
call dword [eax + 0xd0]
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edi, dword [esi + 0x60]
mov eax, 0
sub edi, dword [esi + 0x58]
mov edx, dword [esp + 0x14]
add edi, edx
mov ecx, dword [esi + 0x1a8]
sub ecx, edx
add ecx, dword [esp + 0x1c]
cmovs ecx, eax
mov eax, dword [esi + 0x188]
sub eax, dword [esi + 0x190]
sub eax, edx
add eax, edi
cmp ecx, eax
jle 0x4d1118
mov ecx, edi
sub ecx, dword [esi + 0x190]
sub ecx, edx
add ecx, dword [esi + 0x188]
mov eax, dword [esi + 0x19c]
mov dword [esp + 0xc], eax
test ecx, ecx
jne 0x4d112e
mov dword [esi + 0x19c], ecx
jmp 0x4d115c
mov eax, dword [esi + 0x188]
sub eax, dword [esi + 0x190]
sub eax, edx
add eax, edi
cmp ecx, eax
mov eax, dword [esi + 0x198]
jne 0x4d114e
sub eax, edi
add eax, edx
jmp 0x4d1156
imul eax, ecx
sub edi, edx
cdq
idiv edi
mov dword [esi + 0x19c], eax
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push 0x4b2
mov ecx, esi
call dword [eax + 0x2c]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
movups xmm0, xmmword [esi + 0x188]
sub esp, 0x10
mov ecx, esi
mov eax, esp
push dword [esp + 0x20]
movups xmmword [eax], xmm0
push dword [esp + 0x20]
call fcn.004d1310
test eax, eax
je 0x4d11d4
cmp dword [esi + 0x174], 1
je 0x4d11f1
mov dword [esi + 0x174], 1
jmp 0x4d11e7
cmp dword [esi + 0x174], 0
je 0x4d11f1
mov dword [esi + 0x174], 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xcc]
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4d53e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4d53f1
lea eax, [ecx + 1]
pop ebp
ret 4
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
call dword [eax + 0x154]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d5420
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x6826ec
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop ebp
ret 4
Function at 0x4d58d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e858
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
mov eax, dword [0x6b1a94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x6c2ecc]
test eax, eax
je 0x4d591f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d591f
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.005ebbe7
add esp, 4
call fcn.005ebbc6
mov esi, eax
call fcn.00403fe0
mov ecx, eax
test ecx, ecx
jne 0x4d594a
push 0x80004005
call fcn.00403d40
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push 0x687128
push eax
call fcn.00403390
mov esi, dword [ebp - 0x10]
add esp, 8
push esi
push ecx
mov ecx, 0x6c32e0
call fcn.0046deb0
push 0x2c
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], 0x30
push 0
push eax
call fcn.005e27b0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x6c32e0
mov dword [ebp - 0x38], 0x4d58b0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [ebp - 0x2c]
push 0
push 0xfffffffffffffffd
push 0x64
push 0x64
push 0
push 0
push 0
push str.CGeneralObserverMgrWnd
push dword [ebp - 0x18]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x6c2ecc], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d5a12
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d7a60
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x100]
mov dword [esi], vtable.CAnimateMgr.0
push edi
mov dword [esi + 0x34], vtable.CAnimateMgr.1.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xf0]
push edi
mov dword [esi + 0xf4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x3e8
push dword [esi + 0xfc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4d7ac1
push 0
push dword [esi + 0xfc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0xfc], 0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esi + 0xf0]
test ecx, ecx
je 0x4d7b02
mov eax, dword [esi + 0xf8]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.0040cc60
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf8], 0
pop edi
mov ecx, esi
pop esi
jmp fcn.00495900

Function at 0x4d7b70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x4d7b89
pop edi
mov eax, 0x80004005
pop esi
pop ebp
ret 4
push ebx
lea ebx, [edi + 0x100]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0xf4]
lea ecx, [edi + 0xf0]
mov edx, dword [ecx]
cmp edx, eax
je 0x4d7bbf
nop dword [eax]
cmp dword [edx], esi
je 0x4d7bbb
add edx, 4
cmp edx, eax
jne 0x4d7bb0
cmp edx, eax
jne 0x4d7bcb
lea eax, [ebp + 8]
push eax
call fcn.0041f0e0
mov esi, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [edi + 0xfc], 0
pop ebx
jne 0x4d7bfd
push 0
push 0
push edi
push 0x4d7b10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xfc], eax
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x4d7fc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6b1a94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 4]
cmp dword [eax + 0x10], 0
je 0x4d7fe8
call fcn.004d80e0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d8007
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
push edi
call fcn.004d8560
test eax, eax
je 0x4d7ff3
push edi
lea eax, [ebp - 0x210]
push 0x68734c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.004d8420
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d80b8
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004d8420
test eax, eax
je 0x4d80b8
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x21c]
jne 0x4d80b8
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x220]
jne 0x4d80b8
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x22c]
jne 0x4d80b8
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x230]
jne 0x4d80b8
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x210]
push eax
call fcn.004d8890
test al, al
jne 0x4d80c8
mov eax, dword [esi + 4]
mov ecx, esi
push dword [eax + 0xc]
push dword [eax + 0x10]
call fcn.004d8170
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005c8db3
mov esp, ebp
pop ebp
ret 8

Function at 0x4d8560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4d8584
cmp dword [esi + 4], 0
je 0x4d857d
push eax
call fcn.005eb5a4
add esp, 4
mov dword [esi + 0x10], 0
push 0x682ab4
push dword [ebp + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
call fcn.005f6350
mov edi, eax
add esp, 8
test edi, edi
jne 0x4d85ae
pop edi
pop esi
pop ebp
ret 4
push ebx
push 2
push 0
push edi
call fcn.005f83ad
push edi
call fcn.005fac28
push 0
push 0
push edi
mov ebx, eax
call fcn.005f83ad
add esp, 0x1c
test ebx, ebx
jle 0x4d85ee
push ebx
mov ecx, esi
call fcn.004d8610
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4d85ee
push edi
push 1
push ebx
push eax
call fcn.005f9eac
add esp, 0x10
push edi
call fcn.005f5ebe
add esp, 4
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x4d8890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61ecb6
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6b1a94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push dword [eax + 4]
call fcn.004d8e40
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 4], 0
test eax, eax
je 0x4d8950
push 0x682ab4
push eax
call fcn.005f6350
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je 0x4d8950
push edi
call fcn.005fd890
add esp, 4
push eax
call fcn.005fe06d
add esp, 4
mov esi, eax
lea eax, [ebp - 0x24]
push edi
push 1
push 8
push eax
call fcn.005f9eac
add esp, 0x10
mov byte [ebp + 0xb], 0
cmp dword [ebp - 0x24], 0x78646972
jne 0x4d89df
cmp dword [ebp - 0x20], 0x8000
jb 0x4d8966
push edi
call fcn.005f5ebe
add esp, 4
xor al, al
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
add esi, 0xfffffff8
push esi
call fcn.005ebb43
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x4d89df
push edi
push 1
push esi
push ebx
call fcn.005f9eac
lea edx, [ebx + esi]
mov ecx, ebx
xor ebx, ebx
mov dword [ebp + 8], edx
add esp, 0x10
cmp dword [ebp - 0x20], ebx
jle 0x4d89cd
mov edi, dword [ebp - 0x14]
nop word [eax + eax]
mov esi, dword [ecx + 0xc]
add esi, 0x12
add esi, ecx
cmp esi, edx
ja 0x4d89ca
push dword [ecx + 8]
lea eax, [ecx + 0x10]
push dword [ecx + 4]
push dword [ecx]
mov ecx, edi
push eax
call fcn.004d86d0
mov edx, dword [ebp + 8]
inc ebx
mov ecx, esi
cmp ebx, dword [ebp - 0x20]
jl 0x4d89a0
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.005eb5a4
add esp, 4
cmp ebx, dword [ebp - 0x20]
sete byte [ebp + 0xb]
push edi
call fcn.005f5ebe
mov al, byte [ebp + 0xb]
add esp, 4
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 0x4da3f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61edf3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6b1a94]
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 + 0x20], 0x6c3514
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x6c3514
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x67cc2c
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004dafb0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4dd340
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6b1a94]
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 0x4dd390
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4dd38a
shr eax, 8
cmp al, 2
jne 0x4dd38a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8db3
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.005c8db3
mov esp, ebp
pop ebp
ret
Function at 0x4df220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4df24c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4df23d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4df280
cmp dword [esi + 8], 0
jne 0x4df270
push 0x687394
push dword [eax + 8]
call fcn.005f63b9
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4df270
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.005f9eac
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4df2a2
mov eax, dword [esi + 8]
test eax, eax
je 0x4df29c
push eax
call fcn.005f5ebe
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4e0070
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x4e015c
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x4e00ee
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x6230f0]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x6230f0]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x6230f0]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 0x6230f0]
mov byte [eax + 3], cl
jmp 0x4e013f
shl edx, 0x10
cmp esi, 2
jne 0x4e00fe
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x6230f0]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x6230f0]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x4e012b
lea ecx, [esi + 0x3c]
jmp 0x4e0138
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + 0x6230f0]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x4e0090
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4e4dd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4e4dee
cmp dword [esi + 0x48], 0
je 0x4e4dee
push 2
push 3
push esi
call fcn.005013b0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004f8bc0
add esp, 4
test esi, esi
je 0x4e4e0e
cmp dword [esi + 0x48], 0
je 0x4e4e0e
push 3
push esi
call fcn.005013f0
add esp, 8
pop esi
pop ebp
ret
Function at 0x4e5cb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00501a70
Function at 0x4ef1c0
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 + 0x1a0]
call fcn.004ef4a0
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 0x4ef244
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4ef21c
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.004dd3b0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004eee30
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x8658], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x1c4]
mov ebx, dword [ecx + edx*4 + 0x1a0]
add esi, eax
mov eax, dword [ecx + 0x2c0]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x4ef556
cmp dword [ecx + edx*4 + 0x1b4], 0x4ef110
jne 0x4ef556
cmp dword [esi], 0
je 0x4ef4ec
test edi, edi
je 0x4ef556
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004ee750
add esp, 0x14
cmp eax, 0xffffffff
je 0x4ef556
test al, 1
je 0x4ef556
cmp dword [esi], 0
jne 0x4ef53f
push 0x8000
mov dword [esi + 4], 0x8000
call dword [section..data]
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 0x4ef53f
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 ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4ef556
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4ef560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x4ef589
push dword [esi + 0x11c]
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 0x4ef5bf
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x624478
push 2
push eax
call fcn.005f6176
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005f6176
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1e4], 0
je 0x4ef6c0
push eax
call fcn.004e5cb0
add esp, 4
test eax, eax
jne 0x4ef6e2
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a0]
cmp eax, 0xffffffff
je 0x4ef6bc
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4ef6e2
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret
Function at 0x4efdb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6baf48]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4efe01
push 3
push 2
push eax
push 6
call fcn.00517b20
add esp, 0x10
test al, al
je 0x4efdf5
mov dword [0x6baf48], 2
mov esp, ebp
pop ebp
ret
mov dword [0x6baf48], 1
jmp 0x4efe06
cmp eax, 2
je 0x4efe46
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 0x4efe2d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4efe46
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 0x4eff10
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 0x4eff58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004dd3b0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004eeed0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004eeed0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4f0050
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6b1a94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x4f022a
cmp byte [edi + 0x286], 0
push esi
jne 0x4f0220
cmp byte [edi + 0x2a2], 0
jne 0x4f0220
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4f00e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004dd3b0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004eee30
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.005e27b0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4f0151
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004dd3b0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004eee30
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x140]
push eax
lea esi, [edi + 0x112]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004f0730
add esp, 0xc
test al, al
jne 0x4f01a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004dd3b0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004eee30
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x174]
push eax
lea eax, [edi + 0x144]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004f0730
add esp, 0xc
test al, al
jne 0x4f0220
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004dd3b0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004eee30
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret
push edi
call fcn.004efcd0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005c8db3
mov esp, ebp
pop ebp
ret