joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0b90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4a0c10
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebx, dword [esp + 0x10]
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4a0bb0
sub eax, edx
add eax, 1
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebx
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4a0bd8
sub ecx, edi
push ebx
add ecx, 1
push ecx
push eax
call fcn.004387d0
test eax, eax
je 0x4a0bf7
call fcn.004a6300
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret

Function at 0x4a50d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
jne 0x4a510c
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push esi
call ebx
test eax, eax
jne 0x4a5104
call ebp
cmp eax, 0xb7
jne 0x4a5114
push esi
call edi
cmp eax, 0xffffffff
je 0x4a50f2
pop edi
pop esi
pop ebp
and eax, 0x10
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4a57e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x540a54]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
mov esi, dword [esp + 0x118]
push 0x520a64
push 0x104
push esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.00473c00
test eax, eax
je 0x4a5825
call fcn.004a6300
push str._NT_SYMBOL_PATH
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004e03bc
add esp, 0xc
test eax, eax
je 0x4a5872
push 0x520a50
push 0x104
push esi
call fcn.00473c00
test eax, eax
je 0x4a5859
call fcn.004a6300
mov edx, dword [esp + 4]
push edx
push 0x104
push esi
call fcn.00473c00
test eax, eax
je 0x4a5872
call fcn.004a6300
push str._NT_ALT_SYMBOL_PATH
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004e03bc
add esp, 0xc
test eax, eax
je 0x4a58bf
push 0x520a50
push 0x104
push esi
call fcn.00473c00
test eax, eax
je 0x4a58a6
call fcn.004a6300
mov edx, dword [esp + 4]
push edx
push 0x104
push esi
call fcn.00473c00
test eax, eax
je 0x4a58bf
call fcn.004a6300
push str.SYSTEMROOT
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004e03bc
add esp, 0xc
test eax, eax
je 0x4a5948
push 0x520a50
push 0x104
push esi
call fcn.00473c00
test eax, eax
je 0x4a58f3
call fcn.004a6300
mov edx, dword [esp + 4]
push edx
push 0x104
push esi
call fcn.00473c00
test eax, eax
je 0x4a590c
call fcn.004a6300
push 0x520a50
push 0x104
push esi
call fcn.00473c00
test eax, eax
je 0x4a5925
call fcn.004a6300
mov eax, dword [esp + 4]
push eax
push 0x104
push esi
call fcn.00473c00
test eax, eax
je 0x4a593e
call fcn.004a6300
push str.System32
jmp 0x4a59de
push 0x103
lea ecx, [esp + 0x11]
push 0
push ecx
mov byte [esp + 0x18], 0
call fcn.004dc170
add esp, 0xc
push 0x103
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4a59f2
push 0x520a50
push 0x104
push esi
call fcn.00473c00
test eax, eax
je 0x4a598e
call fcn.004a6300
lea eax, [esp + 0xc]
push eax
push 0x104
push esi
call fcn.00473c00
test eax, eax
je 0x4a59a7
call fcn.004a6300
push 0x520a50
push 0x104
push esi
call fcn.00473c00
test eax, eax
je 0x4a59c0
call fcn.004a6300
lea ecx, [esp + 0xc]
push ecx
push 0x104
push esi
call fcn.00473c00
test eax, eax
je 0x4a59d9
call fcn.004a6300
push str.System
push 0x104
push esi
call fcn.00473c00
test eax, eax
je 0x4a59f2
call fcn.004a6300
mov ecx, dword [esp + 0x110]
pop esi
xor ecx, esp
call fcn.004dc8c2
add esp, 0x110
ret
Function at 0x4a62a0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4a62f5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esi]
push 0
push 0
lea edx, [esp + 0xc]
push edx
push fcn.004a5ce0
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
push 0
push 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x10
ret

Function at 0x4a6510
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x540a54]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x400
jge 0x4a65e6
push 0x3ff
lea ecx, [esp + 5]
push 0
push ecx
mov byte [esp + 0xc], 0
call fcn.004dc170
mov eax, dword [esp + 0x414]
lea edx, [esp + 0x418]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x3ff
push ecx
call fcn.004de29e
add esp, 0x1c
test eax, eax
jl 0x4a658c
cmp eax, 0x3ff
ja 0x4a658c
jne 0x4a6599
mov byte [esp + 0x3ff], 0
jmp 0x4a6599
mov byte [esp + 0x3ff], 0
call fcn.004a6300
call fcn.004a5120
test al, al
je 0x4a65d2
lea edx, [esp]
push edx
push 0x2000001
call fcn.004abbd0
add esp, 8
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004dc8c2
add esp, 0x404
ret
push 0
push str.BSObj_Plugin
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004dc8c2
add esp, 0x404
ret
Function at 0x4a68e0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x1004
call fcn.004de2f0
mov eax, dword [0x540a54]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x1018]
test ebx, 0x400
push ebp
mov ebp, dword [esp + 0x1010]
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1020]
je 0x4a692c
push edi
push esi
push ebp
call dword [0x5a64a4]
add esp, 0xc
and ebx, 2
jne 0x4a693f
test byte [esp + 0x1024], 4
je 0x4a6a61
push 0xfff
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.004dc170
push esi
push ebp
push edi
push str.Debug_Assertion_Failed._n_nExpression_:__s_nLine_:__d_nFile_:__s_n_n
lea ecx, [esp + 0x2c]
push 0x1000
push ecx
call fcn.00431690
add esp, 0x24
test eax, eax
je 0x4a6993
call fcn.004a6300
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004dc8c2
add esp, 0x1004
ret
test byte [esp + 0x1024], 8
je 0x4a69e6
push str.CallStack:_n
push 0x1000
lea edx, [esp + 0x18]
push edx
call fcn.00473c00
test eax, eax
jne 0x4a6973
mov eax, dword [0x5a6468]
push eax
push 0x1000
lea ecx, [esp + 0x18]
push ecx
call fcn.00473c00
test eax, eax
jne 0x4a6973
push 0x520cb8
push 0x1000
lea edx, [esp + 0x18]
push edx
call fcn.00473c00
test eax, eax
jne 0x4a6973
test ebx, ebx
je 0x4a6a31
push str._press__ok__to_advance__press__cancel__to_exit_
push 0x1000
lea eax, [esp + 0x18]
push eax
call fcn.00473c00
test eax, eax
jne 0x4a6973
push 0x11
push str.BSLib_Debug_Module
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x4a6a61
mov al, byte [esp + 0x1024]
shr al, 4
not al
and al, 1
jmp 0x4a697a
push str._press__ok__to_exit_program_
push 0x1000
lea edx, [esp + 0x18]
push edx
call fcn.00473c00
test eax, eax
jne 0x4a6973
push 0x10
push str.BSLib_Debug_Module
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4a7a20
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
cmp byte [0x5a77c0], 0
jne 0x4a7a82
lea eax, [esp]
push eax
push 1
mov byte [0x5a77c0], 1
call fcn.004a79e0
add esp, 8
test al, al
je 0x4a7a59
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [0x5a77b0], ecx
mov dword [0x5a77b4], edx
lea eax, [esp]
push eax
push reloc.WS2_32.dll_accept
call fcn.004a79e0
add esp, 8
test al, al
je 0x4a7a82
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [0x5a77b8], ecx
mov dword [0x5a77bc], edx
mov ecx, dword [esp + 0x14]
mov edx, ecx
sar edx, 5
cmp edx, 3
jbe 0x4a7aa1
push str.cap_invalid
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
add esp, 0x10
ret
and ecx, 0x1f
mov eax, 1
shl eax, cl
and eax, dword [edx*4 + 0x5a77b0]
neg eax
sbb eax, eax
neg eax
add esp, 0x10
ret
Function at 0x4abbd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5355d8
push 0x4dcb50
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2804
call fcn.004de2f0
mov eax, dword [0x540a54]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x281c], bl
push 0x27ff
push ebx
lea eax, [ebp - 0x281b]
push eax
call fcn.004dc170
add esp, 0xc
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x2800
lea eax, [ebp - 0x281c]
push eax
call fcn.004633d0
test eax, eax
je 0x4abc52
call fcn.004a6300
mov eax, dword [0x5a77c4]
cmp eax, ebx
je 0x4abc79
mov eax, dword [eax + 0x24]
cmp eax, ebx
je 0x4abc79
lea ecx, [ebp - 0x281c]
push ecx
push 0x51da94
mov edx, dword [ebp + 8]
push edx
call eax
add esp, 0xc
jmp 0x4abc91
lea eax, [ebp - 0x281c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4abc91
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004dc8c2
mov esp, ebp
pop ebp
ret
Function at 0x4b8da0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp edi, 1
mov esi, ecx
je 0x4b8db6
test edi, edi
je 0x4b8db6
call fcn.004a6300
cmp dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x44], edi
jne 0x4b8ded
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x40], eax
jne 0x4b8ded
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, esi
call fcn.004b8d80
pop edi
xor eax, eax
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1c]
sub eax, 0
push edi
mov edi, ecx
je 0x4b8f8e
sub eax, 1
je 0x4b8f6c
call fcn.004a6300
jmp 0x4b8fb5
mov eax, dword [edi + 0x98]
cmp eax, dword [edi + 0x9c]
lea ecx, [edi + 0x60]
jne 0x4b8f87
pop edi
mov eax, 6
pop esi
ret 4
call fcn.004b89a0
jmp 0x4b8fb5
mov ecx, dword [esi + 0x1054]
mov dx, word [ecx]
and dx, 0x7fff
add dx, 6
cmp dx, 6
jae 0x4b8fab
call fcn.004a6300
movzx eax, word [esi + 0x103e]
mov dword [esi + 0x24], eax
push ebx
push ebp
lea ebp, [edi + 0x154]
push ebp
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [esi + 0x20]
mov eax, dword [edi + 0x40]
push ebx
push esi
push ebx
lea ecx, [esp + 0x20]
push ecx
push edx
add esi, 0x24
push esi
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4b905d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
je 0x4b9036
push str.PostSend__
push str.PostSend
push esi
call fcn.004c8a60
add esp, 0xc
cmp esi, 0x2733
je 0x4b9041
cmp esi, 8
je 0x4b9041
cmp esi, 0x2747
je 0x4b9041
push ebp
mov ebx, 0x8002
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
ret 4
xor ebx, ebx
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
ret 4
push esi
push str.WSASend_____NERR_TOO_MANY_OUTSTANDING:__d
push 0
call fcn.004abbd0
add esp, 0xc
push ebp
mov ebx, 0x8005
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
ret 4
Function at 0x4b9110
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0xa4]
mov ecx, esi
call fcn.004b8b00
mov eax, dword [esi + 0x38]
cmp eax, dword [esi + 0x3c]
jge 0x4b9132
call fcn.004a6300
mov ecx, dword [esi + 0x38]
sub ecx, dword [esi + 0x3c]
cmp ecx, 6
jl 0x4b9142
call fcn.004a6300
mov ecx, esi
call fcn.004b89a0
cmp dword [edi + 0xc8], 0
lea ebx, [edi + 0xc8]
ja 0x4b915d
call fcn.004a6300
mov ecx, dword [edi + 0xc4]
push 0
push esi
lea edx, [esp + 0x14]
push edx
mov edx, dword [edi + 0x40]
lea eax, [esp + 0x1c]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
pop edi
pop esi
pop ebx
jne 0x4b91af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jg 0x4b91b5
je 0x4b91c5
cmp eax, 8
je 0x4b91c5
cmp eax, 0x3e5
jne 0x4b91bc
xor eax, eax
add esp, 8
ret
cmp eax, 0x2747
je 0x4b91c5
mov eax, 0x8002
add esp, 8
ret
mov eax, 0x8005
add esp, 8
ret
Function at 0x4ba570
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x50f7f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x540a54]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp esi, edi
jne 0x4ba5b6
mov eax, 0x8009
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
lea ecx, [esi + 4]
cmp ecx, edi
jne 0x4ba5c8
call fcn.004a6300
mov ebp, dword [esp + 0x1c]
jmp 0x4ba5e6
mov ebp, ecx
mov dword [esp + 0x1c], ebp
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov dword [esp + 0x28], edi
call eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edi
mov ecx, dword [esi + 0x148]
cmp ecx, edi
je 0x4ba646
cmp dword [0x5a77c4], edi
je 0x4ba646
push 1
mov dword [esp + 0x14], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push edi
lea eax, [esp + 0x18]
push eax
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x4ba646
mov eax, dword [0x5a77c4]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x50]
call eax
mov ecx, dword [esi + 0x148]
push 1
mov dword [esp + 0x14], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push edi
lea eax, [esp + 0x18]
push eax
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, edi
jne 0x4ba617
cmp dword [esi + 0x44], 1
jne 0x4ba6d4
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x4ba6cd
cmp dword [esi + 0x48], edi
je 0x4ba698
push edi
push eax
call fcn.004c8a40
mov eax, dword [esi + 0x40]
add esp, 8
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0x40]
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
push 4
push edi
push edi
push edi
push 0x4004667f
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
jmp 0x4ba6bc
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x80
push 0xffff
push eax
mov word [esp + 0x24], 1
mov word [esp + 0x26], di
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x44], 0xffffffff
cmp dword [0x5a77c8], edi
jne 0x4ba6e3
mov ecx, esi
call fcn.004ba290
mov dword [esp + 0x30], 0xffffffff
cmp ebp, edi
jne 0x4ba6f4
call fcn.004a6300
cmp dword [esp + 0x24], edi
je 0x4ba70f
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
call edx
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x24], eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
Function at 0x4bdb60
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x50]
mov ecx, edi
call fcn.004b8b00
mov eax, dword [edi + 0x38]
cmp eax, dword [edi + 0x3c]
jge 0x4bdb7f
call fcn.004a6300
mov ecx, dword [edi + 0x38]
sub ecx, dword [edi + 0x3c]
cmp ecx, 6
jl 0x4bdb8f
call fcn.004a6300
mov ecx, edi
call fcn.004b89a0
cmp dword [esi + 0x74], 0
lea ebx, [esi + 0x74]
ja 0x4bdba4
call fcn.004a6300
push 0
push edi
lea eax, [esi + 0xc8]
push eax
mov dword [eax], 0x10
lea edx, [esi + 0xb8]
push edx
mov edx, dword [esi + 0x70]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x40]
lea ecx, [esp + 0x24]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
pop edi
pop esi
pop ebx
jne 0x4bdc1e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x4bdc1e
cmp eax, 0x2733
je 0x4bdc15
cmp eax, 8
je 0x4bdc15
cmp eax, 0x2747
je 0x4bdc15
mov eax, 0x8002
add esp, 8
ret
mov eax, 0x8005
add esp, 8
ret
xor eax, eax
add esp, 8
ret

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

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x50]
mov ecx, edi
call fcn.004b8b00
mov eax, dword [edi + 0x38]
cmp eax, dword [edi + 0x3c]
jge 0x4bdb7f
call fcn.004a6300
mov ecx, dword [edi + 0x38]
sub ecx, dword [edi + 0x3c]
cmp ecx, 6
jl 0x4bdb8f
call fcn.004a6300
mov ecx, edi
call fcn.004b89a0
cmp dword [esi + 0x74], 0
lea ebx, [esi + 0x74]
ja 0x4bdba4
call fcn.004a6300
push 0
push edi
lea eax, [esi + 0xc8]
push eax
mov dword [eax], 0x10
lea edx, [esi + 0xb8]
push edx
mov edx, dword [esi + 0x70]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x40]
lea ecx, [esp + 0x24]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
pop edi
pop esi
pop ebx
jne 0x4bdc1e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x4bdc1e
cmp eax, 0x2733
je 0x4bdc15
cmp eax, 8
je 0x4bdc15
cmp eax, 0x2747
je 0x4bdc15
mov eax, 0x8002
add esp, 8
ret
mov eax, 0x8005
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x4be870
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0xffffffff
mov byte [esi + 0xa8], 1
jne 0x4be8af
push 1
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x40], eax
jne 0x4be8af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
xor eax, eax
pop esi
ret 4
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
test bp, bp
push edi
lea edi, [esi + 0xb8]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov word [edi], 2
jbe 0x4be8f2
mov ecx, dword [esi + 0x40]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x40]
push 0x10
push edi
push edx
mov word [esi + 0xba], ax
mov dword [esi + 0xbc], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop edi
pop ebp
jne 0x4be92a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
pop esi
ret 4
mov ecx, esi
call fcn.004bda00
test eax, eax
je 0x4be8a9
mov ecx, esi
call fcn.004be7a0
mov eax, 1
pop esi
ret 4

Function at 0x4c8864
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x540a54]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4c888a
mov eax, 1
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004dc8c2
add esp, 0x194
ret 8
xor ecx, ecx
mov ch, byte [esp + 0x1a0]
push ebx
mov bl, byte [esp + 0x1a0]
lea eax, [esp + 8]
push eax
mov cl, bl
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4c88cf
mov ax, word [esp + 8]
cmp al, bl
jne 0x4c88c9
cmp ah, byte [esp + 0x1a4]
jne 0x4c88c9
mov eax, 1
mov dword [esi + 4], eax
jmp 0x4c88d1
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [esp + 0x198]
pop ebx
pop esi
xor ecx, esp
call fcn.004dc8c2
add esp, 0x194
ret 8

Function at 0x4c8b80
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4c8b8c
xor al, al
ret 8
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
add eax, 1
ret 8

Function at 0x4c8c20
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
jne 0x4c8c32
xor al, al
add esp, 8
ret 8
mov edx, dword [esp + 0x10]
mov ecx, 4
mov dword [esp], ecx
mov dword [esp + 4], ecx
lea ecx, [esp]
push ecx
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
add eax, 1
add esp, 8
ret 8
Function at 0x4c9c22
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
call edx
cmp eax, 1
je 0x4c9c36
call fcn.004a6300
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x4c9c46
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
push edi
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x4c9c54
call fcn.004a6300
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.004c9bd0
test eax, eax
jne 0x4c9c6b
pop edi
pop esi
pop ebx
pop ecx
ret 0xc
mov edx, dword [esi + 0x98]
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, esi
call fcn.004c9c00
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret 0xc

Function at 0x4cc2e0
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov ebp, 0x811c9dc5
cmp esi, 0xfffffffe
je 0x4cc305
test esi, esi
je 0x4cc300
cmp esi, dword [esp + 0x1c]
je 0x4cc305
call fcn.004dbe3c
cmp edi, dword [esp + 0x20]
je 0x4cc371
cmp esi, 0xfffffffe
mov ebx, edi
je 0x4cc337
test esi, esi
jne 0x4cc31b
call fcn.004dbe3c
cmp dword [esi + 0x18], 0x10
jb 0x4cc326
mov eax, dword [esi + 4]
jmp 0x4cc329
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x4cc337
call fcn.004dbdfd
add edi, 1
cmp esi, 0xfffffffe
je 0x4cc364
test esi, esi
jne 0x4cc348
call fcn.004dbe3c
cmp dword [esi + 0x18], 0x10
jb 0x4cc353
mov eax, dword [esi + 4]
jmp 0x4cc356
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x4cc364
call fcn.004dbdfd
movsx eax, byte [ebx]
imul ebp, ebp, 0x1000193
xor ebp, eax
jmp 0x4cc2f1
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x4d30a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5121b9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x540a54]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.IFile.0
mov dword [esp + 0x1c], 2
call fcn.004d1b10
mov byte [esp + 0x1c], 1
lea ecx, [esi + 0x58]
call fcn.00431380
xor ebx, ebx
mov byte [esp + 0x1c], bl
lea ecx, [esi + 0x30]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x1c], bl
call fcn.004ccad0
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esi + 0x2c], 0x10
jb 0x4d311b
mov eax, dword [esi + 0x18]
push eax
call fcn.004dc98b
add esp, 4
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret