joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57b300
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 0x57b4ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x57b48c
mov dl, 1
mov eax, dword [0x423350]
call fcn.0043257c
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00486120
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x57b47b
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.005ba63c
test al, al
je 0x57b46e
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, 0x57b4bc
lea eax, [ebp - 0x394]
call fcn.00465f9c
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x57b46e
xor eax, eax
push ebp
push 0x57b467
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 - 0x314]
push eax
push 0
push 0
push 0x57b52c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x57b450
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00486f1c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
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 + 0x44]
jne 0x57b450
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00486f1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57b46e
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x57b371
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004324b8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57b4b2
lea eax, [ebp - 0x3a0]
call fcn.00486120
ret

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

Disassembly:
push ecx
mov eax, dword [0x6578d4]
cmp byte [eax + 0xb1], 0
jne 0x57c0d6
cmp dword [0x6578f4], 0
jne 0x57c096
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x6382a4]
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExW
mov dword [0x6578f4], eax
cmp dword [0x6578f0], 0
jne 0x57c0b1
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x6578f0], eax
cmp dword [0x6578f8], 0
jne 0x57c0d6
push esp
push 0
push 0
mov eax, dword [0x6383ac]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x6578f8], eax
pop edx
ret
Function at 0x57c3f0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x57c407
add esp, 0xfffffff0
call fcn.00484bb4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043cf08
mov eax, dword [0x63e598]
cmp byte [eax], 0
jne 0x57c434
push 0
call fcn.0062ceb4
test eax, 0x80000000
sete al
mov byte [ebx + 0x184], al
mov eax, dword [0x63e5d0]
cmp word [eax + 2], 0
jne 0x57c44e
mov eax, dword [0x63e5d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0057e5e4
mov eax, dword [0x63e5d4]
cmp word [eax + 2], 0
jne 0x57c468
mov eax, dword [0x63e5d4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0057e7e8
mov byte [ebx + 0x39], 0
mov dl, 1
mov eax, dword [0x556d1c]
call fcn.0055cec0
mov esi, eax
mov dword [ebx + 0x40], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x57ed60
mov dl, 1
mov eax, dword [0x41fbdc]
call fcn.00484578
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x41fbdc]
call fcn.00484578
mov dword [ebx + 0xb4], eax
xor eax, eax
mov dword [ebx + 0x64], eax
xor eax, eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x60], 0xff000018
mov dword [ebx + 0x7c], 0x1f4
mov byte [ebx + 0x80], 1
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x78], 0x9c4
mov byte [ebx + 0x8c], 0
mov byte [ebx + 0xa9], 1
mov byte [ebx + 0xc0], 1
mov dl, 1
mov eax, dword [0x55b5fc]
call fcn.00566544
mov esi, eax
mov dword [ebx + 0xa4], esi
push 0x57c64c
mov eax, dword [0x63e590]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconW
mov edx, eax
mov eax, esi
call fcn.005669d4
mov eax, dword [ebx + 0xa4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x57f048
mov dl, 1
mov eax, dword [0x41fbdc]
call fcn.00484578
mov dword [ebx + 0x9c], eax
push 0x100
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x63e590]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00465d9c
test eax, eax
je 0x57c57c
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00465b4c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00465d80
test eax, eax
je 0x57c594
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.USER32.DLL_CharNextW
push eax
call sub.USER32.DLL_CharLowerW
lea eax, [ebx + 0x90]
lea edx, [ebp - 0x202]
mov ecx, 0x100
call fcn.00486f1c
push ebx
push 0x57dfbc
call fcn.00571e04
mov dword [ebx + 0x180], eax
mov byte [ebx + 0xd4], 0
mov eax, dword [0x63e598]
cmp byte [eax], 0
jne 0x57c5e5
mov eax, ebx
call fcn.0057c80c
mov byte [ebx + 0x5d], 1
mov byte [ebx + 0x5e], 1
mov byte [ebx + 0x5f], 1
mov byte [ebx + 0xaa], 1
mov byte [ebx + 0xd5], 0
mov byte [ebx + 0xe0], 0
xor eax, eax
mov dword [ebx + 0xd8], eax
mov byte [ebx + 0xd7], 0
xor eax, eax
mov dword [ebx + 0xac], eax
mov eax, ebx
call fcn.0057f290
mov eax, ebx
call fcn.0057febc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x57c642
call fcn.00484c0c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57cb44
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x57cbf0
cmp dword [ebx + 0x98], 0
jne 0x57cbea
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x57ca7c
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x94]
cmp dword [eax + 8], 0
je 0x57cbea
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.DLL_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.USER32.DLL_GetWindowLongW
test al, 8
je 0x57cbb0
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x94]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x57cbea
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x94]
call fcn.0042ded0
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x57cbbf
inc dword [ebx + 0x98]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x6578d4]
cmp dword [eax + 0x178], 0
je 0x57cf75
test bl, bl
jne 0x57cec3
cmp dword [esi + 0xa0], 0
jne 0x57ceb8
mov eax, esi
call fcn.0057fd0c
push eax
push 0x57cd1c
call sub.USER32.DLL_EnumWindows
cmp dword [esi + 0x48], 0
je 0x57ce89
mov eax, dword [0x6578d4]
cmp byte [eax + 0xd7], 0
je 0x57ce89
mov eax, dword [esi + 0xdc]
call fcn.0048800c
mov edi, eax
cmp edi, 0
jl 0x57ce89
push 0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x57ce72
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x57ceb8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.0042ded0
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x57ce98
inc dword [esi + 0xa0]
jmp 0x57cf75
cmp dword [esi + 0xa0], 0
jle 0x57cf75
dec dword [esi + 0xa0]
cmp dword [esi + 0xa0], 0
jne 0x57cf75
cmp dword [esi + 0x48], 0
je 0x57cf20
mov eax, dword [0x6578d4]
cmp byte [eax + 0xd7], 0
je 0x57cf20
mov eax, dword [esi + 0xdc]
call fcn.0048800c
mov edi, eax
cmp edi, 0
jl 0x57cf20
push 5
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x57cf09
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x57cf4f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.0042ded0
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x57cf2f
mov eax, dword [esi + 0x9c]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xdc]
mov ecx, 1
mov edx, dword [0x56e674]
call fcn.004881b8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x57dbc8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb0], 0
je 0x57dc33
cmp byte [ebx + 0xd7], 0
jne 0x57dc33
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x178]
push eax
call sub.USER32.DLL_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004862a8
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x57dc20
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x57dc40
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00486500
jmp 0x57dc40
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00486500
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x57f478
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x57f4e6
mov eax, esi
call fcn.005b4604
test al, al
je 0x57f4e6
mov eax, dword [ebx + 0x88]
call fcn.005b4250
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x57f4e6
mov eax, dword [ebx + 0x88]
mov edx, dword [eax]
call dword [edx + 0x108]
test al, al
je 0x57f4da
push 0
mov eax, dword [ebx + 0x88]
call fcn.005b4250
push eax
call sub.USER32.DLL_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.005ab06c
jmp 0x57f4e6
mov cl, 1
mov edx, dword [ebx + 0x78]
mov eax, ebx
call fcn.0057f2b0
pop esi
pop ebx
ret
Function at 0x585ea8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x585f22
mov eax, dword [ebx + 8]
call fcn.005b4250
mov ecx, eax
mov dl, 1
mov eax, dword [0x522a34]
call fcn.005ae674
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.0052fe44
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x5857a0
push 8
push 3
call sub.USER32.DLL_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.005b4250
push eax
call sub.USER32.DLL_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.005b4250
push eax
call sub.USER32.DLL_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x585f98
mov eax, dword [ebx + 8]
call fcn.005b4250
mov ecx, eax
mov dl, 1
mov eax, dword [0x522a34]
call fcn.005ae674
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.0052fe44
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x5857ec
push 8
push 0
push 2
call sub.USER32.DLL_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.005b4250
push eax
call sub.USER32.DLL_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.005b4250
push eax
call sub.USER32.DLL_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x586004
mov eax, dword [ebx + 8]
call fcn.005b4250
mov ecx, eax
mov dl, 1
mov eax, dword [0x524130]
call fcn.005ae674
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x278], 1
push 8
push 3
call sub.USER32.DLL_GetSystemMetrics
push eax
push 2
call sub.USER32.DLL_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.005b4250
push eax
call sub.USER32.DLL_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.005b4250
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret
Function at 0x58ef30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, word [0x58ef6c]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x58ef48
or bx, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x58ef58
or bx, 4
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x58ef68
or bx, 2
mov eax, ebx
pop ebx
ret

Function at 0x58f964
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x299], 0
jne 0x58fa34
mov eax, dword [ebp - 4]
mov byte [eax + 0x298], 1
xor eax, eax
push ebp
push 0x58fa0e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.005b4250
push eax
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
xor edx, edx
call fcn.005aa3f0
mov eax, dword [ebp - 4]
mov byte [eax + 0x299], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2a8], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x11c]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.005aa7bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2cc]
call fcn.005af750
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58fa15
mov eax, dword [ebp - 4]
mov byte [eax + 0x298], 0
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x590408
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x299], 0
je 0x5904ee
mov eax, dword [ebp - 4]
mov byte [eax + 0x298], 1
xor eax, eax
push ebp
push 0x5904c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov dl, 5
call fcn.005aa3f0
push 5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.005b4250
push eax
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp - 4]
mov byte [eax + 0x299], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2a8]
mov eax, dword [ebp - 4]
call fcn.005aa7bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2cc]
mov eax, dword [eax + 0x290]
call fcn.0057230c
test al, al
je 0x5904b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2cc]
mov edx, dword [ebp - 4]
call fcn.00573184
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2cc]
call fcn.005af750
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5904cf
mov eax, dword [ebp - 4]
mov byte [eax + 0x298], 0
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x599028
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00486204
xor eax, eax
push ebp
push 0x599167
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_OpenClipboard
test eax, eax
je 0x59913a
xor edx, edx
push ebp
push 0x599133
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 4]
mov eax, esi
test eax, eax
je 0x599075
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 - 8], eax
xor edx, edx
push ebp
push 0x599108
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x5990f7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
test eax, eax
je 0x5990ba
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00486e88
lea ecx, [esi + 2]
mov edx, ebx
call fcn.00483c8c
call sub.USER32.DLL_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5990fe
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov ecx, dword [0x63e768]
mov dl, 1
mov eax, dword [0x45e724]
call fcn.0046a858
call fcn.00485928
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59916e
lea eax, [ebp - 4]
call fcn.00486120
ret
Function at 0x5a86d0
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 [0x6579b4], 0
je 0x5a8811
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x63e5bc]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x5a8811
mov eax, dword [0x6579b8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x6579b4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x5a87e0
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x6579b4]
call fcn.0042ded0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x5a87d8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1f2], 0
je 0x5a87d8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x5a87d8
mov eax, dword [ebp - 0x14]
call fcn.005b4250
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x5a87d8
push ebp
call fcn.005a868c
pop ecx
test al, al
jne 0x5a87d8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00484904
test al, al
je 0x5a87d8
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, 0xffbb
call fcn.00484904
cmp byte [ebp - 1], 0
je 0x5a87d8
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00480278
test al, al
je 0x5a87d8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6579b8]
call fcn.005a7de8
inc edi
dec ebx
jne 0x5a8735
mov eax, dword [0x6579b8]
cmp dword [eax + 8], 0
jle 0x5a87f8
mov eax, dword [0x6579b8]
call fcn.005a7ea0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5a8811
push ebp
mov eax, dword [ebp - 0x18]
call fcn.005a84f4
pop ecx
test al, al
jne 0x5a8811
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
Function at 0x5b0ccc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.00480260
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.005aac7c
test ebx, ebx
jne 0x5b0d1f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.005b0b48
mov ebx, eax
test ebx, ebx
je 0x5b0e15
cmp esi, ebx
je 0x5b0d48
mov eax, dword [esp]
sub eax, dword [ebx + 0x48]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x4c]
mov dword [esp + 0x118], eax
jmp 0x5b0d5d
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x5b0d95
add eax, 0xffffff5f
sub eax, 2
jb 0x5b0dad
dec eax
sub eax, 2
jb 0x5b0dc1
dec eax
sub eax, 2
jb 0x5b0db7
jmp 0x5b0dcb
add eax, 0xfffffdff
sub eax, 2
jb 0x5b0dad
dec eax
sub eax, 2
jb 0x5b0dc1
dec eax
sub eax, 2
jb 0x5b0db7
jmp 0x5b0dcb
mov byte [esp + 0x120], 0
jmp 0x5b0dd3
mov byte [esp + 0x120], 2
jmp 0x5b0dd3
mov byte [esp + 0x120], 1
jmp 0x5b0dd3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00571eb4
mov esi, eax
call fcn.005a7778
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.005ac690
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x5b0e17
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x60862c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x608719
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x6086eb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
xor edx, edx
push ebp
push 0x6086da
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.00483c8c
mov eax, dword [ebp - 4]
call fcn.0060836c
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.USER32.DLL_SetClipboardData
test eax, eax
jne 0x6086c3
mov ecx, dword [0x63e838]
mov dl, 1
mov eax, dword [0x41f72c]
call fcn.0046a858
call fcn.00485928
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6086e1
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret

Function at 0x608844
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 0xd
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x6088b6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x60888a
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00486ee0
jmp 0x608891
mov eax, ebx
call fcn.00486120
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6088bd
cmp dword [ebp - 8], 0
je 0x6088ad
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x6088f8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x6089a0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x608973
mov edx, ebx
mov eax, dword [0x559b20]
call fcn.00561b0c
test al, al
je 0x608963
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00561a24
call fcn.00485a1c
jmp 0x6089a7
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x60892b
mov ecx, dword [0x63e94c]
mov dl, 1
mov eax, dword [0x608274]
call fcn.0046a858
call fcn.00485928
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6089a7
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret