joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457f44
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x457f73
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x457ff2
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00456814
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x457fc0
mov cx, word [esp]
sub cx, si
jmp 0x457fc2
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x457fa9
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x457fe8
mov cx, word [esp]
sub cx, si
jmp 0x457fea
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x457fd1
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x45804f
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00457c18
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x45803a
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x45804f
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x457f4e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46d1ec
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x46d3ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.004a3a24
mov eax, dword [esi]
cmp byte [eax + 0x278], 0
je 0x46d3b3
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
sub eax, dword [edx + 0x288]
mov edx, dword [esi]
cmp eax, dword [edx + 0x2e0]
jb 0x46d254
mov eax, dword [esi]
add eax, 0x284
xor edx, edx
call fcn.00406b10
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
mov dword [edx + 0x288], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 8
je 0x46d33a
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 0xd800
jb 0x46d283
cmp ax, 0xdfff
jbe 0x46d287
xor eax, eax
jmp 0x46d289
mov al, 1
test al, al
je 0x46d2f7
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.004a4d00
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x46d37e
mov eax, dword [esi]
push dword [eax + 0x284]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, word [edx]
call fcn.00406c8c
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00406c8c
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x284
mov edx, 3
call fcn.004070d8
mov eax, dword [ebp - 8]
mov word [eax], 0
jmp 0x46d37e
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, word [edx]
call fcn.00406c8c
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x284
call fcn.00406f34
jmp 0x46d37e
mov eax, dword [esi]
mov ebx, dword [eax + 0x284]
test ebx, ebx
je 0x46d327
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x284
mov ecx, 1
mov edx, ebx
call fcn.00407330
mov eax, dword [esi]
mov eax, dword [eax + 0x284]
call fcn.00406e90
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x284]
call fcn.00418078
cmp al, 2
je 0x46d316
mov eax, dword [esi]
mov eax, dword [eax + 0x284]
test eax, eax
je 0x46d36b
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x284
mov ecx, 1
xchg edx, eax
call fcn.00407330
mov eax, dword [esi]
mov eax, dword [eax + 0x284]
test eax, eax
je 0x46d38f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x46d39c
push ebp
call fcn.0046d104
pop ecx
jmp 0x46d3b3
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov eax, dword [esi]
mov si, 0xffec
call fcn.0040513c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d3d5
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00406b08
ret
Function at 0x474720
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00406af8
xor eax, eax
push ebp
push 0x4748b5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x474883
xor edx, edx
push ebp
push 0x47487c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406b64
mov eax, dword [ebp - 8]
test eax, eax
je 0x47478f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x47478f
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00406348
test eax, eax
je 0x474798
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x474851
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x474840
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406b64
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4747fa
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4747fa
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00406348
test eax, eax
je 0x474803
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00406b9c
lea ecx, [esi + 2]
mov edx, ebx
call fcn.0040444c
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474847
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x56fb88]
mov dl, 1
mov eax, dword [0x40d6fc]
call fcn.0041726c
call fcn.00405988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4748bc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406b08
ret

Function at 0x47ee5c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x47ee7d
test edi, 0x40000
je 0x47ee97
test bl, bl
jne 0x47ef18
mov eax, edi
and eax, 0x40000
add byte [eax + eax], al

Function at 0x47f1c4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x47f1ea
mov eax, esp
push eax
push 0x47f18c
call sub.user32.dll_EnumWindows
jmp 0x47f1fd
mov eax, esp
push eax
push 0x47f16c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret
Function at 0x47f2c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x47f310]
test bl, 4
je 0x47f2d4
or si, 1
test bl, 8
je 0x47f2dd
or si, 4
test bl, 1
je 0x47f2e6
or si, 8
test bl, 2
je 0x47f2ef
or si, 0x10
test bl, 0x10
je 0x47f2f8
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47f308
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x47f314
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x47f350]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47f32f
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47f33f
or bx, 4
test esi, 0x20000000
je 0x47f34b
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x487e04
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x487e16
add esp, 0xfffffff0
call fcn.004053e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043b7ac
mov eax, dword [0x56fcdc]
mov dword [eax + 4], ebx
mov dword [eax], 0x488260
mov eax, dword [0x56fcec]
mov dword [eax + 4], ebx
mov dword [eax], 0x48826c
mov eax, ebx
call fcn.00488278
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x4262f0]
call fcn.00404e88
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4262f0]
call fcn.00404e88
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4262f0]
call fcn.00404e88
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4262f0]
call fcn.00404e88
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x4262f0]
call fcn.00404e88
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x483004
push eax
push 0
push 0
mov eax, dword [0x570048]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x440e38]
call fcn.00447260
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x440e38]
call fcn.00447260
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x440e38]
call fcn.00447260
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x440e38]
call fcn.00447260
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x440e38]
call fcn.00447260
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004887d8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x488648
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x488648
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x488648
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x488648
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x488648
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x487f91
call fcn.0040543c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4883e8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x488595
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x488576
mov dl, 1
mov eax, dword [0x4289d8]
call fcn.0043444c
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.00406b10
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x488565
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.004ab088
test al, al
je 0x488558
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4885a4
lea eax, [ebp - 0x394]
call fcn.004130b0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x488558
xor eax, eax
push ebp
push 0x488551
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x488614
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x48853a
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406d20
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x48853a
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488558
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x48845b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00434388
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48859c
lea eax, [ebp - 0x3a0]
call fcn.00406b00
ret

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

Disassembly:
push ecx
mov eax, dword [0x576260]
cmp byte [eax + 0xad], 0
jne 0x489166
cmp dword [0x576278], 0
jne 0x489126
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x56d454]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x576278], eax
cmp dword [0x576274], 0
jne 0x489141
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x576274], eax
cmp dword [0x57627c], 0
jne 0x489166
push esp
push 0
push 0
mov eax, dword [0x56d450]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x57627c], eax
pop edx
ret
Function at 0x489434
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x48944b
add esp, 0xfffffff0
call fcn.004053e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043b7ac
mov eax, dword [0x56facc]
cmp byte [eax], 0
jne 0x489478
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x57000c]
cmp word [eax + 2], 0
jne 0x489492
mov eax, dword [0x57000c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048b4f8
mov eax, dword [0x5701d8]
cmp word [eax + 2], 0
jne 0x4894ac
mov eax, dword [0x5701d8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048b708
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x440e38]
call fcn.00447260
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x48bbbc
mov dl, 1
mov eax, dword [0x4262f0]
call fcn.00404e88
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4262f0]
call fcn.00404e88
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x445450]
call fcn.0045042c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x48968c
mov eax, dword [0x56fde4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0045082c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x48be7c
mov dl, 1
mov eax, dword [0x4262f0]
call fcn.00404e88
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x56fde4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00412ea4
test eax, eax
je 0x4895bd
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00412c34
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00412e88
test eax, eax
je 0x4895d5
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406d20
push ebx
push 0x48aec8
call fcn.0047f2a4
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x56facc]
cmp byte [eax], 0
jne 0x489626
mov eax, ebx
call fcn.00489800
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0048c0a8
mov eax, ebx
call fcn.0048ccdc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x489683
call fcn.0040543c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x489ad4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x489b76
cmp dword [ebx + 0x94], 0
jne 0x489b70
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x489a20
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x489b70
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_GetWindowLongW
test al, 8
je 0x489b36
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x489b70
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.00430f04
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x489b45
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x489d94
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x576260]
cmp dword [eax + 0x170], 0
je 0x489ef9
test bl, bl
jne 0x489e47
cmp dword [esi + 0x9c], 0
jne 0x489e3c
mov eax, esi
call fcn.0048cb2c
push eax
push 0x489ca0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x489e0d
mov eax, dword [0x576260]
cmp byte [eax + 0xd3], 0
je 0x489e0d
mov eax, dword [esi + 0xd8]
call fcn.00408200
mov edi, eax
cmp edi, 0
jl 0x489e0d
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x489df6
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x489e3c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00430f04
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x489e1c
inc dword [esi + 0x9c]
jmp 0x489ef9
cmp dword [esi + 0x9c], 0
jle 0x489ef9
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x489ef9
cmp dword [esi + 0x44], 0
je 0x489ea4
mov eax, dword [0x576260]
cmp byte [eax + 0xd3], 0
je 0x489ea4
mov eax, dword [esi + 0xd8]
call fcn.00408200
mov edi, eax
cmp edi, 0
jl 0x489ea4
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x489e8d
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x489ed3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00430f04
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x489eb3
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x47d17c]
call fcn.004083c0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x48ab14
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x48ab7f
cmp byte [ebx + 0xd3], 0
jne 0x48ab7f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406c4c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x48ab6c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x48ab8c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406b10
jmp 0x48ab8c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406b10
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x48c290
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x48c2fe
mov eax, esi
call fcn.004a50ac
test al, al
je 0x48c2fe
mov eax, dword [ebx + 0x84]
call fcn.004a4d00
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48c2fe
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x48c2f2
push 0
mov eax, dword [ebx + 0x84]
call fcn.004a4d00
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0049bfbc
jmp 0x48c2fe
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0048c0c8
pop esi
pop ebx
ret
Function at 0x499604
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x5762d4], 0
je 0x499745
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x570180]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x499745
mov eax, dword [0x5762d8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5762d4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x499714
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5762d4]
call fcn.00430f04
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x49970c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x49970c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x49970c
mov eax, dword [ebp - 0x14]
call fcn.004a4d00
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x49970c
push ebp
call fcn.004995c0
pop ecx
test al, al
jne 0x49970c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.0040513c
test al, al
je 0x49970c
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.0040513c
cmp byte [ebp - 1], 0
je 0x49970c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040a75c
test al, al
je 0x49970c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5762d8]
call fcn.00498d1c
inc edi
dec ebx
jne 0x499669
mov eax, dword [0x5762d8]
cmp dword [eax + 8], 0
jle 0x49972c
mov eax, dword [0x5762d8]
call fcn.00498dd4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x499745
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00499424
pop ecx
test al, al
jne 0x499745
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret