joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408bb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406878
xor eax, eax
push ebp
push 0x408d9d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408bf8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408c12
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040691c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408d87
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408dac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ca1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408dac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ca1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408de0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ca1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408d87
xor eax, eax
push ebp
push 0x408d80
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004089bc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408d10
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406a3c
jmp 0x408d5b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408e54
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408d5b
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408e54
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406a3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d87
cmp dword [ebp - 8], 0
je 0x408d76
mov eax, dword [ebp - 8]
call fcn.004041f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408da4
lea eax, [ebp - 4]
call fcn.00406880
ret
Function at 0x409068
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406878
mov eax, dword [ebp - 0x21c]
call fcn.00406878
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409207
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406890
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.0040691c
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409108
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40911a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409105
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4091d3
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409143
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408bb8
cmp dword [ebp - 0x220], 0
je 0x40917b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408f5c
pop ecx
mov ebx, eax
jmp 0x4091d3
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408874
mov eax, dword [ebp - 0x224]
call fcn.00408f5c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4091c6
cmp byte [0x4f9b54], 0
jne 0x4091c6
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408874
mov eax, dword [ebp - 0x228]
call fcn.00408f5c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4091d3
push ebp
call fcn.0040900c
pop ecx
mov ebx, eax
test bl, bl
je 0x4091e9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40920e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406888
ret

Function at 0x40994c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40c5a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4f9c4c
push 0xa
push 0x40c63c
mov eax, dword [0x4f9c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40c5cc
call fcn.00417fd8
push ebx
mov eax, dword [0x4f9c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40c5e3
call fcn.00417fd8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40c5f5
call fcn.00417fd8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4f9c50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4f9c54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4f9c58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4f9c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4f9c60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4f9c64], edx
pop esi
pop ebx
ret

Function at 0x410240
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4102e9
test eax, edx
je 0x4102ec
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410269
push edx
mov edx, eax
mov eax, esp
call fcn.00406a94
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41027f
push eax
lea eax, [esp + 8]
call fcn.00406a94
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41028e
movzx eax, word [eax]
sub eax, ecx
jmp 0x4102b5
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4102cf
add ecx, 4
js 0x4102a6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4102cc
push eax
mov eax, ecx
mov edx, 2
call fcn.00406088
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4102b3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4102b5
xor eax, eax
ret
test eax, eax
je 0x4102fc
test edx, edx
jne 0x410250
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4114a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040691c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4114c2
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4114e3
cmp ebx, 3
je 0x4114e3
cmp ebx, 0x7b
je 0x4114e3
mov eax, esi
call fcn.00411464
test al, al
jne 0x4114e7
xor eax, eax
jmp 0x4114e9
mov al, 1
pop esi
pop ebx
ret

Function at 0x4114ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040691c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x411505
test al, 0x10
jne 0x411509
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x415484
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4154bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004069cc
jmp 0x4154c6
mov eax, ebx
mov edx, esi
call fcn.00406890
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4154d0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4154f2
movzx eax, word [esp]
jmp 0x4154f4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x415c84
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x415da9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00415a94
mov esi, eax
mov eax, dword [0x4f6a04]
cmp byte [eax], 0
je 0x415d51
mov eax, dword [0x4f66b0]
call fcn.00404698
call fcn.0040433c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x415c5c]
call fcn.00407f50
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x415dc4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x415d8d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4f6634]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f9c3c]
call fcn.00408044
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415db0
lea eax, [ebp - 4]
mov edx, dword [0x415c5c]
call fcn.00407f5c
ret
Function at 0x416b5c
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 0x416c32
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004068e4
lea eax, [ebp - 4]
call fcn.0040727c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040691c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x416c1c
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x416c15
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.0040691c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x416bff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x416c44
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x416bff
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 0x416c1c
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416c39
lea eax, [ebp - 4]
call fcn.00406880
ret

Function at 0x417e80
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004063c8
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x417e2a
mov eax, edi
add eax, eax
call fcn.004041d4
mov esi, eax
jmp 0x417e2c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x417e65
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x417e4f
mov eax, esp
cmp esi, eax
je 0x417e72
mov eax, esi
call fcn.004041f0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x417eac
cmp bl, 0
je 0x417ea8
cmp bl, 0x41
jl 0x417ea3
cmp bl, 0x5a
jg 0x417ea3
or bl, 0x20
xor al, bl
inc esi
jmp 0x417e87
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x417dec
Function at 0x439a7c
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x439b1a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x439ade
cmp byte [ebx + 0x10], 0
jne 0x439ade
cmp byte [ebx + 0x3c], 0
jne 0x439ade
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x439aff
lea edx, [ebp - 4]
mov eax, dword [0x4f699c]
call fcn.004098d8
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x42b6ec]
call fcn.00415dc8
call fcn.0040587c
jmp 0x439aff
lea edx, [ebp - 8]
mov eax, dword [0x4f699c]
call fcn.004098d8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42b6ec]
call fcn.00415dc8
call fcn.0040587c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439b21
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406888
ret

Function at 0x439e08
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x439e56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00439a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x439e6f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x439e78
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00439a00
dec esi
jne 0x439e9a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x43b458
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4fbf8c
cmp dword [edi], 0
jne 0x43b4d4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4fbf88]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4f0fc0
mov ecx, 2
call fcn.0040438c
mov edx, 0x43b430
lea eax, [esi + 5]
call fcn.0043b450
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043b450
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 0x43b4a9
mov dword [0x4fbf88], 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 0x441f1c
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.0040691c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004419ec
test al, al
jne 0x441f7d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f6bd4]
mov dl, 1
mov eax, dword [0x440704]
call fcn.00415ec0
call fcn.0040587c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00441954
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 0x446708
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 0x44670e
ret
Function at 0x45c890
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406890
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x45c8d7
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406a78
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x461d5c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x461e95
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4408f8]
call fcn.0044197c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x461e6b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00441a28
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00406a78
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x461eb0
call fcn.00406d4c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00441a8c
test al, al
je 0x461e55
lea ecx, [ebp - 4]
mov edx, 0x461f24
mov eax, dword [ebp - 0xc]
call fcn.00441e9c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00418654
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x461e4e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x461f3c
mov eax, dword [ebp - 8]
push eax
call fcn.0040acf4
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4f4668]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461e55
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461e72
mov eax, dword [ebp - 0xc]
call fcn.00404dc4
ret

Function at 0x461fa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x461fe7
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x461fca
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x461fdb
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x461fe7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x46f680
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
cmp dword [0x4fc228], 0
je 0x46f7c1
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4f6964]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x46f7c1
mov eax, dword [0x4fc22c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4fc228]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x46f790
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4fc228]
call fcn.0042f6f4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x46f788
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x46f788
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x46f788
mov eax, dword [ebp - 0x14]
call fcn.0047ac20
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46f788
push ebp
call fcn.0046f63c
pop ecx
test al, al
jne 0x46f788
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00405048
test al, al
je 0x46f788
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 si, 0xffbc
call fcn.00405048
cmp byte [ebp - 1], 0
je 0x46f788
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040a2a4
test al, al
je 0x46f788
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4fc22c]
call fcn.0046ed98
inc edi
dec ebx
jne 0x46f6e5
mov eax, dword [0x4fc22c]
cmp dword [eax + 8], 0
jle 0x46f7a8
mov eax, dword [0x4fc22c]
call fcn.0046ee50
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x46f7c1
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0046f4a0
pop ecx
test al, al
jne 0x46f7c1
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