joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46eb78
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46ed29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004053dc
lea eax, [ebp - 0xc]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x46ed06
xor eax, eax
push ebp
push 0x46ecff
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
mov eax, dword [ebp - 0x10]
call fcn.00402f18
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x46ece1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x46eccb
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
dec edi
test edi, edi
jl 0x46eccb
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x14]
add edx, 4
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [ebp - 0x1c], ecx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x14]
add edx, 4
mov eax, dword [edx + eax*4 + 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeNameA
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00405b18
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405888
push eax
lea eax, [ebp - 0x20]
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeNameA
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00405b18
push dword [esi]
lea ecx, [ebp - 0x24]
mov edx, 0x1f
mov eax, dword [ebp - 8]
call fcn.0046eb34
push dword [ebp - 0x24]
push ebp
lea eax, [ebp - 0x28]
call fcn.0046eae0
pop ecx
push dword [ebp - 0x28]
push 0x46ed40
mov eax, esi
mov edx, 4
call fcn.0040578c
inc ebx
dec edi
jne 0x46ec26
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ece8
mov eax, dword [ebp - 0x14]
call fcn.00402f34
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ed30
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405400
lea eax, [ebp - 8]
call fcn.004053dc
ret
Function at 0x4736d0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x4737f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x553354]
mov eax, dword [eax]
call fcn.00457088
mov ebx, eax
test ebx, ebx
je 0x47373e
lea edx, [ebp - 4]
mov eax, dword [ebx + 4]
call fcn.0040a604
mov eax, dword [ebp - 4]
call fcn.00405888
push eax
push 0x473800
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx + 8]
call fcn.00405888
push eax
push 0x473810
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx + 0xc]
call fcn.00405888
push eax
push 0x473820
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.00457144
mov ebx, eax
test ebx, ebx
je 0x473793
lea edx, [ebp - 8]
mov eax, dword [ebx + 4]
call fcn.0040a604
mov eax, dword [ebp - 8]
call fcn.00405888
push eax
push 0x473830
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx + 8]
call fcn.00405888
push eax
push 0x473844
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx + 0xc]
call fcn.00405888
push eax
push 0x473858
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
call fcn.0046d1a4
pop ecx
mov eax, dword [ebp - 0xc]
call fcn.00405888
push eax
push 0x47386c
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [0x55b8ac]
call fcn.00405888
push eax
push 0x473878
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x473884
push 0x473888
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4737f9
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405400
ret
Function at 0x474c0c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x474d18
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x104]
push eax
call sub.user32.dll_GetFocus
push eax
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x474ceb
mov eax, esi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.0040564c
lea eax, [ebp - 0x10c]
call fcn.00474bb4
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.00409640
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 4]
call fcn.004099e0
mov edx, dword [ebp - 4]
mov eax, 0x474d30
call fcn.004059d4
test eax, eax
jle 0x474cf2
push 0xfffffffffffffff0
call sub.user32.dll_GetFocus
push eax
call sub.user32.dll_GetWindowLongA
test al, 0x20
je 0x474cf2
mov eax, dword [esi]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x474cce
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test edi, edi
jbe 0x474cf2
mov ebx, 1
mov eax, esi
call fcn.004058e8
mov byte [eax + ebx - 1], 0x2a
inc ebx
dec edi
jne 0x474cd9
jmp 0x474cf2
mov eax, esi
call fcn.004053dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474d1f
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00405400
lea eax, [ebp - 4]
call fcn.004053dc
ret

Function at 0x4784f4
Capabilities:
Terminate thread

Disassembly:
call fcn.0042dc0c
test al, al
jne 0x478551
cmp dword [0x55b880], 0
je 0x478551
mov eax, dword [0x55b880]
call fcn.004248b8
mov eax, dword [0x5567fc]
call fcn.00457158
test al, al
jne 0x478530
push 0xffffffffffffffff
mov eax, dword [0x55b880]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x478540
push 1
mov eax, dword [0x55b880]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x55b880]
call fcn.004043d8
xor eax, eax
mov dword [0x55b880], eax
ret
Function at 0x479518
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0045885c
mov edi, eax
mov dl, 1
mov eax, dword [0x4189a0]
call fcn.004043a8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x47962e
push dword fs:[edx]
mov dword fs:[edx], esp
mov al, 0x10
call fcn.0045a4a4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x47955e
mov dword [ebp - 0x14], 1
jmp 0x479569
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0041b37c
mov al, 0x13
call fcn.0045a4a4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x479582
mov dword [ebp - 0xc], 1
jmp 0x47958d
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0041b37c
mov al, 0x11
call fcn.0045a4a4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4795a6
mov dword [ebp - 0x10], 1
jmp 0x4795b1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0041b37c
mov esi, dword [edi]
dec esi
test esi, esi
jl 0x4795df
inc esi
xor ebx, ebx
mov eax, dword [edi + 4]
mov eax, dword [eax + ebx*8 + 4]
cmp eax, dword [ebp - 0x10]
je 0x4795db
cmp eax, dword [ebp - 0xc]
je 0x4795db
cmp eax, dword [ebp - 0x14]
je 0x4795db
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0041b37c
inc ebx
dec esi
jne 0x4795bb
mov esi, dword [edi]
dec esi
test esi, esi
jl 0x479618
inc esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov eax, dword [edi + 4]
lea eax, [eax + ebx*8 + 4]
call fcn.004793b4
push eax
call sub.kernel32.dll_VirtualProtect
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0041b4d4
mov edx, dword [edi + 4]
mov dword [edx + ebx*8 + 4], eax
inc ebx
dec esi
jne 0x4795e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479635
mov eax, dword [ebp - 8]
call fcn.004043d8
ret

Function at 0x4796d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
call fcn.0045885c
mov esi, eax
mov ebx, dword [esi]
dec ebx
jmp 0x4796e7
dec ebx
test ebx, ebx
jl 0x4796f4
mov eax, dword [esi + 4]
cmp dword [eax + ebx*8], 0
je 0x4796e6
mov eax, dword [esi + 4]
mov eax, dword [eax + ebx*8]
test eax, eax
je 0x479739
mov dword [0x55b800], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov eax, dword [esi + 4]
lea eax, [eax + ebx*8]
call fcn.004793b4
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi + 4]
lea eax, [eax + ebx*8]
call fcn.004793b4
mov dword [0x55b84c], eax
mov eax, 0x47963c
mov edx, dword [0x55b84c]
mov dword [edx], eax
mov ebx, dword [esi]
dec ebx
jmp 0x47973f
dec ebx
test ebx, ebx
jl 0x47974d
mov eax, dword [esi + 4]
cmp dword [eax + ebx*8 + 4], 0
je 0x47973e
mov eax, dword [esi + 4]
mov eax, dword [eax + ebx*8 + 4]
test eax, eax
je 0x479783
mov dword [0x55b804], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov eax, dword [esi + 4]
lea eax, [eax + ebx*8 + 4]
call fcn.004793b4
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, 0x4796c4
mov edx, dword [esi + 4]
mov dword [edx + ebx*8 + 4], eax
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47e324
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405888
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x47e37c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x553a18]
mov dl, 1
mov eax, dword [0x47de30]
call fcn.0040e284
call fcn.00404d50
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0047df38
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47f50c
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 0x47f512
ret
Function at 0x498984
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.00405878
xor eax, eax
push ebp
push 0x498ab9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x498a8c
xor edx, edx
push ebp
push 0x498a85
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x4989d1
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x498a5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x498a49
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x498a10
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00405888
lea ecx, [ebx + 1]
mov edx, esi
call fcn.00403258
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498a50
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x55312c]
mov dl, 1
mov eax, dword [0x408994]
call fcn.0040e248
call fcn.00404d50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498ac0
lea eax, [ebp - 4]
call fcn.004053dc
ret
Function at 0x498ac8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x498c83
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00405b7c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x498c9c
call fcn.00405710
mov eax, ebx
call fcn.00424fa4
mov edi, eax
dec edi
test edi, edi
jl 0x498b80
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00424f78
mov edx, dword [0x48c5d8]
call fcn.00404564
test al, al
je 0x498b7c
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.00424f78
lea edx, [ebp - 0x14]
call fcn.004a81d4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00405b7c
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040578c
inc esi
dec edi
jne 0x498b2e
movzx eax, byte [0x498ca0]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x498cac
mov eax, dword [ebp - 8]
call fcn.0040f578
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00405474
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.004a81d4
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x498c9c
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.004a81d4
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x498c9c
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x498c9c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x498cb8
call fcn.0040b1c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498c8a
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00405400
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00405400
lea eax, [ebp - 0x14]
call fcn.004053dc
lea eax, [ebp - 0x10]
call fcn.004053dc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405400
ret
Function at 0x49b1cc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004053dc
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x49b21a
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040564c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a02fc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a042f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x47de90]
call fcn.0047df60
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4a0405
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0047e000
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.0040564c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x4a0444
call fcn.00405710
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0047e064
lea ecx, [ebp - 4]
mov edx, 0x4a0480
mov eax, dword [ebp - 0xc]
call fcn.0047e2ac
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040fecc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4a03e8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4a048c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x5507d0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a03ef
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x4a04dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x4a0523
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a0506
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a0517
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4a0523
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4a5984
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 - 9]
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 [0x55c870], 0
je 0x4a5acd
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x55366c]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4a5acd
mov eax, dword [0x55c874]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x55c870]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4a5a9c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x55c870]
call fcn.0041b4d4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4a5a94
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x4a5a94
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4a5a94
mov eax, dword [ebp - 0x14]
call fcn.004b0284
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4a5a94
push ebp
call fcn.004a5940
pop ecx
test al, al
jne 0x4a5a94
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004045d4
test al, al
je 0x4a5a94
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
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.004045d4
cmp byte [ebp - 1], 0
je 0x4a5a94
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4a5a94
mov edx, dword [ebp - 0x14]
mov eax, dword [0x55c874]
call fcn.004a50b0
inc edi
dec ebx
jne 0x4a59e9
mov eax, dword [0x55c874]
cmp dword [eax + 8], 0
jle 0x4a5ab4
mov eax, dword [0x55c874]
call fcn.004a5168
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4a5acd
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004a57a4
pop ecx
test al, al
jne 0x4a5acd
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 0x4ad158
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.004079a0
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.004a7d0c
test ebx, ebx
jne 0x4ad1ab
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004ad094
mov ebx, eax
test ebx, ebx
je 0x4ad296
cmp esi, ebx
je 0x4ad1d4
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4ad1e9
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 0x4ad221
add eax, 0xffffff5f
sub eax, 2
jb 0x4ad239
dec eax
sub eax, 2
jb 0x4ad24d
dec eax
sub eax, 2
jb 0x4ad243
jmp 0x4ad257
add eax, 0xfffffdff
sub eax, 2
jb 0x4ad239
dec eax
sub eax, 2
jb 0x4ad24d
dec eax
sub eax, 2
jb 0x4ad243
jmp 0x4ad257
mov byte [esp + 0x120], 0
jmp 0x4ad25f
mov byte [esp + 0x120], 2
jmp 0x4ad25f
mov byte [esp + 0x120], 1
jmp 0x4ad25f
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004bc76c
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004a94c4
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4ad298
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x4b5724
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x553a04]
cmp byte [eax + 0xc], 0
je 0x4b5891
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b588a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x55c880], 0
jne 0x4b5778
push 0x4b5898
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4b58a0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55c880], eax
cmp dword [0x550918], 0
jne 0x4b5873
push 0x4b58b0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x550918], eax
cmp dword [0x550918], 0
je 0x4b5873
push 0x4b58bc
mov eax, dword [0x550918]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55c884], eax
push 0x4b58cc
mov eax, dword [0x550918]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55c888], eax
push 0x4b58e0
mov eax, dword [0x550918]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55c88c], eax
push 0x4b58f8
mov eax, dword [0x550918]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55c890], eax
push 0x4b5910
mov eax, dword [0x550918]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55c894], eax
push 0x4b5924
mov eax, dword [0x550918]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55c898], eax
push 0x4b593c
mov eax, dword [0x550918]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55c89c], eax
push 0x4b5954
mov eax, dword [0x550918]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55c8a0], eax
push 0x4b5970
mov eax, dword [0x550918]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55c8a4], eax
push 0x4b597c
mov eax, dword [0x550918]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55c8a8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5891
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4bc2b0
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_GetWindowLongA
mov edi, eax
test bl, bl
je 0x4bc2d1
test edi, 0x40000
je 0x4bc2eb
test bl, bl
jne 0x4bc36c
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4bc36c
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x4bc31e
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x4bc333
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x4bc342
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4bc353
cmp byte [esp + 2], 0
je 0x4bc36c
cmp byte [esp + 2], 0
je 0x4bc364
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4bc36c
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret