joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e29c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x48e2a4
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x48e4df
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x48e4f8
mov eax, dword [esi + 0x88]
push dword [eax + 8]
push 0x48e504
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404544
mov edx, dword [ebp - 0xc]
lea eax, [esi + 0xc]
call fcn.00404a90
lea eax, [ebp - 0x10]
mov edx, dword [esi + 0xc]
call fcn.0040444c
mov eax, dword [ebp - 0x10]
call fcn.00409430
test al, al
jne 0x48e3a5
push 0x48e4f8
mov eax, dword [esi + 0x88]
push dword [eax + 0xc]
push 0x48e504
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404544
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0xc]
call fcn.00404a90
lea eax, [ebp - 0x18]
mov edx, dword [esi + 0xc]
call fcn.0040444c
mov eax, dword [ebp - 0x18]
call fcn.00409430
test al, al
jne 0x48e393
lea eax, [ebp - 0x20]
mov ecx, 0x48e514
mov edx, dword [esi + 0xc]
call fcn.00404b88
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.0040444c
mov eax, dword [ebp - 0x1c]
call fcn.00409420
test al, al
jne 0x48e3b5
mov eax, 0x48e53c
call fcn.0042f69c
mov al, 1
call fcn.00483370
push 0
call sub.kernel32.dll_ExitProcess_1
mov eax, dword [0x4f2e64]
mov eax, dword [eax]
call fcn.0045ba54
jmp 0x48e3b5
mov eax, dword [esi + 0x88]
mov edx, dword [eax + 0xc]
mov eax, esi
call fcn.0048e5d0
jmp 0x48e3b5
mov eax, dword [esi + 0x88]
mov edx, dword [eax + 8]
mov eax, esi
call fcn.0048e5d0
lea eax, [ebp - 0x24]
mov ecx, 0x48e574
mov edx, dword [esi + 4]
call fcn.00404b88
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.0040444c
lea eax, [ebp - 0x28]
mov ecx, 0x48e594
mov edx, dword [esi + 0xc]
call fcn.00404b88
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 8]
call fcn.0040444c
mov eax, dword [ebp - 8]
call fcn.00409420
test al, al
jne 0x48e451
lea eax, [ebp - 0x30]
mov ecx, 0x48e514
mov edx, dword [esi + 4]
call fcn.00404b88
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.0040444c
mov eax, dword [ebp - 0x2c]
call fcn.00409420
test al, al
jne 0x48e436
mov eax, 0x48e53c
call fcn.0042f69c
mov al, 1
call fcn.00483370
push 0
call sub.kernel32.dll_ExitProcess_1
lea eax, [ebp - 0x34]
mov ecx, 0x48e514
mov edx, dword [esi + 4]
call fcn.00404b88
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 8]
call fcn.0040444c
mov eax, dword [ebp - 4]
call fcn.00409420
test al, al
je 0x48e465
mov eax, dword [ebp - 4]
call fcn.00409454
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.00404684
push eax
mov eax, dword [ebp - 8]
call fcn.00404684
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 4]
call fcn.00409420
test al, al
jne 0x48e4a2
mov eax, 0x48e5b0
call fcn.0042f69c
mov al, 1
call fcn.00483370
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e4e6
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004048e8
lea eax, [ebp - 0x2c]
call fcn.004041a8
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004048e8
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004041cc
ret
Function at 0x48e5d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404674
xor eax, eax
push ebp
push 0x48e63a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x48e650
push dword [ebp - 4]
push 0x48e664
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404544
push 0
mov eax, dword [ebp - 8]
call fcn.00404684
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e641
lea eax, [ebp - 8]
mov edx, 2
call fcn.004041cc
ret
Function at 0x48e670
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov esi, eax
xor eax, eax
push ebp
push 0x48e847
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [esi + 0x88]
mov eax, dword [eax + 8]
mov edx, 0x64
call fcn.004833d8
test al, al
je 0x48e709
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x88]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x48e860
call fcn.00409d18
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x88]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x48e880
call fcn.00409d18
mov bl, 1
jmp 0x48e775
mov eax, dword [esi + 0x88]
mov eax, dword [eax + 0xc]
mov edx, 0x64
call fcn.004833d8
test al, al
je 0x48e775
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x88]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x48e860
call fcn.00409d18
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x88]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x48e880
call fcn.00409d18
mov bl, 1
test bl, bl
je 0x48e80f
mov eax, dword [ebp - 0x10]
call fcn.00409420
test al, al
je 0x48e7cd
lea eax, [ebp - 0x2c]
mov ecx, 0x48e89c
mov edx, dword [esi + 4]
call fcn.00404b88
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.004043a0
mov eax, dword [ebp - 8]
call fcn.00409454
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00404684
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404684
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x48e80f
lea eax, [ebp - 0x30]
mov ecx, 0x48e89c
mov edx, dword [esi + 4]
call fcn.00404b88
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 8]
call fcn.004043a0
mov eax, dword [ebp - 8]
call fcn.00409454
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00404684
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404684
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x48e81f
mov edx, 0x48e8b4
mov eax, esi
call fcn.00490e10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e84e
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004048e8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004041cc
ret
Function at 0x4913bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x491427
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x88]
cmp dword [eax + 8], 0
je 0x491411
mov eax, dword [ebx + 0x84]
mov eax, dword [eax + 0x1c]
xor edx, edx
call fcn.00404c34
je 0x491411
push 5
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x84]
mov edx, dword [edx + 0x1c]
call fcn.0040444c
mov eax, dword [ebp - 4]
call fcn.00404684
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49142e
lea eax, [ebp - 4]
call fcn.004041a8
ret
Function at 0x4ab41c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404674
mov eax, dword [ebp - 8]
call fcn.00404674
xor eax, eax
push ebp
push 0x4ab4aa
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 8]
call fcn.00404684
push eax
mov eax, dword [ebp - 4]
call fcn.00404684
push eax
call sub.user32.dll_FindWindowA
mov esi, eax
mov eax, esi
call fcn.004ab3bc
test al, al
jne 0x4ab48f
lea eax, [ebp - 0xc]
push eax
push esi
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 0xc]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push 4
push eax
call sub.kernel32.dll_TerminateProcess
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab4b1
lea eax, [ebp - 8]
mov edx, 2
call fcn.004041cc
ret
Function at 0x402820
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 0x40284f
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.00403848
jmp 0x40286d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004027b4
mov edi, eax
test ebx, ebx
je 0x40286d
cmp dword [esi], 0
je 0x40286d
dec ebx
jmp 0x402856
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402b10
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 0x402ba8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b88
xor eax, eax
push ebp
push 0x402b81
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 0x402bc4
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 0x402b88
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 0x404444
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 0x4045e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4044f4
xor eax, eax
push ebp
push 0x4044ed
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]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4044d6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404600
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 0x4044f4
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 0x4045d5
cmp byte [ebp - 0xd], 0
jne 0x404536
cmp byte [ebp - 0x12], 0
je 0x4045d5
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40454f
dec ebx
cmp byte [ebx], 0x2e
je 0x40455e
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40454e
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4045d5
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40458b
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 0x4045d5
cmp byte [ebp - 0xd], 0
je 0x4045d5
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 0x4045d5
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 0x408508
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 0x408541
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403848
jmp 0x40854a
mov eax, ebx
mov edx, esi
call fcn.004037fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408554
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 0x408575
mov al, byte [esp]
jmp 0x408577
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x412768
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 0x41276e
ret

Function at 0x414bb0
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 0x414c01
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x414be8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x414bd8
jmp 0x414c01
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 0x414be9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ecec
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 + 0x114], 0
je 0x41ed08
cmp dword [esi + 4], 0
je 0x41ed2f
mov eax, ebx
call fcn.0041df20
test eax, eax
jne 0x41ed21
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x41ee3f
mov edx, esi
mov eax, ebx
call fcn.0041e990
jmp 0x41ee3f
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
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 0x41ee38
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004202ec
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.0041ce28
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0041ecec
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 + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
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.004202ec
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ee3f
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 0x423200
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.00403764
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x423261
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x423261
cmp byte [ebp - 0x102], 0
je 0x423261
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403990
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4245f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x424671
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x424622
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x424634
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x424640
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0042447c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x424665
push ebp
mov eax, dword [ebp - 4]
call fcn.00424560
pop ecx
mov ebx, eax
cmp bl, 2
je 0x424640
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426508
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x44271c
cmp dword [edi], 0
jne 0x426584
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x442718]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x441740
mov ecx, 2
call fcn.00402774
mov edx, 0x4264e0
lea eax, [esi + 5]
call fcn.00426500
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426500
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 0x426559
mov dword [0x442718], 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 0x4266a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4266f8]
test si, 4
je 0x4266bc
or bl, 1
test si, 8
je 0x4266c6
or bl, 4
test si, 1
je 0x4266d0
or bl, 8
test si, 2
je 0x4266da
or bl, 0x10
test si, 0x10
je 0x4266e4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4266f3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4266fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x426734]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x426715
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x426724
or bl, 4
test esi, 0x20000000
je 0x42672f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x42ab44
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 0x42ace9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40b930]
call fcn.00402c68
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403764
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 0x42acbf
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.004229a0
test al, al
je 0x42acb2
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, 0x42acf8
lea eax, [ebp - 0x254]
call fcn.004074b8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42acb2
xor eax, eax
push ebp
push 0x42acab
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x42ad30
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42ac94
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403990
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 0x42ac94
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403990
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42acb2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x42abb5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040e44c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42acf0
lea eax, [ebp - 0x260]
call fcn.00403764
ret

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

Disassembly:
push ecx
mov eax, dword [0x4426f0]
cmp byte [eax + 0x85], 0
jne 0x42afd5
cmp dword [0x442728], 0
jne 0x42af96
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x42af20
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x442728], eax
cmp dword [0x442724], 0
jne 0x42afb1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x442724], eax
cmp dword [0x44272c], 0
jne 0x42afd5
push esp
push 0
push 0
push 0x42aec4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x44272c], eax
pop edx
ret