joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4793d0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x47950a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x579144]
mov eax, dword [eax]
call fcn.0045c1bc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x479449
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040cb48
mov eax, dword [ebp - 8]
call fcn.00405324
push eax
push 0x479518
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00405324
push eax
push 0x479528
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00405324
push eax
push 0x479538
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.0045c2c8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4794aa
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040cb48
mov eax, dword [ebp - 0xc]
call fcn.00405324
push eax
push 0x479548
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00405324
push eax
push 0x47955c
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00405324
push eax
push 0x479570
call sub.kernel32.dll_SetEnvironmentVariableA
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
call fcn.00472c90
mov eax, dword [ebp - 0x10]
call fcn.00405324
push eax
push 0x479584
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [0x57d784]
call fcn.00405324
push eax
push 0x479590
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x47959c
push 0x4795a0
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479511
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404e6c
ret
Function at 0x47aaa4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x47ac11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404e48
call sub.user32.dll_GetFocus
mov ebx, eax
push ebx
call sub.user32.dll_IsWindowUnicode
test eax, eax
jne 0x47abeb
lea eax, [ebp - 0x10c]
call fcn.0047aa48
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.0040ba90
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 4]
call fcn.0040bd08
mov edx, dword [ebp - 4]
mov eax, 0x47ac28
call fcn.00405468
test eax, eax
jg 0x47ab45
mov edx, dword [ebp - 4]
mov eax, 0x47ac38
call fcn.00405468
test eax, eax
jle 0x47ab59
push 0xfffffffffffffff0
push ebx
call sub.user32.dll_GetWindowLongA
test eax, 4
jg 0x47abeb
mov esi, pe_nt_image_headers32
push esi
lea eax, [ebp - 0x104]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x47abeb
mov eax, edi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.004050b8
lea eax, [ebp - 0x114]
call fcn.0047aa48
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0040ba90
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 4]
call fcn.0040bd08
mov edx, dword [ebp - 4]
mov eax, 0x47ac28
call fcn.00405468
test eax, eax
jle 0x47abeb
push 0xfffffffffffffff0
push ebx
call sub.user32.dll_GetWindowLongA
test al, 0x20
je 0x47abeb
mov eax, dword [edi]
call fcn.00405124
mov ebx, eax
test ebx, ebx
jbe 0x47abeb
mov esi, 1
mov eax, edi
call fcn.0040537c
mov byte [eax + esi - 1], 0x2a
inc esi
dec ebx
jne 0x47abdb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ac18
lea eax, [ebp - 0x114]
mov edx, 4
call fcn.00404e6c
lea eax, [ebp - 4]
call fcn.00404e48
ret

Function at 0x47e8c0
Capabilities:
Terminate thread

Disassembly:
call fcn.0042e44c
test al, al
jne 0x47e91d
cmp dword [0x57d758], 0
je 0x47e91d
mov eax, dword [0x57d758]
call fcn.00428a9c
mov eax, dword [0x57a668]
call fcn.0045c2e4
test al, al
jne 0x47e8fc
push 0xffffffffffffffff
mov eax, dword [0x57d758]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x47e90c
push 1
mov eax, dword [0x57d758]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x57d758]
call fcn.00403f38
xor eax, eax
mov dword [0x57d758], eax
ret

Function at 0x482784
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 0x48278a
ret
Function at 0x484cc4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x484d15
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x484cfc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x484cec
jmp 0x484d15
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x484cfd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491444
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 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4914b6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x49148a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00405040
jmp 0x491491
mov eax, ebx
call fcn.00404e48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4914bd
cmp dword [ebp - 8], 0
je 0x4914ad
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 0x4914c4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x491566
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x491539
mov edx, ebx
mov eax, dword [0x4821a8]
call fcn.0048657c
test al, al
je 0x491529
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0048648c
call fcn.00404848
jmp 0x49156d
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4914f4
mov ecx, dword [0x578fc8]
mov dl, 1
mov eax, dword [0x40acb8]
call fcn.0041102c
call fcn.0040479c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49156d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x491574
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 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 0x4915cc
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4915d3
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4915dc
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x491631
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491638
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4916a8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, 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 0x49171d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00491380
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.00486550
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x491707
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491724
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x49172c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, 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 0x4917a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00491380
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x49178b
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4917a8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x49515c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00403750
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x5799b8]
cmp byte [edx + 0xc], 0
je 0x4951c0
mov edx, dword [0x5799a4]
cmp dword [edx], 2
jne 0x4951c0
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x4951c4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x49527c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0049515c
test al, al
je 0x49525e
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404f38
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x49525e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405324
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00405324
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00405040
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x495217
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495283
lea eax, [ebp - 0x2c]
call fcn.00404e48
lea eax, [ebp - 0xc]
call fcn.00404e48
ret

Function at 0x49537c
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.00405324
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4953d4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5799c8]
mov dl, 1
mov eax, dword [0x494e04]
call fcn.00411068
call fcn.0040479c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00494f0c
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 0x49f514
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x49f460
call sub.user32.dll_EnumWindows
ret

Function at 0x49f634
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x49f6b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0049f094
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x49f659
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0049ec94
cmp dword [ebp - 4], 0
je 0x49f69b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00405324
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f6b8
lea eax, [ebp - 4]
call fcn.00404e48
ret
Function at 0x4a2984
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 [0x57e790], 0
je 0x4a2ad3
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x579590]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4a2ad3
mov eax, dword [0x57e794]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x57e790]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4a2aa2
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x57e790]
call fcn.00421ce4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4a2a9a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4a2a9a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4a2a9a
mov eax, dword [ebp - 0x14]
call fcn.004ab768
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4a2a9a
push ebp
call fcn.004a2940
pop ecx
test al, al
jne 0x4a2a9a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4a2a56
mov eax, dword [ebp - 0x14]
call fcn.004aa260
dec eax
jle 0x4a2a9a
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, 0xffbd
call fcn.00404140
cmp byte [ebp - 1], 0
je 0x4a2a9a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4a2a9a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x57e794]
call fcn.004a210c
inc edi
dec ebx
jne 0x4a29e9
mov eax, dword [0x57e794]
cmp dword [eax + 8], 0
jle 0x4a2aba
mov eax, dword [0x57e794]
call fcn.004a219c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4a2ad3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004a27a8
pop ecx
test al, al
jne 0x4a2ad3
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 0x4a60b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4a6100
mov eax, esi
call fcn.004bc0b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4a6100
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4a6100
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4a623f
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4a6140
cmp eax, 0x108
ja 0x4a6140
mov eax, esi
call fcn.004bc0b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4a6236
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x4a623f
jmp 0x4a6236
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4a621f
cmp eax, 0x20a
ja 0x4a621f
test byte [esi + 0x50], 0x80
jne 0x4a6172
sub eax, 0x203
je 0x4a616f
sub eax, 3
je 0x4a616f
sub eax, 3
jne 0x4a6172
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4a6186
dec eax
je 0x4a619b
dec eax
je 0x4a61b8
dec eax
je 0x4a619b
jmp 0x4a61bf
mov ecx, ebx
mov eax, dword [0x579590]
mov eax, dword [eax]
mov edx, esi
call fcn.004c5a30
jmp 0x4a6236
cmp byte [esi + 0x5d], 1
jne 0x4a61b1
mov eax, esi
mov si, 0xffed
call fcn.00404140
jmp 0x4a623f
or word [esi + 0x54], 1
jmp 0x4a6236
and word [esi + 0x54], 0xfffe
jmp 0x4a6236
mov eax, dword [0x57e74c]
cmp byte [eax + 0x20], 0
je 0x4a6236
mov eax, dword [0x57e74c]
cmp dword [eax + 0x1c], 0
je 0x4a6236
mov eax, dword [ebx]
mov edx, dword [0x57e74c]
cmp eax, dword [edx + 0x1c]
jne 0x4a6236
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004bbff4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00404140
jmp 0x4a623f
cmp eax, 0xb00b
jne 0x4a6236
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004a49d4
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a98c0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4a98dc
cmp dword [esi + 4], 0
je 0x4a9909
test byte [ebx + 0x55], 1
jne 0x4a98fb
mov eax, ebx
call fcn.004a8460
test eax, eax
jne 0x4a98fb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4a9a19
mov edx, esi
mov eax, ebx
call fcn.004a93e4
jmp 0x4a9a19
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a9a12
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004ab768
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004a5fe8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004a98c0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004ab768
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9a19
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0188
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5799b8]
cmp byte [eax + 0xc], 0
je 0x4b02f5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b02ee
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x57e7a0], 0
jne 0x4b01dc
push 0x4b02fc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4b0304
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57e7a0], eax
cmp dword [0x5749e0], 0
jne 0x4b02d7
push 0x4b0314
call sub.kernel32.dll_LoadLibraryA
mov dword [0x5749e0], eax
cmp dword [0x5749e0], 0
je 0x4b02d7
push 0x4b0320
mov eax, dword [0x5749e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57e7a4], eax
push 0x4b0330
mov eax, dword [0x5749e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57e7a8], eax
push 0x4b0344
mov eax, dword [0x5749e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57e7ac], eax
push 0x4b035c
mov eax, dword [0x5749e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57e7b0], eax
push 0x4b0374
mov eax, dword [0x5749e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57e7b4], eax
push 0x4b0388
mov eax, dword [0x5749e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57e7b8], eax
push 0x4b03a0
mov eax, dword [0x5749e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57e7bc], eax
push 0x4b03b8
mov eax, dword [0x5749e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57e7c0], eax
push 0x4b03d4
mov eax, dword [0x5749e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57e7c4], eax
push 0x4b03e0
mov eax, dword [0x5749e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57e7c8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b02f5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4b469c
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.00404e48
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4b46eb
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.004050b8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bbf64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4bbfb4]
test si, 4
je 0x4bbf78
or bl, 1
test si, 8
je 0x4bbf82
or bl, 4
test si, 1
je 0x4bbf8c
or bl, 8
test si, 2
je 0x4bbf96
or bl, 0x10
test si, 0x10
je 0x4bbfa0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4bbfaf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret