joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0de0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
or esi, 0xffffffff
cmp edi, 0x10
jb 0x4b0f98
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx + 2]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx + 3]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx + 4]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx + 5]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx + 6]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx + 7]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx + 8]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx + 9]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx + 0xa]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx + 0xb]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx + 0xc]
shr eax, 8
xor eax, esi
sub edi, 0x10
add ecx, 0x10
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx - 3]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx - 2]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
xor edx, edx
mov dl, byte [ecx - 1]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x5d9320]
shr eax, 8
xor eax, esi
cmp edi, 0x10
mov esi, eax
jae 0x4b0df6
test edi, edi
je 0x4b0fbb
lea esp, [esp]
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov edx, dword [eax*4 + 0x5d9320]
shr esi, 8
xor esi, edx
inc ecx
dec edi
jne 0x4b0fa0
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x4b12f0
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov edi, dword [esp + 0x2c]
push ebp
push esi
push ebp
push 2
push ebp
push ebx
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x4b136a
xor eax, eax
xor edx, edx
div edi
imul eax, edi
add edx, esi
push edx
push eax
push ebp
push 4
push ebx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov edi, eax
push esi
push edi
call fcn.004b0de0
add esp, 8
test edi, edi
mov esi, eax
je 0x4b1359
push edi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x4b13d0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b13f9
xor eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4b1b30
Capabilities:
Get system information on windows
Print debug messages
Read file via mapping

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x24
test eax, eax
push esi
mov esi, ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x128], ecx
jne 0x4b1b4e
mov eax, dword [esi + 0x114]
mov edx, eax
mov dword [esi + 0x12c], eax
mov eax, dword [esi + 0x114]
add edx, ecx
cmp edx, eax
jbe 0x4b1b6b
xor eax, eax
pop esi
add esp, 0x24
ret 0xc
push ebx
push ebp
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [esi + 0x128]
mov edi, dword [esp + 0x2c]
mov eax, ecx
xor edx, edx
div edi
push 0
imul eax, edi
mov ebx, eax
mov eax, dword [esi + 0x12c]
mov edi, ecx
add ecx, eax
push ecx
mov ecx, dword [esi + 0x110]
push 0
push 2
push 0
push ecx
lea ebp, [eax + edx]
sub edi, ebx
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x124], eax
jne 0x4b1bd4
push str.CMappedFile::Map__m_hFM_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x24
ret 0xc
push ebp
push ebx
push 0
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x130], eax
jne 0x4b1c0b
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.CMappedFile::Map__m_lpMapData__lu
call fcn.004b01a0
add esp, 8
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x24
ret 0xc
mov edx, dword [esp + 0x38]
add eax, edi
mov dword [esi + 0x134], eax
mov dword [edx], eax
mov eax, dword [esi + 0x12c]
mov ecx, dword [esi + 0x134]
pop edi
pop ebp
pop ebx
mov dword [esi + 0x120], 0
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], ecx
pop esi
add esp, 0x24
ret 0xc
Function at 0x4b33c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58fe37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x5aaf98
mov dword [esp + 0x14], 4
call fcn.004b3310
cmp dword [esi + 0x88], 0x10
jb 0x4b3406
mov eax, dword [esi + 0x74]
push eax
call fcn.004796fd
add esp, 4
xor ebx, ebx
mov dword [esi + 0x88], 0xf
mov dword [esi + 0x84], ebx
mov byte [esi + 0x74], bl
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x4b342b
push eax
call fcn.004796fd
add esp, 4
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x4b3444
push eax
call fcn.004796fd
add esp, 4
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x4b345d
push eax
call fcn.004796fd
add esp, 4
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x4b3476
push eax
call fcn.004796fd
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4b4650
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x58fe37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], 0x5aaf98
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
lea edi, [esi + 0x48]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x88], 0xf
mov dword [esi + 0x84], ebx
mov byte [esi + 0x74], bl
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x24], ebx
mov byte [esi + 0x20], 1
mov eax, dword [edi + 4]
cmp eax, ebx
mov byte [esp + 0x18], 4
je 0x4b46d7
push eax
call fcn.004796fd
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
push 0x32
mov ecx, edi
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
call fcn.004b3720
mov ecx, esi
call fcn.004b3e00
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4b5330
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x110]
test eax, eax
push edi
je 0x4b534f
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esi + 0x110], 0
push ebx
mov ebx, dword [esp + 0x10]
push 0x104
lea eax, [esi + 8]
push ebx
push eax
mov dword [esi + 0x114], 0
call fcn.0047a2a0
mov edi, dword [esp + 0x20]
add esp, 0xc
xor eax, eax
cmp edi, 2
setne al
xor ecx, ecx
push 0
push 0x80
dec eax
and eax, 0x40000000
add eax, 0x80000000
cmp edi, 1
setne cl
add ecx, 3
push ecx
push 0
push 1
push eax
push ebx
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x110], eax
pop ebx
je 0x4b53ce
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [esi + 4], edi
mov dword [esi + 0x114], eax
pop edi
mov eax, 1
pop esi
ret 8
pop edi
mov dword [esi + 0x110], 0
xor eax, eax
pop esi
ret 8

Function at 0x4b5460
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov eax, 0xc6ef3720
mov edi, 0x20
lea ebx, [ebx]
mov ebx, edx
shr ebx, 5
mov ebp, edx
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
mov ebp, dword [esi + ebp*4]
add ebp, eax
add ebx, edx
xor ebx, ebp
sub ecx, ebx
mov ebx, ecx
shr ebx, 5
mov ebp, ecx
shl ebp, 4
xor ebx, ebp
add eax, 0x61c88647
mov ebp, eax
and ebp, 3
mov ebp, dword [esi + ebp*4]
add ebx, ecx
add ebp, eax
xor ebx, ebp
sub edx, ebx
dec edi
jne 0x4b5480
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
ret

Function at 0x4c3510
Capabilities:
Access peb ldr_data

Disassembly:
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 4]
mov dword [esp + 0xc], eax
mov eax, dword [0x5f5688]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.004c3380
Function at 0x4c6600
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
push edi
jle 0x4c6632
mov eax, dword [esi + 0x1c]
sub eax, ecx
test eax, eax
jle 0x4c6625
mov edx, dword [esi + 0x14]
push eax
lea eax, [edx + ecx]
push eax
push edx
call fcn.004793c0
add esp, 0xc
mov ecx, dword [esi + 0x20]
sub dword [esi + 0x1c], ecx
mov dword [esi + 0x20], 0
mov al, byte [esi + 0x41]
test al, al
mov eax, dword [esi + 0x18]
je 0x4c66e8
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0xc]
sub eax, ecx
mov ecx, dword [esi + 0x10]
sub ecx, edx
cmp ecx, eax
jge 0x4c6653
mov eax, ecx
test eax, eax
jle 0x4c6722
mov ecx, dword [esi + 0x244]
push 0
push eax
mov eax, dword [esi + 8]
add eax, edx
push eax
push ecx
call sub.ws2_32.dll_recv
mov edi, eax
test edi, edi
jge 0x4c6687
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4c668d
pop edi
xor al, al
pop esi
ret
je 0x4c6718
mov ecx, dword [esi + 0xc]
add ecx, edi
mov edi, ecx
cmp edi, 8
mov dword [esi + 0xc], ecx
jl 0x4c6722
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
and edi, 0xfffffff8
push edi
lea edx, [esi + 0x142]
push edx
push eax
add ecx, dword [esi + 0x1c]
push ecx
call fcn.00478ba0
mov edx, dword [esi + 0x1c]
add edx, eax
mov eax, dword [esi + 0xc]
add esp, 0x10
cmp eax, edi
mov dword [esi + 0x1c], edx
jle 0x4c66e0
mov ecx, dword [esi + 8]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
call fcn.004793c0
add esp, 0xc
sub dword [esi + 0xc], edi
pop edi
mov al, 1
pop esi
ret
mov ecx, dword [esi + 0x1c]
sub eax, ecx
test eax, eax
jle 0x4c6722
push 0
push eax
mov eax, dword [esi + 0x14]
add eax, ecx
mov ecx, dword [esi + 0x244]
push eax
push ecx
call sub.ws2_32.dll_recv
mov edi, eax
test edi, edi
jge 0x4c671d
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4c671f
pop edi
xor al, al
pop esi
ret
je 0x4c6718
add dword [esi + 0x1c], edi
pop edi
mov al, 1
pop esi
ret
Function at 0x4c67d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.004c6770
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea edi, [esi + 0x248]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
push 0
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
push 1
push 2
mov dword [ecx + 0xc], eax
call sub.ws2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x244], eax
jne 0x4c6828
mov ecx, esi
call fcn.004c6770
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
pop edi
xor al, al
pop esi
pop ecx
ret 8
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x14], 1
call sub.ws2_32.dll_ioctlsocket
mov ecx, edi
call fcn.004c7cd0
mov edx, dword [esi + 0x244]
push eax
push edi
push edx
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4c6889
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4c6889
push str.error___WSAEWOULDBLOCK
call fcn.004b00c0
add esp, 4
mov ecx, esi
call fcn.004c6770
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop edi
xor al, al
pop esi
pop ecx
ret 8
push 0
call fcn.0047adc0
mov ecx, dword [esp + 0x18]
add esp, 4
add eax, ecx
mov dword [esi + 4], eax
pop edi
mov al, 1
pop esi
pop ecx
ret 8

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

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x41]
test al, al
push edi
je 0x4c6b96
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0x38]
sub edi, eax
test edi, edi
jle 0x4c6bca
mov edx, dword [esi + 0x30]
push edi
add edx, eax
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x42]
push ecx
push edx
add eax, dword [esi + 0x2c]
push eax
call fcn.004784a0
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x3c]
add ecx, eax
mov eax, ecx
add edx, edi
add esp, 0x10
test eax, eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x3c], edx
jle 0x4c6bc3
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x244]
push 0
push eax
push ecx
push edx
call sub.ws2_32.dll_send
mov edi, eax
test edi, edi
jl 0x4c6bbb
mov eax, dword [esi + 0x2c]
cmp eax, edi
jle 0x4c6b82
mov ecx, dword [esi + 0x24]
sub eax, edi
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.004793c0
add esp, 0xc
mov eax, dword [esi + 0x2c]
sub eax, edi
mov ecx, esi
mov dword [esi + 0x2c], eax
call fcn.004c6730
pop edi
mov al, 1
pop esi
ret
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
sub eax, ecx
test eax, eax
jle 0x4c6bca
mov edx, dword [esi + 0x30]
push 0
push eax
mov eax, dword [esi + 0x244]
add edx, ecx
push edx
push eax
call sub.ws2_32.dll_send
test eax, eax
jge 0x4c6bc0
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x3c], eax
mov ecx, esi
call fcn.004c6730
pop edi
mov al, 1
pop esi
ret
Function at 0x4c6bd0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
push esi
mov esi, ecx
mov eax, dword [esi + 0x244]
cmp eax, 0xffffffff
je 0x4c6d01
mov dword [esp + 0x114], eax
mov dword [esp + 0x10], eax
mov ecx, 1
lea eax, [esp + 4]
push eax
push 0
mov dword [esp + 0x118], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x11c]
push edx
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sub.ws2_32.dll_select
cmp eax, 0xffffffff
je 0x4c6d01
mov al, byte [esi + 0x40]
test al, al
jne 0x4c6c91
mov ecx, dword [esi + 0x244]
lea eax, [esp + 0xc]
push eax
push ecx
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c6c66
mov edx, dword [esi]
mov ecx, esi
mov byte [esi + 0x40], 1
call dword [edx + 4]
pop esi
add esp, 0x210
ret
push 0
call fcn.0047adc0
mov ecx, dword [esi + 4]
add esp, 4
cmp eax, ecx
jle 0x4c6d01
mov ecx, esi
call fcn.004c6770
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop esi
add esp, 0x210
ret
mov edx, dword [esi + 0x244]
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c6cc5
mov eax, dword [esi + 0x38]
cmp eax, dword [esi + 0x3c]
jle 0x4c6cc5
mov ecx, esi
call fcn.004c6b00
test al, al
jne 0x4c6cc5
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4c6cf3
mov ecx, dword [esi + 0x244]
lea eax, [esp + 0x110]
push eax
push ecx
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c6ce8
mov ecx, esi
call fcn.004c6600
test al, al
je 0x4c6cf3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test al, al
jne 0x4c6d01
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
mov ecx, esi
call fcn.004c6770
pop esi
add esp, 0x210
ret

Function at 0x4c71a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59064c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebx + 0x248]
mov dword [esp + 0xc], ebx
mov dword [ebx], 0x5aba78
call fcn.004c7ce0
xor eax, eax
lea ecx, [ebx + 0x260]
mov dword [esp + 0x18], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
push eax
push 0x8012
mov byte [esp + 0x20], 1
mov dword [ebx + 0x244], 0xffffffff
mov byte [ebx + 0x41], al
mov byte [ebx + 0x40], al
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x258], eax
mov byte [ebx + 0x25c], al
call fcn.004c7130
mov edi, dword [ebx + 0x264]
mov ecx, 0x2004
mov esi, 0x5d9800
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
movsw word es:[edi], word [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4c7d60
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
push 0
push 2
push 2
mov esi, ecx
call sub.ws2_32.dll_socket
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push eax
mov dword [esi + 4], eax
mov dword [esp + 0x10], 1
call sub.ws2_32.dll_ioctlsocket
mov eax, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
push eax
mov dword [esp + 0x18], edx
mov word [esp + 0xc], 2
mov dword [esp + 0x10], edx
call sub.ws2_32.dll_htons
mov edx, dword [esi + 4]
push 0x10
lea ecx, [esp + 0xc]
push ecx
push edx
mov word [esp + 0x16], ax
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
setne al
pop esi
add esp, 0x14
ret 4

Function at 0x4c7de0
Capabilities:
Get socket status

Disassembly:
sub esp, 8
push esi
mov esi, dword [ecx + 4]
cmp esi, 0xffffffff
je 0x4c7e3b
lea edx, [ecx + 8]
lea eax, [ecx + 0x10c]
mov dword [edx], 0
mov dword [eax], 0
mov dword [ecx + 0xc], esi
inc dword [edx]
mov esi, dword [eax]
cmp esi, 0x40
jae 0x4c7e1b
push ebx
mov ebx, dword [ecx + 4]
mov dword [ecx + esi*4 + 0x110], ebx
inc dword [eax]
pop ebx
lea ecx, [esp + 4]
push ecx
push 0
push eax
push edx
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sub.ws2_32.dll_select
pop esi
add esp, 8
ret

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

Disassembly:
push ecx
mov edx, dword [esp + 0x10]
lea eax, [esp]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
push 0
push eax
mov eax, dword [ecx + 4]
push edx
push eax
mov dword [esp + 0x18], 0x10
call sub.ws2_32.dll_recvfrom
pop ecx
ret 0xc

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

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov ecx, dword [ecx + 4]
push 0x10
push eax
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
push ecx
call sub.ws2_32.dll_sendto
ret 0xc
Function at 0x4d2880
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x590c5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esi], 0x5ac06c
xor ebx, ebx
mov dword [esi + 0x1c], 0xf
mov dword [esi + 0x18], ebx
push edi
mov dword [esp + 0x10], esi
mov byte [esi + 8], bl
lea ecx, [esi + 0x30]
mov dword [esp + 0x1c], ebx
call fcn.004b1460
lea ebp, [esi + 0x44]
mov ecx, ebp
mov byte [esp + 0x1c], 1
call fcn.004d25e0
lea edi, [esi + 0x88]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
push 6
push str.global
lea ecx, [esi + 0x48]
mov byte [esp + 0x24], 3
mov dword [esi + 0x84], ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call fcn.00404250
push 0x80
mov ecx, edi
mov dword [esi + 0x70], ebx
call fcn.004d11c0
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4d3320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x590d08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x5ac114
xor edi, edi
mov dword [esp + 0x14], edi
call fcn.004cf910
mov eax, 0x3f800000
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x34], edi
xor eax, eax
lea ecx, [esi + 0x38]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.004d0050
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret