joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2dc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, 0x4fa6b8
xor eax, eax
mov dword [0x4fdb84], eax
call fcn.0041f27c
push 0x42205c
push 8
call fcn.0040d808
add esp, 8
push 0
call fcn.0040ef0c
pop ecx
push eax
call fcn.00409cf0
pop ecx
call fcn.004bf4fc
call sub.KERNEL32.dll_GetVersion
cmp al, 4
jb 0x4a2e0e
mov dword [0x515ee8], 1
jmp 0x4a2e35
call sub.KERNEL32.dll_GetVersion
movzx edx, ax
sar edx, 8
and dl, 0xff
cmp dl, 0x5f
jb 0x4a2e2d
mov dword [0x515ee8], 1
jmp 0x4a2e35
xor ecx, ecx
mov dword [0x515ee8], ecx
call sub.KERNEL32.dll_GetVersion
cmp al, 5
jb 0x4a2e4a
mov dword [0x515eec], 1
jmp 0x4a2e51
xor eax, eax
mov dword [0x515eec], eax
mov byte [0x50a79c], 0
mov byte [0x4fab6c], 0
mov byte [0x4fabd0], 0
mov byte [0x51f91f], 0
mov byte [0x51fa9f], 0
mov byte [0x4f63a8], 0
mov byte [0x514126], 0
xor edx, edx
mov dword [0x50a89c], edx
mov byte [0x510dec], 0
mov byte [0x5111d3], 0
call fcn.004832e8
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042cc60
cmp dword [0x515ee8], 0
je 0x4a2ebb
mov dword [0x515710], 2
jmp 0x4a2eee
push 4
call fcn.004eb050
cmp eax, 0x15
jg 0x4a2ed3
mov dword [0x515710], 6
jmp 0x4a2eee
cmp eax, 0x1c
jg 0x4a2ee4
mov dword [0x515710], 8
jmp 0x4a2eee
mov dword [0x515710], 0xa
cmp dword [0x515ee8], 0
jne 0x4a2f9e
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
push 0x4fa74c
call sub.KERNEL32.dll_LoadLibraryA
mov ebx, eax
mov dword [esi], ebx
test ebx, ebx
jne 0x4a2f1b
xor eax, eax
mov dword [esi], eax
push 0
call sub.KERNEL32.dll_SetErrorMode
mov ebx, dword [esi]
test ebx, ebx
je 0x4a2f9e
push 0x4fa759
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x515ef0], eax
push 0x4fa768
mov eax, dword [esi]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x515ef8], eax
push 0x4fa779
mov edx, dword [esi]
push edx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x515ef4], eax
cmp dword [0x515ef0], 0
je 0x4a2f92
cmp dword [0x515ef8], 0
je 0x4a2f92
cmp dword [0x515ef4], 0
je 0x4a2f92
mov ecx, dword [0x4fd9e8]
push ecx
call dword [0x515ef0]
mov eax, dword [0x4fd9e8]
push eax
call dword [0x515ef4]
jmp 0x4a2f9e
mov edx, dword [esi]
push edx
call sub.KERNEL32.dll_FreeLibrary
xor ecx, ecx
mov dword [esi], ecx
call fcn.00483344
push 0
call fcn.004cbe1c
push 0
call fcn.00419838
push 0
call fcn.004e6f84
push 0
call fcn.0046f0d8
push 0
call fcn.0040ef0c
pop ecx
mov dword [0x4f4f08], eax
xor eax, eax
mov dword [0x4f535c], eax
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
xor edx, edx
mov dword [0x4fa6c8], edx
xor ecx, ecx
mov dword [0x4fa6cc], ecx
cmp dword [0x515ee8], 0
je 0x4a3025
push 0x4fa78c
call sub.KERNEL32.dll_LoadLibraryA
mov ebx, eax
mov dword [0x4fa6c8], ebx
test ebx, ebx
je 0x4a301e
push 0x4fa799
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x4fd50c], eax
jmp 0x4a3025
xor eax, eax
mov dword [0x4fd50c], eax
call fcn.004a2cb8
push 0
call sub.KERNEL32.dll_SetErrorMode
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4a35bc
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
push 0
push 0x3e8
push 0x78
mov eax, dword [0x4fd9ec]
push eax
call sub.USER32.dll_SetTimer
cmp byte [0x4fafc0], 0
je 0x4a361b
cmp dword [0x4fb024], 0
jne 0x4a361b
push 0x4fafc0
call sub.WSOCK32.dll_inet_addr
mov ebx, eax
mov dword [0x4fb024], ebx
cmp ebx, 0xffffffff
jne 0x4a360a
mov byte [0x4fafc0], 0
xor eax, eax
mov dword [0x4fb024], eax
jmp 0x4a361b
mov edx, dword [0x4fb024]
push edx
call sub.WSOCK32.dll_htonl
mov dword [0x4fb024], eax
push 0x4fa7cf
call fcn.0040cfc8
pop ecx
mov dword [0x4f9fc8], eax
mov eax, dword [0x4f9fc8]
test eax, eax
je 0x4a364e
push 0x4fa7d8
push eax
call fcn.004014a8
add esp, 8
test eax, eax
je 0x4a364e
xor edx, edx
mov dword [0x4f9fc8], edx
call fcn.0049886c
push 0x515aff
push 0x515718
call fcn.0041f8c4
cmp dword [0x4f7eec], 0
je 0x4a3682
call fcn.00483808
call fcn.00483a14
xor ecx, ecx
mov dword [0x4f7eec], ecx
call fcn.00485c5c
call fcn.00461b70
call fcn.00450074
mov ebx, dword [0x4fa6c4]
test ebx, ebx
je 0x4a36a3
push 0x28
push ebx
call sub.USER32.dll_LoadAcceleratorsA
mov dword [0x4fa6bc], eax
cmp dword [0x4fa6bc], 0
jne 0x4a36be
push 0x28
mov eax, dword [0x4fd9e8]
push eax
call sub.USER32.dll_LoadAcceleratorsA
mov dword [0x4fa6bc], eax
mov ebx, dword [0x4fa6c4]
test ebx, ebx
je 0x4a36d5
push 0x29
push ebx
call sub.USER32.dll_LoadAcceleratorsA
mov dword [0x4fa6c0], eax
cmp dword [0x4fa6c0], 0
jne 0x4a36f0
push 0x29
mov eax, dword [0x4fd9e8]
push eax
call sub.USER32.dll_LoadAcceleratorsA
mov dword [0x4fa6c0], eax
push 0
mov edx, dword [0x4fd9ec]
push edx
call sub.USER32.dll_GetWindowThreadProcessId
push eax
mov ecx, dword [0x4fd9e8]
push ecx
push sym.mirc32.exe_KeyboardProc
push 2
call sub.USER32.dll_SetWindowsHookExA
mov dword [0x4f9c5c], eax
call fcn.004ccfd4
cmp dword [0x4fdb84], 0
jne 0x4a3795
cmp dword [0x4f6c5c], 0
je 0x4a3742
push 0
push 0
push 0x429
mov eax, dword [0x4fd9ec]
push eax
call sub.USER32.dll_PostMessageA
cmp dword [0x4f6464], 0
je 0x4a3760
push 0
push 0
push 0x42d
mov edx, dword [0x4fd9ec]
push edx
call sub.USER32.dll_PostMessageA
cmp dword [0x4fa8b8], 0
je 0x4a377e
push 0
push 0
push 0x433
mov ecx, dword [0x4fd9ec]
push ecx
call sub.USER32.dll_PostMessageA
call fcn.00413ae8
push 0x7f00
push 0
call sub.USER32.dll_LoadCursorA
push eax
call sub.USER32.dll_SetCursor
pop ebx
ret
Function at 0x4a8e40
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
add esp, 0xfffffff0
or eax, 0xffffffff
mov dword [0x4fa8dc], eax
mov dword [0x4fa8d8], eax
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [0x4fa8d8], eax
cmp eax, 0xffffffff
jne 0x4a8e6e
push 0
call fcn.004a8dbc
jmp 0x4a8ee0
mov word [esp], 2
xor edx, edx
mov dword [esp + 4], edx
mov cx, word [0x4fa8d4]
push ecx
call sub.WSOCK32.dll_htons
mov word [esp + 2], ax
push 0x10
lea eax, [esp + 4]
push eax
mov edx, dword [0x4fa8d8]
push edx
call sub.WSOCK32.dll_bind
test eax, eax
je 0x4a8eac
push 0
call fcn.004a8dbc
jmp 0x4a8ee0
push 5
mov ecx, dword [0x4fa8d8]
push ecx
call sub.WSOCK32.dll_listen
test eax, eax
je 0x4a8ec7
push 0
call fcn.004a8dbc
jmp 0x4a8ee0
push 8
push 0x434
mov eax, dword [0x4fd9ec]
push eax
mov edx, dword [0x4fa8d8]
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
add esp, 0x10
ret
Function at 0x4ab90c
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, 0x4faa68
mov edi, 0x5169fc
mov ebp, 0x516974
xor eax, eax
mov dword [0x516984], eax
mov edx, dword [0x516984]
push edx
lea ecx, [esi + 8]
push ecx
push 0x516978
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x4f7dec
push 0x3e7
push edi
lea eax, [esi + 0x15]
push eax
push 0x516978
lea edx, [esi + 0xd]
push edx
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [edi], 0
je 0x4ab9da
lea ecx, [esi + 0x19]
push ecx
push edi
call fcn.004015f8
add esp, 8
mov ebx, eax
mov dword [ebp], ebx
test ebx, ebx
je 0x4ab98a
mov byte [ebx], 0
add dword [ebp], 5
mov eax, dword [ebp]
cmp byte [eax], 0
jne 0x4ab98a
xor edx, edx
mov dword [ebp], edx
lea ecx, [esi + 0x20]
push ecx
push edi
call fcn.004015f8
add esp, 8
mov ebx, eax
mov dword [0x516970], ebx
test ebx, ebx
je 0x4ab9bf
mov byte [ebx], 0
add dword [0x516970], 5
mov eax, dword [0x516970]
cmp byte [eax], 0
jne 0x4ab9bf
xor edx, edx
mov dword [0x516970], edx
mov ecx, dword [ebp]
push ecx
mov eax, dword [0x516970]
push eax
push edi
call fcn.004ab610
inc dword [0x516984]
jmp 0x4ab926
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4adc94
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdac
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x5188dc
push 0
push 0
push 0x184
push 0x157
push esi
call sub.USER32.dll_SendDlgItemMessageA
push edi
push 0x3e7
push 0xd
push 0x15f
push esi
call sub.USER32.dll_SendDlgItemMessageA
push 0x4fb265
push edi
call fcn.0040123c
add esp, 8
cmp dword [0x515ee8], 0
je 0x4add0d
lea eax, [ebp - 0x254]
push eax
push edi
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4add06
mov ebx, 1
jmp 0x4addfe
xor ebx, ebx
jmp 0x4addfe
push 0
lea eax, [ebp - 0x114]
push eax
push edi
call fcn.004049dc
add esp, 0xc
mov ebx, eax
jmp 0x4addfe
cmp dword [0x515ee8], 0
je 0x4add85
test byte [ebp - 0x254], 0x10
je 0x4add5a
lea eax, [ebp - 0x254]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4addfe
mov ebx, 1
jmp 0x4addfe
push esi
push edi
mov esi, edi
lea edi, [ebp - 0x228]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
jmp 0x4addb5
push esi
push edi
mov esi, edi
lea edi, [ebp - 0x104]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push edi
call fcn.00408b88
pop ecx
push edi
push 0
push 0x180
push 0x157
push esi
call sub.USER32.dll_SendDlgItemMessageA
inc eax
je 0x4ade06
cmp dword [0x515ee8], 0
je 0x4addef
lea eax, [ebp - 0x254]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4addfe
mov ebx, 1
jmp 0x4addfe
lea eax, [ebp - 0x114]
push eax
call fcn.00404a9c
pop ecx
mov ebx, eax
test ebx, ebx
je 0x4add26
cmp dword [0x515ee8], 0
je 0x4ade1e
cmp dword [ebp - 4], 0xffffffff
je 0x4ade1e
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_FindClose
push 1
push 0x4fb26c
push 0x157
push esi
call fcn.004ea900
push 0
push 1
push 0x185
push 0x157
push esi
call sub.USER32.dll_SendDlgItemMessageA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c2eb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
cmp byte [0x51a338], 0
je 0x4c2eed
push 0x51a338
call fcn.00408b88
pop ecx
push 1
push 0x51a338
call fcn.0041f620
test eax, eax
jne 0x4c305a
mov byte [0x51a338], 0
lea eax, [esp + 4]
push eax
push 0x4fb989
push 0x80000000
call sub.ADVAPI32.dll_RegOpenKeyA
test eax, eax
jne 0x4c2f9d
mov dword [esp], 0x419
push esp
push 0x513c45
push 0x4fb99a
mov edx, dword [esp + 0x10]
push edx
call sub.ADVAPI32.dll_RegQueryValueA
test eax, eax
jne 0x4c2f93
mov ebx, 0x513c45
cmp byte [ebx], 0x22
jne 0x4c2f34
inc ebx
push 0x22
push ebx
call fcn.00401278
add esp, 8
test eax, eax
je 0x4c2f46
mov byte [eax], 0
push 0x20
push ebx
call fcn.004015cc
add esp, 8
test eax, eax
je 0x4c2f58
mov byte [eax], 0
push 1
push ebx
call fcn.0041f620
test eax, eax
je 0x4c2f93
mov esi, 0x51a338
mov edi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x51a338
call fcn.00408b88
pop ecx
mov eax, dword [esp + 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
cmp byte [0x51a338], 0
jne 0x4c305a
lea edx, [esp + 4]
push edx
push 0x4fb9a3
push 0x80000000
call sub.ADVAPI32.dll_RegOpenKeyA
test eax, eax
jne 0x4c305a
mov dword [esp], 0x419
push esp
push 0x513c45
push 0x4fb9b8
mov ecx, dword [esp + 0x10]
push ecx
call sub.ADVAPI32.dll_RegQueryValueA
test eax, eax
jne 0x4c3050
mov ebx, 0x513c45
cmp byte [ebx], 0x22
jne 0x4c2ff1
inc ebx
push 0x22
push ebx
call fcn.00401278
add esp, 8
test eax, eax
je 0x4c3003
mov byte [eax], 0
push 0x20
push ebx
call fcn.004015cc
add esp, 8
test eax, eax
je 0x4c3015
mov byte [eax], 0
push 1
push ebx
call fcn.0041f620
test eax, eax
je 0x4c3050
mov esi, 0x51a338
mov edi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x51a338
call fcn.00408b88
pop ecx
mov eax, dword [esp + 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4c3158
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
je 0x4c3183
push ebx
call fcn.00408b88
pop ecx
push 1
push ebx
call fcn.0041f620
test eax, eax
jne 0x4c3274
mov byte [ebx], 0
xor esi, esi
test esi, esi
jne 0x4c319e
lea eax, [ebp - 8]
push eax
push 0x4fb9f5
push 0x80000000
call sub.ADVAPI32.dll_RegOpenKeyA
jmp 0x4c31b1
lea edx, [ebp - 8]
push edx
push 0x4fba08
push 0x80000000
call sub.ADVAPI32.dll_RegOpenKeyA
test eax, eax
jne 0x4c3261
mov dword [ebp - 4], 0x419
lea ecx, [ebp - 4]
push ecx
push 0x513c45
push 0x4fba19
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueA
test eax, eax
jne 0x4c3258
mov edi, 0x513c45
cmp byte [edi], 0x22
jne 0x4c31e6
inc edi
push 0x22
push edi
call fcn.00401278
add esp, 8
test eax, eax
je 0x4c31f8
mov byte [eax], 0
push esi
push edi
mov esi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push ebx
call fcn.00408b88
pop ecx
push 0x5c
push ebx
call fcn.004015cc
add esp, 8
mov edi, eax
test edi, edi
je 0x4c3258
push 0x2e
push edi
call fcn.00401278
add esp, 8
mov edi, eax
test edi, edi
je 0x4c3258
push 0x20
push edi
call fcn.00401278
add esp, 8
mov edi, eax
test edi, edi
je 0x4c3258
mov byte [edi], 0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
cmp byte [ebx], 0
jne 0x4c3274
test esi, esi
jne 0x4c3274
mov esi, 1
jmp 0x4c3185
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4cd690
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [0x51cacc], eax
cmp dword [0x515ee8], 0
je 0x4cd7ea
cmp dword [0x4fa6cc], 0
je 0x4cd7ea
push edi
call sub.USER32.dll_OpenClipboard
test eax, eax
je 0x4cd7ea
push 1
call sub.USER32.dll_GetClipboardData
mov ebx, eax
mov dword [0x51cad4], ebx
test ebx, ebx
je 0x4cd7ea
push ebx
call sub.KERNEL32.dll_GlobalLock
mov esi, eax
mov dword [0x51cad0], esi
test esi, esi
je 0x4cd7ea
push esi
call fcn.00401318
pop ecx
add eax, 5
push eax
call fcn.0040c55c
pop ecx
mov ebx, eax
mov dword [0x51cacc], ebx
test ebx, ebx
je 0x4cd7ea
mov eax, dword [0x51cad0]
push edi
mov esi, ebx
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [0x51cad4]
push eax
call sub.KERNEL32.dll_GlobalUnlock
mov edx, dword [0x51cacc]
push edx
call fcn.00401318
pop ecx
add eax, 5
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
mov dword [0x51cad4], ebx
test ebx, ebx
je 0x4cd7ea
push ebx
call sub.KERNEL32.dll_GlobalLock
mov dword [0x51cad0], eax
cmp dword [0x51cad0], 0
je 0x4cd78a
call sub.USER32.dll_EmptyClipboard
test eax, eax
jne 0x4cd7a3
mov eax, dword [0x51cad4]
push eax
call sub.KERNEL32.dll_GlobalUnlock
mov edx, dword [0x51cad4]
push edx
call sub.KERNEL32.dll_GlobalFree
jmp 0x4cd7ea
mov ecx, dword [0x51cad0]
mov eax, dword [0x51cacc]
push edi
mov esi, ecx
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [0x51cad4]
push eax
push 1
call sub.USER32.dll_SetClipboardData
mov edx, dword [0x51cad4]
push edx
call sub.KERNEL32.dll_GlobalUnlock
call sub.USER32.dll_CloseClipboard
mov eax, dword [0x51cacc]
test eax, eax
je 0x4cd7ff
push eax
call fcn.0040c454
pop ecx
push 0
push 0
push 0x302
push 0x12c
push edi
call sub.USER32.dll_SendDlgItemMessageA
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4cfa8c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x3fc], 1
push 0
call fcn.0040ef0c
pop ecx
mov dword [ebx + 0x438], eax
lea eax, [ebx + 0xcc]
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4cfb23
cmp dword [0x4f64cc], 0
je 0x4cfadf
cmp dword [0x4f64c8], 0
je 0x4cfadf
cmp dword [0x4f64c4], 0
jne 0x4cfb23
cmp dword [ebx + 0x428], 0
je 0x4cfb09
push 8
push 0
lea edx, [ebx + 0xcc]
push edx
lea ecx, [ebx + 4]
push ecx
mov eax, dword [ebx]
push eax
call fcn.00455180
mov eax, 1
jmp 0x4cfc80
push ebx
push 0
push 0x138e
call fcn.0041f178
push eax
call fcn.004cf138
xor eax, eax
jmp 0x4cfc80
cmp dword [0x4f64cc], 0
je 0x4cfb8b
cmp dword [0x4f64c8], 0
je 0x4cfb8b
push 0
push 0x138f
call fcn.0041f178
push eax
push 1
push 0
push 1
push 1
push ebx
call fcn.004e1fe0
cmp dword [ebx + 0x400], 0
jne 0x4cfb64
call fcn.004cee14
mov dword [ebx + 0x400], eax
mov edx, dword [ebx + 0x400]
push edx
push 0
mov cx, word [ebx + 0x40c]
push ecx
add ebx, 0xcc
push ebx
call fcn.00467944
mov eax, 1
jmp 0x4cfc80
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 4]
mov dword [eax], edx
xor ecx, ecx
mov dword [eax + 4], ecx
mov word [ebp - 0x12], 4
mov word [ebp - 0x14], 2
lea esi, [ebp - 0x1c]
push 0x10
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00401198
add esp, 0xc
mov word [ebp - 0x2c], 2
movsx edx, word [esi + 0xa]
push edx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00401128
add esp, 0xc
mov cx, word [ebx + 0x40c]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x2a], ax
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebx + 0x44c], eax
cmp eax, 0xffffffff
jne 0x4cfc1f
push ebx
push 0
push 0x1390
call fcn.0041f178
push eax
call fcn.004cf138
xor eax, eax
jmp 0x4cfc80
mov edx, dword [ebx + 0x44c]
push edx
call fcn.004ef808
push 0x10
push 0x414
mov ecx, dword [0x4fd9ec]
push ecx
mov eax, dword [ebx + 0x44c]
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
push 0x10
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebx + 0x44c]
push ecx
call sub.WSOCK32.dll_connect
test eax, eax
jge 0x4cfc7e
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4cfc7e
push ebx
push 0
push 0x1391
call fcn.0041f178
push eax
call fcn.004cf138
xor eax, eax
jmp 0x4cfc80
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d0854
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4d0869
xor eax, eax
jmp 0x4d0abf
cmp dword [ebx + 0x3fc], 2
je 0x4d0879
xor eax, eax
jmp 0x4d0abf
cmp dword [0x4fc1b0], 0
jne 0x4d0897
mov edx, dword [ebx + 0x408]
cmp edx, dword [ebx + 0x410]
jae 0x4d0897
xor eax, eax
jmp 0x4d0abf
push 0
call fcn.0040ef0c
pop ecx
mov dword [ebx + 0x438], eax
mov esi, dword [ebx + 0x404]
cmp dword [ebx + 0x440], 0
jbe 0x4d0913
push ebx
call fcn.004cef64
mov esi, eax
test esi, esi
jne 0x4d0913
mov dword [ebx + 0x42c], 1
cmp dword [0x4fc1ac], 0
jne 0x4d090c
push 0
push 0x32
push 0x80
mov eax, dword [0x4fd9ec]
push eax
call sub.USER32.dll_SetTimer
mov esi, eax
mov dword [0x4fc1ac], esi
test esi, esi
jne 0x4d090c
push 0x23
push 0x417
mov eax, dword [0x4fd9ec]
push eax
mov edx, dword [ebx + 0x44c]
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
xor eax, eax
jmp 0x4d0abf
mov edx, dword [ebx + 0x3f8]
push edx
call fcn.00405cec
pop ecx
mov dword [ebp - 4], eax
push esi
push 0x51e0b3
mov ecx, dword [ebx + 0x3f8]
push ecx
call fcn.00405630
add esp, 0xc
mov esi, eax
test esi, esi
jge 0x4d0958
push ebx
push 0
push 0x1398
call fcn.0041f178
push eax
call fcn.004cf138
xor eax, eax
jmp 0x4d0abf
test esi, esi
jne 0x4d0963
xor eax, eax
jmp 0x4d0abf
push 0
push esi
push 0x51e0b3
mov edx, dword [ebx + 0x44c]
push edx
call sub.WSOCK32.dll_send
mov edi, eax
test edi, edi
jge 0x4d09e0
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4d0990
cmp eax, 0x2734
jne 0x4d09c6
push 0
mov eax, dword [ebp - 4]
push eax
mov edx, dword [ebx + 0x3f8]
push edx
call fcn.00405518
add esp, 0xc
push 0x23
push 0x417
mov ecx, dword [0x4fd9ec]
push ecx
mov eax, dword [ebx + 0x44c]
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
xor eax, eax
jmp 0x4d0abf
push ebx
push 0
push 0x139b
call fcn.0041f178
push eax
call fcn.004cf138
xor eax, eax
jmp 0x4d0abf
cmp esi, edi
jle 0x4d09fd
push 0
mov edx, dword [ebp - 4]
add edx, edi
push edx
mov ecx, dword [ebx + 0x3f8]
push ecx
call fcn.00405518
add esp, 0xc
mov esi, edi
mov eax, esi
add dword [ebx + 0x410], eax
add dword [ebx + 0x444], eax
push ebx
call fcn.004d065c
mov eax, dword [0x4fc1b8]
test eax, eax
je 0x4d0abd
mov edx, dword [ebx + 0x410]
sub edx, dword [ebx + 0x408]
cmp eax, edx
jbe 0x4d0abd
call sub.USER32.dll_GetCapture
test eax, eax
jne 0x4d0a51
push 0
push 0
push 0
push 0
push 0x51dab0
call sub.USER32.dll_PeekMessageA
test eax, eax
je 0x4d0aa2
mov dword [ebx + 0x42c], 1
cmp dword [0x4fc1ac], 0
jne 0x4d0a9e
push 0
push 0x32
push 0x80
mov ecx, dword [0x4fd9ec]
push ecx
call sub.USER32.dll_SetTimer
mov esi, eax
mov dword [0x4fc1ac], esi
test esi, esi
jne 0x4d0a9e
push 0x23
push 0x417
mov eax, dword [0x4fd9ec]
push eax
mov edx, dword [ebx + 0x44c]
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
xor eax, eax
jmp 0x4d0abf
cmp dword [0x4fc1ac], 0
je 0x4d085e
mov dword [ebx + 0x42c], 1
xor eax, eax
jmp 0x4d0abf
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4d0ac8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4d0adc
xor eax, eax
jmp 0x4d0c97
cmp dword [ebx + 0x3fc], 2
je 0x4d0aec
xor eax, eax
jmp 0x4d0c97
push 0
call fcn.0040ef0c
pop ecx
mov dword [ebx + 0x438], eax
push 0
push 4
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebx + 0x44c]
push ecx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x4d0b60
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4d0b26
cmp eax, 0x2734
jne 0x4d0b46
push 0x23
push 0x417
mov eax, dword [0x4fd9ec]
push eax
mov edx, dword [ebx + 0x44c]
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
xor eax, eax
jmp 0x4d0c97
push ebx
push 0
push 0x139b
call fcn.0041f178
push eax
call fcn.004cf138
xor eax, eax
jmp 0x4d0c97
test eax, eax
jg 0x4d0b71
push ebx
call fcn.004d0cec
xor eax, eax
jmp 0x4d0c97
mov edx, dword [ebp - 4]
push edx
call sub.WSOCK32.dll_ntohl
cmp eax, dword [ebx + 0x408]
ja 0x4d0b8f
push ebx
call fcn.004d0cec
xor eax, eax
jmp 0x4d0c97
mov edx, eax
mov dword [ebx + 0x408], edx
mov eax, dword [ebx + 0x418]
cmp edx, eax
jb 0x4d0bb4
mov dword [ebx + 0x408], eax
push ebx
call fcn.004d0cec
xor eax, eax
jmp 0x4d0c97
push ebx
call fcn.004d065c
mov edx, dword [ebx + 0x410]
cmp edx, dword [ebx + 0x418]
jae 0x4d0c95
mov ecx, dword [ebx + 0x408]
cmp ecx, dword [ebx + 0x410]
jae 0x4d0bff
cmp dword [0x4fc1b0], 0
je 0x4d0c95
mov eax, dword [ebx + 0x410]
sub eax, dword [ebx + 0x404]
cmp eax, dword [ebx + 0x408]
ja 0x4d0c95
call sub.USER32.dll_GetCapture
test eax, eax
jne 0x4d0c1e
push 0
push 0
push 0
push 0
push 0x51dacc
call sub.USER32.dll_PeekMessageA
test eax, eax
je 0x4d0c6f
mov dword [ebx + 0x42c], 1
cmp dword [0x4fc1ac], 0
jne 0x4d0c6b
push 0
push 0x32
push 0x80
mov edx, dword [0x4fd9ec]
push edx
call sub.USER32.dll_SetTimer
mov esi, eax
mov dword [0x4fc1ac], esi
test esi, esi
jne 0x4d0c6b
push 0x23
push 0x417
mov eax, dword [0x4fd9ec]
push eax
mov edx, dword [ebx + 0x44c]
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
xor eax, eax
jmp 0x4d0c97
cmp dword [0x4fc1ac], 0
je 0x4d0c8b
mov dword [ebx + 0x42c], 1
call fcn.004d07e4
xor eax, eax
jmp 0x4d0c97
push ebx
call fcn.004d0854
xor eax, eax
jmp 0x4d0c97
xor eax, eax
pop esi
pop ebx
pop ecx
pop ebp
ret 4