joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bda0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x42c5d8
call fcn.0042c1bc
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
push ebx
push esi
push 0x42dac4
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x42bc78
cmp eax, esi
jne 0x42bc6b
xor esi, esi
inc esi
mov edi, esi
jmp 0x42bc7b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42bc4f
xor esi, esi
inc esi
cmp dword [0x42dac8], esi
jne 0x42bc8d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x42bcc7
cmp dword [0x42dac8], ebx
jne 0x42bcc1
mov dword [0x42dac8], esi
push 0x401028
push 0x40101c
call fcn.0042bc0a
pop ecx
pop ecx
test eax, eax
je 0x42bcc7
mov dword [ebp - 4], EventActivityIdControl
mov eax, 0xff
jmp 0x42bd95
mov dword [0x42d184], esi
cmp dword [0x42dac8], esi
jne 0x42bcea
push 0x401018
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x42dac8], 2
test edi, edi
jne 0x42bcfa
push ebx
push 0x42dac4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x42dad4], 0
je 0x42bd1c
push 0x42dad4
call fcn.0042c030
pop ecx
test eax, eax
je 0x42bd1c
push ebx
push 2
push ebx
call dword [0x42dad4]
push dword [0x42d190]
push dword [0x42d18c]
push dword [0x42d188]
call fcn.004168a3
add esp, 0xc
mov dword [0x42d180], eax
cmp dword [0x42d198], 0
jne 0x42bd7a
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x42d184], 0
jne 0x42bd8e
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x42d180]
mov dword [ebp - 4], EventActivityIdControl
call fcn.0042c201
ret
call fcn.0042c0f1
jmp 0x42bc33

Function at 0x42bfa0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x42bfb6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], reloc.ADVAPI32.dll_EventActivityIdControl
jne 0x42bfd1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x42bfe0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x42c01e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x42c016
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x42c020
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x42c006
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
pop ds
rol dword [ebx], 1
xor al, 0x76
push ebp
test byte [ecx], dh
xchg edi, eax
pop esp
adc eax, 0xaf34d523
invalid
Function at 0x12898
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x128d5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x128f5
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00013e80
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x12a54
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x12a83
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00013d38
jmp 0x12aa1
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.000129dc
mov edi, eax
test ebx, ebx
je 0x12aa1
cmp dword [esi], 0
je 0x12aa1
dec ebx
jmp 0x12a8a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x12e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x12ec8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x12ea8
xor eax, eax
push ebp
push 0x12ea1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x12ee4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x12ea8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x15288
Capabilities:
Get geographical location
Query or enumerate registry value

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_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x15444
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x152e9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x15460
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x1535b
xor eax, eax
push ebp
push 0x15354
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.000150e0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x1533d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x15480
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1535b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x1543c
cmp byte [ebp - 0xd], 0
jne 0x1539d
cmp byte [ebp - 0x12], 0
je 0x1543c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x153b6
dec ebx
cmp byte [ebx], 0x2e
je 0x153c5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x153b5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x1543c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x153f2
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x1543c
cmp byte [ebp - 0xd], 0
je 0x1543c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x1543c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1a4ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x1a4e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00013d38
jmp 0x1a4ee
mov eax, ebx
mov edx, esi
call fcn.00013ca4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1a4f8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x1a519
mov al, byte [esp]
jmp 0x1a51b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x25f44
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 0x25f4a
ret

Function at 0x286e8
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 0x28739
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x28720
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x28710
jmp 0x28739
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 0x28721
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x37940
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x37994
mov eax, dword [0x8b020]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x3796c
push ebx
push 0x3799c
call fcn.00052928
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
jne 0x37990
mov ecx, dword [0x8addc]
mov dl, 1
mov eax, dword [0x17504]
call fcn.0001acfc
call fcn.00013720
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x379bc
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]
call fcn.00037940
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x37a2e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x37a02
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00013e08
jmp 0x37a09
mov eax, ebx
call fcn.00013c50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x37a35
cmp dword [ebp - 8], 0
je 0x37a25
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.00037914
ret

Function at 0x37a3c
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]
call fcn.00037940
xor edx, edx
push ebp
push 0x37ade
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x37ab1
mov edx, ebx
mov eax, dword [0x25a18]
call fcn.0002a268
test al, al
je 0x37aa1
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.0002a178
call fcn.000137c0
jmp 0x37ae5
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x37a6c
mov ecx, dword [0x8ae44]
mov dl, 1
mov eax, dword [0x17504]
call fcn.0001acfc
call fcn.00013720
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x37ae5
mov eax, dword [ebp - 4]
call fcn.00037914
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x37aec
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]
call fcn.00037940
xor eax, eax
push ebp
push 0x37b44
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 + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x37b4b
mov eax, dword [ebp - 4]
call fcn.00037914
ret
Function at 0x37b54
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]
call fcn.00037940
xor edx, edx
push ebp
push 0x37ba9
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 + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x37bb0
mov eax, dword [ebp - 4]
call fcn.00037914
ret

Function at 0x37c20
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]
call fcn.00037940
xor eax, eax
push ebp
push 0x37c95
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.000378f8
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.0002a23c
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 0x37c7f
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 0x37c9c
mov eax, dword [ebp - 4]
call fcn.00037914
ret

Function at 0x37ca4
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]
call fcn.00037940
xor eax, eax
push ebp
push 0x37d19
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.000378f8
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 + 0x5c]
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 0x37d03
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 0x37d20
mov eax, dword [ebp - 4]
call fcn.00037914
ret
Function at 0x3aa94
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
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x8c784], 0
sete dl
or al, dl
jne 0x3abd4
mov eax, dword [0x8c788]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x8c784]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x3aba3
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x8c784]
call fcn.0001f708
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x3ab9b
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x3ab9b
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x3ab9b
mov eax, dword [ebp - 0x14]
call fcn.00042ed8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x3ab9b
push ebp
call fcn.0003aa50
pop ecx
test al, al
jne 0x3ab9b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x3ab57
mov eax, dword [ebp - 0x14]
call fcn.000417b8
dec eax
jle 0x3ab9b
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 bx, 0xffc1
call fcn.000131a4
cmp byte [ebp - 1], 0
je 0x3ab9b
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x3ab9b
mov edx, dword [ebp - 0x14]
mov eax, dword [0x8c788]
call fcn.0003a29c
inc edi
dec esi
jne 0x3aaea
mov eax, dword [0x8c788]
cmp dword [eax + 8], 0
jle 0x3abbb
mov eax, dword [0x8c788]
call fcn.0003a32c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x3abd4
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0003a8b8
pop ecx
test al, al
jne 0x3abd4
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 0x407c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x407f5
je 0x4084f
sub eax, 7
je 0x40816
dec eax
je 0x40840
sub eax, 0x17
je 0x408f4
jmp 0x40932
add eax, 0xffffff00
sub eax, 9
jb 0x408e0
add eax, 0xffffff09
sub eax, 0xb
jb 0x408a8
jmp 0x40932
mov eax, ebx
call fcn.00052b50
mov edi, eax
test edi, edi
je 0x40992
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x4099b
jmp 0x40992
test byte [ebx + 0x44], 0x20
jne 0x4099b
jmp 0x40992
mov edx, esi
mov eax, ebx
call fcn.0003dd3c
cmp dword [esi + 0xc], 0xffffffff
jne 0x4099b
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.0001701c
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0003c870
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0004069c
test eax, eax
je 0x4099b
mov dword [esi + 0xc], 1
jmp 0x4099b
mov edx, esi
mov eax, ebx
call fcn.00040730
test al, al
je 0x40992
cmp dword [esi + 0xc], 0
jne 0x4099b
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.00042ed8
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x4099b
mov eax, ebx
call fcn.0003d3d8
test al, al
jne 0x4099b
jmp 0x40992
mov eax, ebx
call fcn.00042ed8
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x40992
cmp dword [0x8a7c0], 0
je 0x40992
mov eax, dword [0x8a7c0]
cmp ebx, dword [eax + 0x24]
jne 0x40992
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x8a7c0]
call fcn.0003dc70
jmp 0x40992
mov eax, dword [0x8c74c]
cmp byte [eax + 0x20], 0
je 0x40992
mov eax, dword [0x8c74c]
cmp dword [eax + 0x1c], 0
je 0x40992
mov eax, dword [esi]
mov edx, dword [0x8c74c]
cmp eax, dword [edx + 0x1c]
jne 0x40992
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00052a94
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.000131a4
jmp 0x4099b
mov edx, esi
mov eax, ebx
call fcn.0003dd3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e5c
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 + 0x1e8], 0
je 0x40e78
cmp dword [esi + 4], 0
je 0x40ea5
test byte [ebx + 0x45], 1
jne 0x40e97
mov eax, ebx
call fcn.0003fd0c
test eax, eax
jne 0x40e97
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x40fb5
mov edx, esi
mov eax, ebx
call fcn.00040ad4
jmp 0x40fb5
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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 0x40fae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00042ed8
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.0003dc70
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00040e5c
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 + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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.00042ed8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fb5
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 0x4ae54
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.00013c50
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4aea3
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.00013e80
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5286c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x8c7e4
cmp dword [edi], 0
jne 0x528e8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x8c7e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x8a954
mov ecx, 2
call fcn.0001299c
mov edx, 0x52844
lea eax, [esi + 5]
call fcn.00052864
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00052864
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x528bd
mov dword [0x8c7e0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x52a04
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x52a54]
test si, 4
je 0x52a18
or bl, 1
test si, 8
je 0x52a22
or bl, 4
test si, 1
je 0x52a2c
or bl, 8
test si, 2
je 0x52a36
or bl, 0x10
test si, 0x10
je 0x52a40
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x52a4f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x52a58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x52a90]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x52a71
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x52a80
or bl, 4
test esi, 0x20000000
je 0x52a8b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret