joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4100f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1004
call fcn.004a7660
cmp byte [0x4da3bc], 0
push ebx
push ebp
mov ebp, dword [esp + 0x1014]
push esi
push edi
jne 0x41025d
cmp dword [0x4d8ee8], 0
jne 0x410126
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x4d8ee8], eax
mov ebx, 1
add dword [0x4da3c0], ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [0x4da3c0]
mov esi, dword [0x4d4a30]
mov ecx, eax
sub ecx, dword [0x4d8ee8]
mov dword [0x4d8eec], eax
cmp edx, dword [0x4d4a2c]
jbe 0x41015c
cmp ecx, esi
jb 0x4101ba
xor ebx, ebx
cmp ecx, esi
jbe 0x410179
mov dword [0x4da3c0], 0
mov dword [0x4d8ee8], eax
test ebx, ebx
jne 0x41025d
mov esi, dword [esp + 0x1018]
mov cl, byte [esi + 0xf]
push 0
push 0
mov byte [0x4da196], cl
inc byte [ebp + 0x16]
mov edx, dword [0x4da124]
push 0
push edx
push ebp
call fcn.0047a260
dec byte [ebp + 0x16]
test eax, eax
jne 0x41022a
mov byte [ebp + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
push ecx
push edx
push str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
mov esi, 0x800
lea edi, [esp + 0x1c]
call fcn.0047f670
add esp, 0xc
call fcn.0040ef70
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4da3bc], bl
mov dword [0x4d4a1c], 0
call fcn.00484530
add esp, 0x18
cmp eax, 7
jne 0x410213
push 0
push 4
mov ecx, 0x4d96d0
call fcn.0041e8d0
mov eax, dword [0x4d8eec]
mov dword [0x4d4a1c], ebx
mov byte [0x4da3bc], 0
jmp 0x410162
cmp byte [ebp + 0x1b], 0
je 0x41025d
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x41025d
movzx eax, word [esi + 4]
mov ecx, dword [0x4d86a0]
push 0
push eax
push 0x312
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
Function at 0x415da0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
cmp dword [0x4d8f78], 2
push ebx
sete bl
push esi
mov esi, ecx
test bl, bl
je 0x415ddf
movzx eax, ax
lea ecx, [esp + 0x28]
test eax, 0xffffff80
je 0x415dd1
mov ecx, 0x30
mov word [esp + 0x28], cx
lea ecx, [esp + 0x2a]
push 0xa
push ecx
push eax
call fcn.00498fa5
add esp, 0xc
jmp 0x415de6
movzx edx, ax
mov dword [esp + 8], edx
test esi, esi
jle 0x415ea2
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
cmp dword [0x4d8f78], 0
jne 0x415e53
call ebp
sub eax, dword [0x4da1dc]
mov ecx, dword [0x4d4b14]
cmp eax, dword [ecx + 0xd8]
jbe 0x415e53
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x415e4c
push 1
push 0xffffffffffffffff
mov dword [0x4d4a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d4a1c], 1
call ebp
mov dword [0x4da1dc], eax
test bl, bl
je 0x415e62
lea edi, [esp + 0x30]
call fcn.00415eb0
jmp 0x415e73
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x10]
push eax
call fcn.004143f0
add esp, 4
cmp dword [0x4d8f78], 2
jne 0x415e87
mov ecx, dword [0x4d4b14]
mov eax, dword [ecx + 0x60]
jmp 0x415e90
mov edx, dword [0x4d4b14]
mov eax, dword [edx + 0x5c]
push eax
call fcn.00417cd0
add esp, 4
dec esi
jne 0x415df6
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x415eb0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
cmp dword [0x4d8f78], 0
push esi
je 0x415ec7
mov al, byte [0x4d75b3]
jmp 0x415fee
cmp dword [0x4d87d0], 0
je 0x415eda
mov al, byte [0x4d869d]
jmp 0x415fee
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x415efb
mov byte [esp + 7], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x415f11
or byte [esp + 7], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x415f27
or byte [esp + 7], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x415f3d
or byte [esp + 7], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x415f53
or byte [esp + 7], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x415f69
or byte [esp + 7], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x415f7c
or byte [esp + 7], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x415f8f
or byte [esp + 7], 0x80
cmp dword [0x4d87d0], 0
je 0x415fea
push ebx
mov bl, byte [esp + 0xb]
not bl
and bl, byte [0x4d869d]
je 0x415fe9
mov cl, byte [0x4d869f]
mov al, bl
not al
and byte [0x4d869d], al
and byte [0x4d869e], al
and cl, al
mov al, cl
mov byte [0x4d869f], cl
mov ecx, 0x4d86c8
call fcn.004188b0
mov eax, dword [0x4d75a4]
test eax, eax
je 0x415fe9
test byte [eax + 8], bl
je 0x415fe9
mov dword [0x4d75a4], 0
pop ebx
mov al, byte [esp + 7]
mov byte [esp + 8], al
mov ecx, dword [esp + 8]
push 1
and al, 0xc4
push 0
or al, 4
push 0
movzx edx, al
push ecx
push edx
mov esi, 0xffc3d44f
call fcn.004180d0
movzx eax, word [edi]
add esp, 0x14
mov esi, edi
cmp eax, 0x30
jb 0x41604f
lea esp, [esp]
cmp ax, 0x39
ja 0x41604f
mov al, byte [esi]
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx ecx, al
push 0
push ecx
push 2
call fcn.004162d0
movzx eax, word [esi + 2]
add esi, 2
add esp, 0x18
cmp eax, 0x30
jae 0x416020
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.004162d0
add esp, 0x18
pop esi
add esp, 8
ret
Function at 0x417560
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esi]
push edi
cmp eax, 0x80000000
je 0x417741
mov edi, dword [ebp]
cmp edi, 0x80000000
je 0x417741
mov edx, dword [0x4d8f78]
cmp edx, 2
jne 0x4175d5
movzx ebx, byte [esp + 0x24]
neg ebx
sbb ebx, ebx
and ebx, 0x80000000
push 0
or ebx, 1
call fcn.00417920
add esp, 4
call fcn.00417db0
cmp byte [esp + 0x24], 0
je 0x417741
mov dword [esi], closesocket
mov dword [ebp], closesocket
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
or dword [ecx], 0x8001
cmp byte [esp + 0x24], 0
je 0x41762a
cmp edx, 1
jne 0x417610
cmp dword [0x4d75b4], 0x80000000
jne 0x4175fe
push 0x4d75b4
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4d75b4]
add dword [esi], eax
mov ecx, dword [0x4d75b8]
add dword [ebp], ecx
jmp 0x41764f
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add dword [esi], eax
add dword [ebp], ecx
jmp 0x41764f
mov edx, dword [0x4d4b14]
movzx eax, word [edx + 0xf0]
shr eax, 2
and eax, 3
cmp eax, 2
je 0x41764f
push eax
mov edi, ebp
mov ebx, esi
call fcn.00480a70
add esp, 4
cmp dword [0x4d8f78], 1
jne 0x417668
mov eax, dword [esi]
mov dword [0x4d75b4], eax
mov ecx, dword [ebp]
mov dword [0x4d75b8], ecx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
push 1
mov edi, eax
call ebx
mov ecx, dword [esi]
mov ebx, eax
mov eax, ecx
shl eax, 0x10
cdq
idiv edi
xor edx, edx
test ecx, ecx
setns dl
lea eax, [eax + edx*2 - 1]
mov dword [esi], eax
mov ecx, dword [ebp]
mov eax, ecx
shl eax, 0x10
cdq
idiv ebx
xor edx, edx
test ecx, ecx
setns dl
lea edx, [edx + edx - 1]
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [ebp], edx
test eax, eax
js 0x41772b
cmp eax, 0x64
jle 0x4176c3
mov dword [esp + 0x20], 0x64
jmp 0x4176c7
test eax, eax
je 0x41772b
cmp dword [0x4d8f78], 1
je 0x41772b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp]
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, ecx
shl eax, 0x10
cdq
idiv ebx
mov esi, dword [esp + 0x1c]
xor edx, edx
test ecx, ecx
setns dl
mov ebx, eax
lea ebx, [ebx + edx*2 - 1]
mov eax, esi
shl eax, 0x10
cdq
idiv edi
mov ecx, eax
xor eax, eax
test esi, esi
setns al
lea ecx, [ecx + eax*2 - 1]
mov eax, ebx
call fcn.0045f370
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi]
push 0x8001
xor ecx, ecx
call fcn.00417750
add esp, 4
call fcn.00417db0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x417b80
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ecx
cmp dword [0x4d8f78], 1
jne 0x417c45
push ebx
xor bl, bl
cmp dword [0x4d87d0], 0
mov byte [esp + 4], bl
je 0x417ba4
mov bl, 1
mov byte [esp + 4], bl
cmp dword [0x4d87d4], 0
je 0x417bb4
or bl, 2
mov byte [esp + 4], bl
test bl, bl
je 0x417bcf
mov al, byte [0x4d75b2]
not al
and al, bl
movzx ecx, al
push 1
push ecx
call fcn.0040e2c0
add esp, 8
mov edx, dword [0x4d75c8]
mov eax, dword [0x4d75c4]
push 0x1c
push edx
push eax
call dword [sym.imp.USER32.dll_SendInput]
test bl, bl
je 0x417cc5
mov cl, byte [0x4d75b2]
and cl, bl
test cl, 1
je 0x417c2c
push 1
call fcn.00418780
mov dl, byte [esp + 0x14]
mov cl, al
xor cl, dl
mov bl, cl
and bl, dl
not bl
and bl, byte [0x4d869f]
and cl, al
or bl, cl
add esp, 4
mov byte [0x4d869f], bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x4d73f0], eax
mov edx, dword [esp + 4]
pop ebx
add esp, 4
mov dword [esp + 8], 1
mov dword [esp + 4], edx
jmp fcn.0040e2c0
mov eax, dword [0x4d8694]
push 0
push eax
push 0x416070
push 1
mov dword [0x4d75bc], 0
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4d87d8], eax
test eax, eax
je 0x417cc6
mov byte [0x4d86c2], 1
push 1
push 0x8000012f
mov dword [0x4d4a1c], 0
call fcn.004014c0
add esp, 8
cmp dword [0x4d87d8], 0
mov dword [0x4d4a1c], 1
jne 0x417c74
mov eax, dword [0x4d75c8]
mov ecx, dword [0x4d75c4]
cmp dword [eax + ecx*8 - 8], 0
mov byte [0x4d86c2], 0
jne 0x417cc6
mov ecx, dword [eax + ecx*8 - 4]
mov edx, dword [esp + 8]
mov dword [edx], ecx
pop ecx
ret
pop ebx
pop ecx
ret

Function at 0x417ea0
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x4d8eb8]
test eax, eax
je 0x417fb8
mov ecx, dword [0x4d8ebc]
imul ecx, ecx, 0xd4
add eax, ecx
mov cl, byte [esp + 8]
mov byte [eax + 6], dl
mov dx, word [esp + 0xc]
mov byte [eax], cl
mov ecx, 0x69
mov word [eax + 2], dx
push esi
mov word [eax + 4], cx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, eax
sub edx, dword [0x4da38c]
mov dword [0x4d8ec0], eax
mov dword [esp + 4], edx
fild dword [esp + 4]
jns 0x417efb
fadd dword [0x4cece8]
fdiv qword [0x4cece0]
mov ecx, dword [0x4d8ebc]
mov edx, dword [0x4d8eb8]
mov dword [0x4da38c], eax
imul ecx, ecx, 0xd4
fstp dword [esp + 4]
fld dword [esp + 4]
fstp dword [ecx + edx + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x417f68
mov eax, dword [0x4d8ebc]
imul eax, eax, 0xd4
cmp esi, dword [0x4d8ec4]
je 0x417f59
mov ecx, dword [0x4d8eb8]
push 0x64
lea edx, [eax + ecx + 0xc]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x417f94
mov edx, dword [0x4d8eb8]
xor ecx, ecx
mov word [eax + edx + 0xc], cx
jmp 0x417f94
mov ecx, dword [0x4d8ebc]
mov edx, dword [0x4d8eb8]
imul ecx, ecx, 0xd4
mov eax, 0x4b2c30
lea edx, [ecx + edx + 0xc]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x417f85
mov eax, dword [0x4d8ebc]
inc eax
mov dword [0x4d8ec4], esi
mov dword [0x4d8ebc], eax
pop esi
cmp eax, dword [0x4d4a20]
jl 0x417fb8
mov dword [0x4d8ebc], 0
pop ecx
ret
Function at 0x417fc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
movzx edi, bl
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
movsx esi, al
neg esi
sbb esi, esi
add esi, 2
cmp ebp, 1
je 0x417feb
cmp ebp, 2
jne 0x4180c1
cmp esi, ebp
je 0x4180c1
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
call edi
mov ecx, 0x8000
test cx, ax
je 0x41801c
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.004162d0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 2
call fcn.004162d0
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4d969c]
sete al
mov byte [esp + 0x10], al
test al, al
je 0x418072
push 1
push 0xffffffffffffffff
mov dword [0x4d4a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d4a1c], 1
cmp bl, 0x14
jne 0x4180c1
cmp ebp, 2
jne 0x4180c1
push 0x14
call edi
test al, 1
je 0x4180c1
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push ebp
call fcn.004162d0
add esp, 0x18
cmp byte [esp + 0x10], 0
je 0x4180c1
push 1
push 0xffffffffffffffff
mov dword [0x4d4a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d4a1c], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x418780
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4d87d0], 0
je 0x418798
cmp byte [esp + 8], 0
jne 0x418798
mov al, byte [0x4d869d]
pop ecx
ret
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x4187ba
mov byte [esp + 7], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x4187d0
or byte [esp + 7], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4187e6
or byte [esp + 7], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4187fc
or byte [esp + 7], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x418812
or byte [esp + 7], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x418828
or byte [esp + 7], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x41883b
or byte [esp + 7], 0x40
push 0x5c
call esi
mov edx, 0x8000
pop esi
test dx, ax
je 0x41884f
or byte [esp + 3], 0x80
cmp dword [0x4d87d0], 0
je 0x4188aa
push ebx
mov bl, byte [esp + 7]
not bl
and bl, byte [0x4d869d]
je 0x4188a9
mov cl, byte [0x4d869f]
mov al, bl
not al
and byte [0x4d869d], al
and byte [0x4d869e], al
and cl, al
mov al, cl
mov byte [0x4d869f], cl
mov ecx, 0x4d86c8
call fcn.004188b0
mov eax, dword [0x4d75a4]
test eax, eax
je 0x4188a9
test byte [eax + 8], bl
je 0x4188a9
mov dword [0x4d75a4], 0
pop ebx
mov al, byte [esp + 3]
pop ecx
ret
Function at 0x418d40
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x34
push esi
xor esi, esi
push edi
test eax, eax
je 0x418d7e
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x418d7e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418d7e
push 0
push eax
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
pop edi
pop esi
add esp, 0x34
ret

Function at 0x418d90
Capabilities:
Get keyboard layout

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x284
push ebx
push ebp
xor ebp, ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov ebx, eax
test ebx, ebx
je 0x418e3f
xor eax, eax
jmp 0x418dc0
movzx ecx, word [eax + str.SYSTEMCurrentControlSetControlKeyboard_Layouts_]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x418dc0
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x418e2d
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x18]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418e2d
push esi
push edi
lea edi, [esp + 0x10]
lea esi, [esp + 0x8c]
mov ecx, str.Layout_File
call fcn.00480bb0
pop edi
pop esi
test eax, eax
je 0x418e2d
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebp, eax
cmp dword [esp + 0x290], ebx
je 0x418e3f
push 0
push ebx
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, ebp
pop ebp
pop ebx
add esp, 0x284
ret

Function at 0x419040
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x114
push ebp
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebp, eax
mov al, byte [esp + 0x11c]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x41913c
push ebx
push esi
push pe_nt_image_headers32
lea edx, [esp + 0x24]
push 0
push edx
call fcn.004a41d0
mov ebx, dword [sym.imp.USER32.dll_ToUnicodeEx]
add esp, 0xc
push ebp
xor esi, esi
push esi
push 2
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
push 0x6e
call ebx
cmp eax, 2
jne 0x41909f
movzx esi, word [esp + 0x10]
movzx ecx, byte [esp + 0x124]
push ebp
push 0
push 2
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
call ebx
mov dword [esp + 0x1c], eax
test eax, eax
jns 0x4190d8
push ebp
push 0
push 2
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0x6e
call ebx
test si, si
je 0x41911c
push edi
push 1
push ebp
lea edi, [esp + 0x1b]
call fcn.00419310
add esp, 8
mov byte [esp + 0x12], al
pop edi
test al, al
je 0x41911c
mov al, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.004188b0
movzx eax, byte [esp + 0xe]
push ebp
push 0
push 2
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push eax
call ebx
cmp dword [esp + 0x1c], 0
pop esi
pop ebx
je 0x419132
movzx eax, word [esp + 8]
pop ebp
add esp, 0x114
ret
xor eax, eax
pop ebp
add esp, 0x114
ret
push ebp
movzx ecx, al
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
pop ebp
add esp, 0x114
ret
Function at 0x419310
Capabilities:
Log keystrokes via polling

Disassembly:
cmp si, 0xa
jne 0x419319
mov al, 0xd
ret
mov eax, dword [esp + 4]
push ebx
push eax
push esi
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx eax, ax
mov ecx, eax
shr ecx, 8
mov bl, al
cmp cl, 0xff
jne 0x419376
cmp al, 0xff
jne 0x419376
cmp byte [esp + 0xc], 0
je 0x41937b
movzx eax, si
test eax, 0xffffff80
jne 0x41937b
push 0x103
push eax
call fcn.0049b1bc
add esp, 8
test eax, eax
je 0x41937b
mov eax, esi
call fcn.0040ecd0
mov bl, al
push 1
mov eax, esi
call fcn.004054c0
add esp, 4
test eax, eax
setne cl
test cl, 0x38
je 0x41937f
xor al, al
pop ebx
ret
test edi, edi
je 0x4193bf
mov dl, cl
and dl, 6
cmp dl, 6
jne 0x419392
or byte [edi], 8
jmp 0x4193b0
test cl, 2
je 0x4193a1
mov al, byte [edi]
test al, 3
jne 0x4193a1
or al, 1
mov byte [edi], al
test cl, 4
je 0x4193b0
mov al, byte [edi]
test al, 0xc
jne 0x4193b0
or al, 4
mov byte [edi], al
test cl, 1
je 0x4193bf
mov al, byte [edi]
test al, 0x30
jne 0x4193bf
or al, 0x10
mov byte [edi], al
mov al, bl
pop ebx
ret

Function at 0x419ab0
Capabilities:
Log keystrokes

Disassembly:
movzx ecx, bx
mov eax, ecx
cmp eax, 0x11c
jg 0x419b0d
je 0x419b0a
sub eax, 0x1d
cmp eax, 0x36
ja case.0x419b1e.286
movzx eax, byte [eax + 0x419bb8]
jmp dword [eax*4 + 0x419b6c]
mov al, 0xa0
ret
mov al, 0xa2
ret
mov al, 0xa4
ret
mov al, 0x6a
ret
mov al, 0x6d
ret
mov al, 0x6b
ret
mov al, 0x2e
ret
mov al, 0xc
ret
mov al, 0x2d
ret
mov al, 0x26
ret
mov al, 0x28
ret
mov al, 0x25
ret
mov al, 0x27
ret
mov al, 0x24
ret
mov al, 0x23
ret
mov al, 0x21
ret
mov al, 0x22
ret
mov al, 0x13
ret
mov al, 0xd
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x419b1e.286
movzx edx, byte [eax + 0x419c18]
jmp dword [edx*4 + 0x419bf0]
mov al, 0xa1
ret
mov al, 0xa3
ret
mov al, 0xa5
ret
mov al, 0x5b
ret
mov al, 0x5c
ret
mov al, 0x90
ret
mov al, 0x6f
ret
mov al, 0x5d
ret
mov al, 0x2c
ret
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
test ebx, 0x100
je 0x419b60
movzx eax, cl
push 1
or eax, 0xe000
push eax
call esi
test eax, eax
jne 0x419b68
movzx ecx, bl
push 1
push ecx
call esi
pop esi
ret

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

Disassembly:
mov dword [0x4d75e0], eax
mov edx, 1
mov eax, 0x4d75e0
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4d7f9c
jl 0x419c70
mov dword [0x4d4a08], 1
mov dword [0x4d8f7c], 1
pop edi
ret
Function at 0x419cb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4d8f7c], 0
push esi
mov esi, 0x4d75e0
jne 0x419cca
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
call fcn.00419c60
mov dword [0x4d4a08], 0x270
mov dword [0x4d75d8], esi
mov ecx, 0xe3
nop
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi + 0x634]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x419ce0
mov ecx, 0x18c
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi - 0x38c]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x419d15
mov ecx, dword [esi]
mov eax, dword [0x4d75e0]
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, dword [esi]
and al, 1
movzx edx, al
shr ecx, 1
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor ecx, edx
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
ret

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

Disassembly:
dec dword [0x4d4a08]
jne 0x419d8d
call fcn.00419cb0
mov eax, dword [0x4d75d8]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d75d8], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

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

Disassembly:
push ecx
dec dword [0x4d4a08]
jne 0x419dde
call fcn.00419cb0
mov ecx, dword [0x4d75d8]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4d75d8], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [esp], edx
fild dword [esp]
jns 0x419e25
fadd qword [0x4cecb8]
fmul qword [0x4ced08]
pop ecx
ret