joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3002eef0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
jmp 0x3002ef0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x3002ef11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3002ef00
mov eax, 1
add ebx, ebx
jne 0x3002ef23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x3002ef18
jne 0x3002ef34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x3002ef18
xor ecx, ecx
sub eax, 3
jb 0x3002ef48
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x3002efba
mov ebp, eax
add ebx, ebx
jne 0x3002ef53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x3002ef60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x3002ef84
inc ecx
add ebx, ebx
jne 0x3002ef70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x3002ef65
jne 0x3002ef81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x3002ef65
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x3002efa4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x3002ef95
jmp 0x3002ef06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x3002efa4
add edi, ecx
jmp 0x3002ef06
pop esi
mov edi, esi
mov ecx, 0x705
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x3002efc2
cmp byte [edi], 0xa
jne 0x3002efc2
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 0x3002efc7
lea edi, [esi + 0x2c000]
mov eax, dword [edi]
or eax, eax
je 0x3002f03f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2f5dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2f6bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x3002eff4
mov ecx, edi
jns 0x3002f023
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2f6c4]
or eax, eax
je 0x3002f039
mov dword [ebx], eax
add ebx, 4
jmp 0x3002f011
call dword [esi + 0x2f6c0]
mov ebp, dword [esi + 0x2f6c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x3002f073
sub esp, 0xffffff80
jmp 0x3000720c
Function at 0x40163d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x82207c]
jne 0x401647
repz ret
jmp fcn.0040220e

Function at 0x406b6a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x82207c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040405d
and dword [ebp - 0x14], 0
cmp dword [0x824a4c], 0
mov dword [ebp - 0x18], eax
jne 0x406c1d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406cc5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406cc5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x824a4c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x824a50], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x824a54], eax
call edi
push eax
call esi
mov dword [0x824a5c], eax
test eax, eax
je 0x406c1d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x824a58], eax
mov eax, dword [0x824a58]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406c76
cmp dword [0x824a5c], ecx
je 0x406c76
push eax
call esi
push dword [0x824a5c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406c76
test ebx, ebx
je 0x406c76
call edi
test eax, eax
je 0x406c6d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406c6d
test byte [ebp - 8], 1
jne 0x406c76
or dword [ebp + 0x10], 0x200000
jmp 0x406ca9
mov eax, dword [0x824a50]
cmp eax, dword [ebp - 0x18]
je 0x406ca9
push eax
call esi
test eax, eax
je 0x406ca9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406ca9
mov eax, dword [0x824a54]
cmp eax, dword [ebp - 0x18]
je 0x406ca9
push eax
call esi
test eax, eax
je 0x406ca9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x824a4c]
call esi
test eax, eax
je 0x406cc5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406cc7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040163d
leave
ret
Function at 0x4038cc
Capabilities:
Query or enumerate registry value

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

Function at 0x404a68
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x480050], 0
je 0x404ac9
cmp word [0x48032c], 0xd7b2
jne 0x404a91
cmp dword [0x480334], 0
jbe 0x404a91
mov eax, 0x480328
call dword [0x480344]
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 0x404af4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47d02c], 0
jne 0x404ae5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404c74
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 [0x47d030], 0
je 0x404c9a
mov edx, esi
mov eax, ebx
call dword [0x47d030]
jmp 0x404ca9
mov eax, 8
call fcn.00402fb4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x480051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c3c
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 0x407610
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 0x408e08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x482b5c
push 0xa
push 0x408e9c
mov eax, dword [0x482b4c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x408e2c
call fcn.004109c0
push ebx
mov eax, dword [0x482b4c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x408e43
call fcn.004109c0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x408e55
call fcn.004109c0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x482b60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x482b64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x482b68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x482b6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x482b70], ecx
add edx, dword [eax + 0x14]
mov dword [0x482b74], edx
pop esi
pop ebx
ret

Function at 0x40a4bc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a565
test eax, edx
je 0x40a568
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40a4e5
push edx
mov edx, eax
mov eax, esp
call fcn.004056c0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40a4fb
push eax
lea eax, [esp + 8]
call fcn.004056c0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40a50a
movzx eax, word [eax]
sub eax, ecx
jmp 0x40a531
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 0x40a54b
add ecx, 4
js 0x40a522
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40a548
push eax
mov eax, ecx
mov edx, 2
call fcn.00404d14
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40a52f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40a531
xor eax, eax
ret
test eax, eax
je 0x40a578
test edx, edx
jne 0x40a4cc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40e54c
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 0x40e585
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405628
jmp 0x40e58e
mov eax, ebx
mov edx, esi
call fcn.004054ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e598
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 0x40e5ba
movzx eax, word [esp]
jmp 0x40e5bc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ed44
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 0x40ee69
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0040eb58
mov esi, eax
mov eax, dword [0x47f648]
cmp byte [eax], 0
je 0x40ee11
mov eax, dword [0x47f434]
call fcn.00403318
call fcn.0040311c
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 [0x40ed20]
call fcn.00406864
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 0x40ee84
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ee4d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x47f3e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x482b4c]
call fcn.00406958
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 0x40ee70
lea eax, [ebp - 4]
mov edx, dword [0x40ed20]
call fcn.00406870
ret
Function at 0x40fa4c
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 0x40fb22
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405540
lea eax, [ebp - 4]
call fcn.00405f14
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405578
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40fb0c
mov eax, ebx
call fcn.00402fb4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40fb05
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.00405578
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x40faef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40fb34
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x40faef
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 0x40fb0c
mov eax, dword [ebp - 0x10]
call fcn.00402fd0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fb29
lea eax, [ebp - 4]
call fcn.004054dc
ret

Function at 0x410868
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.00405014
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 0x410812
mov eax, edi
add eax, eax
call fcn.00402fb4
mov esi, eax
jmp 0x410814
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 0x41084d
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 0x410837
mov eax, esp
cmp esi, eax
je 0x41085a
mov eax, esi
call fcn.00402fd0
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 0x410894
cmp bl, 0
je 0x410890
cmp bl, 0x41
jl 0x41088b
cmp bl, 0x5a
jg 0x41088b
or bl, 0x20
xor al, bl
inc esi
jmp 0x41086f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4107d4

Function at 0x4202ac
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.0041ffb0
dec esi
jne 0x4202ce
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x421478
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x484e90
cmp dword [edi], 0
jne 0x4214f4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x484e8c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47dc34
mov ecx, 2
call fcn.0040316c
mov edx, 0x421450
lea eax, [esi + 5]
call fcn.00421470
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421470
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 0x4214c9
mov dword [0x484e8c], 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 0x42427c
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.00405578
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x4242d4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47f76c]
mov dl, 1
mov eax, dword [0x423cfc]
call fcn.0040ef80
call fcn.004044e8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423e84
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 0x425498
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 0x42549e
ret
Function at 0x437540
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.004054ec
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x437587
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.004056a4
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x43c9a0
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 0x43cad9
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 [0x423d70]
call fcn.00423eac
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43caaf
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00423f4c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004056a4
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x43caf4
call fcn.00405978
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00423fb0
test al, al
je 0x43ca99
lea ecx, [ebp - 4]
mov edx, 0x43cb68
mov eax, dword [ebp - 0xc]
call fcn.004241fc
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0041103c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43ca92
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43cb80
mov eax, dword [ebp - 8]
push eax
call fcn.00407cf0
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x47e684]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ca99
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 0x43cab6
mov eax, dword [ebp - 0xc]
call fcn.00403af4
ret

Function at 0x43cbe4
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 0x43cc2b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43cc0e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43cc1f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43cc2b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4424ac
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 [0x485110], 0
je 0x4425ed
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x47f5e0]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x4425ed
mov eax, dword [0x485114]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x485110]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4425bc
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x485110]
call fcn.004194f4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4425b4
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x4425b4
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x4425b4
mov eax, dword [ebp - 0x14]
call fcn.0044d670
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4425b4
push ebp
call fcn.00442468
pop ecx
test al, al
jne 0x4425b4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403d04
test al, al
je 0x4425b4
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.00403d04
cmp byte [ebp - 1], 0
je 0x4425b4
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.004079f8
test al, al
je 0x4425b4
mov edx, dword [ebp - 0x14]
mov eax, dword [0x485114]
call fcn.00441be0
inc edi
dec ebx
jne 0x442511
mov eax, dword [0x485114]
cmp dword [eax + 8], 0
jle 0x4425d4
mov eax, dword [0x485114]
call fcn.00441c98
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4425ed
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004422cc
pop ecx
test al, al
jne 0x4425ed
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