joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431629
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e2bb
mov eax, dword fs:[0]
push eax
mov eax, 0x183c
call fcn.00437f50
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1830], ebx
lea eax, [ebp - 0x1840]
push eax
push 0x1000
lea eax, [ebp - 0x1810]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
mov eax, dword [ebp - 0x1840]
xor esi, esi
and dword [ebp - 0x1834], esi
xor edi, edi
shr eax, 2
mov dword [ebp - 0x182c], eax
mov dword [ebp - 0x183c], esi
mov dword [ebp - 0x1838], edi
and dword [ebp - 4], edi
test eax, eax
je 0x43177b
lea ebx, [ebp - 0x1810]
push dword [ebx]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1844], esi
push 0x400
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 1
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x431750
xor eax, eax
lea ecx, [ebp - 0x1828]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x810]
push eax
call fcn.0040bb9e
mov eax, dword [ebp - 0x1830]
push ecx
add eax, 0x5c
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1828]
call fcn.0040ba85
cmp eax, 0xffffffff
je 0x431745
cmp edi, dword [ebp - 0x1834]
je 0x431732
mov eax, dword [ebx]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x1838], edi
jmp 0x431745
push ebx
push edi
lea ecx, [ebp - 0x183c]
call fcn.004317dd
mov edi, dword [ebp - 0x1838]
lea ecx, [ebp - 0x1828]
call fcn.00402ab8
mov byte [ebp - 4], 0
test esi, esi
je 0x43175f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 4
sub dword [ebp - 0x182c], 1
jne 0x4316b2
mov esi, dword [ebp - 0x183c]
mov ebx, dword [ebp - 0x1830]
mov byte [ebx + 0x58], 0
jmp 0x43178d
push dword [esi]
mov ecx, ebx
call fcn.00431418
add esi, 4
cmp esi, edi
jne 0x431781
mov bl, byte [ebx + 0x58]
lea ecx, [ebp - 0x183c]
call fcn.004317bb
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004357ec
leave
ret
Function at 0x43217f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
test esi, esi
je 0x4321dd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4321dd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4321ad
shr eax, 4
and eax, 1
jmp 0x4321df
push esi
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push 0x5c
mov edi, eax
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x4321f9
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push edi
call fcn.0043217f
push edi
test eax, eax
jne 0x4321e6
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4321dd
xor eax, eax
inc eax
jmp 0x4321df
Function at 0x4321fe
Capabilities:
Timestomp file

Disassembly:
push 0x4c
mov eax, 0x43e41f
call fcn.0043805e
mov ebx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x38], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push ebx
push str.SetFileModTime_couldnt_open__S
push eax
call fcn.0040f01b
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
mov edx, eax
setne cl
call fcn.0041c207
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004027a6
push ebx
lea eax, [ebp - 0x2c]
push str.SetFileModTime_failed_GetFileTime:__S
push eax
call fcn.0040f01b
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edx, edi
mov ecx, eax
call fcn.0041c207
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004027a6
push ebx
lea eax, [ebp - 0x2c]
push str.SetFileModTime_failed_DosDateTimeToFileTime:__S
push eax
call fcn.0040f01b
add esp, 0xc
mov edi, eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
push ecx
shr ecx, 0x10
push ecx
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov edx, edi
mov ecx, eax
call fcn.0041c207
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004027a6
push ebx
lea eax, [ebp - 0x2c]
push str.SetFileModTime_failed_LocalFileTimeToFileTime:__S
push eax
call fcn.0040f01b
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov edx, edi
mov ecx, eax
call fcn.0041c207
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004027a6
push ebx
lea eax, [ebp - 0x2c]
push str.SetFileModTime_failed_SetFileTime:__S
push eax
call fcn.0040f01b
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, edi
mov ecx, eax
call fcn.0041c207
lea ecx, [ebp - 0x2c]
call fcn.004027a6
test esi, esi
je 0x43235c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0043800d
ret 8

Function at 0x432429
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
mov esi, edx
mov ecx, dword [edi]
mov eax, ecx
xor eax, dword [ebp + 8]
mov edx, dword [edi + 8]
movzx eax, al
shr ecx, 8
xor ecx, dword [esi + eax*4]
movzx eax, cl
add eax, dword [edi + 4]
mov dword [edi], ecx
imul ecx, eax, 0x8088405
mov eax, dword [ebp + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [esi + ecx*4]
mov dword [edi + 8], edx
pop edi
pop esi
pop ebp
ret
Function at 0x436360
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43639f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43639f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43639f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43639f
cmp dword [ecx + 0x74], 0xe
jbe 0x43639f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x437a70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e5ad
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45c040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45c098]
cmp eax, 0xffffffff
jne 0x437aa4
xor ebx, ebx
jmp 0x437aad
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x437b8d
nop
cmp dword [ebx + 0x18], 0
jne 0x437ad5
cmp dword [ebx + 0xc], 0
je 0x437b68
mov esi, dword [ebx + 0xc]
jmp 0x437ae0
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x437b22
nop dword [eax]
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x437b0b
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x437ae0
cmp dword [ebx + 0x18], 0
je 0x437ac6
mov eax, dword [ebx + 0x14]
mov esi, dword [eax]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x437b45
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x437b45
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea ecx, [ebx + 0x14]
call fcn.00436c10
push 0x20
push eax
call fcn.00435b5b
add esp, 8
mov byte [ebp - 4], 0
cmp dword [ebx + 0x18], 0
jne 0x437b28
jmp 0x437ac0
push 0x4371c0
push 0x45eb60
call fcn.00436fa0
mov eax, dword [0x45c098]
add esp, 8
cmp eax, 0xffffffff
je 0x437b8d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 2
test ebx, ebx
je 0x437bba
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x437bba
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x437bd0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x437c30
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x437bfa
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x437c18
cmp eax, 0xffffffff
je 0x437c18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x405a44
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405aaa
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040412c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ba0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a94
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ab1
lea eax, [ebp - 0x10]
call fcn.00403ebc
ret

Function at 0x40aa68
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 0x40aaa1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fac
jmp 0x40aaaa
mov eax, ebx
mov edx, esi
call fcn.00403f10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aab4
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 0x40aad6
movzx eax, byte [esp]
jmp 0x40aad8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b168
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40afe0
mov eax, dword [0x451290]
cmp byte [eax], 0
je 0x40b1e4
mov eax, dword [0x4510c8]
call fcn.00402990
call fcn.00402834
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004082ec
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b22c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b21a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x451078]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x452664]
call fcn.00404f2c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40ba78
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bb4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00403f54
lea eax, [ebp - 4]
call fcn.004043cc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040437c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bb38
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bb31
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 - 4]
call fcn.0040437c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bb1b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bb60
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bb1b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb38
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb55
lea eax, [ebp - 4]
call fcn.00403ebc
ret

Function at 0x41a4f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x452888
cmp dword [edi], 0
jne 0x41a574
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x452884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4503e8
mov ecx, 2
call fcn.004028c8
mov edx, 0x41a4d0
lea eax, [esi + 5]
call fcn.0041a4f0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a4f0
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 0x41a549
mov dword [0x452884], 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 0x41ad18
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.0040437c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41ad70
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4513a0]
mov dl, 1
mov eax, dword [0x41a83c]
call fcn.0040b328
call fcn.00403904
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041a944
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 0x41bd84
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 0x41bd8a
ret
Function at 0x42a7b4
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 [0x452ae4], 0
je 0x42a8fd
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x451234]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x42a8fd
mov eax, dword [0x452ae8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x452ae4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42a8cc
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x452ae4]
call fcn.00413694
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42a8c4
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ae], 0
je 0x42a8c4
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42a8c4
mov eax, dword [ebp - 0x14]
call fcn.00433b18
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42a8c4
push ebp
call fcn.0042a770
pop ecx
test al, al
jne 0x42a8c4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.0040334c
test al, al
je 0x42a8c4
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.0040334c
cmp byte [ebp - 1], 0
je 0x42a8c4
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42a8c4
mov edx, dword [ebp - 0x14]
mov eax, dword [0x452ae8]
call fcn.00429ecc
inc edi
dec ebx
jne 0x42a819
mov eax, dword [0x452ae8]
cmp dword [eax + 8], 0
jle 0x42a8e4
mov eax, dword [0x452ae8]
call fcn.00429f84
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42a8fd
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042a5d4
pop ecx
test al, al
jne 0x42a8fd
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 0x42e040
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 0x42e08e
xor edx, edx
mov eax, esi
call fcn.004446b8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42e08e
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x268], 0
je 0x42e08e
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x268]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x42e1cf
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x42e0d0
cmp eax, 0x109
ja 0x42e0d0
mov dl, 1
mov eax, esi
call fcn.004446b8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42e1c6
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xfc]
test al, al
jne 0x42e1cf
jmp 0x42e1c6
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x42e1af
cmp eax, 0x20a
ja 0x42e1af
test byte [esi + 0x50], 0x80
jne 0x42e102
sub eax, 0x203
je 0x42e0ff
sub eax, 3
je 0x42e0ff
sub eax, 3
jne 0x42e102
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x42e116
dec eax
je 0x42e12b
dec eax
je 0x42e148
dec eax
je 0x42e12b
jmp 0x42e14f
mov ecx, ebx
mov eax, dword [0x451234]
mov eax, dword [eax]
mov edx, esi
call fcn.0044ee84
jmp 0x42e1c6
cmp byte [esi + 0x5d], 1
jne 0x42e141
mov eax, esi
mov si, 0xffed
call fcn.0040334c
jmp 0x42e1cf
or word [esi + 0x54], 1
jmp 0x42e1c6
and word [esi + 0x54], 0xfffe
jmp 0x42e1c6
mov eax, dword [0x452aa0]
cmp byte [eax + 0x20], 0
je 0x42e1c6
mov eax, dword [0x452aa0]
cmp dword [eax + 0x1c], 0
je 0x42e1c6
mov eax, dword [ebx]
mov edx, dword [0x452aa0]
cmp eax, dword [edx + 0x1c]
jne 0x42e1c6
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.004445fc
mov byte [ebp - 0xc], al
movzx eax, 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.0040334c
jmp 0x42e1cf
cmp eax, 0xb00b
jne 0x42e1c6
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042c900
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 0x431024
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.00405d38
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.0042c8a4
test ebx, ebx
jne 0x431077
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00430f60
mov ebx, eax
test ebx, ebx
je 0x431162
cmp esi, ebx
je 0x4310a0
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 0x4310b5
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 0x4310ed
add eax, 0xffffff5f
sub eax, 2
jb 0x431105
dec eax
sub eax, 2
jb 0x431119
dec eax
sub eax, 2
jb 0x43110f
jmp 0x431123
add eax, 0xfffffdff
sub eax, 2
jb 0x431105
dec eax
sub eax, 2
jb 0x431119
dec eax
sub eax, 2
jb 0x43110f
jmp 0x431123
mov byte [esp + 0x120], 0
jmp 0x43112b
mov byte [esp + 0x120], 2
jmp 0x43112b
mov byte [esp + 0x120], 1
jmp 0x43112b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004445fc
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0042df70
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x431164
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x431b38
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 + 0x210], 0
je 0x431b54
cmp dword [esi + 4], 0
je 0x431b81
test byte [ebx + 0x55], 1
jne 0x431b73
mov eax, ebx
call fcn.00430330
test eax, eax
jne 0x431b73
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x431c91
mov edx, esi
mov eax, ebx
call fcn.00431574
jmp 0x431c91
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 0x431c8a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00433b18
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.0042df70
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00431b38
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.00433b18
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431c91
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