joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427fd8
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 0x4280ae
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 0x428098
mov eax, ebx
call fcn.004066e4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x428091
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 0x42807b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4280c0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42807b
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 0x428098
mov eax, dword [ebp - 0x10]
call fcn.00406700
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4280b5
lea eax, [ebp - 4]
call fcn.004091e0
ret

Function at 0x428a5c
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 0x428a07
mov eax, edi
add eax, eax
call fcn.004066e4
mov esi, eax
jmp 0x428a09
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 0x428a42
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 0x428a2c
mov eax, esp
cmp esi, eax
je 0x428a4f
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 0x428a88
cmp bl, 0
je 0x428a84
cmp bl, 0x41
jl 0x428a7f
cmp bl, 0x5a
jg 0x428a7f
or bl, 0x20
xor al, bl
inc esi
jmp 0x428a63
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4289c8

Function at 0x4292e8
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 0x437d3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x437d8e
test eax, edx
je 0x437d91
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x437d51
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x437d77
add ecx, 4
js 0x437d67
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x437d74
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x437d9d
test edx, edx
jne 0x437d44
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x486dc4
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 0x486dcc
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4c3efc
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c3f9a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4c3f5e
cmp byte [ebx + 0x11], 0
jne 0x4c3f5e
cmp byte [ebx + 0x3c], 0
jne 0x4c3f5e
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 0x4c3f7f
lea edx, [ebp - 4]
mov eax, dword [0x5f5f70]
call fcn.0040cd48
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x495628]
call fcn.00426df8
call fcn.004088e4
jmp 0x4c3f7f
lea edx, [ebp - 8]
mov eax, dword [0x5f5f70]
call fcn.0040cd48
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x495628]
call fcn.00426df8
call fcn.004088e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3fa1
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409240
ret

Function at 0x4c4944
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 0x4c4992
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.004c3d7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c49ab
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c49b4
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.004c3d7c
dec esi
jne 0x4c49d6
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4c7200
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5fc414
cmp dword [edi], 0
jne 0x4c727c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5fc410]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5f477c
mov ecx, 2
call fcn.004068a8
mov edx, 0x4c71d8
lea eax, [esi + 5]
call fcn.004c71f8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004c71f8
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 0x4c7251
mov dword [0x5fc410], 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 0x4f4a24
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 0x4f4bdf
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.004f4374
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4f4a76
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.004f5660
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4f4b55
xor eax, eax
push ebp
push 0x4f4b4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004f4614
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004f4c14
test al, al
je 0x4f4b2c
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 0x4f4b2c
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.004f4574
test al, al
je 0x4f4b26
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.004f4a24
dec ebx
cmp ebx, 0xffffffff
jne 0x4f4ad5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4b55
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004f4614
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x5fc44c], 0
je 0x4f4b95
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.004f4600
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004f4574
mov ebx, eax
jmp 0x4f4bbc
mov eax, dword [ebp - 4]
call fcn.00409d20
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004f4600
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004f4574
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4be6
lea eax, [ebp - 0x3c]
call fcn.004091e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409240
ret
Function at 0x4f553c
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.004f438c
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.004f4574
test al, al
jne 0x4f55a4
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5f5e84]
mov dl, 1
mov eax, dword [0x4f3158]
call fcn.00426ffc
call fcn.004088e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f55b0
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.004f4574
test al, al
jne 0x4f5611
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5f61d4]
mov dl, 1
mov eax, dword [0x4f3158]
call fcn.00426ffc
call fcn.004088e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004f43bc
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 0x4f5c10
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 0x4f5d38
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.004f4614
xor eax, eax
push ebp
push 0x4f5d13
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.004f4c14
test al, al
je 0x4f5cf7
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004f5af0
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 0x4f5cf7
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.004f4574
test al, al
je 0x4f5cf3
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.004f5af0
pop ecx
inc edi
dec ebx
jne 0x4f5c9b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5d1a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.004f4614
ret
Function at 0x4f5d48
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 0x4f5f96
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.004f4614
xor eax, eax
push ebp
push 0x4f5f6c
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.004f4c14
test al, al
je 0x4f5f50
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 0x4f5f50
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.004f4574
test al, al
je 0x4f5f44
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.004f5660
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4f5f44
xor eax, eax
push ebp
push 0x4f5f3d
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.004f4614
xor eax, eax
push ebp
push 0x4f5f1f
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.004f4618
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.004f5660
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4f5efc
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.004f5c10
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004f5d48
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5f03
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x4f5dd3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5f73
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.004f4614
ret
Function at 0x4fe800
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 0x4fe806
ret
Function at 0x50980c
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 0x5099c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x50999d
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x50999d
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 [0x5097d4]
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 [0x5f5ce4]
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 [0x4fd0c4]
call fcn.0050611c
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor edx, edx
push ebp
push 0x509974
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
mov dl, 7
call fcn.00507dbc
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.00506db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50999d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5099c8
lea eax, [ebp - 8]
mov edx, dword [0x5097d4]
call fcn.0040b2bc
lea eax, [ebp - 4]
call fcn.0040c86c
ret
Function at 0x519f20
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 [0x5fc5f8], 0
je 0x51a061
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5f5f44]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x51a061
mov eax, dword [0x5fc5fc]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5fc5f8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x51a030
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5fc5f8]
call fcn.004ad28c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x51a028
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x205], 0
je 0x51a028
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x51a028
mov eax, dword [ebp - 0x14]
call fcn.00525ca0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x51a028
push ebp
call fcn.00519edc
pop ecx
test al, al
jne 0x51a028
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.004078c0
test al, al
je 0x51a028
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 0x51a028
lea edx, [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.0040f458
test al, al
je 0x51a028
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5fc5fc]
call fcn.00519628
inc edi
dec ebx
jne 0x519f85
mov eax, dword [0x5fc5fc]
cmp dword [eax + 8], 0
jle 0x51a048
mov eax, dword [0x5fc5fc]
call fcn.005196dc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x51a061
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00519d44
pop ecx
test al, al
jne 0x51a061
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 0x52277c
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.0040f948
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.0051c55c
test ebx, ebx
jne 0x5227cf
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.005225fc
mov ebx, eax
test ebx, ebx
je 0x5228c5
cmp esi, ebx
je 0x5227f8
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x52280d
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 0x522845
add eax, 0xffffff5f
sub eax, 2
jb 0x52285d
dec eax
sub eax, 2
jb 0x522871
dec eax
sub eax, 2
jb 0x522867
jmp 0x52287b
add eax, 0xfffffdff
sub eax, 2
jb 0x52285d
dec eax
sub eax, 2
jb 0x522871
dec eax
sub eax, 2
jb 0x522867
jmp 0x52287b
mov byte [esp + 0x120], 0
jmp 0x522883
mov byte [esp + 0x120], 2
jmp 0x522883
mov byte [esp + 0x120], 1
jmp 0x522883
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.005c7318
mov esi, eax
call fcn.00518fd4
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0051df9c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x5228c7
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret