joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x46a5c0], 0
jne 0x402105
call fcn.004019fc
test al, al
je 0x40210d
cmp ebx, 0x7ffffff8
jle 0x402117
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40226b
xor ecx, ecx
push ebp
push 0x402264
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x46a049], 0
je 0x402138
push 0x46a5c8
call sub.KERNEL32.DLL_WaitForSingleObject
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x402148
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x4021e7
mov eax, ebx
test eax, eax
jns 0x40215d
add eax, 3
sar eax, 2
mov edx, dword [0x46a620]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x4021e7
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x402198
mov eax, ebx
test eax, eax
jns 0x402187
add eax, 3
sar eax, 2
mov ecx, dword [0x46a620]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x4021be
mov ecx, ebx
test ecx, ecx
jns 0x4021a1
add ecx, 3
sar ecx, 2
mov edi, dword [0x46a620]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x46a5b0]
sub ebx, 4
add dword [0x46a5b4], ebx
call fcn.00403a80
jmp 0x40226b
cmp ebx, dword [0x46a618]
jg 0x402239
sub dword [0x46a618], ebx
cmp dword [0x46a618], 0xc
jge 0x40220b
add ebx, dword [0x46a618]
xor eax, eax
mov dword [0x46a618], eax
mov eax, dword [0x46a61c]
add dword [0x46a61c], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x46a5b0]
sub ebx, 4
add dword [0x46a5b4], ebx
call fcn.00403a80
jmp 0x40226b
mov eax, ebx
call fcn.00401ff4
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40226b
cmp byte [0x46a049], 0
je 0x402263
push 0x46a5c8
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x402278
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x46a5c4], eax
cmp byte [0x46a5c0], 0
jne 0x4022b0
call fcn.004019fc
test al, al
jne 0x4022b0
mov dword [0x46a5c4], 8
mov dword [ebp - 4], 8
jmp 0x402411
xor ecx, ecx
push ebp
push 0x40240a
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x46a049], 0
je 0x4022d1
push 0x46a5c8
call sub.KERNEL32.DLL_WaitForSingleObject
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x4022ec
mov dword [0x46a5c4], 9
jmp 0x4023e1
dec dword [0x46a5b0]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x46a5b4], eax
test bl, 1
je 0x40234c
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x40231c
test edx, 0x80000003
je 0x40232b
mov dword [0x46a5c4], 0xa
jmp 0x4023e1
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x402343
mov dword [0x46a5c4], 0xa
jmp 0x4023e1
add ebx, edx
mov esi, eax
call fcn.00401ba0
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x46a61c]
jne 0x40238c
sub dword [0x46a61c], ebx
add dword [0x46a618], ebx
cmp dword [0x46a618], 0x3c00
jle 0x40237d
call fcn.00401e90
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00403a80
jmp 0x402411
mov edx, dword [eax]
test dl, 2
je 0x4023af
and edx, 0x7ffffffc
cmp edx, 4
jge 0x4023aa
mov dword [0x46a5c4], 0xb
jmp 0x4023e1
or dword [eax], 1
jmp 0x4023d8
mov eax, edi
cmp dword [eax + 4], 0
je 0x4023c2
cmp dword [eax], 0
je 0x4023c2
cmp dword [eax + 8], 0xc
jge 0x4023ce
mov dword [0x46a5c4], 0xb
jmp 0x4023e1
mov edx, dword [eax + 8]
add ebx, edx
call fcn.00401ba0
mov edx, ebx
mov eax, esi
call fcn.00401e08
mov eax, dword [0x46a5c4]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402411
cmp byte [0x46a049], 0
je 0x402409
push 0x46a5c8
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x403e1c
Capabilities:
Get common file path

Disassembly:
push ecx
cmp byte [0x46a048], 0
je 0x403e7d
cmp word [0x46a21c], 0xd7b2
jne 0x403e45
cmp dword [0x46a224], 0
jbe 0x403e45
mov eax, 0x46a218
call dword [0x46a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46806c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetTempPathA
push eax
call sub.KERNEL32.DLL_GetVersionExA
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403ea4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetTempPathA
push eax
call sub.KERNEL32.DLL_GetVersionExA
pop edx
ret
cmp byte [0x468030], 0
jne 0x403e99
push 0
push 0x468064
push 0x46806c
push 0
call sub.user32.dll_WinHelpA
pop edx
ret

Function at 0x404650
Capabilities:
Hide graphical window

Disassembly:
test eax, eax
je 0x404664
push eax
push 0
call sub.user32.dll_ShowWindow
test eax, eax
je 0x404648
ret
Function at 0x405070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x405204
call sub.KERNEL32.DLL_GlobalReAlloc
mov esi, eax
test esi, esi
je 0x4050d8
push 0x405214
push esi
call sub.KERNEL32.DLL_GlobalUnlock
mov ebx, eax
test ebx, ebx
je 0x4050d8
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x4050d8
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_LoadResource
jmp 0x4051fa
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x405118
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x4051fa
mov eax, dword [ebp - 4]
add eax, 2
call fcn.0040505c
mov esi, eax
cmp byte [esi], 0
je 0x4051fa
lea eax, [esi + 1]
call fcn.0040505c
mov esi, eax
cmp byte [esi], 0
je 0x4051fa
jmp 0x40511e
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_LoadResource
jmp 0x4051dd
lea eax, [esi + 1]
call fcn.0040505c
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x4051fa
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_LoadResource
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_GlobalDeleteAtom
mov esi, eax
cmp esi, 0xffffffff
je 0x4051fa
push esi
call sub.KERNEL32.DLL_GlobalAlloc
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_LockResource
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x4051fa
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_LoadResource
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_LockResource
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x40513c
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_LoadResource
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405228
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GlobalHandle
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405458
push 0x80000001
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
je 0x4052ab
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405458
push 0x80000002
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
je 0x4052ab
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405474
push 0x80000001
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
jne 0x405334
xor eax, eax
push ebp
push 0x40532d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405070
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_UnregisterClassA
test eax, eax
je 0x405312
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405494
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_UnregisterClassA
test eax, eax
je 0x405312
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405334
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_TranslateMessage
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadResource
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_LeaveCriticalSection
push eax
call sub.KERNEL32.DLL_GlobalLock
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40544e
cmp byte [ebp - 0xd], 0
jne 0x40537b
cmp byte [ebp - 0x12], 0
je 0x40544e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LockResource
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405394
dec ebx
cmp byte [ebx], 0x2e
je 0x4053a3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405393
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40544e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4053e0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_LoadResource
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
test esi, esi
jne 0x40544e
cmp byte [ebp - 0xd], 0
je 0x40544e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_LoadResource
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
test esi, esi
jne 0x40544e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_LoadResource
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bc28
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bcfe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404030
lea eax, [ebp - 8]
call fcn.004044a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404458
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bce8
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bce1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404458
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bccb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bd10
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bccb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bce8
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd05
lea eax, [ebp - 8]
call fcn.00403f98
ret
Function at 0x419174
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, eax
call sub.user32.dll_GetWindowTextA
mov edx, dword [0x469aa4]
cmp eax, dword [edx]
je 0x4191b7
call sub.user32.dll_GetWindowTextA
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [0x469938]
mov dl, 1
mov eax, dword [0x4120f8]
call fcn.0040b4d0
call fcn.004039d4
test ebx, ebx
jle 0x4191c4
mov eax, ebx
call fcn.00419158
jmp 0x4191c9
call fcn.0041914c
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x46a868
call sub.user32.dll_GetSubMenu
xor eax, eax
push ebp
push 0x419302
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0x4683e8
call sub.user32.dll_GetTopWindow
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4192e3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x419214
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jg 0x419218
xor eax, eax
jmp 0x41921a
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x4192cd
jmp 0x4192c0
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00413974
mov dword [ebp - 8], eax
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00413864
push 0x46a868
call sub.user32.dll_PostQuitMessage
xor eax, eax
push ebp
push 0x4192ad
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41927e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419295
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4192b4
push 0x46a868
call sub.user32.dll_GetSubMenu
ret
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jg 0x41922c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4192ea
mov eax, dword [ebp - 0xc]
call fcn.00403248
ret

Function at 0x41b99c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41b9a2
ret

Function at 0x41d0f4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x10]
mov dl, byte [0x41d174]
mov eax, ebx
call fcn.0041d62c
mov dl, byte [0x41d178]
mov eax, dword [ebp - 4]
call fcn.0041d62c
mov edx, dword [ebx + 0x20]
push edx
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
push edx
mov edx, dword [edi + 8]
sub edx, dword [edi]
push edx
mov edx, dword [edi + 4]
push edx
mov edx, dword [edi]
push edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
push edx
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 4]
push edx
mov edx, dword [esi + 8]
mov eax, dword [esi]
sub edx, eax
push edx
mov edx, dword [esi + 4]
push edx
push eax
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_GetKeyboardLayoutList
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41d17c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x41d219
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x41d219
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x10]
mov dl, byte [0x41d224]
mov eax, ebx
call fcn.0041d62c
mov eax, dword [ebx + 0x14]
call fcn.0041ce7c
call fcn.0041c1f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_GetClipboardData
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x18]
call fcn.0041c1f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_GetIconInfo
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
add ecx, edi
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00412540
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41d724
Capabilities:
Log keystrokes via polling
Read clipboard data

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x14]
call fcn.0041ceb8
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx + 0x14]
call fcn.0041ceb8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_GetClassNameA
mov eax, dword [ebx + 0x14]
call fcn.0041cf98
test al, al
jne 0x41d777
mov eax, dword [ebx + 0x14]
call fcn.0041ce7c
call fcn.0041c1f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_GetClipboardData
push 2
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_GetCursor
pop ebx
ret
mov eax, dword [ebx + 0x14]
call fcn.0041ce7c
call fcn.0041c1f8
not eax
push eax
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_GetClipboardData
push 1
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_GetCursor
pop ebx
ret
Function at 0x41d960
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
mov dword [ebp - 4], eax
push 0
call sub.user32.dll_GetKeyboardType
mov dword [ebp - 0x18], eax
push 0
call sub.user32.dll_GetKeyboardType
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x41daae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
push eax
push 0x18
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_DrawEdge
test bl, bl
je 0x41d9c2
push 0
push 1
push 1
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_CreateBitmap
mov dword [ebp - 0x10], eax
jmp 0x41da24
push 0
call fcn.00406538
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41d9d7
call fcn.0041d8a8
xor eax, eax
push ebp
push 0x41da1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41da04
call fcn.0041d8a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41da24
mov eax, dword [ebp - 0x14]
push eax
push 0
call fcn.00406770
ret
cmp dword [ebp - 0x10], 0
je 0x41da8e
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_GetClassNameA
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_GetClassNameA
mov esi, eax
push 0xcc0020
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_GetKeyboardLayoutList
test ebx, ebx
je 0x41da80
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_GetClassNameA
test esi, esi
je 0x41da8e
push esi
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_GetClassNameA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dab5
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_CallNextHookEx
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_CallNextHookEx
ret
Function at 0x41fdf4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, esi
call fcn.0041fc90
lea edx, [ebp - 0x22]
mov ecx, 0x16
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x22], 0x9ac6cdd7
jne 0x41fe36
lea eax, [ebp - 0x22]
call fcn.0041e698
cmp ax, word [ebp - 0xe]
je 0x41fe3b
call fcn.0041d848
sub dword [ebp - 8], 0x16
mov eax, dword [ebp - 8]
call fcn.004026bc
mov dword [ebp - 0xc], eax
mov ebx, dword [esi + 0x28]
xor eax, eax
push ebp
push 0x41ff63
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [esi + 0x28]
mov dx, word [ebp - 0x14]
mov word [eax + 0x18], dx
cmp word [ebp - 0x14], 0
jne 0x41fe81
mov word [ebp - 0x14], 0x60
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x18]
movsx edx, word [ebp - 0x1c]
sub eax, edx
push eax
call sub.user32.dll_RegisterClipboardFormatA
mov dword [ebx + 0xc], eax
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x16]
movsx edx, word [ebp - 0x1a]
sub eax, edx
push eax
call sub.user32.dll_RegisterClipboardFormatA
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x32], 8
xor eax, eax
mov dword [ebp - 0x2e], eax
xor eax, eax
mov dword [ebp - 0x2a], eax
xor eax, eax
mov dword [ebp - 0x26], eax
lea eax, [ebp - 0x32]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetKeyState
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x41fef2
call fcn.0041d848
lea eax, [ebp - 0x96]
push eax
push 0x64
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_DestroyWindow
mov dword [ebp - 0x32], 8
mov eax, dword [ebp - 0x76]
mov dword [ebp - 0x2e], eax
mov eax, dword [ebp - 0x72]
mov dword [ebp - 0x2a], eax
xor eax, eax
mov dword [ebp - 0x26], eax
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_CallWindowProcA
lea eax, [ebp - 0x32]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetKeyState
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x41ff46
call fcn.0041d848
mov byte [esi + 0x2c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ff6a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004026dc
ret