joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c2dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44c314]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c2f5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c304
or bl, 4
test esi, 0x20000000
je 0x44c30f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4529bc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4529ce
add esp, 0xfffffff0
call fcn.00403464
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d70c
mov eax, dword [0x458ed4]
mov dword [eax + 4], ebx
mov dword [eax], 0x452d60
mov eax, dword [0x458ee0]
mov dword [eax + 4], ebx
mov dword [eax], 0x452d6c
mov eax, ebx
call fcn.00452d78
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415a04]
call fcn.00403110
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415a04]
call fcn.00403110
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415a04]
call fcn.00403110
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415a04]
call fcn.00403110
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415a04]
call fcn.00403110
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44f194
push eax
push 0
push 0
mov eax, dword [0x459028]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41f168]
call fcn.004208dc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41f168]
call fcn.004208dc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41f168]
call fcn.004208dc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00453198
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453074
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453074
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453074
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452b0b
call fcn.004034bc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x452e58
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453003
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x452fe4
mov dl, 1
mov eax, dword [0x415e20]
call fcn.00403110
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e90
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x452fd3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00440e24
test al, al
je 0x452fc6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x453014
lea eax, [ebp - 0x254]
call fcn.00408cfc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x452fc6
xor eax, eax
push ebp
push 0x452fbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45304c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452fa8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404100
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x452fa8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404100
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452fc6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452ec9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004198fc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45300a
lea eax, [ebp - 0x260]
call fcn.00403e90
ret

Function at 0x453938
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45abb0]
cmp byte [eax + 0xa5], 0
jne 0x4539a9
cmp dword [0x45abc8], 0
jne 0x45396a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4538f4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45abc8], eax
cmp dword [0x45abc4], 0
jne 0x453985
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45abc4], eax
cmp dword [0x45abcc], 0
jne 0x4539a9
push esp
push 0
push 0
push 0x453898
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45abcc], eax
pop edx
ret
Function at 0x453aa0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x453ab7
add esp, 0xfffffff0
call fcn.00403464
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d70c
mov eax, dword [0x459014]
cmp word [eax + 2], 0
jne 0x453adf
mov eax, dword [0x459014]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455178
mov eax, dword [0x4590c4]
cmp word [eax + 2], 0
jne 0x453af9
mov eax, dword [0x4590c4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455370
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415a04]
call fcn.00403110
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415a04]
call fcn.00403110
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41fc48]
call fcn.004270b8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453c80
mov eax, dword [0x458f38]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427488
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455910
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x458f38]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c3f8
test eax, eax
je 0x453bee
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004086f0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c420
test eax, eax
je 0x453c02
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404100
mov eax, dword [0x458e28]
cmp byte [eax], 0
jne 0x453c36
mov eax, ebx
call fcn.00453da8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00455aec
mov eax, ebx
call fcn.004564b0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453c76
call fcn.004034bc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454028
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45abb0]
cmp dword [eax + 0x30], 0
je 0x4540d2
cmp dword [ebx + 0x94], 0
jne 0x4540cc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453fb8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4540cc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x454092
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4540cc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417d6c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4540a1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454c34
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x454c69
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f80
jmp 0x454c76
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ee4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455cc8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455d09
mov eax, esi
call fcn.0043c450
test al, al
je 0x455d09
mov eax, dword [ebx + 0x84]
call fcn.0043c14c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455d09
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c14c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4097c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d35a5
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x508068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x30]
lea ecx, [esi + 0xc]
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
movzx eax, byte [edi + 0x20]
mov byte [ebx + 0x20], al
movzx eax, byte [edi + 0x21]
mov byte [ebx + 0x21], al
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x2c], eax
mov dword [ebp + 8], esi
mov eax, dword [edi + 0x30]
mov dword [esi], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 8], eax
lea eax, [edi + 0x3c]
push eax
call fcn.00406910
lea eax, [edi + 0x54]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x24]
call fcn.00406910
lea eax, [edi + 0x6c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebx + 0x6c]
call fcn.00406910
lea eax, [edi + 0x84]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebx + 0x84]
call fcn.00406910
lea eax, [edi + 0x9c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebx + 0x9c]
call fcn.00406910
lea eax, [edi + 0xb4]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebx + 0xb4]
call fcn.00406910
lea eax, [edi + 0xcc]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebx + 0xcc]
call fcn.00406910
lea eax, [edi + 0xe4]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebx + 0xe4]
call fcn.00406910
mov byte [ebp - 4], 7
lea eax, [edi + 0xfc]
push eax
lea ecx, [ebx + 0xfc]
call fcn.00406910
lea eax, [edi + 0x114]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebx + 0x114]
call fcn.00406910
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4099d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d360b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x508068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x40]
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
lea eax, [esi + 0x40]
push eax
call fcn.00406910
lea eax, [esi + 0x58]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x58]
call fcn.00406910
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41e590
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x508068]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 8], 6
jne 0x41e602
push 0
push 5
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x1000000
push eax
mov byte [esp + 0x24], 2
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xf8]
add dword [eax + 0xec], 5
mov eax, dword [ebp + 8]
add dword [eax + 0x248], 5
add dword [0x50e4e4], 5
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004ad19c
mov esp, ebp
pop ebp
ret
cmp byte [0x510408], 0
mov ecx, 0x19
je 0x41e622
mov eax, dword [esi + 0xf8]
mov edx, 0x20
cmp byte [eax + 0x73], 0
cmovne ecx, edx
push ecx
call fcn.004b5cd0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x41e782
mov edi, dword [ebp + 0xc]
push dword [edi + 0x5a]
mov ebx, dword [edi + 0x6a]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [edi + 0xf8]
cmp dword [ecx + 0x78], 0x19c8
jne 0x41e674
mov ecx, dword [edi + 0x34]
test ecx, ecx
jne 0x41e668
test eax, eax
jne 0x41e664
xor ebx, ebx
jmp 0x41e67d
sub ebx, eax
jmp 0x41e67d
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
lea ebx, [eax + 1]
jmp 0x41e67d
xor ecx, ecx
sub ebx, eax
test eax, eax
cmove ebx, ecx
mov word [0x50e5dc], 1
movzx eax, word [esi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
mov word [0x50e5de], ax
call edi
mov dword [0x50e5e4], eax
movzx eax, word [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [esp + 0x14]
mov esi, 0x14
movups xmm0, xmmword [0x50e5dc]
mov word [0x50e5ec], ax
movups xmmword [ebx], xmm0
mov eax, dword [0x50e5ec]
mov dword [ebx + 0x10], eax
cmp byte [0x510408], 0
je 0x41e71f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xf8]
cmp byte [eax + 0x73], 0
je 0x41e71f
push 3
call edi
movzx ecx, word [0x510368]
mov esi, eax
push ecx
mov byte [esp + 0x1c], 9
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x19], ax
mov ax, word [esp + 0x18]
mov dword [ebx + 0x14], esi
mov esi, 0x1b
mov word [ebx + 0x18], ax
mov al, byte [esp + 0x1a]
mov byte [ebx + 0x1a], al
push 1
call edi
mov dword [esi + ebx], eax
mov cl, 2
mov byte [esi + ebx + 4], cl
lea ecx, [esi + 5]
mov edx, dword [ebp + 0xc]
movups xmm0, xmmword [0x50e5dc]
add edx, 0x2c
push edx
movups xmmword [edx], xmm0
mov eax, dword [0x50e5ec]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x4c], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x52], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x48], ecx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + 0xc0]
call fcn.004456b0
mov eax, dword [ebp + 0xc]
inc word [eax + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004ad19c
mov esp, ebp
pop ebp
ret
cmp byte [0x5102e0], 0
je 0x41e79f
push 0
push str.send_interested__
push 0x4f0210
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ad19c
mov esp, ebp
pop ebp
ret
Function at 0x41e7c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x508068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0xf8]
mov byte [eax + 0xdb], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0x1000000
mov byte [ebp - 8], 3
cmp dword [eax + 8], 6
jne 0x41e83a
push 0
push 5
lea ecx, [ebp - 0xc]
push ecx
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xf8]
add dword [eax + 0xec], 5
mov eax, dword [ebp + 8]
add dword [eax + 0x248], 5
add dword [0x50e4e4], 5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad19c
mov esp, ebp
pop ebp
ret
push 0x19
call fcn.004b5cd0
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41e941
mov esi, dword [ebp + 0xc]
push dword [esi + 0x5a]
mov ebx, dword [esi + 0x6a]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esi + 0xf8]
cmp dword [ecx + 0x78], 0x19c8
jne 0x41e88c
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x41e880
test eax, eax
jne 0x41e87c
xor ebx, ebx
jmp 0x41e895
sub ebx, eax
jmp 0x41e895
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
lea ebx, [eax + 1]
jmp 0x41e895
xor ecx, ecx
sub ebx, eax
test eax, eax
cmove ebx, ecx
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov word [0x50e5dc], 1
movzx eax, word [edi + 0x14]
push eax
call esi
push ebx
mov word [0x50e5de], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [0x50e5e4], eax
movzx eax, word [edi + 0x1c]
push eax
call esi
movups xmm0, xmmword [0x50e5dc]
mov edx, dword [ebp - 0x10]
mov word [0x50e5ec], ax
movups xmmword [edx], xmm0
mov eax, dword [0x50e5ec]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov al, byte [ebp - 8]
mov byte [edx + 0x18], al
mov ecx, dword [ebp + 0xc]
movups xmm0, xmmword [0x50e5dc]
add ecx, 0x2c
push ecx
movups xmmword [ecx], xmm0
mov eax, dword [0x50e5ec]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x4c], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x52], edx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x48], 0x19
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + 0xc0]
call fcn.004456b0
mov eax, dword [ebp + 0xc]
inc word [eax + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad19c
mov esp, ebp
pop ebp
ret
cmp byte [0x5102e0], 0
je 0x41e95e
push 0
push str.send_not_interested__
push 0x4f0240
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ad19c
mov esp, ebp
pop ebp
ret
Function at 0x41eb90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x508068]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x1c], 0x1000000
mov byte [esp + 0x20], 0
cmp dword [edi + 8], 6
jne 0x41ec02
push 0
push 5
lea eax, [esp + 0x24]
push eax
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xf8]
add dword [eax + 0xec], 5
mov eax, dword [ebp + 8]
add dword [eax + 0x248], 5
add dword [0x50e4e4], 5
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004ad19c
mov esp, ebp
pop ebp
ret
push 0x19
call fcn.004b5cd0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x41ed0e
mov esi, dword [ebp + 0xc]
push dword [esi + 0x5a]
mov ebx, dword [esi + 0x6a]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esi + 0xf8]
cmp dword [ecx + 0x78], 0x19c8
jne 0x41ec55
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x41ec49
test eax, eax
jne 0x41ec45
xor ebx, ebx
jmp 0x41ec5e
sub ebx, eax
jmp 0x41ec5e
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
lea ebx, [eax + 1]
jmp 0x41ec5e
xor ecx, ecx
sub ebx, eax
test eax, eax
cmove ebx, ecx
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov word [0x50e5dc], 1
movzx eax, word [edi + 0x14]
push eax
call esi
push ebx
mov word [0x50e5de], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [0x50e5e4], eax
movzx eax, word [edi + 0x1c]
push eax
call esi
movups xmm0, xmmword [0x50e5dc]
mov edx, dword [esp + 0x10]
mov word [0x50e5ec], ax
movups xmmword [edx], xmm0
mov eax, dword [0x50e5ec]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [edx + 0x14], eax
mov al, byte [esp + 0x20]
mov byte [edx + 0x18], al
mov ecx, dword [ebp + 0xc]
movups xmm0, xmmword [0x50e5dc]
add ecx, 0x2c
push ecx
movups xmmword [ecx], xmm0
mov eax, dword [0x50e5ec]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x4c], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x52], edx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x48], 0x19
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + 0xc0]
call fcn.004456b0
mov eax, dword [ebp + 0xc]
inc word [eax + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004ad19c
mov esp, ebp
pop ebp
ret
cmp byte [0x5102e0], 0
je 0x41ed2b
push 0
push str.send_choke__
push 0x4f0290
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ad19c
mov esp, ebp
pop ebp
ret