joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7b30df
Capabilities:
Encode data using xor

Disassembly:
int1
aad 0x7d
aaa
inc ecx
std
call [eax]
push 1
push 0x3c
push 0x103f46f5
call 0x1672be2c
and byte [edx + 6], ch
cld
shl dword [esi], 0xe2
push 0x9f4741
and eax, 0xc3890cef
and al, al
jne 0x7b3155
out 0x83, eax
dec ebx
push ecx
dec ebp
mov al, byte [0x57844067]
pop ds
sti
daa
je 0x7b3129
mov ecx, dword [ebx]
push eax
push esi
push ebx
call 0x6aa955ea
adc ebp, dword [eax + 0x48]
inc eax
xchg byte [edi + 0x63], ah
ror dword ds:[edi], 0x89
mov byte [ecx], 8
mov cl, 0xce
inc ecx
sub eax, 0x28443e90
neg byte [ebx + 0x108ca26a]
sbb ecx, dword [eax + edx*2]
push edi
push esi
call 0x902e5bd5
add byte [esi + 0x6a], bh
xchg esi, eax
sub dh, byte [ebx + 0x6a7e008f]
add eax, 0x86ed5d68
nop dword [ecx]
add ebp, esi
mov edx, dword [esp + 4]
xchg esp, eax
push 0x48
inc esp
cmp byte [edx + 0x7675631b], bl
and eax, 0xb5dd7844
or dword [edx], esp
les ebx, [eax]
lds ebp, [ecx - 0x17189008]
lcall 0x4425, 0x7675631b
js 0x7b313b
mov ch, 9
and al, ah
sbb ch, al
test eax, 0xe8e76ff8
inc edx
nop
idiv edi
invalid
Function at 0x9e25d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x69300d
lea edi, [esi - 0x29200d]
push edi
or ebp, 0xffffffff
jmp 0x9e25f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9e25f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9e25e8
mov eax, 1
add ebx, ebx
jne 0x9e260b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9e2600
jne 0x9e261c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9e2600
xor ecx, ecx
sub eax, 3
jb 0x9e2630
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9e26a2
mov ebp, eax
add ebx, ebx
jne 0x9e263b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x9e2648
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x9e266c
inc ecx
add ebx, ebx
jne 0x9e2658
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9e264d
jne 0x9e2669
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9e264d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9e268c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9e267d
jmp 0x9e25ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9e268c
add edi, ecx
jmp 0x9e25ee
pop esi
mov edi, esi
mov ecx, 0x16c0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9e26aa
cmp byte [edi], 0x11
jne 0x9e26aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x9e26af
lea edi, [esi + 0x5de000]
mov eax, dword [edi]
or eax, eax
je 0x9e271e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5e4fa8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5e5000]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9e26dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5e5008]
or eax, eax
je 0x9e2718
mov dword [ebx], eax
add ebx, 4
jmp 0x9e26f9
call dword [esi + 0x5e5004]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x9e274f
cmp al, 0xef
ja 0x9e2742
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x9e2724
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x9e2731
mov ebp, dword [esi + 0x5e500c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x9e2783
sub esp, 0xffffff80
jmp 0x40d77e
Function at 0x4032fc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x506008], 0x8088405
inc edx
mov dword [ebx + 0x506008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403e68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x506024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403f00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403ee0
xor eax, eax
push ebp
push 0x403ed9
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 0x403f38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ee0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x506024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x506024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ff4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50a054], 0
je 0x405055
cmp word [0x50a330], 0xd7b2
jne 0x40501d
cmp dword [0x50a338], 0
jbe 0x40501d
mov eax, 0x50a32c
call dword [0x50a348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x506030], 0
jne 0x405071
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405200
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x506034], 0
je 0x405226
mov edx, esi
mov eax, ebx
call dword [0x506034]
jmp 0x405235
mov eax, 8
call fcn.00403018
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x50a055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051c8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x406f50
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406f92
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406fb2
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406640
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x40b858
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x50cb6c
push 0xa
push 0x40b8ec
mov eax, dword [0x50cb50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40b87c
call fcn.004143e8
push ebx
mov eax, dword [0x50cb50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40b893
call fcn.004143e8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40b8a5
call fcn.004143e8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x50cb70], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x50cb74], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x50cb78], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x50cb7c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x50cb80], ecx
add edx, dword [eax + 0x14]
mov dword [0x50cb84], edx
pop esi
pop ebx
ret

Function at 0x40cf24
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40cfcd
test eax, edx
je 0x40cfd0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40cf4d
push edx
mov edx, eax
mov eax, esp
call fcn.0040665c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40cf63
push eax
lea eax, [esp + 8]
call fcn.0040665c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40cf72
movzx eax, word [eax]
sub eax, ecx
jmp 0x40cf99
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 0x40cfb3
add ecx, 4
js 0x40cf8a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40cfb0
push eax
mov eax, ecx
mov edx, 2
call fcn.004052a0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40cf97
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40cf99
xor eax, eax
ret
test eax, eax
je 0x40cfe0
test edx, edx
jne 0x40cf34
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x411dec
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 0x411e25
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406584
jmp 0x411e2e
mov eax, ebx
mov edx, esi
call fcn.00406448
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x411e38
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 0x411e5a
movzx eax, word [esp]
jmp 0x411e5c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4125e4
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 0x412709
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004123f8
mov esi, eax
mov eax, dword [0x508f04]
cmp byte [eax], 0
je 0x4126b1
mov eax, dword [0x508ba8]
call fcn.00403450
call fcn.00403180
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 [0x4125c0]
call fcn.00408024
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 0x412724
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4126ed
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x508b24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x50cb50]
call fcn.00408118
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 0x412710
lea eax, [ebp - 4]
mov edx, dword [0x4125c0]
call fcn.00408030
ret
Function at 0x413368
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 0x41343e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040649c
lea eax, [ebp - 4]
call fcn.00406eb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x413428
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x413421
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.004064d4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41340b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x413450
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41340b
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 0x413428
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413445
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x414217
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.0040565c
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 0x41423a
mov eax, edi
add eax, eax
call fcn.00403018
mov esi, eax
jmp 0x41423c
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 0x414275
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 0x41425f
mov eax, esp
cmp esi, eax
je 0x414282
mov eax, esi
call fcn.00403034
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 0x4142bc
cmp bl, 0
je 0x4142b8
cmp bl, 0x41
jl 0x4142b3
cmp bl, 0x5a
jg 0x4142b3
or bl, 0x20
xor al, bl
inc esi
jmp 0x414297
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4141fc

Function at 0x42b94c
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.0042b650
dec esi
jne 0x42b96e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42cb34
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x50eea4
cmp dword [edi], 0
jne 0x42cbb0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x50eea0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x506ecc
mov ecx, 2
call fcn.004031d0
mov edx, 0x42cb0c
lea eax, [esi + 5]
call fcn.0042cb2c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042cb2c
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 0x42cb85
mov dword [0x50eea0], 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 0x42f9b8
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.004064d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x42fa10
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x50909c]
mov dl, 1
mov eax, dword [0x42f438]
call fcn.00412854
call fcn.00404a74
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042f5c0
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 0x430950
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 0x430956
ret
Function at 0x44e0ac
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.00406448
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x44e0f3
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.00406640
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x45350c
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 0x453645
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 [0x42f4ac]
call fcn.0042f5e8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x45361b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0042f688
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00406640
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x453660
call fcn.00406914
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0042f6ec
test al, al
je 0x453605
lea ecx, [ebp - 4]
mov edx, 0x4536d4
mov eax, dword [ebp - 0xc]
call fcn.0042f938
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00414a64
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4535fe
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4536ec
mov eax, dword [ebp - 8]
push eax
call fcn.00409620
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x507aa0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453605
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 0x453622
mov eax, dword [ebp - 0xc]
call fcn.00404098
ret

Function at 0x453750
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 0x453797
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45377a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45378b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x453797
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4595d0
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 [0x50f124], 0
je 0x459711
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x508e6c]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x459711
mov eax, dword [0x50f128]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x50f124]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4596e0
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x50f124]
call fcn.00424340
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4596d8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x4596d8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x4596d8
mov eax, dword [ebp - 0x14]
call fcn.0046483c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4596d8
push ebp
call fcn.0045958c
pop ecx
test al, al
jne 0x4596d8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004042a8
test al, al
je 0x4596d8
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.004042a8
cmp byte [ebp - 1], 0
je 0x4596d8
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.004091b8
test al, al
je 0x4596d8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x50f128]
call fcn.00458d04
inc edi
dec ebx
jne 0x459635
mov eax, dword [0x50f128]
cmp dword [eax + 8], 0
jle 0x4596f8
mov eax, dword [0x50f128]
call fcn.00458dbc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x459711
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004593f0
pop ecx
test al, al
jne 0x459711
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 0x461528
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.004091a0
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.0045ba4c
test ebx, ebx
jne 0x46157b
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004613bc
mov ebx, eax
test ebx, ebx
je 0x461666
cmp esi, ebx
je 0x4615a4
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 0x4615b9
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 0x4615f1
add eax, 0xffffff5f
sub eax, 2
jb 0x461609
dec eax
sub eax, 2
jb 0x46161d
dec eax
sub eax, 2
jb 0x461613
jmp 0x461627
add eax, 0xfffffdff
sub eax, 2
jb 0x461609
dec eax
sub eax, 2
jb 0x46161d
dec eax
sub eax, 2
jb 0x461613
jmp 0x461627
mov byte [esp + 0x120], 0
jmp 0x46162f
mov byte [esp + 0x120], 2
jmp 0x46162f
mov byte [esp + 0x120], 1
jmp 0x46162f
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00471dd4
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0045d284
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x461668
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x4718d8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x4718f9
test edi, 0x40000
je 0x471913
test bl, bl
jne 0x471994
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x471994
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x471946
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x47195b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x47196a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x47197b
cmp byte [esp + 2], 0
je 0x471994
cmp byte [esp + 2], 0
je 0x47198c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x471994
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret