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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
xor al, al
cmp dword [0x4c0fa4], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x408694
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4c0fa8], 0
je 0x4086a3
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x4088b0
test al, al
jne 0x4086e6
cmp byte [ebp + 0xc], al
jne 0x4086e6
push 0x4bfd60
push 0
push 0
push 0x408980
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4c3fc4], eax
test eax, eax
je 0x408777
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx ebx, byte [ebp + 8]
xor eax, eax
xor esi, esi
cmp byte [ebp + 0xc], al
sete al
mov edi, eax
mov ecx, dword [0x4bfd60]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x40871c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x4086f6
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x408783
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x4087ea
cmp dword [esp + 0x2c], 0
je 0x408792
mov byte [esp + 0x1f], 1
call fcn.00408d30
test al, al
jne 0x408792
cmp byte [ebp + 0xc], al
jne 0x40887e
mov byte [ebp + 8], al
jmp 0x408731
call fcn.00408d50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x4087ce
call fcn.00408d30
test al, al
jne 0x4087ea
cmp byte [ebp + 0xc], 0
jne 0x408877
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4c0fa4], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
je 0x408822
test byte [esp + 0x1e], 1
jne 0x40883b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4c1a14], eax
jmp 0x40883b
mov ecx, dword [0x4c3fc4]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x408802
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408792
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408731
mov edx, dword [0x4c3fc4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4c3fc4], 0
call fcn.00408d50
jmp 0x4087a2
test byte [esp + 0x1e], 1
je 0x40883b
mov eax, dword [0x4c1a14]
push eax
call edi
mov dword [0x4c1a14], 0
cmp dword [0x4c0fa8], 0
je 0x40885d
test byte [esp + 0x1e], 2
jne 0x408877
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4c1a18], eax
jmp 0x408877
test byte [esp + 0x1e], 2
je 0x408877
mov ecx, dword [0x4c1a18]
push ecx
call edi
mov dword [0x4c1a18], 0
cmp byte [esp + 0x1f], 0
je 0x4088b0
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
push 0x10000
push str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
mov dword [0x4bd3e4], 0
call fcn.0046f820
add esp, 0x18
mov dword [0x4bd3e4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409f30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x1038
call fcn.00493680
cmp byte [0x4c3fc8], 0
push esi
push edi
jne 0x40a0e9
cmp dword [0x4c1a34], 0
jne 0x409f63
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c1a34], eax
mov edi, 1
add dword [0x4c3fcc], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4c3fcc]
mov esi, dword [0x4bd3f8]
mov ecx, eax
sub ecx, dword [0x4c1a34]
mov dword [0x4c1a38], eax
cmp edx, dword [0x4bd3f4]
jbe 0x40a019
cmp ecx, esi
jae 0x40a019
push ecx
push edx
mov dword [esp + 0x44], edi
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 + 0x4c]
call fcn.0046b300
add esp, 0xc
call fcn.00409100
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
mov eax, edi
push 4
push eax
mov byte [0x4c3fc8], 1
mov dword [0x4bd3e4], 0
call fcn.0046f820
add esp, 0x18
cmp eax, 7
jne 0x409ffd
push 0
push 0
push 1
mov ecx, 0x4c3168
call fcn.00415480
mov eax, dword [0x4c1a38]
mov edx, dword [esp + 0x3c]
mov dword [0x4bd3e4], 1
mov byte [0x4c3fc8], 0
jmp 0x40a01f
xor edx, edx
cmp ecx, esi
jbe 0x40a036
mov dword [0x4c3fcc], 0
mov dword [0x4c1a34], eax
test edx, edx
jne 0x40a0e9
mov esi, dword [ebp + 8]
mov cl, byte [esi + 0x11]
mov byte [0x4c3bf2], cl
cmp byte [esi + 0x1a], 0
je 0x40a0ad
cmp byte [esi + 0x1b], 0
je 0x40a0ad
mov byte [esp + 0x3b], 1
call fcn.0040b9c0
mov ecx, dword [0x4bd41c]
inc byte [ebx + 0x1f]
mov eax, dword [ebx]
mov esi, dword [ecx + 0xbc]
push 0
push 0
mov dword [ecx + 0xbc], eax
mov ecx, dword [eax + 4]
push 1
call fcn.004253a0
mov edx, dword [0x4bd41c]
mov dword [edx + 0xbc], esi
dec byte [ebx + 0x1f]
cmp byte [esp + 0x3b], 0
mov edi, eax
je 0x40a09d
mov esi, dword [ebp + 8]
call fcn.0040b8f0
test edi, edi
jne 0x40a0b4
mov byte [ebx + 0x23], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0x3b], 0
jmp 0x40a058
cmp byte [ebx + 0x23], 0
je 0x40a0e9
mov byte [ebx + 0x23], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 4]
cmp eax, 0x3e8
ja 0x40a0e9
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
mov edx, dword [0x4c0e74]
push 0
push ecx
push 0x312
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40e5c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x3c
push esi
mov esi, eax
movzx eax, word [esp + 0x44]
lea ecx, [esp + 0x20]
test eax, 0xffffff80
je 0x40e5e4
mov ecx, 0x30
mov word [esp + 0x20], cx
lea ecx, [esp + 0x22]
push 0xa
push ecx
push eax
call fcn.004860b5
add esp, 0xc
test esi, esi
jle 0x40e6a7
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, esi
cmp dword [0x4c2a50], 0
jne 0x40e65f
call edi
sub eax, dword [0x4c3c2c]
mov edx, dword [0x4bd41c]
cmp eax, dword [edx + 0xd0]
jbe 0x40e65f
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40e658
push 1
push 0xffffffffffffffff
mov dword [0x4bd3e4], 0
call fcn.00401360
add esp, 8
mov dword [0x4bd3e4], 1
call edi
mov dword [0x4c3c2c], eax
cmp dword [0x4c2a50], 2
je 0x40e673
mov esi, dword [esp + 0x4c]
call fcn.0040cc60
jmp 0x40e67c
lea eax, [esp + 0x28]
call fcn.0040e6b0
cmp dword [0x4c2a50], 2
jne 0x40e690
mov ecx, dword [0x4bd41c]
mov esi, dword [ecx + 0x60]
jmp 0x40e699
mov edx, dword [0x4bd41c]
mov esi, dword [edx + 0x5c]
call fcn.00410610
dec ebp
jne 0x40e602
pop edi
pop ebp
pop esi
add esp, 0x3c
ret

Function at 0x40e6b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4c2a50], 0
push esi
mov esi, eax
je 0x40e6c7
mov al, byte [0x4bfda0]
jmp 0x40e7be
cmp dword [0x4c0fa4], 0
je 0x40e6da
mov al, byte [0x4c0e71]
jmp 0x40e7be
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e6f7
mov bl, 0x10
push 0xa1
call edi
mov edx, 0x8000
test dx, ax
je 0x40e70b
or bl, 0x20
push 0xa2
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e71f
or bl, 1
push 0xa3
call edi
mov edx, 0x8000
test dx, ax
je 0x40e733
or bl, 2
push 0xa4
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e747
or bl, 4
push 0xa5
call edi
mov edx, 0x8000
test dx, ax
je 0x40e75b
or bl, 8
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e76c
or bl, 0x40
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40e77d
or bl, 0x80
cmp dword [0x4c0fa4], 0
je 0x40e7ba
mov al, bl
not al
and al, byte [0x4c0e71]
je 0x40e7ba
mov cl, byte [0x4c0e73]
not al
and byte [0x4c0e71], al
and byte [0x4c0e72], al
and cl, al
mov al, cl
mov byte [0x4c0e73], cl
mov ecx, 0x4c0e98
call fcn.004111a0
pop edi
mov al, bl
pop ebx
mov byte [esp + 4], al
mov ecx, dword [esp + 4]
push 1
and al, 0xc4
push 0
or al, 4
movzx edx, al
push 0
push ecx
push edx
mov eax, 0xffc3d44f
call fcn.004109f0
movzx eax, word [esi]
add esp, 0x14
cmp eax, 0x30
jb 0x40e81f
lea ebx, [ebx]
cmp ax, 0x39
ja 0x40e81f
mov al, byte [esi]
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx ecx, al
push 0
push ecx
push 2
call fcn.0040eaa0
movzx eax, word [esi + 2]
add esi, 2
add esp, 0x18
cmp eax, 0x30
jae 0x40e7f0
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.0040eaa0
add esp, 0x18
pop esi
pop ecx
ret
Function at 0x40fec0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [ebp]
push edi
cmp esi, 0x80000000
je 0x4100a3
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
cmp eax, 0x80000000
je 0x4100a3
mov edx, dword [0x4c2a50]
cmp edx, 2
jne 0x40ff3d
movzx ebx, byte [esp + 0x2c]
neg ebx
sbb ebx, ebx
and ebx, 0x80000000
push 0
or ebx, 1
mov edi, eax
call fcn.00410270
add esp, 4
call fcn.004106e0
cmp byte [esp + 0x2c], 0
je 0x4100a3
mov eax, dword [esp + 0x24]
mov dword [ebp], SysStringLen
mov dword [eax], SysReAllocString
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
or dword [ecx], 0x8001
cmp byte [esp + 0x2c], 0
je 0x40ff93
cmp edx, 1
jne 0x40ff79
cmp dword [0x4bfd98], 0x80000000
jne 0x40ff66
push 0x4bfd98
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [0x4bfd98]
add dword [ebp], ecx
mov edx, dword [0x4bfd9c]
add dword [edi], edx
jmp 0x40ffa8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add dword [ebp], ecx
add dword [edi], edx
jmp 0x40ffa8
mov eax, dword [0x4bd41c]
test byte [eax + 0xe8], 2
jne 0x40ffa8
mov ebx, ebp
call fcn.0046c690
cmp dword [0x4c2a50], 1
jne 0x40ffc2
mov ecx, dword [ebp]
mov dword [0x4bfd98], ecx
mov edx, dword [edi]
mov dword [0x4bfd9c], edx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
push 1
mov esi, eax
call ebx
mov ecx, dword [ebp]
mov dword [esp + 0x20], eax
mov eax, ecx
shl eax, 0x10
cdq
idiv esi
xor edx, edx
test ecx, ecx
setns dl
mov ebx, dword [esp + 0x28]
lea eax, [eax + edx*2 - 1]
mov dword [ebp], eax
mov ecx, dword [edi]
mov eax, ecx
shl eax, 0x10
cdq
idiv dword [esp + 0x20]
xor edx, edx
test ecx, ecx
setns dl
lea edx, [edx + edx - 1]
lea ecx, [eax + edx]
mov dword [edi], ecx
test ebx, ebx
js 0x41008c
cmp ebx, 0x64
jle 0x410026
mov dword [esp + 0x28], 0x64
mov ebx, dword [esp + 0x28]
jmp 0x41002a
test ebx, ebx
je 0x41008c
cmp dword [0x4c2a50], 1
je 0x41008c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [edi]
mov edx, dword [ebp]
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov eax, ecx
shl eax, 0x10
cdq
idiv dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov ebx, eax
xor eax, eax
test ecx, ecx
setns al
lea ebx, [ebx + eax*2 - 1]
mov eax, edi
shl eax, 0x10
cdq
idiv esi
xor edx, edx
test edi, edi
setns dl
mov ecx, eax
lea ecx, [ecx + edx*2 - 1]
mov eax, ebx
call fcn.0044fd40
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edx, dword [ebp]
push 0x8001
xor eax, eax
call fcn.004100b0
add esp, 4
call fcn.004106e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4104c0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 8
cmp dword [0x4c2a50], 1
push ebx
jne 0x410587
xor bl, bl
cmp dword [0x4c0fa4], 0
mov byte [esp + 8], bl
je 0x4104e6
mov bl, 1
mov byte [esp + 8], bl
cmp dword [0x4c0fa8], 0
je 0x4104f6
or bl, 2
mov byte [esp + 8], bl
test bl, bl
je 0x410511
mov al, byte [0x4bfd97]
not al
and al, bl
movzx ecx, al
push 1
push ecx
call fcn.00408670
add esp, 8
mov edx, dword [0x4bfdb0]
mov eax, dword [0x4bfdac]
push 0x1c
push edx
push eax
call dword [0x4c3fac]
test bl, bl
je 0x410605
mov cl, byte [0x4bfd97]
and cl, bl
test cl, 1
je 0x41056e
push 1
call fcn.004110a0
mov dl, byte [esp + 0x18]
mov cl, al
xor cl, dl
mov bl, cl
and bl, dl
not bl
and bl, byte [0x4c0e73]
and cl, al
or bl, cl
add esp, 4
mov byte [0x4c0e73], bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x4bfbc0], eax
mov edx, dword [esp + 8]
pop ebx
add esp, 8
mov dword [esp + 8], 1
mov dword [esp + 4], edx
jmp fcn.00408670
mov eax, dword [0x4c0e6c]
push 0
push eax
push 0x40e840
push 1
mov dword [0x4bfda4], 0
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4c0fac], eax
test eax, eax
je 0x410605
mov byte [0x4c0e94], 1
push 1
push 0x8000012f
mov dword [0x4bd3e4], 0
call fcn.00401360
add esp, 8
cmp dword [0x4c0fac], 0
mov dword [0x4bd3e4], 1
jne 0x4105b6
mov eax, dword [0x4bfdb0]
mov ecx, dword [0x4bfdac]
cmp dword [eax + ecx*8 - 8], 0
mov byte [0x4c0e94], 0
jne 0x410605
mov ecx, dword [eax + ecx*8 - 4]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
pop ebx
add esp, 8
ret

Function at 0x4107d0
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x4c1a04]
test eax, eax
je 0x4108e8
mov ecx, dword [0x4c1a08]
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 [0x4c3fa4]
mov dword [0x4c1a0c], eax
mov dword [esp + 4], edx
fild dword [esp + 4]
jns 0x41082b
fadd dword [0x4b7698]
fdiv qword [0x4b7690]
mov ecx, dword [0x4c1a08]
mov edx, dword [0x4c1a04]
mov dword [0x4c3fa4], 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 0x410898
mov eax, dword [0x4c1a08]
imul eax, eax, 0xd4
cmp esi, dword [0x4c1a10]
je 0x410889
mov ecx, dword [0x4c1a04]
push 0x64
lea edx, [eax + ecx + 0xc]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4108c4
mov edx, dword [0x4c1a04]
xor ecx, ecx
mov word [eax + edx + 0xc], cx
jmp 0x4108c4
mov ecx, dword [0x4c1a08]
mov edx, dword [0x4c1a04]
imul ecx, ecx, 0xd4
mov eax, 0x49d864
lea edx, [ecx + edx + 0xc]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4108b5
mov eax, dword [0x4c1a08]
inc eax
mov dword [0x4c1a10], esi
mov dword [0x4c1a08], eax
pop esi
cmp eax, dword [0x4bd3e8]
jl 0x4108e8
mov dword [0x4c1a08], 0
pop ecx
ret
Function at 0x4108f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, bl
push esi
push eax
call ebp
and al, 1
movsx esi, al
neg esi
sbb esi, esi
add esi, 2
cmp edi, 1
je 0x410919
cmp edi, 2
jne 0x4109e5
cmp esi, edi
je 0x4109e5
cmp bl, 0x90
jne 0x410940
push 0xffc3d44d
push 0
push 0
push 0
push 0x90
push 1
call fcn.0040eaa0
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 2
call fcn.0040eaa0
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c310c]
sete al
mov byte [esp + 0xb], al
test al, al
je 0x410996
push 1
push 0xffffffffffffffff
mov dword [0x4bd3e4], 0
call fcn.00401360
add esp, 8
mov dword [0x4bd3e4], 1
cmp bl, 0x14
jne 0x4109e5
cmp edi, 2
jne 0x4109e5
push 0x14
call ebp
test al, 1
je 0x4109e5
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push edi
call fcn.0040eaa0
add esp, 0x18
cmp byte [esp + 0xb], 0
je 0x4109e5
push 1
push 0xffffffffffffffff
mov dword [0x4bd3e4], 0
call fcn.00401360
add esp, 8
mov dword [0x4bd3e4], 1
mov eax, esi
pop esi
pop ebp
pop ecx
ret

Function at 0x4110a0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x4c0fa4], 0
je 0x4110b6
cmp byte [esp + 4], 0
jne 0x4110b6
mov al, byte [0x4c0e71]
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x4110d3
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x4110e7
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4110fb
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x41110f
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x411123
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x411137
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x411148
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x411159
or bl, 0x80
cmp dword [0x4c0fa4], 0
je 0x411196
mov al, bl
not al
and al, byte [0x4c0e71]
je 0x411196
mov cl, byte [0x4c0e73]
not al
and byte [0x4c0e71], al
and byte [0x4c0e72], al
and cl, al
mov al, cl
mov byte [0x4c0e73], cl
mov ecx, 0x4c0e98
call fcn.004111a0
pop esi
mov al, bl
pop ebx
ret

Function at 0x411600
Capabilities:
Get keyboard layout

Disassembly:
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x411615
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x411617
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
xor eax, eax
call fcn.00411640
xor ecx, ecx
add esp, 4
cmp eax, 3
sete al
ret
Function at 0x411640
Capabilities:
Log keystrokes via polling

Disassembly:
xor ecx, ecx
push edi
mov edx, dword [ecx*8 + 0x4c2a00]
test edx, edx
je 0x41167a
cmp edx, dword [esp + 8]
je 0x41165c
inc ecx
cmp ecx, 0xa
jl 0x411643
jmp 0x411681
test eax, eax
je 0x411671
cmp dword [ecx*8 + 0x4c2a04], 0
jne 0x411671
mov dword [ecx*8 + 0x4c2a04], eax
mov eax, dword [ecx*8 + 0x4c2a04]
pop edi
ret
mov edi, ecx
cmp ecx, 0xa
jl 0x411686
mov edi, 9
test eax, eax
je 0x41169e
mov ecx, dword [esp + 8]
mov dword [edi*8 + 0x4c2a00], ecx
mov dword [edi*8 + 0x4c2a04], eax
pop edi
ret
push ebx
push ebp
lea ebp, [edi*8 + 0x4c2a04]
push esi
mov esi, dword [sym.imp.USER32.dll_VkKeyScanExW]
mov dword [ebp], 0
mov ebx, 0x20
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
movsx ax, bl
movzx ecx, ax
push edx
push ecx
call esi
movzx eax, ax
cmp ax, 0xffff
je 0x4116e7
and eax, 0x600
mov edx, 0x600
cmp ax, dx
je 0x411703
inc ebx
cmp ebx, 0x100
jl 0x4116c0
mov eax, dword [esp + 0x14]
pop esi
mov dword [edi*8 + 0x4c2a00], eax
mov eax, dword [ebp]
pop ebp
pop ebx
pop edi
ret
mov eax, dword [esp + 0x14]
pop esi
mov dword [ebp], 3
mov dword [edi*8 + 0x4c2a00], eax
mov eax, dword [ebp]
pop ebp
pop ebx
pop edi
ret

Function at 0x4118e0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp ax, 0xa
jne 0x4118e9
mov al, 0xd
ret
push ecx
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx eax, ax
mov edx, eax
shr edx, 8
cmp dl, 0xff
jne 0x411905
cmp al, 0xff
jne 0x411905
xor al, al
ret
test esi, esi
je 0x41194b
mov cl, dl
and cl, 6
cmp cl, 6
jne 0x411918
or byte [esi], 8
jmp 0x41193a
test dl, 2
je 0x411929
mov cl, byte [esi]
test cl, 3
jne 0x411929
or cl, 1
mov byte [esi], cl
test dl, 4
je 0x41193a
mov cl, byte [esi]
test cl, 0xc
jne 0x41193a
or cl, 4
mov byte [esi], cl
test dl, 1
je 0x41194b
mov cl, byte [esi]
test cl, 0x30
jne 0x41194b
or cl, 0x10
mov byte [esi], cl
ret
Function at 0x411b50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, eax
xor eax, eax
mov word [esi], ax
test bl, bl
jne 0x411b7c
test di, di
je 0x411c2c
mov ecx, edi
call fcn.00411ec0
mov byte [esp + 0x10], al
jmp 0x411b93
test di, di
jne 0x411b9c
mov ecx, dword [esp + 0x10]
push ecx
xor bl, bl
call fcn.00411c40
add esp, 4
movzx edi, ax
mov bl, byte [esp + 0x10]
test di, di
je 0x411bbd
cmp bl, 0x9c
jb 0x411ba6
cmp bl, 0x9f
jbe 0x411bbd
mov edx, ebp
shr edx, 1
push edx
movzx eax, di
push esi
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
jne 0x411c2c
xor eax, eax
nop
cmp byte [eax*8 + 0x4be22c], bl
je 0x411bee
inc eax
cmp eax, 0x6d
jl 0x411bc0
movzx edi, bl
push edi
call fcn.00487a36
add esp, 4
test eax, eax
je 0x411c14
mov word [esi], di
pop edi
xor eax, eax
pop ebp
mov word [esi + 2], ax
mov eax, esi
pop ebx
ret
cmp eax, 0x6d
jge 0x411bcf
mov ecx, dword [eax*8 + 0x4be228]
lea edi, [ebp - 1]
push edi
push ecx
push esi
call fcn.00488d24
add esp, 0xc
xor edx, edx
mov word [esi + edi*2], dx
pop edi
pop ebp
mov eax, esi
pop ebx
ret
lea edi, [ebp - 1]
push edi
push str.not_found
push esi
call fcn.00488d24
add esp, 0xc
xor ecx, ecx
mov word [esi + edi*2], cx
pop edi
pop ebp
mov eax, esi
pop ebx
ret

Function at 0x411ec0
Capabilities:
Log keystrokes

Disassembly:
movzx eax, cx
cmp eax, 0x11c
jg 0x411f18
je 0x411f15
sub eax, 0x1d
cmp eax, 0x36
ja case.0x411f29.286
movzx eax, byte [eax + 0x411f94]
jmp dword [eax*4 + 0x411f4c]
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, 0xd
ret
sub eax, 0x11d
cmp eax, 0x28
ja case.0x411f29.286
movzx edx, byte [eax + 0x411fe4]
jmp dword [edx*4 + 0x411fcc]
mov al, 0xa1
ret
mov al, 0xa3
ret
mov al, 0xa5
ret
mov al, 0x90
ret
mov al, 0x6f
ret
movzx eax, cl
push 1
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
ret

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

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x4bfdc8], eax
mov edx, 1
mov eax, 0x4bfdc8
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, 0x4c0784
jl 0x412024
mov dword [0x4bd3d4], 1
mov dword [0x4c2a54], 1
pop edi
ret
Function at 0x412060
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4c2a54], 0
push esi
mov esi, 0x4bfdc8
jne 0x41207e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00412010
add esp, 4
mov dword [0x4bd3d4], 0x270
mov dword [0x4bfdc0], esi
mov ecx, 0xe3
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 0x412093
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 0x4120c8
mov ecx, dword [esi]
mov eax, dword [0x4bfdc8]
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 0x412130
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4bd3d4]
jne 0x41213d
call fcn.00412060
mov eax, dword [0x4bfdc0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4bfdc0], 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 0x412180
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4bd3d4]
jne 0x41218d
call fcn.00412060
mov eax, dword [0x4bfdc0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4bfdc0], 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
shr eax, 1
ret

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

Disassembly:
push ecx
dec dword [0x4bd3d4]
jne 0x4121de
call fcn.00412060
mov ecx, dword [0x4bfdc0]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4bfdc0], 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 0x412225
fadd qword [0x4b7668]
fmul qword [0x4b76c0]
pop ecx
ret