joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a430
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
mov eax, ecx
push edi
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor dl, dl
xor cl, cl
call fcn.00408df0
mov eax, dword [0x4ad0c4]
test eax, eax
je 0x40a45b
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ebp, dword [0x4ab8fc]
xor eax, eax
xor edi, edi
cmp ax, word [ebp]
jae 0x40a4e6
mov edx, dword [0x4ae910]
mov ebx, dword [0x4ae914]
jmp 0x40a480
mov esi, dword [0x4adb4c]
mov esi, dword [esi + edi*4]
test esi, esi
je 0x40a4dd
cmp byte [esi + 0x18], 0
je 0x40a4be
movzx eax, word [esi + 4]
push eax
push dword [0x4ad0e0]
call dword [sym.imp.USER32.dll_UnregisterHotKey]
mov ebp, dword [0x4ab8fc]
test eax, eax
mov edx, dword [0x4ae910]
mov ebx, dword [0x4ae914]
sete al
mov byte [esi + 0x18], al
cmp esi, edx
jne 0x40a4dd
test edx, edx
je 0x40a4dd
mov eax, dword [ebx + 4]
mov ecx, eax
sub ecx, edx
add dword [ebx + 8], ecx
sub eax, ecx
xor edx, edx
mov dword [ebx + 4], eax
mov dword [0x4ae910], edx
movzx eax, word [ebp]
inc edi
cmp edi, eax
jl 0x40a480
push dword [esp + 0x10]
call fcn.00484966
int3

Function at 0x40ab40
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x804
cmp byte [0x4afc10], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x40acb8
cmp dword [0x4adb64], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40ab6e
call edi
mov dword [0x4adb64], eax
inc dword [0x4afc0c]
call edi
mov esi, dword [0x4afc0c]
mov ecx, eax
sub ecx, dword [0x4adb64]
mov edx, dword [0x4aa6fc]
mov dword [0x4adb60], eax
cmp esi, dword [0x4ab35c]
jbe 0x40ac36
cmp ecx, edx
jae 0x40ac38
push ecx
push esi
push str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
lea eax, [esp + 0x1c]
push 0x800
push eax
call fcn.004715d0
add esp, 0x14
call fcn.00409a80
sub esp, 8
mov byte [0x4afc10], 1
xorps xmm0, xmm0
mov dword [0x4aa1d0], 0
mov edx, 4
lea ecx, [esp + 0x18]
movsd qword [esp], xmm0
push 0
push 0
call fcn.00476030
add esp, 0x10
cmp eax, 7
jne 0x40ac05
push 0
push 1
mov ecx, 0x4ae9b0
call fcn.004162b0
mov eax, dword [0x4adb60]
mov dword [0x4aa1d0], 1
mov byte [0x4afc10], 0
mov dword [0x4afc0c], 0
mov dword [0x4adb64], eax
pop edi
pop esi
pop ebx
add esp, 0x804
ret 4
cmp ecx, edx
jbe 0x40ac49
mov dword [0x4afc0c], 0
mov dword [0x4adb64], eax
mov esi, dword [esp + 0x814]
mov al, byte [ebx + 0xf]
push 0
push 0
mov byte [0x4aefa9], al
inc byte [esi + 0x16]
mov ecx, dword [esi]
mov edx, ecx
push 0
push 0
push str.call
call fcn.00469810
dec byte [esi + 0x16]
add esp, 0x14
test eax, eax
jne 0x40ac8a
mov byte [esi + 0x1b], al
pop edi
pop esi
pop ebx
add esp, 0x804
ret 4
cmp byte [esi + 0x1b], 0
je 0x40acb8
mov byte [esi + 0x1b], 0
call edi
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
ja 0x40acb8
movzx eax, word [ebx + 4]
push 0
push eax
push 0x312
push dword [0x4ad0e0]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebx
add esp, 0x804
ret 4
Function at 0x40f0f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
mov al, byte [esp + 0x28]
or byte [esp + 0x24], al
push ebx
mov bl, cl
mov dword [esp + 4], edx
push ebp
mov al, bl
sub al, 1
push esi
push edi
cmp al, 5
ja 0x40f112
cmp bl, 3
jne 0x40f11a
mov al, bl
add al, 0x66
cmp al, 5
ja 0x40f11e
mov bh, 1
jmp 0x40f120
xor bh, bh
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x48]
test ebp, ebp
jle 0x40f24c
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x4adb68], 0
jne 0x40f194
call esi
mov ecx, dword [0x4aa1d8]
sub eax, dword [0x4aefdc]
cmp eax, dword [ecx + 0xb8]
jbe 0x40f19a
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40f18d
mov edx, 1
mov dword [0x4aa1d0], 0
or ecx, 0xffffffff
call fcn.00401790
mov dword [0x4aa1d0], 1
call esi
mov dword [0x4aefdc], eax
mov ecx, dword [0x4aa1d8]
cmp byte [esp + 0x44], 0
jne 0x40f1f3
mov al, byte [ecx + 0xd6]
test al, al
je 0x40f1b7
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x40f1bc
mov esi, 0xffc3d44f
cmp dword [0x4adb68], 0
je 0x40f1cc
mov al, byte [0x4af207]
jmp 0x40f1d3
xor cl, cl
call fcn.00411a40
mov cl, byte [esp + 0x34]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.00411400
mov ecx, dword [0x4aa1d8]
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test bh, bh
je 0x40f221
test edi, edi
jne 0x40f221
push dword [esp + 0x54]
movzx eax, byte [ecx + 0xcf]
mov cl, bl
push dword [esp + 0x44]
mov edx, dword [esp + 0x54]
push eax
push 1
push dword [esp + 0x60]
call fcn.00410590
add esp, 0x14
jmp 0x40f245
movzx eax, byte [ecx + 0xd6]
mov dl, bl
mov ecx, 0xffc3d44d
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x44]
push 1
push edi
push dword [esp + 0x1c]
call fcn.0040f700
add esp, 0x10
dec ebp
jne 0x40f136
cmp byte [esp + 0x44], 0
jne 0x40f28f
cmp dword [0x4adb68], 0
je 0x40f263
mov al, byte [0x4af207]
jmp 0x40f26a
xor cl, cl
call fcn.00411a40
mov cl, al
xor cl, byte [esp + 0x38]
and cl, al
and cl, 0xcc
je 0x40f28f
push 0xffc3d44d
push 0
not cl
mov dl, al
push 1
push edi
and cl, al
call fcn.00411400
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40f2a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x38
cmp dword [0x4adb68], 2
push ebx
push ebp
push esi
sete bl
mov byte [esp + 0x10], cl
mov esi, edx
push edi
test bl, bl
je 0x40f2dd
lea eax, [esp + 0x1c]
test cl, cl
jns 0x40f2cc
mov byte [esp + 0x1c], 0x30
lea eax, [esp + 0x1d]
push 0xa
push eax
movzx eax, cl
push eax
call fcn.004840fe
add esp, 0xc
jmp 0x40f2fd
push 1
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x20]
push eax
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40f3f8
test esi, esi
jle 0x40f3f8
mov bh, byte [esp + 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov ecx, dword [0x4adb68]
jmp 0x40f320
test ecx, ecx
jne 0x40f375
call edi
mov ecx, dword [0x4aa1d8]
sub eax, dword [0x4aefdc]
cmp eax, dword [ecx + 0xb8]
jbe 0x40f375
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
call ebp
test eax, eax
je 0x40f36e
mov edx, 1
mov dword [0x4aa1d0], 0
or ecx, 0xffffffff
call fcn.00401790
mov dword [0x4aa1d0], 1
call edi
mov dword [0x4aefdc], eax
test bl, bl
je 0x40f384
lea ecx, [esp + 0x1c]
call fcn.0040f400
jmp 0x40f38f
mov ecx, dword [esp + 0x18]
mov dl, bh
call fcn.0040dfc0
mov ecx, dword [0x4adb68]
mov eax, dword [0x4aa1d8]
cmp ecx, 2
jne 0x40f3a4
mov eax, dword [eax + 0x60]
jmp 0x40f3a7
mov eax, dword [eax + 0x5c]
test eax, eax
js 0x40f3f1
test ecx, ecx
je 0x40f3cb
cmp ecx, 2
jne 0x40f3f1
test eax, eax
jle 0x40f3f1
push eax
push 0
push 0
xor dl, dl
xor cl, cl
call fcn.00410c10
add esp, 0xc
jmp 0x40f3eb
mov edx, 1
mov dword [0x4aa1d0], 0
mov ecx, eax
call fcn.00401790
mov dword [0x4aa1d0], 1
mov ecx, dword [0x4adb68]
dec esi
jne 0x40f320
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x4109c0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
mov ecx, dword [edi]
cmp ecx, 0x80000000
je 0x410ba1
mov eax, dword [ebp]
cmp eax, 0x80000000
je 0x410ba1
cmp dword [0x4adb68], 2
jne 0x410a31
mov bl, byte [esp + 0x2c]
push eax
push ecx
xor ecx, ecx
mov eax, SysReAllocString
test bl, bl
cmovne ecx, eax
xor edx, edx
or ecx, 1
call fcn.00410d90
add esp, 8
call fcn.00411190
test bl, bl
je 0x410ba1
mov dword [edi], SysReAllocString
mov dword [ebp], CreateStatusWindowA
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x24]
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
or dword [eax], 0x8001
cmp byte [esp + 0x2c], 0
je 0x410a8b
cmp dword [0x4adb68], 1
jne 0x410a75
mov eax, dword [0x4af220]
cmp eax, 0x80000000
jne 0x410a69
push 0x4af220
call ebx
mov eax, dword [0x4af220]
add dword [edi], eax
mov eax, dword [0x4af224]
add dword [ebp], eax
jmp 0x410aad
lea eax, [esp + 0x18]
push eax
call ebx
mov eax, dword [esp + 0x18]
add dword [edi], eax
mov eax, dword [esp + 0x1c]
add dword [ebp], eax
jmp 0x410aad
mov eax, dword [0x4aa1d8]
movzx eax, word [eax + 0xd0]
shr eax, 2
and eax, 3
cmp eax, 2
je 0x410aad
push eax
mov ecx, edi
call fcn.004728f0
add esp, 4
cmp dword [0x4adb68], 1
jne 0x410ac5
mov eax, dword [edi]
mov dword [0x4af220], eax
mov eax, dword [ebp]
mov dword [0x4af224], eax
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [esp + 0x18], eax
call esi
mov esi, dword [edi]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov eax, esi
shl eax, 0x10
cdq
idiv dword [esp + 0x14]
test esi, esi
setns cl
lea eax, [eax + ecx*2]
xor ecx, ecx
dec eax
mov dword [edi], eax
mov esi, dword [ebp]
mov eax, esi
shl eax, 0x10
cdq
idiv dword [esp + 0x10]
test esi, esi
mov esi, dword [esp + 0x28]
setns cl
lea ecx, [ecx*2 - 1]
add eax, ecx
mov dword [ebp], eax
test esi, esi
js 0x410b8a
cmp esi, 0x64
jle 0x410b28
mov esi, 0x64
jmp 0x410b2c
test esi, esi
je 0x410b8a
cmp dword [0x4adb68], 1
je 0x410b8a
lea eax, [esp + 0x18]
push eax
call ebx
push esi
mov esi, dword [esp + 0x20]
xor ecx, ecx
mov eax, esi
shl eax, 0x10
cdq
idiv dword [esp + 0x14]
push dword [ebp]
test esi, esi
mov esi, dword [esp + 0x20]
push dword [edi]
mov edi, eax
setns cl
mov eax, esi
shl eax, 0x10
cdq
idiv dword [esp + 0x20]
lea edi, [edi + ecx*2]
xor ecx, ecx
test esi, esi
lea edx, [edi - 1]
setns cl
lea eax, [eax + ecx*2]
lea ecx, [eax - 1]
call fcn.00450ca0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
push dword [edi]
xor edx, edx
mov ecx, 0x8001
call fcn.00410bb0
add esp, 8
call fcn.00411190
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x410ff0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 0xc
cmp dword [0x4adb68], 1
push ebx
push esi
mov byte [esp + 0xf], dl
mov esi, ecx
jne 0x4110ae
xor al, al
cmp dword [0x4ad0fc], 0
movzx ebx, al
mov eax, 1
cmovne ebx, eax
cmp dword [0x4ad0f8], 0
mov dword [esp + 0x10], ebx
je 0x411030
or ebx, 2
mov dword [esp + 0x10], ebx
test bl, bl
je 0x411045
mov cl, byte [0x4af228]
mov dl, al
not cl
and cl, bl
call fcn.00408df0
push 0x1c
push dword [0x4adb6c]
push dword [0x4af214]
call dword [0x4af194]
test bl, bl
je 0x41112c
mov al, byte [0x4af228]
and al, bl
test al, 1
je 0x4110a0
mov cl, 1
call fcn.00411a40
mov bl, al
xor bl, byte [esp + 0xf]
mov dl, bl
and bl, al
and dl, byte [esp + 0xf]
not dl
and dl, byte [0x4ad9e7]
or dl, bl
mov byte [0x4ad9e7], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0x10]
mov dword [0x4ad234], eax
mov dl, 1
mov cl, bl
pop esi
pop ebx
add esp, 0xc
jmp fcn.00408df0
push 0
push dword [0x4ad120]
mov dword [0x4af21c], 0
push 0x40f490
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x4ad0c4], eax
test eax, eax
je 0x41112c
mov byte [0x4ad9e6], 1
lea ecx, [ecx]
mov edx, 1
mov dword [0x4aa1d0], 0
mov ecx, 0x8000012f
call fcn.00401790
cmp dword [0x4ad0c4], 0
mov dword [0x4aa1d0], 1
jne 0x4110e0
mov eax, dword [0x4ab370]
mov byte [0x4ad9e6], 0
mov ecx, dword [eax]
mov eax, dword [0x4af214]
cmp dword [ecx + eax*8 - 8], 0
jne 0x41112c
mov eax, dword [ecx + eax*8 - 4]
mov dword [esi], eax
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x411200
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, dword [0x4ad0f4]
test edi, edi
je 0x4112ec
mov ax, word [esp + 8]
push esi
imul esi, dword [0x4ad12c], 0x70
mov byte [esi + edi + 5], cl
mov byte [esi + edi], dl
mov word [esi + edi + 2], ax
mov byte [esi + edi + 4], 0x69
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [0x4ad0f4]
mov ecx, edx
mov dword [0x4ad128], edx
sub ecx, dword [0x4af03c]
mov dword [0x4af03c], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4a4390]
imul ecx, dword [0x4ad12c], 0x70
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4a42d4]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4ad0f4]
test esi, esi
je 0x4112c2
cmp esi, dword [0x4ad124]
je 0x4112b2
imul edx, dword [0x4ad12c], 0x70
push 0x64
add edx, 0xc
add eax, edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [0x4ad12c]
jmp 0x4112d3
mov edx, dword [0x4ad12c]
imul ecx, edx, 0x70
mov byte [ecx + eax + 0xc], 0
jmp 0x4112d3
mov edx, dword [0x4ad12c]
imul ecx, edx, 0x70
mov dword [ecx + eax + 0xc], 0x412f4e
inc edx
mov dword [0x4ad124], esi
xor eax, eax
cmp edx, dword [0x4aa1dc]
pop esi
cmovge edx, eax
mov dword [0x4ad12c], edx
pop edi
ret
Function at 0x4112f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
mov bl, cl
push esi
push edi
movzx eax, bl
mov edi, edx
push eax
mov dword [esp + 0x14], eax
call ebp
and al, 1
movsx esi, al
neg esi
sbb esi, esi
add esi, 2
cmp edi, 1
je 0x411323
cmp edi, 2
jne 0x4113f8
cmp esi, edi
je 0x4113f8
push dword [esp + 0x10]
call ebp
mov ecx, 0x8000
test cx, ax
je 0x411355
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0040f700
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.0040f700
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ae958]
sete bh
test bh, bh
je 0x4113ac
mov edx, 1
mov dword [0x4aa1d0], 0
or ecx, 0xffffffff
call fcn.00401790
mov dword [0x4aa1d0], 1
cmp bl, 0x14
jne 0x4113f8
cmp edi, 2
jne 0x4113f8
push 0x14
call ebp
test al, 1
je 0x4113f8
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, edi
call fcn.0040f700
add esp, 0x10
test bh, bh
je 0x4113f8
lea edx, [edi - 1]
mov dword [0x4aa1d0], 0
or ecx, 0xffffffff
call fcn.00401790
mov dword [0x4aa1d0], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x411a40
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x4ad0fc], 0
je 0x411a53
test cl, cl
jne 0x411a53
mov al, byte [0x4ad9f5]
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor bl, bl
push edi
push 0xa0
call esi
mov edi, 0x8000
movzx ebx, bl
test di, ax
mov eax, 0x10
push 0xa1
cmovne ebx, eax
call esi
test di, ax
je 0x411a87
or bl, 0x20
push 0xa2
call esi
test di, ax
je 0x411a96
or bl, 1
push 0xa3
call esi
test di, ax
je 0x411aa5
or bl, 2
push 0xa4
call esi
test di, ax
je 0x411ab4
or bl, 4
push 0xa5
call esi
test di, ax
je 0x411ac3
or bl, 8
push 0x5b
call esi
test di, ax
je 0x411acf
or bl, 0x40
push 0x5c
call esi
test di, ax
je 0x411adb
or bl, 0x80
cmp dword [0x4ad0fc], 0
je 0x411b1a
mov cl, byte [0x4ad9f5]
mov al, bl
not al
and al, cl
je 0x411b1a
mov dl, byte [0x4ad9e7]
not al
and byte [0x4ad9f4], al
and cl, al
and dl, al
mov byte [0x4ad9f5], cl
mov ecx, 0x4ad9f8
mov byte [0x4ad9e7], dl
call fcn.00411b20
pop edi
pop esi
mov al, bl
pop ebx
ret

Function at 0x411f60
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x38
push esi
xor esi, esi
test ecx, ecx
je 0x411f9f
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov dword [esp + 8], 0x30
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x411f9f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x411f9f
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
pop esi
add esp, 0x38
ret
Function at 0x412180
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x110
push ebx
push esi
push 0
mov bl, cl
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
lea edx, [ebx - 0x41]
mov esi, eax
cmp dl, 0x19
ja 0x412271
push ebp
push edi
push 0x100
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0048e820
mov edi, dword [sym.imp.USER32.dll_ToAsciiEx]
lea eax, [esp + 0x20]
add esp, 0xc
xor bh, bh
push esi
push 0
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0x6e
call edi
movzx ecx, byte [esp + 0x14]
cmp eax, 2
push esi
push 0
lea eax, [esp + 0x1c]
movzx edx, bh
push eax
lea eax, [esp + 0x2c]
cmove edx, ecx
push eax
push 0
movzx eax, bl
push eax
mov dword [esp + 0x34], edx
call edi
mov ebp, eax
test ebp, ebp
jns 0x412211
push esi
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0x6e
call edi
mov eax, dword [esp + 0x1c]
test al, al
je 0x412252
push 1
push esi
lea edx, [esp + 0x1b]
mov cl, al
call fcn.00412420
mov bl, al
add esp, 8
test bl, bl
je 0x412252
mov dl, byte [esp + 0x13]
lea ecx, [esp + 0x20]
call fcn.00411b20
push esi
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
movzx eax, bl
push eax
call edi
pop edi
test ebp, ebp
pop ebp
je 0x412266
movsx eax, byte [esp + 0xc]
pop esi
pop ebx
add esp, 0x110
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
push 2
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
pop esi
pop ebx
add esp, 0x110
ret

Function at 0x412420
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, edx
cmp bl, 0xa
jne 0x412432
pop esi
mov al, 0xd
pop ebx
pop ecx
ret
push edi
push dword [esp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_VkKeyScanExA]
movzx edx, ax
mov ecx, edx
shr ecx, 8
cmp cl, 0xff
jne 0x412493
cmp dl, 0xff
jne 0x412493
cmp byte [esp + 0x18], 0
je 0x412498
movzx edi, bl
test edi, 0xffffff80
jne 0x412498
push 0x103
push edi
call fcn.00485bac
add esp, 8
test eax, eax
je 0x412498
mov cl, bl
call fcn.00409810
push 1
push edi
mov byte [esp + 0x14], al
call fcn.00485bac
mov edx, dword [esp + 0x14]
add esp, 8
test eax, eax
setne cl
test cl, 0x38
je 0x41249f
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret
test esi, esi
je 0x4124dd
mov al, cl
and al, 6
cmp al, 6
jne 0x4124b0
or byte [esi], 8
jmp 0x4124ce
test cl, 2
je 0x4124bf
mov al, byte [esi]
test al, 3
jne 0x4124bf
or al, 1
mov byte [esi], al
test cl, 4
je 0x4124ce
mov al, byte [esi]
test al, 0xc
jne 0x4124ce
or al, 4
mov byte [esi], al
test cl, 1
je 0x4124dd
mov al, byte [esi]
test al, 0x30
jne 0x4124dd
or al, 0x10
mov byte [esi], al
pop edi
pop esi
mov al, dl
pop ebx
pop ecx
ret
Function at 0x412900
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
movzx esi, cl
mov bl, dl
lea eax, [esi - 0x13]
cmp eax, 0x92
ja case.0x41291c.20
movzx eax, byte [eax + 0x412ab0]
jmp dword [eax*4 + 0x412a44]
mov eax, 0x2a
jmp 0x4129ec
mov eax, 0x136
jmp 0x4129ec
mov eax, 0x1d
jmp 0x4129ec
mov eax, 0x11d
jmp 0x4129ec
mov eax, 0x38
jmp 0x4129ec
mov eax, 0x138
jmp 0x4129ec
mov eax, 0x15b
jmp 0x4129ec
mov eax, 0x15c
jmp 0x4129ec
mov eax, 0x45
jmp 0x4129ec
mov eax, 0x52
jmp 0x4129ec
mov eax, 0x4f
jmp 0x4129ec
mov eax, 0x50
jmp 0x4129ec
mov eax, 0x51
jmp 0x4129ec
mov eax, 0x4b
jmp 0x4129ec
mov eax, 0x4c
jmp 0x4129ec
mov eax, 0x4d
jmp 0x4129ec
mov eax, 0x47
jmp 0x4129ec
mov eax, 0x48
jmp 0x4129ec
mov eax, 0x49
jmp 0x4129ec
mov eax, 0x53
jmp 0x4129ec
mov eax, 0x145
jmp 0x4129ec
mov eax, 0x135
jmp 0x4129ec
mov eax, 0x37
jmp 0x4129ec
mov eax, 0x4a
jmp 0x4129ec
mov eax, 0x4e
jmp 0x4129ec
mov eax, 0x137
test bl, bl
jne 0x412a07
pop esi
movzx eax, ax
pop ebx
ret
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
movzx ecx, ax
test cx, cx
jne 0x412a0c
pop esi
xor eax, eax
pop ebx
ret
add esi, 0xfffffffd
cmp esi, 0xb4
ja case.0x412a1e.4
movzx eax, byte [esi + 0x412b50]
jmp dword [eax*4 + 0x412b44]
or ecx, 0x100
test bl, bl
jne 0x412a07
movzx eax, cx
pop esi
pop ebx
ret
mov eax, ecx
test bl, bl
je 0x412a32
pop esi
or eax, 0x100
pop ebx
ret

Function at 0x412c10
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, ecx
movzx ecx, bx
mov eax, ecx
cmp eax, 0x11c
jg 0x412c87
je 0x412c83
sub eax, 0x1d
cmp eax, 0x36
ja case.0x412c98.286
movzx eax, byte [eax + 0x412d3c]
jmp dword [eax*4 + 0x412cf0]
mov al, 0xa0
pop ebx
ret
mov al, 0xa2
pop ebx
ret
mov al, 0xa4
pop ebx
ret
mov al, 0x6a
pop ebx
ret
mov al, 0x6d
pop ebx
ret
mov al, 0x6b
pop ebx
ret
mov al, 0x2e
pop ebx
ret
mov al, 0xc
pop ebx
ret
mov al, 0x2d
pop ebx
ret
mov al, 0x26
pop ebx
ret
mov al, 0x28
pop ebx
ret
mov al, 0x25
pop ebx
ret
mov al, 0x27
pop ebx
ret
mov al, 0x24
pop ebx
ret
mov al, 0x23
pop ebx
ret
mov al, 0x21
pop ebx
ret
mov al, 0x22
pop ebx
ret
mov al, 0x13
pop ebx
ret
mov al, 0xd
pop ebx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x412c98.286
movzx eax, byte [eax + 0x412d9c]
jmp dword [eax*4 + 0x412d74]
mov al, 0xa1
pop ebx
ret
mov al, 0xa3
pop ebx
ret
mov al, 0xa5
pop ebx
ret
mov al, 0x5b
pop ebx
ret
mov al, 0x5c
pop ebx
ret
mov al, 0x90
pop ebx
ret
mov al, 0x6f
pop ebx
ret
mov al, 0x5d
pop ebx
ret
mov al, 0x2c
pop ebx
ret
test ebx, 0x100
je 0x412ce0
movzx eax, cl
push 1
or eax, 0xe000
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test eax, eax
jne 0x412cec
push 1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
pop ebx
ret

Function at 0x412de0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov dword [0x4af230], ecx
mov esi, 1
mov eax, 0x4af230
mov edx, dword [eax]
shr edx, 0x1e
xor edx, dword [eax]
imul ecx, edx, 0x6c078965
add ecx, esi
inc esi
mov dword [eax + 4], ecx
add eax, 4
cmp eax, 0x4afbec
jl 0x412df1
mov dword [0x4ab374], 1
mov dword [0x4adbc4], 1
pop esi
ret
Function at 0x412e30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4adbc4], 0
push esi
push edi
mov esi, 0x4af230
jne 0x412e4d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.00412de0
mov dword [0x4ab374], 0x270
mov edi, 0xe3
mov dword [0x4afbf0], 0x4af230
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
dec edi
jne 0x412e66
mov edi, 0x18c
lea ebx, [ebx]
mov eax, dword [esi + 4]
lea esi, [esi + 4]
mov ecx, dword [esi - 4]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi - 4]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x390]
mov dword [esi - 4], ecx
dec edi
jne 0x412ea0
mov ecx, dword [esi]
mov eax, dword [0x4af230]
xor ecx, eax
and ecx, 0x7ffffffe
and al, 1
xor ecx, dword [esi]
movzx eax, al
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
ret

Function at 0x412f00
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4ab374]
jne 0x412f0d
call fcn.00412e30
mov eax, dword [0x4afbf0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4afbf0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x412f50
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4ab374]
jne 0x412f5d
call fcn.00412e30
mov eax, dword [0x4afbf0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4afbf0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4a4390]
mulsd xmm0, qword [0x4a4210]
ret

Function at 0x413920
Capabilities:
Write clipboard data

Disassembly:
cmp byte [ecx + 0x17], 0
jne 0x413929
mov ecx, dword [ecx + 0xc]
cmp byte [ecx + 0x17], 2
jne 0x41394a
cmp dword [0x4af02c], 0
je 0x41394a
mov dword [esp + 4], 1
mov ecx, 0x4af020
jmp fcn.004048a0
and byte [ecx + 0x15], 0x86
cmp byte [esp + 4], 0
mov al, byte [ecx + 0x15]
je 0x41395d
or al, 1
mov byte [ecx + 0x15], al
mov eax, 1
ret 4