joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403360
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405854
test esi, esi
jne 0x403398
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405990
jmp 0x4033b6
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032a4
mov edi, eax
test esi, esi
je 0x4033b6
cmp dword [ebx], 0
je 0x4033b6
dec esi
jmp 0x40339f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403a64
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4bd024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403afc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403adc
xor eax, eax
push ebp
push 0x403ad5
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 0x403b34
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 0x403adc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4bd024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4bd024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404c84
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c0050], 0
je 0x404ce5
cmp word [0x4c032c], 0xd7b2
jne 0x404cad
cmp dword [0x4c0334], 0
jbe 0x404cad
mov eax, 0x4c0328
call dword [0x4c0344]
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 0x404d10
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bd030], 0
jne 0x404d01
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404e90
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 [0x4bd034], 0
je 0x404eb6
mov edx, esi
mov eax, ebx
call dword [0x4bd034]
jmp 0x404ec5
mov eax, 8
call fcn.00402fec
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c0051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404e58
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 0x4092ac
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4092eb
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x4092eb
cmp dword [eax + 0x3c], 0
je 0x4092eb
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4092e9
cmp dword [esi], 0x4550
je 0x4092eb
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x409fc4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4c2bd4
push 0xa
push 0x40a058
mov eax, dword [0x4c2b4c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409fe8
call fcn.00412764
push ebx
mov eax, dword [0x4c2b4c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409fff
call fcn.00412764
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a011
call fcn.00412764
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4c2bd8], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4c2bdc], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4c2be0], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4c2be4], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4c2be8], ecx
add edx, dword [eax + 0x14]
mov dword [0x4c2bec], edx
pop esi
pop ebx
ret

Function at 0x40b7d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b879
test eax, edx
je 0x40b87c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b7f9
push edx
mov edx, eax
mov eax, esp
call fcn.00405a70
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b80f
push eax
lea eax, [esp + 8]
call fcn.00405a70
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b81e
movzx eax, word [eax]
sub eax, ecx
jmp 0x40b845
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 0x40b85f
add ecx, 4
js 0x40b836
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40b85c
push eax
mov eax, ecx
mov edx, 2
call fcn.00404f30
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b843
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40b845
xor eax, eax
ret
test eax, eax
je 0x40b88c
test edx, edx
jne 0x40b7e0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004058e0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c732
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40c753
cmp ebx, 3
je 0x40c753
cmp ebx, 0x7b
je 0x40c753
mov eax, esi
call fcn.0040c6d4
test al, al
jne 0x40c757
xor eax, eax
jmp 0x40c759
mov al, 1
pop esi
pop ebx
ret
Function at 0x40ff44
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 0x40ff7d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405990
jmp 0x40ff86
mov eax, ebx
mov edx, esi
call fcn.00405854
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x41073c
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 0x410861
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00410550
mov esi, eax
mov eax, dword [0x4bf8dc]
cmp byte [eax], 0
je 0x410809
mov eax, dword [0x4bf634]
call fcn.004034b0
call fcn.00403154
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 [0x410718]
call fcn.00407008
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 0x41087c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x410845
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4bf5d4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c2b4c]
call fcn.004070fc
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 0x410868
lea eax, [ebp - 4]
mov edx, dword [0x410718]
call fcn.00407014
ret
Function at 0x41146c
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 0x411542
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004058a8
lea eax, [ebp - 4]
call fcn.004062c4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004058e0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41152c
mov eax, ebx
call fcn.00402fec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x411525
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.004058e0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41150f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x411554
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41150f
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 0x41152c
mov eax, dword [ebp - 0x10]
call fcn.00403008
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411549
lea eax, [ebp - 4]
call fcn.00405844
ret

Function at 0x412593
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.00405240
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 0x4125b6
mov eax, edi
add eax, eax
call fcn.00402fec
mov esi, eax
jmp 0x4125b8
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 0x4125f1
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 0x4125db
mov eax, esp
cmp esi, eax
je 0x4125fe
mov eax, esi
call fcn.00403008
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 0x412638
cmp bl, 0
je 0x412634
cmp bl, 0x41
jl 0x41262f
cmp bl, 0x5a
jg 0x41262f
or bl, 0x20
xor al, bl
inc esi
jmp 0x412613
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x412578

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c4f08
cmp dword [edi], 0
jne 0x42bd1c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4c4f04]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4bdcf4
mov ecx, 2
call fcn.004031a4
mov edx, 0x42bc78
lea eax, [esi + 5]
call fcn.0042bc98
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042bc98
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 0x42bcf1
mov dword [0x4c4f04], 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 0x42f22c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42f396
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004058a8
mov eax, dword [ebp - 4]
call fcn.0042ed20
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x42f27e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004060d0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0042f848
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42f353
xor eax, eax
push ebp
push 0x42f34c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042ef2c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0042f3c4
test al, al
je 0x42f32a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405990
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42f32a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004058e0
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x42f324
mov eax, dword [ebp - 8]
call fcn.004058e0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00405a00
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0042f22c
dec ebx
cmp ebx, 0xffffffff
jne 0x42f2dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f353
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0042ef2c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.004058e0
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0042ef18
push eax
call sub.advapi32.dll_RegDeleteKeyW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f39d
lea eax, [ebp - 0x3c]
call fcn.00405844
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040584c
ret
Function at 0x42f42c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x42f4e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0042f3c4
test al, al
je 0x42f4c6
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405990
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x42f4c6
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004058e0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.004058e0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00405a00
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x42f47f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f4eb
lea eax, [ebp - 0x2c]
call fcn.00405844
lea eax, [ebp - 4]
call fcn.00405844
ret

Function at 0x42f75c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.0042ed94
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.004058e0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x42f7bb
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4bf7b4]
mov dl, 1
mov eax, dword [0x42ec0c]
call fcn.004109a0
call fcn.00404704
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42f7c4
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.004058e0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x42f81c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4bfa34]
mov dl, 1
mov eax, dword [0x42ec0c]
call fcn.004109a0
call fcn.00404704
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042edc4
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 0x43087c
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 0x430882
ret
Function at 0x467a80
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.00405854
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x467ac7
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.00405a54
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x46cee0
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 0x46d019
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 [0x42ec80]
call fcn.0042edec
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x46cfef
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0042eec8
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00405a54
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x46d034
call fcn.00405d28
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0042f058
test al, al
je 0x46cfd9
lea ecx, [ebp - 4]
mov edx, 0x46d0a8
mov eax, dword [ebp - 0xc]
call fcn.0042f684
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00412de0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x46cfd2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x46d0c0
mov eax, dword [ebp - 8]
push eax
call fcn.004085d4
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4beb24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cfd9
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 0x46cff6
mov eax, dword [ebp - 0xc]
call fcn.00403c94
ret

Function at 0x46d124
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 0x46d16b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46d14e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46d15f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x46d16b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x472fa4
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 [0x4c51a4], 0
je 0x4730e5
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4bf858]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x4730e5
mov eax, dword [0x4c51a8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4c51a4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4730b4
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4c51a4]
call fcn.00420d28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4730ac
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x4730ac
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x4730ac
mov eax, dword [ebp - 0x14]
call fcn.0047e1b4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4730ac
push ebp
call fcn.00472f60
pop ecx
test al, al
jne 0x4730ac
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403edc
test al, al
je 0x4730ac
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.00403edc
cmp byte [ebp - 1], 0
je 0x4730ac
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.004081c8
test al, al
je 0x4730ac
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4c51a8]
call fcn.004726d8
inc edi
dec ebx
jne 0x473009
mov eax, dword [0x4c51a8]
cmp dword [eax + 8], 0
jle 0x4730cc
mov eax, dword [0x4c51a8]
call fcn.00472790
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4730e5
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00472dc4
pop ecx
test al, al
jne 0x4730e5
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