joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40418e
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
mov ebx, ecx
sub esp, 0x40
cmp dword [ecx + 0x3c], 0xffffffff
je 0x4041dd
mov ecx, dword [ecx + 0x38]
call method.IWindow.getHandle__
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov eax, dword [ebx + 0x3c]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x3c], 0xffffffff
push eax
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 2
call dword [sym.imp.WS2_32.dll_socket]
lea edx, [ebp - 0x1c]
mov dword [ebx + 0x6c], 0
sub esp, 0xc
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x68], 0
mov dword [ebp - 0x1c], 1
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
test eax, eax
je 0x40424e
mov dword [esp + 4], str.could_not_make_socket_broadcast
jmp 0x404286
lea edx, [ebp - 0x18]
mov ecx, 4
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x3c]
mov word [ebp - 0x18], 2
mov dword [esp + 8], 0x10
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_bind]
sub esp, 0xc
inc eax
jne 0x40429c
mov dword [esp + 4], str.could_not_bind_socket
mov dword [esp], 0x5694e0
call fcn.004c8905
mov dword [esp], eax
call fcn.004c8cf3
jmp 0x4042c7
mov ecx, dword [ebx + 0x38]
call method.IWindow.getHandle__
mov dword [esp + 0xc], 1
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 8], 0x8001
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp

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

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x28]
push ebx
mov edi, esi
mov ebx, ecx
mov ecx, 4
sub esp, 0x3c
rep stosd dword es:[edi], eax
or eax, 0xffffffff
cmp byte [ebx + 0x60], 0
mov word [ebp - 0x28], 2
jne 0x404300
imul eax, dword [ebx + 0x64], 0xc
add eax, dword [ebx + 0x40]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
mov dword [esp], 0x5051
call dword [sym.imp.WS2_32.dll_htons]
push edx
mov word [ebp - 0x26], ax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0x10
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_sendto]
mov edx, eax
sub esp, 0x18
mov al, 1
test edx, edx
jg 0x40436c
mov dword [esp + 4], str.sendto_failed
mov dword [esp], 0x5694e0
call fcn.004c8905
mov dword [esp], eax
call fcn.004c8cf3
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x404f52
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov eax, 0x805c
mov ebp, esp
push edi
push esi
push ebx
call fcn.004cb790
sub esp, eax
lea ebx, [ebp - 0x8018]
lea eax, [ebp - 0x8034]
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], 2
mov dword [ebp - 0x8034], 0x8000
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
sub esp, 0x14
test eax, eax
jne 0x4050fc
mov ax, word [ebx + 0x30]
mov edx, dword [ebx + 0x2c]
lea ecx, [ebp - 0x802a]
mov dword [ebp - 0x802a], edx
mov word [ebp - 0x8026], ax
call fcn.004c9d1c
test al, al
jne 0x4050f1
cmp dword [ebx + 0x8c], 0
je 0x4050f1
mov eax, dword [ebx + 4]
mov dword [esp], 0x5694e0
mov dword [esp + 4], eax
call fcn.004c8952
mov dword [esp + 4], 0x523289
mov dword [esp], eax
call fcn.004c8905
mov edx, dword [ebx + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004c8905
mov dword [esp], eax
call fcn.004c8cf3
mov eax, dword [ebx + 0x8c]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
xor eax, eax
mov edx, dword [edx + 4]
mov dword [ebp - 0x8030], edx
xor edx, edx
cmp edx, ecx
je 0x405040
shr eax, 1
inc edx
or eax, 0x80000000
jmp 0x405032
mov dword [esp], eax
lea edi, [ebp - 0x8024]
call dword [sym.imp.WS2_32.dll_htonl]
push edx
not eax
or dword [ebp - 0x8030], eax
mov dword [esp + 4], 0x52328c
mov dword [esp], 0x5694e0
call fcn.004c8905
lea edx, [ebp - 0x8030]
mov ecx, edi
mov dword [esp], edx
mov dword [ebp - 0x803c], eax
call fcn.004c9d70
mov edx, dword [ebp - 0x8024]
mov eax, dword [ebp - 0x803c]
push ecx
mov ecx, dword [edx]
add edx, 4
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.004c8922
mov ecx, edi
mov dword [ebp - 0x803c], eax
call fcn.004c616a
mov eax, dword [ebp - 0x803c]
mov dword [esp], eax
call fcn.004c8cf3
mov eax, dword [ebp - 0x802a]
mov dword [esp], edi
lea ecx, [esi + 0x40]
mov dword [ebp - 0x8024], eax
mov ax, word [ebp - 0x8026]
mov word [ebp - 0x8020], ax
mov eax, dword [ebp - 0x8030]
mov dword [ebp - 0x801c], eax
call fcn.0050d41c
push edi
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x404fab
mov eax, dword [esi + 0x44]
cmp dword [esi + 0x40], eax
jne 0x405133
lea eax, [ebp - 0x8024]
lea ecx, [esi + 0x40]
mov dword [ebp - 0x8024], 0xffffffff
mov dword [esp], eax
mov word [ebp - 0x8020], 0xffff
mov dword [ebp - 0x801c], 0xffffffff
call fcn.0050d41c
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
Function at 0x405794
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x60c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, 1
je 0x405870
mov dword [ebp - 0x5ec], 0x10
lea eax, [ebp - 0x5ec]
lea edi, [ebp - 0x5d8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x5e8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 8], 0x5c0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_recvfrom]
sub esp, 0x18
mov esi, eax
cmp eax, 0x15
jle 0x405870
cmp byte [ebp - 0x5d8], 1
jne 0x405870
lea eax, [ebx + 0x48]
mov dword [esp + 8], 6
mov dword [esp + 4], eax
lea eax, [ebp - 0x5d6]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x405870
imul eax, dword [ebx + 0x64], 0xc
add eax, dword [ebx + 0x40]
mov dword [esp + 8], 6
mov dword [esp + 4], eax
lea eax, [ebp - 0x5d0]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x405870
movzx eax, word [ebp - 0x5c8]
cmp eax, dword [ebx + 0x50]
jne 0x405870
mov dword [esp + 4], esi
mov ecx, ebx
mov dword [esp], edi
call fcn.00405592
push eax
push eax
jmp 0x4057bc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x41f75a
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
ret

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

Disassembly:
cmp dword [0x5220a0], 0xffffffff
je 0x420ab1
push ebp
mov ebp, esp
push edi
mov edi, 0x568120
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov word [ebp - 0x1a], 0x400
test ebx, ebx
je 0x420aa9
cmp ebx, 0xff
mov esi, 0xff
mov edx, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0xc], 0
cmovbe esi, ebx
mov dword [esp + 8], 2
mov dword [ebp - 0x2c], edx
mov eax, esi
sub ebx, esi
mov byte [ebp - 0x1a], al
lea eax, [ebp - 0x1a]
mov dword [esp + 4], eax
mov eax, dword [0x5220a0]
mov dword [esp], eax
call edx
mov eax, dword [0x5220a0]
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 0x19], 0xff
sub esp, 0x10
mov dword [esp + 4], edi
add edi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp], eax
call edx
sub esp, 0x10
jmp 0x420a3b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
ret
Function at 0x421fee
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
call method.IWindow.getHandle__
mov dword [esp], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
test eax, eax
je 0x422144
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x42213e
lea ecx, [ebp - 0x1c]
call fcn.004c62d0
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 4]
cmp edx, ebx
mov dword [ebp - 0x38], edx
jl 0x4220dd
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov dword [esp], ebx
call fcn.00421884
push edx
mov edx, dword [ebp + 8]
mov esi, eax
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
xor eax, eax
sar ecx, 3
cmp ebx, dword [edx + 4]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x30], ecx
jne 0x422076
mov edi, dword [ebp + 8]
cmp dword [edi], 0
cmovns eax, dword [edi]
cmp edx, ebx
jne 0x422087
mov edi, dword [ebp - 0x2c]
mov edx, dword [edi]
cmp ecx, edx
cmovle edx, ecx
mov dword [ebp - 0x30], edx
mov edx, eax
mov ecx, dword [esi]
cmp dword [ebp - 0x30], edx
jbe 0x4220af
movsx ecx, byte [ecx + edx*8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov dword [esp], ecx
lea ecx, [ebp - 0x1c]
call fcn.004c65ba
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
push edi
inc edx
jmp 0x422089
mov edx, dword [esi + 4]
sub edx, ecx
sar edx, 3
cmp edx, eax
jb 0x4220d7
mov eax, dword [ebp - 0x2c]
cmp ebx, dword [eax + 4]
jne 0x4220c7
cmp edx, dword [eax]
jge 0x4220d7
mov dword [esp], 0x523c79
lea ecx, [ebp - 0x1c]
call fcn.004c6550
push esi
inc ebx
jmp 0x422033
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [esp], 0x2000
inc eax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push ebx
mov ebx, eax
test eax, eax
je 0x422136
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ecx
test eax, eax
je 0x422136
mov esi, dword [ebp - 0x1c]
mov edi, dword [esi]
add esi, 4
lea ecx, [edi + 1]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
mov dword [esp + 4], ebx
mov dword [esp], 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push edx
push edx
lea ecx, [ebp - 0x1c]
call fcn.004c616a
call dword [sym.imp.USER32.dll_CloseClipboard]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x42214e
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
call method.IWindow.getHandle__
mov dword [esp], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
push esi
test eax, eax
je 0x42223f
mov dword [esp], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
push ecx
test eax, eax
je 0x422239
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
push edx
mov dword [ebp - 0x2c], eax
je 0x422239
mov dword [esp], edi
lea esi, [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edx, dword [ebp - 0x2c]
dec eax
push ecx
mov ecx, 0
cmovs eax, ecx
mov ecx, esi
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004c638a
push eax
push eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x20]
push eax
xor eax, eax
cmp dword [edx], 0x7fff
ja 0x4221eb
mov dword [esp], esi
mov ecx, dword [ebx + 0xc]
call fcn.00421b06
push edx
jmp 0x422232
mov dword [esp + 4], eax
mov edx, dword [ebx + 0xc]
lea edi, [ebp - 0x1c]
mov dword [esp + 8], 0x4000
mov ecx, edi
mov dword [esp], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
call fcn.004c6d40
mov ecx, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [esp], edi
call fcn.00421b06
mov ecx, edi
push eax
call fcn.004c616a
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
add eax, 0x4000
cmp dword [edx], eax
ja 0x4221eb
mov ecx, esi
call fcn.004c616a
call dword [sym.imp.USER32.dll_CloseClipboard]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42dd66
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test byte [eax], 0x10
jne 0x42dd82
cmp dword [eax + 8], 0
jne 0x42dd95
add eax, 0x14
mov ecx, esi
mov dword [esp], eax
call fcn.004c6316
push edi
jmp 0x42de82
mov ecx, dword [ebp + 8]
call method.IWindow.getHandle__
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push ebx
test eax, eax
jne 0x42ddb7
mov ecx, esi
call fcn.004c62d0
jmp 0x42de82
lea ebx, [eax + 1]
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
je 0x42de16
lea eax, [ebx + ebx]
mov edx, esp
add eax, 0xf
mov dword [ebp - 0x2c], edx
shr eax, 4
shl eax, 4
call fcn.004cb790
mov ecx, dword [ebp + 8]
sub esp, eax
call method.IWindow.getHandle__
lea edi, [esp + 0xc]
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
sub esp, 0xc
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042ce4b
mov edx, dword [ebp - 0x2c]
mov esp, edx
jmp 0x42de82
lea edi, [ebp - 0x1c]
mov ecx, edi
call fcn.004c62d0
mov dword [esp + 4], 0
mov ecx, edi
mov dword [esp], ebx
call fcn.004c6976
push eax
push eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
lea edx, [eax + 4]
mov dword [ebp - 0x2c], edx
call method.IWindow.getHandle__
mov dword [esp + 8], ebx
mov edx, dword [ebp - 0x2c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, edi
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.004c6976
mov ecx, esi
push edx
push edx
mov dword [esp], edi
call fcn.004c633e
push ecx
mov ecx, edi
call fcn.004c616a
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x42ef4a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x10
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
mov dword [esp], edx
call dword [eax]
push ecx
mov dword [esp], 0
mov ecx, ebx
call method.IWindow.getChild_IWindow_
mov esi, eax
push edx
test eax, eax
je 0x42efa0
mov dword [esp], ebx
mov ecx, eax
call method.IWindow.create_IWindow_
push eax
mov eax, dword [esi + 8]
test byte [eax], 0x10
je 0x42ef9b
mov eax, dword [ebx + 8]
or byte [eax], 0x20
mov edx, dword [ebx + 8]
mov al, byte [edx]
test al, 0x10
jne 0x42ef9b
or eax, 0x40
mov byte [edx], al
mov dword [esp], esi
jmp 0x42ef66
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x42efad
mov al, 1
jmp 0x42efc3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x70]
test al, al
jne 0x42efa9
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x1c]
call method.IWindow.isShown__
movzx eax, al
mov ecx, ebx
mov dword [ebp + 8], eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp fcn.0042e820
Function at 0x42fbc4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x5c
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
mov eax, dword [eax + 0x80]
test byte [edx + 1], 1
je 0x42fbf8
cmp word [edx + 4], 0
js 0x42fbf8
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0xffffffff
jmp 0x42fc07
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, ebx
call eax
mov ecx, ebx
push esi
mov edi, eax
mov eax, dword [ebx]
push esi
mov esi, edx
mov dword [esp + 4], 0x4000
mov dword [esp], 0x4000
call dword [eax + pe_nt_image_headers32]
push ecx
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
mov dword [esp], ebx
call method.IWindow.getBounds__
lea ecx, [ebp - 0x28]
push eax
call fcn.0051ca54
mov dword [esp], ebx
lea ecx, [ebp - 0x28]
cmp edx, esi
cmovle edx, esi
cmp edx, dword [ebp - 0x50]
lea esi, [ebp - 0x38]
cmovg edx, dword [ebp - 0x50]
cmp eax, edi
cmovle eax, edi
cmp eax, dword [ebp - 0x4c]
cmovg eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], edx
lea edi, [ebp - 0x40]
mov dword [ebp - 0x48], eax
call method.IWindow.getBounds__
mov ecx, esi
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], edi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
call method.Rect.Rect_Point_const__Point_const_
push eax
push eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x42fcdf
mov dword [esp], eax
lea ecx, [ebp - 0x28]
call method.IWindow.getClientAreaBounds__
mov ecx, ebx
push eax
mov eax, dword [ebx]
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [eax + pe_nt_image_headers32]
push ecx
push ecx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x3c], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call sym.winbox.exe_fitWindowInTheRect_Rect__Point_const__Rect_const_
mov eax, dword [ebx]
lea edx, [ebp - 0x38]
mov ecx, ebx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], 0
call dword [eax + 0x94]
mov ecx, ebx
sub esp, 0xc
mov dword [esp], 0
call fcn.0042ec3c
cmp dword [0x56897c], 0
push esi
je 0x42fd97
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [esp], 1
call esi
test ax, ax
push edx
setne al
movzx eax, al
mov dword [esp], 2
mov edi, eax
call esi
push ecx
test ax, ax
je 0x42fd47
or edi, 2
call dword [sym.imp.USER32.dll_GetMessagePos]
lea esi, [ebp - 0x28]
mov dword [esp], eax
mov ecx, esi
call method.Point.Point_long_
mov ecx, dword [0x56897c]
push eax
mov dword [esp], esi
test ecx, ecx
jne 0x42fd6a
mov ecx, ebx
call method.IWindow.fromScreen_Point_const_
push ecx
mov ecx, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [esp + 8], 0x29
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp], edi
call method.IWindow.processMouseMsg_int__Point_const__bool__IWindow::__int__Point_const__
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x43fda0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
cmp eax, 0x200
jne 0x43fe5c
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x43fe9f
mov eax, dword [esi]
mov dword [esp], eax
call method.IWindow.findWindow_HWND___
mov ebx, eax
test eax, eax
je 0x43fe9f
mov ecx, eax
call method.IWindow.getTopParent__
mov ecx, eax
test eax, eax
je 0x43fe9f
mov eax, dword [eax]
mov dword [esp], 0x68
call dword [eax + 0x5c]
mov dword [ebp - 0x2c], eax
push edx
test eax, eax
je 0x43fe9f
mov eax, dword [esi + 0xc]
lea edi, [ebp - 0x20]
mov ecx, edi
mov dword [esp], eax
call method.Point.Point_long_
push ecx
mov ecx, ebx
mov dword [esp], edi
call method.IWindow.toScreen_Point_const_
mov ecx, dword [ebp - 0x2c]
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call method.IWindow.fromScreen_Point_const_
mov ecx, dword [ebp - 0x2c]
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [esp], edi
call fcn.0043ea7e
or eax, edx
push edi
je 0x43fe9f
mov ecx, dword [ebp - 0x2c]
call method.IWindow.captureCursor__
jmp 0x43fee8
and eax, 0xfffffffb
cmp eax, 0x100
jne 0x43fe9f
cmp dword [0x568b30], 0
je 0x43fe9f
mov dword [esp], 0x12
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
call edi
push edx
test ax, ax
js 0x43fe9f
mov eax, dword [esi + 8]
cmp eax, 0x73
je 0x43fed9
ja 0x43fe9a
cmp eax, 2
je 0x43fed9
cmp eax, 9
je 0x43fea3
jmp 0x43fe9f
cmp eax, 0x75
je 0x43feb2
xor eax, eax
jmp 0x43feea
mov dword [esp], 0x11
call edi
push ebx
test ax, ax
jns 0x43fe9f
mov ecx, dword [0x568b30]
mov dword [esp], 0x10
mov dword [ebp - 0x2c], ecx
call edi
mov ecx, dword [ebp - 0x2c]
push edx
cwde
not eax
shr eax, 0x1f
mov dword [esp], eax
call fcn.0043fcc6
push ecx
jmp 0x43fee8
test bl, bl
jne 0x43fe9f
mov ecx, dword [0x568b30]
call fcn.0043dd84
mov al, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x445ac0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x2c
call method.IWindow.getHandle__
mov dword [esp], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
push edi
test eax, eax
je 0x445bb4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x445bae
mov eax, dword [esi + 0x30]
mov ebx, dword [esi + 0x2c]
lea ecx, [ebp - 0x20]
cmp eax, ebx
mov edi, ebx
cmovbe edi, eax
cmovae ebx, eax
call fcn.004c62d0
mov eax, dword [esi + 0x20]
lea edx, [esi + 0x1c]
cmp ebx, dword [eax]
jne 0x445b1c
mov dword [esp + 8], 0xffffffff
jmp 0x445b24
mov eax, ebx
sub eax, edi
mov dword [esp + 8], eax
mov dword [esp], edx
lea ecx, [ebp - 0x1c]
mov dword [esp + 4], edi
call fcn.004c6d40
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x20]
sub esp, 0xc
mov dword [esp], eax
call fcn.004c66f8
lea ecx, [ebp - 0x1c]
push ebx
call fcn.004c616a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [esp], 0x2000
inc eax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push esi
push esi
test eax, eax
je 0x445ba6
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ecx
test eax, eax
je 0x445ba6
mov esi, dword [ebp - 0x20]
mov edi, eax
mov edx, dword [esi]
add esi, 4
lea ecx, [edx + 1]
rep movsb byte es:[edi], byte [esi]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
mov dword [esp + 4], ebx
mov dword [esp], 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push edx
push edx
lea ecx, [ebp - 0x20]
call fcn.004c616a
call dword [sym.imp.USER32.dll_CloseClipboard]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x446dc8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x20
mov esi, dword [ebp + 8]
cmp esi, 0x41
jne 0x446e0c
mov dword [esp], 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
push ecx
test ax, ax
jns 0x446e0c
mov eax, dword [ebx]
mov dword [esp + 4], 0xffffffff
mov ecx, ebx
mov dword [esp], 0
call dword [eax + 0x108]
mov al, 1
push edx
push edx
jmp 0x446e65
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov edx, dword [eax - 0xc]
add edx, ebx
mov dword [esp], edx
call sym.winbox.exe_createMsgEvent_IBase__unsigned_int__long_
lea ecx, [ebp - 0xc]
mov dword [esp], eax
call fcn.00519420
push eax
call sym.winbox.exe_getWindowNotifier__
mov edx, dword [ebp - 0xc]
mov ecx, eax
mov eax, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x100
mov dword [esp], ebx
call dword [eax + 0x14]
lea ecx, [ebp - 0xc]
sub esp, 0x10
call fcn.00444c72
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc