joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a90d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call fcn.004a9e40
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4a9152
mov eax, 0xf
push 0x619850
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], vtable.CUDTException.0
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 4
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x28], ebx
call fcn.004fa80b
cmp dword [edi], 1
je 0x4a91a7
mov eax, 0xf
push 0x619850
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], vtable.CUDTException.0
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x28], ebx
call fcn.004fa80b
cmp dword [edi + 0x10], 2
jne 0x4a91bf
lea eax, [esp + 0x78]
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], eax
jmp 0x4a91d2
lea ecx, [esp + 0x88]
mov dword [esp + 0x10], 0x1c
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4a9245
mov eax, 0xf
mov dword [esp + 0x14], vtable.CUDTException.0
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 3
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x619850
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x28], eax
call fcn.004fa80b
mov esi, dword [edi + 0x2c]
call fcn.004af0c0
mov ecx, dword [esp + 0xc]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.004aae60
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x14]
mov dword [edi], 2
mov ecx, dword [eax + 0x208]
mov eax, dword [ecx + 8]
push edx
call fcn.004b89e0
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004f2a78
mov esp, ebp
pop ebp
ret 8
Function at 0x4a92a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0xa0
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xac]
push ebx
push ebp
push esi
push edi
push ecx
mov dword [esp + 0x1c], eax
call fcn.004a9e40
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4a932b
mov eax, 0xf
push 0x619850
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], vtable.CUDTException.0
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], 4
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x30], ebx
call fcn.004fa80b
cmp dword [edi], 1
je 0x4a9383
mov eax, 0xf
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x7c], eax
push 0x619850
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], vtable.CUDTException.0
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x30], ebx
call fcn.004fa80b
cmp dword [edi + 0x10], 2
jne 0x4a939a
mov dword [esp + 0x14], 0x10
lea ebp, [esp + 0x80]
jmp 0x4a93a9
mov dword [esp + 0x14], 0x1c
lea ebp, [esp + 0x90]
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4a941c
mov eax, 0xf
mov dword [esp + 0x1c], vtable.CUDTException.0
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 3
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
push 0x619850
lea eax, [esp + 0x20]
push eax
call fcn.004fa80b
mov esi, dword [edi + 0x2c]
call fcn.004af0c0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xb8]
push ecx
push edx
lea eax, [esp + 0xbc]
push eax
push ebp
mov ecx, edi
call fcn.004ab2a0
mov edx, dword [edi + 0x2c]
mov ecx, dword [edi + 0x14]
mov dword [edi], 2
mov eax, dword [edx + 0x208]
mov eax, dword [eax + 8]
push ecx
call fcn.004b89e0
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004f2a78
add esp, 0xa0
ret 0xc
Function at 0x4aab20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cf588
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x28]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aab82
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x10], eax
lea eax, [esi + 0x1c]
lea ebx, [esp + 0x10]
call fcn.004ac7c0
cmp dword [esp + 0x18], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
je 0x4aabbb
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ae020
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4ae0b4
cmp word [ebx + 8], 2
push edi
jne 0x4ae085
cmp word [ebx + 0xa], 4
jne 0x4ae085
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4ae085
jmp 0x4ae060
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
push ecx
call fcn.004adfb0
test eax, eax
mov dword [esi], eax
je 0x4ae0a8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x4ae060
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x401
push eax
call fcn.004f5553
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4ae0c4.11001
jmp dword [eax*4 + 0x4ae0ec]
pop esi
pop ebp
mov eax, 0x2af9
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afa
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afb
pop ebx
ret 0x10
Function at 0x4ae910
Capabilities:
Get common file path

Disassembly:
sub esp, 0x238
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x234], eax
cmp dword [0x648b68], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x4ae370
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x4ae650
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.004ae320
je 0x4ae975
movzx eax, word [esp + 0x24c]
mov eax, dword [eax*8 + 0x62ca00]
jmp 0x4aea8e
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4aea75
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004f9a64
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004fbdca
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4ae9ec
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4aea38
push esi
call ebp
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004f9a64
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004fbdca
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4aea75
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4aea38
push esi
call ebp
jmp 0x4aea75
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x4aea33
add edi, 1
cmp edi, 3
jl 0x4aea40
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x62ca00], edx
mov dword [0x62ca08], eax
mov dword [fcn.004ae320], ecx
movzx edx, word [esp + 0x24c]
mov eax, dword [edx*8 + 0x62ca00]
mov dword [0x648b68], 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f2a78
add esp, 0x238
ret 4
Function at 0x4b3d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cf3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
or ebx, 0xffffffff
push ebx
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
cmp dword [esi + 8], ebx
jne 0x4b3d5e
cmp eax, ebx
je 0x4b3dfd
mov ecx, dword [edi]
push ecx
jmp 0x4b3df7
mov edx, dword [esi]
mov eax, dword [edx]
mov edi, dword [eax]
mov eax, edi
mov ecx, esi
call fcn.004b3eb0
mov cl, byte [edi + 0x5d]
test cl, cl
je 0x4b3dea
mov dl, byte [edi + 0x60]
test dl, dl
jne 0x4b3dea
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.004b2680
test eax, eax
jle 0x4b3dea
mov eax, dword [edi + 0x210]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
test eax, eax
mov ecx, dword [esp + 0x1c]
ja 0x4b3daa
test ecx, ecx
jbe 0x4b3dbd
mov dword [esp + 0x28], eax
mov eax, edi
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
call fcn.004b3e20
cmp dword [esp + 0x18], ebx
je 0x4b3dd0
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
cmp dword [esp + 0x18], ebx
je 0x4b3dfd
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
Function at 0x4b3fe0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5ce6ab
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
push 0x1c
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
call fcn.004d3feb
add esp, 4
mov dword [esp + 0x84], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x7c], ebx
je 0x4b4036
mov esi, eax
call fcn.004b3bf0
jmp 0x4b4038
xor eax, eax
mov dword [esp + 0x7c], 0xffffffff
mov dword [edi + 4], eax
lea edx, [edi + 0x10]
mov dword [eax + 0x10], edx
mov ecx, dword [edi + 4]
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], eax
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push ecx
push ebx
push edi
push 0x4b40f0
push ebx
push ebx
mov dword [edx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [edi], eax
jne 0x4b40cf
mov eax, 0xf
mov dword [esp + 0x10], vtable.CUDTException.0
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x619850
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
call fcn.004fa80b
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x74
ret 4
Function at 0x4b47a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5d0f66
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov byte [esp + 0x1c], 1
mov dword [esi + 0x5c], ebx
call fcn.004adbd0
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x64], eax
mov byte [eax + 0x15], 1
mov eax, dword [esi + 0x64]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x64]
mov dword [eax], eax
mov eax, dword [esi + 0x64]
push ebx
mov dword [eax + 8], eax
push ebx
mov dword [esi + 0x68], ebx
push ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x6c], eax
call ebp
push ebx
push ebx
push ebx
mov dword [esi + 0x70], eax
call edi
push ebx
push ebx
push ebx
mov dword [esi + 0x40], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x5c], eax
call ebp
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4b4a10
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5d63ab
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov ebp, dword [esp + 0x90]
mov ecx, dword [eax]
push edx
push eax
lea eax, [ebp + 4]
mov dword [ebp + 0x34], ecx
mov ecx, dword [esp + 0x9c]
push eax
call fcn.004b37e0
push 8
call fcn.004d3feb
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4b4a76
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x4b4a78
xor eax, eax
mov esi, dword [esp + 0x9c]
mov edi, eax
mov dword [ebp + 0x28], eax
call fcn.004b4370
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
push 8
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x30], edx
call fcn.004d3feb
add esp, 4
cmp eax, ebx
je 0x4b4ab2
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x4b4ab4
xor eax, eax
push 0x14
mov dword [ebp + 0x24], eax
call fcn.004d3feb
add esp, 4
mov esi, eax
cmp esi, ebx
je 0x4b4ae1
push ebx
push ebx
push ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x10], eax
jmp 0x4b4ae3
xor esi, esi
lea eax, [esp + 0x98]
push eax
push ebx
push ebp
push 0x4b4b90
push ebx
mov dword [esp + 0x9c], 0xffffffff
push ebx
mov dword [ebp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp], eax
jne 0x4b4b69
mov eax, 0xf
mov dword [esp + 0x1c], vtable.CUDTException.0
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x619850
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x30], eax
call fcn.004fa80b
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0x18

Function at 0x4b8470
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
mov eax, edx
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4b84b7
sub eax, esi
mov ecx, eax
test ecx, ecx
jle 0x4b84df
push 0
push ecx
lea esi, [esp + 0x10]
lea eax, [ecx*8]
push esi
call fcn.004bb140
add esp, 0xc
lea esi, [esp + 8]
call fcn.004bb1f0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.004f2a78
add esp, 0x64
ret
Function at 0x4b8700
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x90
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, ecx
mov edi, eax
mov eax, dword [esi + 8]
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x4b878e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
mov ecx, 0xf
mov dword [esp + 0x34], vtable.CUDTException.0
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
jne 0x4b877b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x619850
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x48], eax
call fcn.004fa80b
cmp edi, ebx
je 0x4b87db
mov ecx, dword [esi + 8]
sub ecx, 2
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 0x10
push ecx
push edi
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4b88cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, 3
mov eax, 1
lea esi, [esp + 0x34]
call fcn.004b7e60
push 0x619850
mov edx, esi
push edx
call fcn.004fa80b
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [0x648b70]
cmp eax, ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], 2
jne 0x4b8828
push ebx
call fcn.004ae910
mov dword [0x648b70], eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push str.0123456789_:
push ebx
call eax
mov edi, eax
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp edi, ebx
je 0x4b886f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, 3
mov eax, 1
lea esi, [esp + 0x34]
call fcn.004b7e60
push 0x619850
mov eax, esi
push eax
call fcn.004fa80b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4b88b1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, 3
mov eax, 1
lea esi, [esp + 0x34]
call fcn.004b7e60
push 0x619850
mov ecx, esi
push ecx
call fcn.004fa80b
mov eax, dword [0x648b74]
cmp eax, ebx
mov edi, dword [esp + 0x10]
jne 0x4b88ca
push 2
call fcn.004ae910
mov dword [0x648b74], eax
push edi
call eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x90
jmp fcn.004b88e0
Function at 0x4b88e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x68
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
mov ecx, dword [esi + 0xc]
push 4
lea eax, [esi + 0x14]
push eax
push 0x1002
push 0xffff
push ecx
call edi
test eax, eax
jne 0x4b8970
mov eax, dword [esi + 0xc]
push 4
lea edx, [esi + 0x10]
push edx
push 0x1001
push 0xffff
push eax
call edi
test eax, eax
jne 0x4b8970
mov edx, dword [esi + 0xc]
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x1c], 1
call edi
test eax, eax
je 0x4b89d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, 3
mov eax, 1
lea esi, [esp + 0xc]
call fcn.004b7e60
push 0x619850
mov eax, esi
push eax
call fcn.004fa80b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0xffffffff
mov edx, 0xf
mov dword [esp + 0xc], vtable.CUDTException.0
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 3
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov byte [esp + 0x20], cl
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x3c], cl
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], ecx
mov byte [esp + 0x58], cl
jne 0x4b89c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x619850
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x20], eax
call fcn.004fa80b
pop edi
pop esi
add esp, 0x68
ret

Function at 0x4b89e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ecx
mov ecx, dword [eax + 8]
sub ecx, 2
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 0x10
lea edx, [esp]
push edx
mov edx, dword [eax + 0xc]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
pop ecx
ret 4
Function at 0x4b8a10
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
test dword [esi + 0x14], 0x80000000
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_htonl]
push edi
je 0x4b8a51
mov eax, dword [esi + 0x2c]
cdq
and edx, 3
add eax, edx
mov ebx, eax
sar ebx, 2
xor edi, edi
test ebx, ebx
jle 0x4b8a51
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + edi*4]
push edx
call ebp
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov dword [edx + edi*4], eax
add edi, 1
cmp edi, ebx
jl 0x4b8a37
lea edi, [esi + 0x14]
mov ebx, 4
lea esp, [esp]
mov eax, dword [edi]
push eax
call ebp
mov dword [edi], eax
add edi, 4
sub ebx, 1
jne 0x4b8a60
mov ecx, dword [esi + 0x2c]
mov edx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
sub eax, 2
neg eax
push 0
sbb eax, eax
push 0
and eax, 0xc
add eax, 0x10
push eax
push edx
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [ecx + 0xc]
push 2
lea edx, [esi + 0x24]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
jne 0x4b8abc
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
jmp 0x4b8ac4
mov dword [esp + 0x14], 0xffffffff
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
lea edi, [esi + 0x14]
mov ebx, 4
mov edx, dword [edi]
push edx
call ebp
mov dword [edi], eax
add edi, 4
sub ebx, 1
jne 0x4b8ad2
test dword [esi + 0x14], 0x80000000
je 0x4b8b1a
mov eax, dword [esi + 0x2c]
cdq
and edx, 3
add eax, edx
mov ebx, eax
sar ebx, 2
xor edi, edi
test ebx, ebx
jle 0x4b8b1a
mov edi, edi
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + edi*4]
push edx
call ebp
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov dword [edx + edi*4], eax
add edi, 1
cmp edi, ebx
jl 0x4b8b00
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop ecx
ret 8