joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42828c
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 0x428362
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409608
lea eax, [ebp - 4]
call fcn.00409768
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409d20
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42834c
mov eax, ebx
call fcn.004066e4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x428345
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.00409d20
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42832f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x428374
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42832f
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 0x42834c
mov eax, dword [ebp - 0x10]
call fcn.00406700
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428369
lea eax, [ebp - 4]
call fcn.004091e0
ret

Function at 0x428d10
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.004096b0
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cddc
mov edi, eax
cmp edi, 0x104
jbe 0x428cbb
mov eax, edi
add eax, eax
call fcn.004066e4
mov esi, eax
jmp 0x428cbd
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cddc
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x428cf6
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 0x428ce0
mov eax, esp
cmp esi, eax
je 0x428d03
mov eax, esi
call fcn.00406700
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 0x428d3c
cmp bl, 0
je 0x428d38
cmp bl, 0x41
jl 0x428d33
cmp bl, 0x5a
jg 0x428d33
or bl, 0x20
xor al, bl
inc esi
jmp 0x428d17
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x428c7c

Function at 0x42959c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00409dc4
add esp, 0x800
pop ebx
ret
Function at 0x48720c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x487214
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4c4314
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c43b2
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4c4376
cmp byte [ebx + 0x11], 0
jne 0x4c4376
cmp byte [ebx + 0x3c], 0
jne 0x4c4376
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4c4397
lea edx, [ebp - 4]
mov eax, dword [0x605e54]
call fcn.0040cd48
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x495a10]
call fcn.004270ac
call fcn.004088e4
jmp 0x4c4397
lea edx, [ebp - 8]
mov eax, dword [0x605e54]
call fcn.0040cd48
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x495a10]
call fcn.004270ac
call fcn.004088e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c43b9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409240
ret

Function at 0x4c4d5c
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 + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4c4daa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004c4194
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c4dc3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c4dcc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004c4194
dec esi
jne 0x4c4dee
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4c7618
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x60c414
cmp dword [edi], 0
jne 0x4c7694
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x60c410]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x60477c
mov ecx, 2
call fcn.004068a8
mov edx, 0x4c75f0
lea eax, [esi + 5]
call fcn.004c7610
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004c7610
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 0x4c7669
mov dword [0x60c410], 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 0x4f6e60
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 0x4f701b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409608
mov eax, dword [ebp - 4]
call fcn.004f67b0
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4f6eb2
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040a12c
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.004f7a9c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4f6f91
xor eax, eax
push ebp
push 0x4f6f8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004f6a50
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004f7050
test al, al
je 0x4f6f68
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00409368
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4f6f68
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.00409d20
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004f69b0
test al, al
je 0x4f6f62
mov eax, dword [ebp - 8]
call fcn.00409d20
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00409d88
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004f6e60
dec ebx
cmp ebx, 0xffffffff
jne 0x4f6f11
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6f91
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004f6a50
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x60c44c], 0
je 0x4f6fd1
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.00409d20
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004f6a3c
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004f69b0
mov ebx, eax
jmp 0x4f6ff8
mov eax, dword [ebp - 4]
call fcn.00409d20
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004f6a3c
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004f69b0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7022
lea eax, [ebp - 0x3c]
call fcn.004091e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409240
ret
Function at 0x4f7978
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.004f67c8
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.00409d20
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004f69b0
test al, al
jne 0x4f79e0
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x605d60]
mov dl, 1
mov eax, dword [0x4f5594]
call fcn.004272b0
call fcn.004088e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f79ec
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.00409d20
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004f69b0
test al, al
jne 0x4f7a4d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6060b0]
mov dl, 1
mov eax, dword [0x4f5594]
call fcn.004272b0
call fcn.004088e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004f67f8
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 0x4f804c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4f8174
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004f6a50
xor eax, eax
push ebp
push 0x4f814f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004f7050
test al, al
je 0x4f8133
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004f7f2c
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409368
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4f8133
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
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.00409d20
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004f69b0
test al, al
je 0x4f812f
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00409d20
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00409d88
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004f7f2c
pop ecx
inc edi
dec ebx
jne 0x4f80d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8156
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.004f6a50
ret
Function at 0x4f8184
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4f83d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.004f6a50
xor eax, eax
push ebp
push 0x4f83a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004f7050
test al, al
je 0x4f838c
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409368
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x4f838c
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
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 - 4]
call fcn.00409d20
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004f69b0
test al, al
je 0x4f8380
mov eax, dword [ebp - 4]
call fcn.00409d20
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00409d88
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004f7a9c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4f8380
xor eax, eax
push ebp
push 0x4f8379
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.004f6a50
xor eax, eax
push ebp
push 0x4f835b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409d20
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00409d88
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004f6a54
mov eax, dword [ebp - 4]
call fcn.00409d20
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.00409d88
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004f7a9c
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4f8338
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004f804c
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004f8184
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f833f
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x4f820f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f83af
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.004f6a50
ret
Function at 0x500bdc
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 0x500be2
ret
Function at 0x50bbe8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x50bd9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x50bd79
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x50bd79
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x50bbb0]
call fcn.0040b198
add esp, 4
lea eax, [ebp - 4]
call fcn.0040c86c
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x605bcc]
push eax
call sub.windowscodecs.dll_WICConvertBitmapSource
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.0040af7c
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x2c
call fcn.00406fc0
mov dword [ebp - 0x3c], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], 1
mov word [ebp - 0x2e], 0x20
mov dl, 1
mov eax, dword [0x4ff4a0]
call fcn.005084f8
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor edx, edx
push ebp
push 0x50bd50
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
mov dl, 7
call fcn.0050a198
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
push 0
call sub.gdi32.dll_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.00509194
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50bd79
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50bda4
lea eax, [ebp - 8]
mov edx, dword [0x50bbb0]
call fcn.0040b2bc
lea eax, [ebp - 4]
call fcn.0040c86c
ret
Function at 0x51bc34
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 - 8]
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 [0x60c5f8], 0
je 0x51bd75
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x605e28]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x51bd75
mov eax, dword [0x60c5fc]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x60c5f8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x51bd44
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x60c5f8]
call fcn.004ad6d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x51bd3c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x205], 0
je 0x51bd3c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x51bd3c
mov eax, dword [ebp - 0x14]
call fcn.00527a04
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x51bd3c
push ebp
call fcn.0051bbf0
pop ecx
test al, al
jne 0x51bd3c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.004078c0
test al, al
je 0x51bd3c
mov byte [ebp - 9], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 9]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.004078c0
cmp byte [ebp - 9], 0
je 0x51bd3c
lea edx, [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.0040f460
test al, al
je 0x51bd3c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x60c5fc]
call fcn.0051b33c
inc edi
dec ebx
jne 0x51bc99
mov eax, dword [0x60c5fc]
cmp dword [eax + 8], 0
jle 0x51bd5c
mov eax, dword [0x60c5fc]
call fcn.0051b3f0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x51bd75
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0051ba58
pop ecx
test al, al
jne 0x51bd75
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 0x51fe00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x51fe4e
xor edx, edx
mov eax, esi
call fcn.005c4a9c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x51fe4e
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x2e0], 0
je 0x51fe4e
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x2e0]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x5200c0
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x51fe90
cmp eax, 0x109
ja 0x51fe90
mov dl, 1
mov eax, esi
call fcn.005c4a9c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5200b7
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x13c]
test al, al
jne 0x5200c0
jmp 0x5200b7
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x5200a0
cmp eax, 0x20e
ja 0x5200a0
test byte [esi + 0x60], 0x80
jne 0x51fec2
sub eax, 0x203
je 0x51febf
sub eax, 3
je 0x51febf
sub eax, 3
jne 0x51fec2
sub dword [ebx], 2
mov eax, dword [ebx]
add eax, 0xfffffe00
cmp eax, 7
ja case.0x51fed2.516
jmp dword [eax*4 + 0x51fed9]
mov ecx, ebx
mov eax, dword [0x605e28]
mov eax, dword [eax]
mov edx, esi
call fcn.005d20c8
jmp 0x5200b7
test byte [esi + 0x62], 8
je 0x5200b7
mov eax, dword [0x5200c8]
and eax, dword [esi + 0x64]
mov edx, dword [0x5200cc]
cmp edx, eax
jne 0x5200b7
mov eax, dword [0x60c5a8]
call fcn.0052dc18
test al, al
jne 0x5200b7
mov eax, dword [0x60c5a8]
call fcn.0052db88
mov byte [ebp - 0x15], 0
mov eax, dword [0x60c5a8]
mov edi, dword [eax + 0x28]
test edi, edi
je 0x51ffd7
mov eax, esi
mov edx, dword [0x516838]
call fcn.0040783c
test al, al
je fcn.0051ff85
mov eax, esi
call fcn.00527a04
mov edx, eax
mov eax, edi
mov ecx, esi
mov edi, dword [eax]
call dword [edi + 0x10c]
mov byte [ebp - 0x15], al
jmp 0x51ffd7
cmp byte [esi + 0x6f], 1
jne 0x52002b
mov eax, esi
mov si, 0xffed
call fcn.004078c0
jmp 0x5200c0
or dword [esi + 0x64], 1
jmp 0x5200b7
and dword [esi + 0x64], 0xfffffffe
jmp 0x5200b7
mov eax, dword [0x60c5a8]
cmp byte [eax + 0x20], 0
je 0x5200b7
mov eax, dword [0x60c5a8]
cmp dword [eax + 0x1c], 0
je 0x5200b7
mov eax, dword [ebx]
mov edx, dword [0x60c5a8]
cmp eax, dword [edx + 0x1c]
jne 0x5200b7
lea eax, [ebp - 0x115]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x115]
call fcn.005c4998
mov word [ebp - 0xc], ax
movzx eax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
call fcn.0040f950
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc8
call fcn.004078c0
jmp 0x5200c0
cmp eax, 0xb00b
jne 0x5200b7
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0051e2e0