joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [esp + 0x110]
lea ecx, [esp + 8]
push ecx
xor eax, eax
lea edx, [esi + 0xe]
push str.DriverMicrosoft_Access_Driver__.mdb__Dbq_smenu.mdb_UidAdmin_Pwd_CharSetgbk_
push edx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, 0x3f
xor eax, eax
lea edi, [esi + 0x10d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
pop esi
add esp, 0x104
ret

Function at 0x401480
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov ecx, 0x20
xor eax, eax
mov edi, 0x4056f8
mov esi, dword [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [0x4056e4], eax
mov ecx, 0x20
mov dword [0x4056e8], eax
mov edi, 0x405664
mov dword [0x4056ec], eax
push 0x80
mov dword [0x4056f0], eax
push 0x405664
rep stosd dword es:[edi], eax
mov ecx, 7
mov edi, 0x405644
mov dword [0x4056f4], eax
push 0x3f9
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push esi
call edi
push 0x14
push 0x4056e4
push 0x3fe
push esi
call edi
push 0x80
push 0x4056f8
push 0x3ef
push esi
call edi
push 0x1e
push 0x405644
push 0x401
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4056f8
call edi
test eax, eax
jne 0x401539
push eax
push 0x4050f4
push 0x4050e4
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x4056e4
call edi
test eax, eax
je 0x401658
push 0x4056e4
call edi
cmp eax, 0xb
jg 0x401658
push 0x405778
push 0x4056e4
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
je 0x4015b0
xor ecx, ecx
mov dword [0x40578c], ecx
mov dword [0x405790], ecx
mov dword [0x405794], ecx
mov dword [0x405798], ecx
push ecx
push ecx
push esi
push 0x4017d0
push ecx
push ecx
mov dword [0x40579c], ecx
call ebx
push 0x4056e4
push 0x405778
call ebp
push 0x405664
call edi
test eax, eax
jne 0x4015d2
push eax
push 0x4050f4
push 0x4050d4
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40578c
push 0x405664
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401622
xor eax, eax
mov ecx, 0x20
push eax
push eax
push esi
mov edi, 0x40578c
push 0x401670
push eax
rep stosd dword es:[edi], eax
push eax
call ebx
push 0
push 0
push esi
push 0x401720
push 0
push 0
call ebx
push 0x405664
push 0x40578c
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x405644
call edi
test eax, eax
push 0
jne 0x401645
push 0x4050f4
push 0x4050c8
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push esi
push 0x401890
push 0
push 0
call ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push 0x4050f4
push 0x4050b0
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401b00
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
dec eax
je 0x401b1c
sub eax, 0x402
jne 0x401b34
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
ret
mov ecx, dword [esp + 4]
push 0
push 0
push ecx
push 0x401b50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x401f10
Capabilities:
Create thread

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push esi
push eax
call fcn.00401000
mov esi, dword [esp + 0x218]
lea ecx, [esp + 8]
push ecx
push esi
call fcn.00401070
add esp, 0xc
push 0
push 0
push esi
push 0x4012a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edx, [esp + 4]
push edx
call fcn.00401270
add esp, 4
push 0x401e40
push 0x3e8
push 0
push esi
call dword [sym.imp.USER32.dll_SetTimer]
push 0x3ef
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00402690
add esp, 4
mov dword [0x405818], 0
mov eax, 1
pop esi
add esp, 0x20c
ret
Function at 0x4031b0
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push 0
push 0
push ecx
push 0x403240
push 0
push 0
mov dword [0x4058b8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
ret

Function at 0x4031e0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
sub eax, 2
je 0x403227
sub eax, 0x40a
jne 0x403234
push esi
mov esi, dword [esp + 8]
push 0
push 0
push esi
push 0x4033a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0x4050f4
push 0x40559c
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push esi
call dword [sym.imp.USER32.dll_EndDialog]
pop esi
ret
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
ret
Function at 0x43b647
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
and edx, esi
call fcn.0043b673
and edx, esi
xor dword [ebx], ecx
mov edx, edx
inc ebx
add edx, 0x258729f5
sub esi, esi
cmp ebx, eax
jne fcn.0043b647
or esi, esi
mov esi, 0x52350ecf
ret
Function at 0x508530
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.005085af
jae 0x50853c
xor ecx, ecx
call fcn.005085af
jae 0x508566
xor eax, eax
call fcn.005085af
jae 0x508577
mov al, 0x10
call fcn.005085af
adc al, al
jae 0x508558
jne 0x5085a4
stosb byte es:[edi], al
jmp 0x50853d
call fcn.005085bb
dec ecx
loop 0x508583
mov eax, ebp
call fcn.005085b9
jmp 0x5085a5
lodsb al, byte [esi]
shr eax, 1
je 0x5085cb
adc ecx, 2
mov ebp, eax
jmp 0x5085a5
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.005085b9
cmp eax, 0x7d00
jae 0x5085a3
cmp eax, 0x500
jae 0x5085a4
cmp eax, 0x7f
ja 0x5085a5
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x50853d
pop ebp
ret 8
Function at 0x401f7d
Capabilities:
Get common file path

Disassembly:
cmp dword [esp + 8], 0
push esi
push edi
mov edi, 0x105
mov esi, ecx
push edi
push esi
je 0x401f97
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
jmp 0x401f9d
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, edi
mov dword [esi + 0x108], eax
jb 0x401fb3
and dword [esi + 0x108], 0
mov byte [esi], 0
jmp 0x402002
test eax, eax
je 0x402002
add eax, esi
cmp byte [eax - 1], 0x5c
je 0x401fc8
mov byte [eax], 0x5c
inc dword [esi + 0x108]
push ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, dword [esi + 0x108]
sub edi, eax
cmp edi, ebx
jbe 0x401ff7
push edi
push dword [esp + 0x14]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
add dword [esi + 0x108], ebx
jmp 0x402001
and dword [esi + 0x108], 0
mov byte [esi], 0
pop ebx
mov eax, dword [esi + 0x108]
pop edi
pop esi
ret 8

Function at 0x40200d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x404098]
mov dword [ebp + 0x74], eax
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x4040d4], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x10], 2
sete al
test al, 1
je 0x402054
cmp dword [ebp - 0x1c], 5
jb 0x402054
push 2
pop ecx
jmp 0x402056
xor ecx, ecx
or eax, ecx
test al, 2
je 0x402069
cmp dword [ebp - 0x18], 1
jb 0x402069
mov ecx, 0x80
jmp 0x40206b
xor ecx, ecx
or eax, ecx
test al, 1
jne 0x40207c
cmp dword [ebp - 0x18], 0xa
jb 0x40207c
push 8
pop ecx
jmp 0x40207e
xor ecx, ecx
or eax, ecx
test al, 9
jne 0x402089
push 4
pop ecx
jmp 0x40208b
xor ecx, ecx
or eax, ecx
mov ecx, dword [0x4040d4]
cmp ecx, 0x3a4
mov dword [0x4040d0], eax
je 0x4020b8
cmp ecx, 0x3a8
je 0x4020b8
cmp ecx, 0x3b4
jbe 0x4020c0
cmp ecx, 0x3b6
ja 0x4020c0
or eax, 0x10
mov dword [0x4040d0], eax
test al, 2
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
je 0x4020da
push 0x52
call esi
test eax, eax
je 0x4020da
or dword [0x4040d0], 0x20
push 0x2a
call esi
test eax, eax
pop esi
je 0x4020fa
test byte [0x4040d0], 2
jne 0x4020f3
or dword [0x4040d0], 0x20
or dword [0x4040d0], 0x40
mov ecx, dword [ebp + 0x74]
call fcn.00402b89
add ebp, 0x78
leave
ret

Function at 0x4021e0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x404098]
push ebx
xor ebx, ebx
cmp dword [0x4040e4], ebx
mov dword [ebp + 0x90], eax
jne 0x40225a
lea eax, [ebp - 0x80]
push eax
push 0x40115c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40225a
push esi
push ebx
mov esi, 0x401150
push esi
lea ecx, [ebp - 0x7c]
mov byte [ebp - 0x7c], bl
mov dword [ebp + 0x8c], ebx
call fcn.00401f7d
test eax, eax
je 0x402259
push dword [ebp + 0x8c]
lea eax, [ebp - 0x7c]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x90]
pop ebx
call fcn.00402b89
add ebp, 0x94
leave
ret
Function at 0x4027fb
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [0x404030]
push dword [0x40402c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402837
push 0x4013a4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x401398
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x402855
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
leave
ret

Function at 0x4028b6
Capabilities:
Enumerate gui resources
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x404098]
push ebx
push edi
xor ebx, ebx
push ebx
push 0x402857
mov dword [ebp + 0x90], eax
call dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [ebp - 0x7c]
push eax
push 0x20006
push ebx
push 0x401334
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402920
push 4
lea eax, [ebp - 0x80]
push eax
push 4
push ebx
push 0x401358
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x78], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
cmp eax, ebx
je 0x4029a9
add eax, 0xf
cmp eax, esi
jae 0x4029a9
mov eax, 0x40136c
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402948
lea edi, [ebp - 0x74]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402955
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x74]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4029a9
push 0x40137c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4029a9
lea ecx, [ebp - 0x78]
push ecx
call eax
cmp eax, ebx
jne 0x4029a9
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x4029a9
call sub.MSCTF.dll_TF_InvalidAssemblyListCacheIfExist
mov eax, dword [ebp - 0x78]
cmp eax, ebx
pop esi
je 0x4029b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
je 0x4029c2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 0x90]
pop edi
pop ebx
call fcn.00402b89
add ebp, 0x94
leave
ret
Function at 0x402b89
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404098]
jne 0x402b92
ret
jmp 0x402b97
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x404098]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x4041dc]
test eax, eax
je 0x402bbb
call eax
cmp dword [0x4041e0], 0
je 0x402c02
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x4041e0]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.00402b89
add ebp, 0x2a8
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x48339f]
shl eax, 2
mov dword [0x4833a3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00462b68
pop edx
call fcn.00462acc
call fcn.00462ba8
push 0
call fcn.00463eb8
pop ecx
push 0x483348
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4833a7], eax
push 0
jmp fcn.0046a0c4

Function at 0x4041d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x310], 0
jle 0x404307
cmp dword [ebp + 0x10], 0x2800
jle 0x404307
mov edx, 4
mov eax, dword [ebp + 0xc]
call fcn.00451a48
lea edx, [ebp - 0x34]
mov ecx, 0x14
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
call dword [ebx + 4]
mov edx, dword [ebp + 0x10]
sar edx, 1
jns 0x40421b
adc edx, 0
mov eax, dword [ebp + 0xc]
call fcn.00451a48
lea edx, [ebp - 0x4c]
mov ecx, 0x14
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x310], 1
jne 0x40429a
push 0x15
push 0
lea edx, [ebp - 0x1c]
push edx
call fcn.00462ebc
add esp, 0xc
mov ecx, dword [ebp + 8]
push dword [ecx + 0x314]
push 0x48354f
lea eax, [ebp - 0x1c]
push eax
call fcn.00465ab0
add esp, 0xc
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
mov al, byte [ebp + ecx - 0x4c]
mov edx, 0x14
sub edx, dword [ebp - 4]
xor al, byte [ebp + edx - 0x1c]
mov ecx, dword [ebp - 4]
xor al, byte [ebp + ecx - 0x34]
mov edx, dword [ebp - 4]
mov byte [ebp + edx - 0x4c], al
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jl 0x40426e
jmp 0x4042db
mov eax, dword [ebp + 8]
cmp dword [eax + 0x310], 2
jne 0x4042db
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, 0x14
sub eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov cl, byte [edx + eax + 0x318]
mov eax, dword [ebp - 4]
xor cl, byte [ebp + eax - 0x4c]
mov edx, dword [ebp - 4]
xor cl, byte [ebp + edx - 0x34]
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x4c], cl
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jl 0x4042ab
mov edx, dword [ebp + 0x10]
sar edx, 1
jns 0x4042e5
adc edx, 0
mov eax, dword [ebp + 0xc]
call fcn.00451a48
lea edx, [ebp - 0x4c]
mov ecx, 0x14
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
xor edx, edx
mov eax, dword [ebp + 0xc]
call fcn.00451a48
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408dd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 4], eax
mov dl, byte [ebp - 4]
shl edx, 2
mov cl, 0x64
sub cl, dl
mov byte [ebp - 5], cl
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov cl, byte [ebp - 5]
xor byte [eax + edx], cl
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x28
jl 0x408de3
pop ecx
pop ecx
pop ebp
ret

Function at 0x417c1c
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.004608e4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x417c6b
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00460b14
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41de28
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 0x41de2e
ret

Function at 0x420318
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 0x420369
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420350
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420340
jmp 0x420369
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 0x420351
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428e1c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48c068
cmp dword [edi], 0
jne 0x428e98
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x48c064]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x487370
mov ecx, 2
call fcn.0045f8c4
mov edx, 0x428df4
lea eax, [esi + 5]
call fcn.00428e14
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00428e14
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 0x428e6d
mov dword [0x48c064], 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 0x428fb4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x429004]
test si, 4
je 0x428fc8
or bl, 1
test si, 8
je 0x428fd2
or bl, 4
test si, 1
je 0x428fdc
or bl, 8
test si, 2
je 0x428fe6
or bl, 0x10
test si, 0x10
je 0x428ff0
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x428fff
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x429008
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x429040]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x429021
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x429030
or bl, 4
test esi, 0x20000000
je 0x42903b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x42f590
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x42f5a2
add esp, 0xfffffff0
call fcn.00460174
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0045491c
mov eax, ebx
call fcn.0042f8dc
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x44e63c]
call fcn.0045fe44
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x44e63c]
call fcn.0045fe44
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x44e63c]
call fcn.0045fe44
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x44e63c]
call fcn.0045fe44
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x44e63c]
call fcn.0045fe44
mov dword [ebx + 0x70], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x42c080
push eax
push 0
push 0
mov eax, dword [0x48b998]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41d350]
call fcn.0041e888
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x41d350]
call fcn.0041e888
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x41d350]
call fcn.0041e888
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0042fcbc
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x42fbd8
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x42fbd8
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x42fbd8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x42f6b1
call fcn.004601cc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x42f9bc
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 0x42fb67
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x42fb48
mov dl, 1
mov eax, dword [0x44e978]
call fcn.0045fe44
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004608e4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x42fb37
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.00444974
test al, al
je 0x42fb2a
lea eax, [ebp - 0xc]
push eax
push 0x20019
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, 0x42fb78
lea eax, [ebp - 0x254]
call fcn.0045b1b8
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42fb2a
xor eax, eax
push ebp
push 0x42fb23
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 0x42fbb0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x42fb0c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00460b14
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 0x42fb0c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00460b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fb2a
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x42fa2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004519b0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fb6e
lea eax, [ebp - 0x260]
call fcn.004608e4
ret

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

Disassembly:
push ecx
mov eax, dword [0x48c058]
cmp byte [eax + 0x95], 0
jne 0x430425
cmp dword [0x48c074], 0
jne 0x4303e6
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x430370
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x48c074], eax
cmp dword [0x48c070], 0
jne 0x430401
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x48c070], eax
cmp dword [0x48c078], 0
jne 0x430425
push esp
push 0
push 0
push 0x430314
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x48c078], eax
pop edx
ret