joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ac6
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x20
mov esi, dword [ecx + 0x58]
test esi, esi
je 0x403ae8
lea edx, [eax + 1]
cmp dword [ebx + 0x5c], eax
je 0x403b04
mov esi, dword [esi + 0x1c]
mov eax, edx
jmp 0x403ad5
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [esp], 0
mov ecx, ebx
mov dword [esp + 4], edx
call dword [eax + 0x14]
push eax
push eax
jmp 0x403c4d
cmp dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x5c], edx
je 0x403b4c
mov ecx, dword [ebx + 0x38]
call method.IWindow.getHandle__
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov eax, dword [ebx + 0x40]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x40], 0xffffffff
push eax
mov eax, dword [esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x40], eax
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x403b88
mov dword [esp], str.socket_error
lea esi, [ebp - 0xc]
mov ecx, esi
call fcn.004c664a
push ecx
jmp 0x403c3b
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebx + 0x38]
sub esp, 0xc
call method.IWindow.getHandle__
mov dword [esp + 0xc], 0x10
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 8], 0x8001
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x10]
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
test eax, eax
je 0x403c4d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
jne 0x403c2d
mov eax, dword [ebx + 0x50]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x2710
call sym.winbox.exe_addTimer_unsigned_int__EventListener__void__bool_
mov dword [ebx + 0x54], eax
jmp 0x403c4d
call esi
lea esi, [ebp - 0xc]
mov edx, eax
mov eax, esi
call fcn.00402ccb
mov dword [esp], esi
mov ecx, ebx
call fcn.00403ac6
mov ecx, esi
push edx
call fcn.004c641a
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
Function at 0x403d40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1c]
push ebx
mov ebx, ecx
add ecx, 0x28
sub esp, 0x3c
mov esi, dword [ecx + 4]
sub esi, dword [ecx]
mov byte [ebp - 0x1c], 0
mov dword [esp + 4], edi
mov dword [esp], 0x1000
mov dword [ebp - 0x2c], ecx
call fcn.004c7732
mov edx, dword [ebx + 0x28]
push eax
push eax
mov eax, dword [ebx + 0x2c]
sub eax, edx
add edx, esi
sub eax, esi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0xc], 0
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp - 0x2c]
sub esp, 0x10
mov edx, eax
inc eax
jne 0x403e08
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x1c], 0
call fcn.004c7732
push eax
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, 0x2733
je 0x403e55
cmp eax, 0x2738
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
je 0x403e3a
mov dword [esp + 4], str.error_while_reading_err
mov dword [esp], 0x569500
call fcn.004c8bb5
mov edi, dword [ebp - 0x2c]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.004c8d08
mov dword [esp], eax
call fcn.004c8fa3
jmp 0x403e55
test edx, edx
jne 0x403e3a
mov eax, dword [ebx]
mov ecx, edi
mov esi, dword [eax + 0x14]
mov dword [esp], str.peer_closed_connection
call fcn.004c664a
mov ecx, ebx
push edx
mov dword [esp + 4], edi
mov dword [esp], 0
call esi
push ecx
push ecx
mov ecx, edi
call fcn.004c641a
jmp 0x403e55
add esi, edx
mov dword [esp + 4], edi
mov dword [esp], esi
mov byte [ebp - 0x1c], 0
call fcn.004c7732
mov ecx, ebx
push eax
push eax
call fcn.004035da
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
Function at 0x403e5e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x7c
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
mov dword [esp + 0xc], 0
sub eax, edx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x403f0e
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x403f8a
call edi
mov dword [esp + 8], str.send_error__d
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x68]
mov dword [esp + 4], 0x50
mov dword [esp], eax
call fcn.00520c30
mov dword [esp + 4], str.ERROR:_while_sending_err
mov dword [esp], 0x569500
call fcn.004c8bb5
mov esi, eax
call edi
mov dword [esp], esi
lea esi, [ebp - 0x6c]
mov dword [esp + 4], eax
call fcn.004c8d08
mov dword [esp], eax
call fcn.004c8fa3
mov eax, dword [ebx]
mov ecx, esi
mov edi, dword [eax + 0x14]
mov dword [esp], str.peer_closed_connection
call fcn.004c664a
push ecx
jmp 0x403f45
mov edx, dword [ebx + 0x30]
lea ecx, [ebx + 0x30]
add eax, edx
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004c7488
mov eax, dword [ebx + 0x34]
push edx
push edx
cmp dword [ebx + 0x30], eax
jne 0x403e69
cmp byte [ebx + 0x45], 0
je 0x403f5f
mov eax, dword [ebx]
lea esi, [ebp - 0x68]
mov ecx, esi
mov edi, dword [eax + 0x14]
call fcn.004c6580
mov ecx, ebx
mov dword [esp + 4], esi
mov dword [esp], 0
call edi
mov ecx, esi
push eax
push eax
call fcn.004c641a
jmp 0x403f8a
mov ecx, dword [ebx + 0x38]
call method.IWindow.getHandle__
mov dword [esp + 0xc], 0x21
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 8], 0x8001
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
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], 0x569500
call fcn.004c8bb5
mov dword [esp], eax
call fcn.004c8fa3
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], 0x569500
call fcn.004c8bb5
mov dword [esp], eax
call fcn.004c8fa3
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.004cba40
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.004c9fcc
test al, al
jne 0x4050f1
cmp dword [ebx + 0x8c], 0
je 0x4050f1
mov eax, dword [ebx + 4]
mov dword [esp], 0x569500
mov dword [esp + 4], eax
call fcn.004c8c02
mov dword [esp + 4], 0x523289
mov dword [esp], eax
call fcn.004c8bb5
mov edx, dword [ebx + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004c8bb5
mov dword [esp], eax
call fcn.004c8fa3
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], 0x569500
call fcn.004c8bb5
lea edx, [ebp - 0x8030]
mov ecx, edi
mov dword [esp], edx
mov dword [ebp - 0x803c], eax
call fcn.004ca020
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.004c8bd2
mov ecx, edi
mov dword [ebp - 0x803c], eax
call fcn.004c641a
mov eax, dword [ebp - 0x803c]
mov dword [esp], eax
call fcn.004c8fa3
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.0050d6ec
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.0050d6ec
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 0x41f780
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 0x420b18
Capabilities:
Send data
Send data on socket

Disassembly:
cmp dword [0x5220a0], 0xffffffff
je 0x420bb1
push ebp
mov ebp, esp
push edi
mov edi, 0x568140
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov word [ebp - 0x1a], 0x400
test ebx, ebx
je 0x420ba9
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 0x420b3b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
ret
Function at 0x4220ee
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 0x422244
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x42223e
lea ecx, [ebp - 0x1c]
call fcn.004c6580
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 0x4221dd
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov dword [esp], ebx
call fcn.00421984
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 0x422176
mov edi, dword [ebp + 8]
cmp dword [edi], 0
cmovns eax, dword [edi]
cmp edx, ebx
jne 0x422187
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 0x4221af
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.004c686a
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
push edi
inc edx
jmp 0x422189
mov edx, dword [esi + 4]
sub edx, ecx
sar edx, 3
cmp edx, eax
jb 0x4221d7
mov eax, dword [ebp - 0x2c]
cmp ebx, dword [eax + 4]
jne 0x4221c7
cmp edx, dword [eax]
jge 0x4221d7
mov dword [esp], 0x523c79
lea ecx, [ebp - 0x1c]
call fcn.004c6800
push esi
inc ebx
jmp 0x422133
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 0x422236
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ecx
test eax, eax
je 0x422236
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.004c641a
call dword [sym.imp.USER32.dll_CloseClipboard]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x42224e
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 0x42233f
mov dword [esp], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
push ecx
test eax, eax
je 0x422339
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
push edx
mov dword [ebp - 0x2c], eax
je 0x422339
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.004c663a
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 0x4222eb
mov dword [esp], esi
mov ecx, dword [ebx + 0xc]
call fcn.00421c06
push edx
jmp 0x422332
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.004c6ff0
mov ecx, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [esp], edi
call fcn.00421c06
mov ecx, edi
push eax
call fcn.004c641a
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
add eax, 0x4000
cmp dword [edx], eax
ja 0x4222eb
mov ecx, esi
call fcn.004c641a
call dword [sym.imp.USER32.dll_CloseClipboard]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42de66
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 0x42de82
cmp dword [eax + 8], 0
jne 0x42de95
add eax, 0x14
mov ecx, esi
mov dword [esp], eax
call fcn.004c65c6
push edi
jmp 0x42df82
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 0x42deb7
mov ecx, esi
call fcn.004c6580
jmp 0x42df82
lea ebx, [eax + 1]
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
je 0x42df16
lea eax, [ebx + ebx]
mov edx, esp
add eax, 0xf
mov dword [ebp - 0x2c], edx
shr eax, 4
shl eax, 4
call fcn.004cba40
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.0042cf4b
mov edx, dword [ebp - 0x2c]
mov esp, edx
jmp 0x42df82
lea edi, [ebp - 0x1c]
mov ecx, edi
call fcn.004c6580
mov dword [esp + 4], 0
mov ecx, edi
mov dword [esp], ebx
call fcn.004c6c26
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.004c6c26
mov ecx, esi
push edx
push edx
mov dword [esp], edi
call fcn.004c65ee
push ecx
mov ecx, edi
call fcn.004c641a
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x42f04a
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 0x42f0a0
mov dword [esp], ebx
mov ecx, eax
call method.IWindow.create_IWindow_
push eax
mov eax, dword [esi + 8]
test byte [eax], 0x10
je 0x42f09b
mov eax, dword [ebx + 8]
or byte [eax], 0x20
mov edx, dword [ebx + 8]
mov al, byte [edx]
test al, 0x10
jne 0x42f09b
or eax, 0x40
mov byte [edx], al
mov dword [esp], esi
jmp 0x42f066
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x42f0ad
mov al, 1
jmp 0x42f0c3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x70]
test al, al
jne 0x42f0a9
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.0042e920
Function at 0x42fcc4
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 0x42fcf8
cmp word [edx + 4], 0
js 0x42fcf8
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0xffffffff
jmp 0x42fd07
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.0051ce24
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 0x42fddf
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.0042ed3c
cmp dword [0x56899c], 0
push esi
je 0x42fe97
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 0x42fe47
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 [0x56899c]
push eax
mov dword [esp], esi
test ecx, ecx
jne 0x42fe6a
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