joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x40733d
mov ecx, dword [ebp + 0xc]
call fcn.00402430
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x407319
push str.BazisLib::Win32::_File_class_BazisLib::ObjectManager::EmptyClass_::Delete
push 0x179
push str.E:PROJECTS_svn_bzslib_bzswin_file.h
push 0x80070057
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
jmp 0x407398
mov edx, dword [ebp - 4]
and edx, 1
je 0x40732a
mov eax, dword [ebp - 4]
and eax, 0xfffffffe
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00402430
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov ecx, dword [ebp + 0xc]
call fcn.00402430
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x407378
push str.BazisLib::Win32::_File_class_BazisLib::ObjectManager::EmptyClass_::Delete
push 0x17f
push str.E:PROJECTS_svn_bzslib_bzswin_file.h
call fcn.00406d90
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
jmp 0x407398
push str.BazisLib::Win32::_File_class_BazisLib::ObjectManager::EmptyClass_::Delete
push 0x181
push str.E:PROJECTS_svn_bzslib_bzswin_file.h
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00405970
add esp, 0x14
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x409a80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x423330]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.00410c70
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x409b00
cmp dword [ebp - 0x11c], 5
jae 0x409af4
cmp dword [ebp - 0x11c], 4
jne 0x409b00
cmp dword [ebp - 0x118], 0x5a
jb 0x409b00
mov dword [ebp - 0x128], 0
jmp 0x409b0a
mov dword [ebp - 0x128], 1
mov al, byte [ebp - 0x128]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c57
mov esp, ebp
pop ebp
ret
Function at 0x40d600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x423330]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.0040cec0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.00410450
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040d8f0
lea ecx, [ebp - 0x438]
call fcn.00410450
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040cf20
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40d67e
call fcn.0040cf30
mov dword [ebp - 0x444], eax
jmp 0x40d7d3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x40d6af
call fcn.0040cf30
mov dword [ebp - 0x444], eax
jmp 0x40d7d3
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x40d6df
call fcn.0040cf30
mov dword [ebp - 0x444], eax
jmp 0x40d7d3
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x40d72f
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.004104d0
lea ecx, [ebp - 0x2c]
call fcn.00410070
mov eax, dword [ebp - 0x44c]
jmp 0x40d808
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.00410470
lea ecx, [ebp - 0x438]
call fcn.00406620
test eax, eax
jne 0x40d75c
mov dword [ebp - 0x444], 0x8007000e
jmp 0x40d7d3
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00406620
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.0040cec0
push eax
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x40d79e
call fcn.0040cf30
mov dword [ebp - 0x444], eax
jmp 0x40d7d3
lea ecx, [ebp - 0x438]
call fcn.00406620
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.00406620
push eax
lea ecx, [ebp - 0x18]
call fcn.0040d920
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x40d7e3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.004104d0
lea ecx, [ebp - 0x2c]
call fcn.00410070
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00410c57
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f0e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x423330]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.0040eeb0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040f080
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40f14b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.0040eee0
mov eax, dword [ebp - 0x224]
jmp 0x40f1dc
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40f1b1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040f0e0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40f1a8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.0040eee0
mov eax, dword [ebp - 0x228]
jmp 0x40f1dc
mov dword [ebp - 4], 0x100
jmp 0x40f152
lea ecx, [ebp - 0x14]
call fcn.0040efc0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.0040ef60
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.0040eee0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00410c57
mov esp, ebp
pop ebp
ret 4
Function at 0x40f740
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x40f749
xor ecx, ecx
jne 0x40f749
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x40f76a
mov eax, 0xd
jmp 0x40f7c5
xor eax, eax
jne 0x40f751
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x40f77b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x410b41
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4244e0], 0
push esi
jne 0x410ab4
call fcn.004109da
test eax, eax
je 0x410af7
mov eax, dword [0x4244e0]
cmp eax, 1
jne 0x410ad5
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x410af7
pop esi
ret
push eax
call dword [0x4244e8]
test eax, eax
jne 0x410b3f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x410afb
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4244e0]
call dword [0x4244e8]
mov edi, eax
test edi, edi
je 0x410b20
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x410b3c
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4244e0]
call dword [0x4244e4]
add edi, 0x10
cmp edi, esi
jb 0x410b28
mov eax, edi
pop edi
pop esi
ret
jmp 0x410aa1

Function at 0x410c57
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423330]
jne 0x410c61
repz ret
jmp fcn.00412aae
Function at 0x418018
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00413d72
and dword [ebp - 4], 0
cmp dword [0x424fd8], 0
mov ebx, eax
jne 0x4180c9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41817a
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41817a
push eax
call fcn.00413d00
mov dword [esp], 0x41f8a0
push edi
mov dword [0x424fd8], eax
call esi
push eax
call fcn.00413d00
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x424fdc], eax
call esi
push eax
call fcn.00413d00
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x424fe0], eax
call esi
push eax
call fcn.00413d00
pop ecx
mov dword [0x424fe8], eax
test eax, eax
je 0x4180c9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413d00
pop ecx
mov dword [0x424fe4], eax
mov eax, dword [0x424fe4]
cmp eax, ebx
je 0x418121
cmp dword [0x424fe8], ebx
je 0x418121
push eax
call fcn.00413d7b
push dword [0x424fe8]
mov esi, eax
call fcn.00413d7b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418121
test edi, edi
je 0x418121
call esi
test eax, eax
je 0x418118
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418118
test byte [ebp - 0xc], 1
jne 0x418121
or dword [ebp + 0x10], 0x200000
jmp 0x41815a
mov eax, dword [0x424fdc]
cmp eax, ebx
je 0x41815a
push eax
call fcn.00413d7b
pop ecx
test eax, eax
je 0x41815a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41815a
mov eax, dword [0x424fe0]
cmp eax, ebx
je 0x41815a
push eax
call fcn.00413d7b
pop ecx
test eax, eax
je 0x41815a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424fd8]
call fcn.00413d7b
pop ecx
test eax, eax
je 0x41817a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41817c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x461344]
shl eax, 2
mov dword [0x461348], eax
push edi
push ecx
xor eax, eax
mov edi, 0x46847c
mov ecx, 0x46c840
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00457360
pop edx
call fcn.004572c4
call fcn.004573a0
push 0
call fcn.00458550
pop ecx
push 0x46130c
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x46134c], eax
push 0
jmp fcn.0045bef4

Function at 0x4019d4
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, eax
push 1
push 0
push 0
push 0x4019f4
push 0
mov eax, ebx
call fcn.00434b5c
push eax
call sub.SHELL32.DLL_ShellExecuteA
pop ebx
ret

Function at 0x401bb4
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, eax
push 1
push 0
push 0
push 0x401bd4
push 0
mov eax, ebx
call fcn.00434b5c
push eax
call sub.SHELL32.DLL_ShellExecuteA
pop ebx
ret

Function at 0x401e80
Capabilities:
Create process on windows

Disassembly:
insb byte es:[edi], dx
xor dword [ebp + 0x6f], ecx
jne 0x401eb1
dec ebp
outsd dx, dword [esi]
jbe 0x401ea8
push ss
add ah, dh
push ds
inc eax
add byte [edi], cl
push eax
popal
outsb dx, byte [esi]
insb byte es:[edi], dx
xor dword [ebp + 0x6f], ecx
jne 0x401ec7
dec ebp
outsd dx, dword [esi]
jbe 0x401ebe
or dword [ecx + eax*2 + 0x62], edx
outsd dx, dword [esi]
jne sym.Cargador.exe__About_TAboutBox_Label1MouseMove_qqrp14System_TObject46System__Set_t18Classes_Classes__1_iuc_0_iuc_6_ii
inc edx
outsd dx, dword [esi]
js 0x401e69
add ah, bl
jp 0x401eaa
add byte [ebx + esi*2 - 0x6dfbffbe], dh
mov ah, 0x73
inc edx
add byte [edx + edx*4], al
inc eax
add byte [esi + ebp*4 - 0x5c07ffc0], al
inc eax
add byte [eax + 0x1e809090], dl
inc eax
add byte [edi], al
pop es
pop es
or dword [ecx + eax*2 + 0x62], edx
outsd dx, dword [esi]
jne 0x401efc
inc edx
outsd dx, dword [esi]
js 0x401e38
sbb al, 0x40
add ah, ah
mov cl, 0x41
add byte [ebp], dl
add eax, 0x756f6241
je 0x401e9c
invalid
nop
nop
nop

Function at 0x40d4e4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d575
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp + 8]
call fcn.0040d228
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00455798
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x40d55f
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x4681d8]
call fcn.004569f8
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x40d0e0]
call fcn.004506ac
call fcn.00455028
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d57c
lea eax, [ebp - 0x10]
call fcn.00455358
ret
Function at 0x40d588
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d623
push dword fs:[eax]
mov dword fs:[eax], esp
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.00455798
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x40d5fd
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x4681dc]
call fcn.004569f8
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x40d0e0]
call fcn.004506ac
call fcn.00455028
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040d258
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d62a
lea eax, [ebp - 0x10]
call fcn.00455358
ret

Function at 0x40e20c
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.00455358
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x40e26d
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x40e26d
cmp byte [ebp - 0x102], 0
je 0x40e26d
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00455584
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41384c
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 0x413852
ret

Function at 0x415d38
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 0x415d89
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x415d70
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x415d60
jmp 0x415d89
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 0x415d71
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41db08
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x468784
cmp dword [edi], 0
jne 0x41db84
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x468780]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x464788
mov ecx, 2
call fcn.004544ec
mov edx, 0x41dae0
lea eax, [esi + 5]
call fcn.0041db00
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041db00
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 0x41db59
mov dword [0x468780], 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 0x41dca0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41dcf0]
test si, 4
je 0x41dcb4
or bl, 1
test si, 8
je 0x41dcbe
or bl, 4
test si, 1
je 0x41dcc8
or bl, 8
test si, 2
je 0x41dcd2
or bl, 0x10
test si, 0x10
je 0x41dcdc
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x41dceb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41dcf4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41dd2c]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x41dd0d
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x41dd1c
or bl, 4
test esi, 0x20000000
je 0x41dd27
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4243cc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x424571
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x441b40]
call fcn.00454980
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00455358
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x424547
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00439200
test al, al
je 0x42453a
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x424580
lea eax, [ebp - 0x254]
call fcn.0044e444
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42453a
xor eax, eax
push ebp
push 0x424533
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4245b8
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x42451c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00455584
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x42451c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00455584
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42453a
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x42443d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00444ef4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424578
lea eax, [ebp - 0x260]
call fcn.00455358
ret

Function at 0x424d14
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46874c]
cmp byte [eax + 0x8d], 0
jne 0x424d85
cmp dword [0x468790], 0
jne 0x424d46
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x424cd0
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x468790], eax
cmp dword [0x46878c], 0
jne 0x424d61
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x46878c], eax
cmp dword [0x468794], 0
jne 0x424d85
push esp
push 0
push 0
push 0x424c74
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x468794], eax
pop edx
ret