joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a5db
Capabilities:
Enumerate processes

Disassembly:
push 0x284
mov eax, 0x57ae09
call fcn.00474262
mov eax, dword [ebp + 8]
and dword [ebp - 0x290], 0
test eax, eax
je 0x44a7d5
push eax
lea ecx, [ebp - 0x40]
call fcn.00421580
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
call fcn.00437644
mov dword [esp], 0x22c
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.00452070
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x28c], eax
cmp eax, 0xffffffff
je 0x44a7c5
call fcn.0043aa47
test al, al
je 0x44a66b
pop eax
pop edi
pop edx
push eax
pop edi
pop esi
push edx
push esi
push ecx
push ecx
push ebp
pop edi
pop edx
push ebx
push esi
push edx
pop ebp
push esp
push eax
push ebx
push edx
push esp
push ecx
push edx
pop edx
pop ebx
push edx
pop edi
pop eax
push eax
push eax
pop edi
call fcn.0043a70b
test al, al
je 0x44a686
push edx
push edx
push ecx
push ebx
push eax
push eax
push ecx
pop edx
push ecx
pop ebp
pop edx
pop ebp
push ecx
push eax
pop esp
push esi
push esp
pop edx
call fcn.0043aad1
test al, al
je 0x44a6a5
pop eax
pop eax
pop ebp
push ecx
push ebx
push ecx
push edi
push eax
pop esp
pop ebx
pop esp
pop esi
push ebp
pop ebp
pop ebp
pop edx
pop edi
push edi
push edi
pop esp
push ebx
push esi
mov esi, dword [ebp - 0x28c]
lea eax, [ebp - 0x284]
push eax
push esi
mov dword [ebp - 0x284], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x44a794
mov ebx, dword [ebp - 0x290]
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp word [ebp - 0x260], ax
je 0x44a6f7
lea eax, [ebp - 0x260]
push eax
call fcn.00462543
pop ecx
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.004217f0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00437644
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00422240
test eax, eax
je 0x44a74b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00436659
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x40]
or ebx, 1
call fcn.00422240
mov byte [ebp - 0x285], 0
test eax, eax
jne 0x44a752
mov byte [ebp - 0x285], 1
test bl, 1
je 0x44a766
push 0
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffe
call fcn.00421690
cmp byte [ebp - 0x285], 0
jne 0x44a7db
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00421690
lea eax, [ebp - 0x284]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x44a6d0
call fcn.0043a414
test al, al
je 0x44a7be
pop ebx
pop edi
pop eax
push esi
push ebx
pop ecx
pop ecx
push ecx
push ebx
push edx
push esi
pop esi
push esi
pop ebx
pop ebp
push esp
push edx
push ecx
push esi
push edi
push eax
push edi
push edx
push edi
pop ecx
pop ebp
push eax
mov esi, dword [ebp - 0x28c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00421690
mov eax, esi
call fcn.0047421d
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00421690
jmp 0x44a7c7
Function at 0x44aea4
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x44b779
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push str.kernel32.dll
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
call fcn.0043aa02
test al, al
je 0x44b7ad
push esp
pop esi
push esp
pop ecx
push ebp
push ecx
pop eax
pop edi
push ecx
push esi
push edx
push ecx
pop esp
push ebp
push eax
pop esp
push esp
pop esp
call fcn.0043a49e
test al, al
je 0x44b7d2
pop ebp
push eax
push esp
push ecx
push edi
push esp
push ebx
pop edi
push esp
push ecx
pop esp
push esp
pop ebx
pop ebx
pop edi
pop edx
push esi
pop ebp
push eax
push ecx
pop esp
push esp
pop esi
pop ecx
pop ebp
pop ebx
pop edx
push edx
call fcn.0043a4e3
test al, al
je 0x44b7f7
push eax
push esi
pop edx
push edx
pop edx
pop ebp
push edi
pop edi
pop esp
push ebx
push esp
pop eax
pop esi
pop eax
push ecx
push esp
push edi
push edi
push edx
push edi
push ebx
pop ebx
push edx
push ebp
push edx
push edi
push esi
push esi
call fcn.0043a681
test al, al
je 0x44b81a
pop edx
push esi
pop edi
pop esi
pop edi
push esp
pop esp
pop ebp
push ebp
pop eax
push ebx
push edx
push esi
pop ebx
push edx
push edi
push eax
push ecx
pop edi
push ebp
push ebp
pop ecx
push edx
pop edi
pop esi
push ebx
call fcn.0043a528
test al, al
je 0x44b839
push edi
push edi
push ebx
push eax
pop ebp
pop esi
pop edi
pop esp
pop ebp
push edx
pop edx
push edx
pop edi
pop ebp
push ebx
push esi
push edi
push eax
pop ebx
pop esp
pop ecx
pop ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x44b848
xor eax, eax
jmp 0x44b8e6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x57e6f4
push dword [ebx]
call esi
push 0x57fb28
push dword [ebx]
mov dword [ebx + 8], eax
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebx]
mov dword [ebx + 0xc], eax
call esi
mov edi, str.Wow64RevertWow64FsRedirection
mov dword [ebx + 0x18], eax
push edi
push dword [ebx]
call esi
push str.GetSystemWow64DirectoryW
push dword [ebx]
mov dword [ebx + 0x14], eax
call esi
push str.advapi32.dll
mov dword [ebx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 4], eax
call fcn.0043a63c
test al, al
je 0x44b8c7
pop eax
push edx
pop esp
pop ebx
push ecx
push eax
pop edx
pop edi
push ebx
pop esp
pop edx
pop edi
push edi
pop esi
push edi
pop ecx
push esp
push eax
push esi
push esi
push ebp
pop esp
push edx
mov ebx, dword [ebp - 4]
mov edi, str.Wow64RevertWow64FsRedirection
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebx + 4], 0
je 0x44b841
push edi
push dword [ebx + 4]
call esi
push edi
push dword [ebx + 4]
mov dword [ebx + 0x20], eax
call esi
mov dword [ebx + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b90a
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x24c
mov eax, 0x57aec3
call fcn.00474262
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x24c], 0
push 0x208
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x250], ebx
call fcn.00452070
add esp, 0xc
call fcn.0043a49e
test al, al
je 0x44b967
push ebp
push ebp
pop esi
push ecx
pop edi
push edi
push eax
push edi
pop ebx
pop ebx
push esi
push ebp
push esi
push edx
push ebx
push esp
mov ebx, dword [ebp - 0x250]
push 0x104
lea eax, [ebp - 0x218]
xor esi, esi
push eax
push esi
jmp 0x44bac5
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x44bab7
call fcn.0043aa47
test al, al
je 0x44b9c1
pop eax
pop edi
pop edx
push eax
pop edi
pop esi
push edx
push esi
push ecx
push ecx
push ebp
pop edi
pop edx
push ebx
push esi
push edx
pop ebp
push esp
push eax
push ebx
push edx
push esp
push ecx
push edx
pop edx
pop ebx
push edx
pop edi
pop eax
push eax
push eax
pop edi
call fcn.0043a70b
test al, al
je 0x44b9dc
push edx
push edx
push ecx
push ebx
push eax
push eax
push ecx
pop edx
push ecx
pop ebp
pop edx
pop ebp
push ecx
push eax
pop esp
push esi
push esp
pop edx
call fcn.0043aad1
test al, al
je 0x44b9fb
pop eax
pop eax
pop ebp
push ecx
push ebx
push ecx
push edi
push eax
pop esp
pop ebx
pop esp
pop esi
push ebp
pop ebp
pop ebp
pop edx
pop edi
push edi
push edi
pop esp
push ebx
push esi
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x44ba2b
lea eax, [ebp - 0x218]
push eax
call fcn.00462543
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004217f0
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004379f3
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00421690
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push dword [ebp - 0x258]
call fcn.0044ab74
pop ecx
pop ecx
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
push 0
push 1
call fcn.00421a80
mov ebx, dword [ebp - 0x250]
mov esi, dword [ebp - 0x254]
push 0x104
lea eax, [ebp - 0x218]
inc esi
push eax
push esi
push ebx
mov dword [ebp - 0x254], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x44b97b
call fcn.0047421d
ret
Function at 0x44c77e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov byte [ebp - 1], 0
push ebx
push esi
push edi
lea ecx, [eax + 0x210]
mov dword [ebp - 0x14], eax
mov esi, dword [ecx]
mov dword [ebp - 0x18], ecx
cmp esi, dword [eax + 0x214]
je 0x44c835
mov eax, dword [ebp + 8]
lea edi, [esi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], edi
lea ecx, [eax + 0xa8]
add eax, 0x28
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push ecx
call ebx
push 0x57c58c
call ebx
sub edi, 0xffffff80
push edi
call ebx
push 0x57c58c
call ebx
push dword [ebp - 0xc]
call ebx
push 0x57c58c
call ebx
push dword [ebp - 8]
call ebx
push 0x57c58c
call ebx
push edi
push dword [ebp - 0x10]
call fcn.004633b0
mov edi, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
jne 0x44c815
push edi
push dword [ebp - 0xc]
call fcn.004633b0
pop ecx
pop ecx
test eax, eax
je 0x44c831
mov eax, 0x1b0
add edi, eax
add esi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x44c835
mov ecx, dword [ebp - 0x10]
jmp 0x44c7c5
mov byte [ebp - 1], 1
call fcn.0043a681
test al, al
je 0x44c858
push ebx
pop edx
push ebp
push ecx
push esp
push esp
pop esi
pop ebx
pop edx
pop edx
pop ebx
push esi
push eax
push esp
push esp
pop eax
pop ebx
pop eax
pop esi
pop eax
pop ebp
pop edi
push ebx
push edi
pop ebx
pop edx
call fcn.0043a81f
test al, al
je 0x44c87d
push esi
pop esp
push eax
push esi
push ebx
push esi
pop esp
push edi
pop ebp
push edi
push edx
pop edi
pop esp
push ecx
push ecx
pop eax
push ecx
pop ebp
push ebp
push ebx
pop esi
pop edi
pop ebx
push eax
pop ebp
push esp
push esi
push ebx
cmp byte [ebp - 1], 0
jne 0x44c8a4
mov esi, dword [ebp + 8]
lea edx, [esi + 0xa8]
push edx
call fcn.00462aa0
pop ecx
test eax, eax
je 0x44c8a4
mov ecx, dword [ebp - 0x18]
push esi
call fcn.0044d5dd
mov al, 1
jmp 0x44c8a6
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44d4ca
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5db008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x11c], edi
mov eax, dword [edi + 0x210]
mov dword [edi + 0x214], eax
call fcn.0043a70b
test al, al
je 0x44d51a
push ebp
push ecx
push edi
pop esi
pop ecx
pop eax
pop esp
push ebx
push edi
pop ecx
push ecx
pop esp
push ecx
push eax
push ebx
push edi
push ebp
push esp
push eax
push ebx
pop esp
push eax
pop ebx
pop esi
pop eax
push ebp
push esi
push ecx
push edx
call fcn.0043a978
test al, al
je 0x44d544
push esp
pop edx
push ebx
pop ebp
pop eax
pop ebp
push ecx
pop eax
push eax
push ecx
pop ebx
push edx
pop esi
push edx
pop esp
pop esp
push ebp
pop edx
pop ecx
push ebp
push eax
push edi
push esp
pop edi
push esi
push ecx
pop edi
mov edi, dword [ebp - 0x11c]
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00452070
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x44d581
mov ecx, edi
call fcn.0044cd49
jmp 0x44d596
mov esi, ebx
test ebx, ebx
jne 0x44d596
mov ecx, edi
call fcn.0044cbc6
inc esi
mov ebx, eax
cmp esi, 0xa
jl 0x44d583
mov eax, dword [edi + 0x214]
mov ecx, 0x1b0
sub eax, dword [edi + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f713
mov esp, ebp
pop ebp
ret

Function at 0x4673fb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004670bb

Function at 0x46c286
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046c105
Function at 0x47e3d0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x47e419
mov al, byte [esi]
push eax
call fcn.0048a560
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x47e3f7
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x47f7f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x47f811
cmp dword [esi + 0x8c], 0
je 0x47f811
push 2
push 3
push esi
call fcn.0048ab30
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0048c6f0
add esp, 4
test esi, esi
je 0x47f834
cmp dword [esi + 0x8c], 0
je 0x47f834
push 3
push esi
call fcn.0048ab70
add esp, 8
pop esi
pop ebp
ret

Function at 0x4804c0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2b0], 2
jne 0x4804d5
pop ebp
jmp fcn.00480470
mov al, 1
pop ebp
ret
Function at 0x4878e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x608], 0
je 0x487924
push esi
push 1
push edi
call fcn.0047ab30
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0047ab30
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x48795a
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x588628
push 2
push eax
call fcn.00462fed
push dword [edi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00462fed
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x5db008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x1a8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x88], ecx
call fcn.004882e0
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x487e5a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x487e1c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f713
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004b1320
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.00487960
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcac], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f713
mov esp, ebp
pop ebp
ret
Function at 0x4882e0
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 + 0x2a8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x48839d
cmp dword [ebx + ecx*4 + 0x1bc], 0x487cb0
jne 0x48839d
cmp dword [esi], 0
je 0x48832f
test edi, edi
je 0x48839d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.00487490
add esp, 0x14
cmp eax, 0xffffffff
je 0x48839d
test al, 1
je 0x48839d
cmp dword [esi], 0
jne 0x488384
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x5dba70]
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 0x488384
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 0x48839d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test byte [eax + 0x1f8], 1
je 0x4884b0
push eax
call fcn.00480e80
add esp, 4
test eax, eax
jne 0x4884d2
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x4884ac
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4884d2
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x488cc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5e78a0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x488d11
push 3
push 2
push eax
push 6
call fcn.0048a230
add esp, 0x10
test al, al
je 0x488d05
mov dword [0x5e78a0], 2
mov esp, ebp
pop ebp
ret
mov dword [0x5e78a0], 1
jmp 0x488d16
cmp eax, 2
je 0x488d56
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 0x488d3d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x488d56
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 0x488f80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x5db008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x90], 2
mov ebx, dword [esi]
je 0x48918c
test dword [esi + 0x284], 0x8000002
push edi
jne 0x489182
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x489019
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.004b1320
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00487960
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f713
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x104]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.00452070
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x48908d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.004b1320
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00487960
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f713
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x138]
push eax
lea edi, [esi + 0x10a]
lea eax, [ebp - 0x184]
push edi
push eax
call fcn.00489750
add esp, 0xc
test al, al
jne 0x4890f1
call fcn.00462291
mov esi, eax
call fcn.00462291
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push dword [esi]
call fcn.004b1320
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00487960
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f713
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x5c], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x6c], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x7c], xmm0
mov dword [esi + 0x84], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x88], ax
lea eax, [esi + 0x16c]
push eax
lea eax, [esi + 0x13c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00489750
add esp, 0xc
test al, al
jne 0x489182
call fcn.00462291
mov esi, eax
call fcn.00462291
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push dword [esi]
call fcn.004b1320
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00487960
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f713
mov esp, ebp
pop ebp
ret
push esi
call fcn.00488be0
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f713
mov esp, ebp
pop ebp
ret
Function at 0x489b80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5db008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 4
mov eax, dword [esi + 0xa90]
shr eax, 0xc
and eax, 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x489bde
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00487a40
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f713
mov esp, ebp
pop ebp
ret
push dword [esi + 0xa50]
mov dword [ebp - 0x10], 1
call fcn.00489ea0
push dword [esi + 0xa54]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00489ea0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x489c4e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00487a40
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042f713
mov esp, ebp
pop ebp
ret

Function at 0x489c60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x5db008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 4
mov dword [ebp - 0x88], 1
mov esi, dword [eax]
lea eax, [ebp - 0x88]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x489cd3
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b1320
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00487a40
add esp, 0x18
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f713
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00487a40
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.0042f713
mov esp, ebp
pop ebp
ret

Function at 0x489e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00489e70
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0046bc3d