joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5b0
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.00409f70
mov eax, dword [0x4af090]
test eax, eax
je 0x40b5db
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ebp, dword [0x4ad8fc]
xor eax, eax
xor edi, edi
cmp ax, word [ebp]
jae 0x40b666
mov edx, dword [0x4b0904]
mov ebx, dword [0x4b0908]
jmp 0x40b600
mov esi, dword [0x4afb18]
mov esi, dword [esi + edi*4]
test esi, esi
je 0x40b65d
cmp byte [esi + 0x18], 0
je 0x40b63e
movzx eax, word [esi + 4]
push eax
push dword [0x4af0ac]
call dword [sym.imp.USER32.dll_UnregisterHotKey]
mov ebp, dword [0x4ad8fc]
test eax, eax
mov edx, dword [0x4b0904]
mov ebx, dword [0x4b0908]
sete al
mov byte [esi + 0x18], al
cmp esi, edx
jne 0x40b65d
test edx, edx
je 0x40b65d
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 [0x4b0904], edx
movzx eax, word [ebp]
inc edi
cmp edi, eax
jl 0x40b600
push dword [esp + 0x10]
call fcn.00485e46
int3

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

Disassembly:
sub esp, 0x804
cmp byte [0x4b1c44], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x40be38
cmp dword [0x4afb30], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40bcee
call edi
mov dword [0x4afb30], eax
inc dword [0x4b1c40]
call edi
mov esi, dword [0x4b1c40]
mov ecx, eax
sub ecx, dword [0x4afb30]
mov edx, dword [0x4ac6fc]
mov dword [0x4afb2c], eax
cmp esi, dword [0x4ad35c]
jbe 0x40bdb6
cmp ecx, edx
jae 0x40bdb8
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.00472ab0
add esp, 0x14
call fcn.0040ac00
sub esp, 8
mov byte [0x4b1c44], 1
xorps xmm0, xmm0
mov dword [0x4ac1d0], 0
mov edx, 4
lea ecx, [esp + 0x18]
movsd qword [esp], xmm0
push 0
push 0
call fcn.00477510
add esp, 0x10
cmp eax, 7
jne 0x40bd85
push 0
push 1
mov ecx, 0x4b09a0
call fcn.00417430
mov eax, dword [0x4afb2c]
mov dword [0x4ac1d0], 1
mov byte [0x4b1c44], 0
mov dword [0x4b1c40], 0
mov dword [0x4afb30], eax
pop edi
pop esi
pop ebx
add esp, 0x804
ret 4
cmp ecx, edx
jbe 0x40bdc9
mov dword [0x4b1c40], 0
mov dword [0x4afb30], eax
mov esi, dword [esp + 0x814]
mov al, byte [ebx + 0xf]
push 0
push 0
mov byte [0x4b0f99], al
inc byte [esi + 0x16]
mov ecx, dword [esi]
mov edx, ecx
push 0
push 0
push str.call
call fcn.0046acf0
dec byte [esi + 0x16]
add esp, 0x14
test eax, eax
jne 0x40be0a
mov byte [esi + 0x1b], al
pop edi
pop esi
pop ebx
add esp, 0x804
ret 4
cmp byte [esi + 0x1b], 0
je 0x40be38
mov byte [esi + 0x1b], 0
call edi
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
ja 0x40be38
movzx eax, word [ebx + 4]
push 0
push eax
push 0x312
push dword [0x4af0ac]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebx
add esp, 0x804
ret 4
Function at 0x410270
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 0x410292
cmp bl, 3
jne 0x41029a
mov al, bl
add al, 0x66
cmp al, 5
ja 0x41029e
mov bh, 1
jmp 0x4102a0
xor bh, bh
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x48]
test ebp, ebp
jle 0x4103cc
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x4afb34], 0
jne 0x410314
call esi
mov ecx, dword [0x4ac1d8]
sub eax, dword [0x4b0fcc]
cmp eax, dword [ecx + 0xb8]
jbe 0x41031a
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 0x41030d
mov edx, 1
mov dword [0x4ac1d0], 0
or ecx, 0xffffffff
call fcn.004027d0
mov dword [0x4ac1d0], 1
call esi
mov dword [0x4b0fcc], eax
mov ecx, dword [0x4ac1d8]
cmp byte [esp + 0x44], 0
jne 0x410373
mov al, byte [ecx + 0xd6]
test al, al
je 0x410337
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x41033c
mov esi, 0xffc3d44f
cmp dword [0x4afb34], 0
je 0x41034c
mov al, byte [0x4b11f7]
jmp 0x410353
xor cl, cl
call fcn.00412bc0
mov cl, byte [esp + 0x34]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.00412580
mov ecx, dword [0x4ac1d8]
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test bh, bh
je 0x4103a1
test edi, edi
jne 0x4103a1
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.00411710
add esp, 0x14
jmp 0x4103c5
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.00410880
add esp, 0x10
dec ebp
jne 0x4102b6
cmp byte [esp + 0x44], 0
jne 0x41040f
cmp dword [0x4afb34], 0
je 0x4103e3
mov al, byte [0x4b11f7]
jmp 0x4103ea
xor cl, cl
call fcn.00412bc0
mov cl, al
xor cl, byte [esp + 0x38]
and cl, al
and cl, 0xcc
je 0x41040f
push 0xffc3d44d
push 0
not cl
mov dl, al
push 1
push edi
and cl, al
call fcn.00412580
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x410420
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x38
cmp dword [0x4afb34], 2
push ebx
push ebp
push esi
sete bl
mov byte [esp + 0x10], cl
mov esi, edx
push edi
test bl, bl
je 0x41045d
lea eax, [esp + 0x1c]
test cl, cl
jns 0x41044c
mov byte [esp + 0x1c], 0x30
lea eax, [esp + 0x1d]
push 0xa
push eax
movzx eax, cl
push eax
call fcn.00485828
add esp, 0xc
jmp 0x41047d
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 0x410578
test esi, esi
jle 0x410578
mov bh, byte [esp + 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov ecx, dword [0x4afb34]
jmp 0x4104a0
test ecx, ecx
jne 0x4104f5
call edi
mov ecx, dword [0x4ac1d8]
sub eax, dword [0x4b0fcc]
cmp eax, dword [ecx + 0xb8]
jbe 0x4104f5
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
call ebp
test eax, eax
je 0x4104ee
mov edx, 1
mov dword [0x4ac1d0], 0
or ecx, 0xffffffff
call fcn.004027d0
mov dword [0x4ac1d0], 1
call edi
mov dword [0x4b0fcc], eax
test bl, bl
je 0x410504
lea ecx, [esp + 0x1c]
call fcn.00410580
jmp 0x41050f
mov ecx, dword [esp + 0x18]
mov dl, bh
call fcn.0040f140
mov ecx, dword [0x4afb34]
mov eax, dword [0x4ac1d8]
cmp ecx, 2
jne 0x410524
mov eax, dword [eax + 0x60]
jmp 0x410527
mov eax, dword [eax + 0x5c]
test eax, eax
js 0x410571
test ecx, ecx
je 0x41054b
cmp ecx, 2
jne 0x410571
test eax, eax
jle 0x410571
push eax
push 0
push 0
xor dl, dl
xor cl, cl
call fcn.00411d90
add esp, 0xc
jmp 0x41056b
mov edx, 1
mov dword [0x4ac1d0], 0
mov ecx, eax
call fcn.004027d0
mov dword [0x4ac1d0], 1
mov ecx, dword [0x4afb34]
dec esi
jne 0x4104a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x411b40
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 0x411d21
mov eax, dword [ebp]
cmp eax, 0x80000000
je 0x411d21
cmp dword [0x4afb34], 2
jne 0x411bb1
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.00411f10
add esp, 8
call fcn.00412310
test bl, bl
je 0x411d21
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 0x411c0b
cmp dword [0x4afb34], 1
jne 0x411bf5
mov eax, dword [0x4b1210]
cmp eax, 0x80000000
jne 0x411be9
push 0x4b1210
call ebx
mov eax, dword [0x4b1210]
add dword [edi], eax
mov eax, dword [0x4b1214]
add dword [ebp], eax
jmp 0x411c2d
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 0x411c2d
mov eax, dword [0x4ac1d8]
movzx eax, word [eax + 0xd0]
shr eax, 2
and eax, 3
cmp eax, 2
je 0x411c2d
push eax
mov ecx, edi
call fcn.00473dd0
add esp, 4
cmp dword [0x4afb34], 1
jne 0x411c45
mov eax, dword [edi]
mov dword [0x4b1210], eax
mov eax, dword [ebp]
mov dword [0x4b1214], 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 0x411d0a
cmp esi, 0x64
jle 0x411ca8
mov esi, 0x64
jmp 0x411cac
test esi, esi
je 0x411d0a
cmp dword [0x4afb34], 1
je 0x411d0a
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.00452180
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.00411d30
add esp, 8
call fcn.00412310
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x412170
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 0xc
cmp dword [0x4afb34], 1
push ebx
push esi
mov byte [esp + 0xf], dl
mov esi, ecx
jne 0x41222e
xor al, al
cmp dword [0x4af0c8], 0
movzx ebx, al
mov eax, 1
cmovne ebx, eax
cmp dword [0x4af0c4], 0
mov dword [esp + 0x10], ebx
je 0x4121b0
or ebx, 2
mov dword [esp + 0x10], ebx
test bl, bl
je 0x4121c5
mov cl, byte [0x4b1218]
mov dl, al
not cl
and cl, bl
call fcn.00409f70
push 0x1c
push dword [0x4afb38]
push dword [0x4b1204]
call dword [0x4b1184]
test bl, bl
je 0x4122ac
mov al, byte [0x4b1218]
and al, bl
test al, 1
je 0x412220
mov cl, 1
call fcn.00412bc0
mov bl, al
xor bl, byte [esp + 0xf]
mov dl, bl
and bl, al
and dl, byte [esp + 0xf]
not dl
and dl, byte [0x4af9b3]
or dl, bl
mov byte [0x4af9b3], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0x10]
mov dword [0x4af200], eax
mov dl, 1
mov cl, bl
pop esi
pop ebx
add esp, 0xc
jmp fcn.00409f70
push 0
push dword [0x4af0ec]
mov dword [0x4b120c], 0
push 0x410610
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x4af090], eax
test eax, eax
je 0x4122ac
mov byte [0x4af9b2], 1
lea ecx, [ecx]
mov edx, 1
mov dword [0x4ac1d0], 0
mov ecx, 0x8000012f
call fcn.004027d0
cmp dword [0x4af090], 0
mov dword [0x4ac1d0], 1
jne 0x412260
mov eax, dword [0x4ad370]
mov byte [0x4af9b2], 0
mov ecx, dword [eax]
mov eax, dword [0x4b1204]
cmp dword [ecx + eax*8 - 8], 0
jne 0x4122ac
mov eax, dword [ecx + eax*8 - 4]
mov dword [esi], eax
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x412380
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, dword [0x4af0c0]
test edi, edi
je 0x41246c
mov ax, word [esp + 8]
push esi
imul esi, dword [0x4af0f8], 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 [0x4af0c0]
mov ecx, edx
mov dword [0x4af0f4], edx
sub ecx, dword [0x4b102c]
mov dword [0x4b102c], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4a6780]
imul ecx, dword [0x4af0f8], 0x70
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4a66c4]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4af0c0]
test esi, esi
je 0x412442
cmp esi, dword [0x4af0f0]
je 0x412432
imul edx, dword [0x4af0f8], 0x70
push 0x64
add edx, 0xc
add eax, edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [0x4af0f8]
jmp 0x412453
mov edx, dword [0x4af0f8]
imul ecx, edx, 0x70
mov byte [ecx + eax + 0xc], 0
jmp 0x412453
mov edx, dword [0x4af0f8]
imul ecx, edx, 0x70
mov dword [ecx + eax + 0xc], 0x412f4e
inc edx
mov dword [0x4af0f0], esi
xor eax, eax
cmp edx, dword [0x4ac1dc]
pop esi
cmovge edx, eax
mov dword [0x4af0f8], edx
pop edi
ret
Function at 0x412470
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 0x4124a3
cmp edi, 2
jne 0x412578
cmp esi, edi
je 0x412578
push dword [esp + 0x10]
call ebp
mov ecx, 0x8000
test cx, ax
je 0x4124d5
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00410880
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.00410880
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4b0948]
sete bh
test bh, bh
je 0x41252c
mov edx, 1
mov dword [0x4ac1d0], 0
or ecx, 0xffffffff
call fcn.004027d0
mov dword [0x4ac1d0], 1
cmp bl, 0x14
jne 0x412578
cmp edi, 2
jne 0x412578
push 0x14
call ebp
test al, 1
je 0x412578
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, edi
call fcn.00410880
add esp, 0x10
test bh, bh
je 0x412578
lea edx, [edi - 1]
mov dword [0x4ac1d0], 0
or ecx, 0xffffffff
call fcn.004027d0
mov dword [0x4ac1d0], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x412bc0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x4af0c8], 0
je 0x412bd3
test cl, cl
jne 0x412bd3
mov al, byte [0x4afac1]
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 0x412c07
or bl, 0x20
push 0xa2
call esi
test di, ax
je 0x412c16
or bl, 1
push 0xa3
call esi
test di, ax
je 0x412c25
or bl, 2
push 0xa4
call esi
test di, ax
je 0x412c34
or bl, 4
push 0xa5
call esi
test di, ax
je 0x412c43
or bl, 8
push 0x5b
call esi
test di, ax
je 0x412c4f
or bl, 0x40
push 0x5c
call esi
test di, ax
je 0x412c5b
or bl, 0x80
cmp dword [0x4af0c8], 0
je 0x412c9a
mov cl, byte [0x4afac1]
mov al, bl
not al
and al, cl
je 0x412c9a
mov dl, byte [0x4af9b3]
not al
and byte [0x4afac0], al
and cl, al
and dl, al
mov byte [0x4afac1], cl
mov ecx, 0x4af9c0
mov byte [0x4af9b3], dl
call fcn.00412ca0
pop edi
pop esi
mov al, bl
pop ebx
ret

Function at 0x4130e0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x38
push esi
xor esi, esi
test ecx, ecx
je 0x41311f
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 0x41311f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41311f
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 0x413300
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 0x4133f1
push ebp
push edi
push 0x100
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0048fd00
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 0x413391
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 0x4133d2
push 1
push esi
lea edx, [esp + 0x1b]
mov cl, al
call fcn.004135a0
mov bl, al
add esp, 8
test bl, bl
je 0x4133d2
mov dl, byte [esp + 0x13]
lea ecx, [esp + 0x20]
call fcn.00412ca0
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 0x4133e6
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 0x4135a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, edx
cmp bl, 0xa
jne 0x4135b2
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 0x413613
cmp dl, 0xff
jne 0x413613
cmp byte [esp + 0x18], 0
je 0x413618
movzx edi, bl
test edi, 0xffffff80
jne 0x413618
push 0x103
push edi
call fcn.0048708c
add esp, 8
test eax, eax
je 0x413618
mov cl, bl
call fcn.0040a990
push 1
push edi
mov byte [esp + 0x14], al
call fcn.0048708c
mov edx, dword [esp + 0x14]
add esp, 8
test eax, eax
setne cl
test cl, 0x38
je 0x41361f
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret
test esi, esi
je 0x41365d
mov al, cl
and al, 6
cmp al, 6
jne 0x413630
or byte [esi], 8
jmp 0x41364e
test cl, 2
je 0x41363f
mov al, byte [esi]
test al, 3
jne 0x41363f
or al, 1
mov byte [esi], al
test cl, 4
je 0x41364e
mov al, byte [esi]
test al, 0xc
jne 0x41364e
or al, 4
mov byte [esi], al
test cl, 1
je 0x41365d
mov al, byte [esi]
test al, 0x30
jne 0x41365d
or al, 0x10
mov byte [esi], al
pop edi
pop esi
mov al, dl
pop ebx
pop ecx
ret
Function at 0x413a80
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
movzx esi, cl
mov bl, dl
lea eax, [esi - 0x13]
cmp eax, 0x92
ja case.0x413a9c.20
movzx eax, byte [eax + 0x413c30]
jmp dword [eax*4 + 0x413bc4]
mov eax, 0x2a
jmp 0x413b6c
mov eax, 0x136
jmp 0x413b6c
mov eax, 0x1d
jmp 0x413b6c
mov eax, 0x11d
jmp 0x413b6c
mov eax, 0x38
jmp 0x413b6c
mov eax, 0x138
jmp 0x413b6c
mov eax, 0x15b
jmp 0x413b6c
mov eax, 0x15c
jmp 0x413b6c
mov eax, 0x45
jmp 0x413b6c
mov eax, 0x52
jmp 0x413b6c
mov eax, 0x4f
jmp 0x413b6c
mov eax, 0x50
jmp 0x413b6c
mov eax, 0x51
jmp 0x413b6c
mov eax, 0x4b
jmp 0x413b6c
mov eax, 0x4c
jmp 0x413b6c
mov eax, 0x4d
jmp 0x413b6c
mov eax, 0x47
jmp 0x413b6c
mov eax, 0x48
jmp 0x413b6c
mov eax, 0x49
jmp 0x413b6c
mov eax, 0x53
jmp 0x413b6c
mov eax, 0x145
jmp 0x413b6c
mov eax, 0x135
jmp 0x413b6c
mov eax, 0x37
jmp 0x413b6c
mov eax, 0x4a
jmp 0x413b6c
mov eax, 0x4e
jmp 0x413b6c
mov eax, 0x137
test bl, bl
jne 0x413b87
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 0x413b8c
pop esi
xor eax, eax
pop ebx
ret
add esi, 0xfffffffd
cmp esi, 0xb4
ja case.0x413b9e.4
movzx eax, byte [esi + 0x413cd0]
jmp dword [eax*4 + 0x413cc4]
or ecx, 0x100
test bl, bl
jne 0x413b87
movzx eax, cx
pop esi
pop ebx
ret
mov eax, ecx
test bl, bl
je 0x413bb2
pop esi
or eax, 0x100
pop ebx
ret

Function at 0x413d90
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, ecx
movzx ecx, bx
mov eax, ecx
cmp eax, 0x11c
jg 0x413e07
je 0x413e03
sub eax, 0x1d
cmp eax, 0x36
ja case.0x413e18.286
movzx eax, byte [eax + 0x413ebc]
jmp dword [eax*4 + 0x413e70]
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.0x413e18.286
movzx eax, byte [eax + 0x413f1c]
jmp dword [eax*4 + 0x413ef4]
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 0x413e60
movzx eax, cl
push 1
or eax, 0xe000
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test eax, eax
jne 0x413e6c
push 1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
pop ebx
ret

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

Disassembly:
push esi
mov dword [0x4b1220], ecx
mov esi, 1
mov eax, 0x4b1220
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, 0x4b1bdc
jl 0x413f71
mov dword [0x4ad374], 1
mov dword [0x4afb90], 1
pop esi
ret
Function at 0x413fb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4afb90], 0
push esi
push edi
mov esi, 0x4b1220
jne 0x413fcd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.00413f60
mov dword [0x4ad374], 0x270
mov edi, 0xe3
mov dword [0x4b1be0], 0x4b1220
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 0x413fe6
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 0x414020
mov ecx, dword [esi]
mov eax, dword [0x4b1220]
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 0x414080
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4ad374]
jne 0x41408d
call fcn.00413fb0
mov eax, dword [0x4b1be0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4b1be0], 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 0x4140d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4ad374]
jne 0x4140dd
call fcn.00413fb0
mov eax, dword [0x4b1be0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4b1be0], 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 + 0x4a6780]
mulsd xmm0, qword [0x4a6600]
ret

Function at 0x414aa0
Capabilities:
Write clipboard data

Disassembly:
cmp byte [ecx + 0x17], 0
jne 0x414aa9
mov ecx, dword [ecx + 0xc]
cmp byte [ecx + 0x17], 2
jne 0x414aca
cmp dword [0x4b101c], 0
je 0x414aca
mov dword [esp + 4], 1
mov ecx, 0x4b1010
jmp fcn.00405a20
and byte [ecx + 0x15], 0x86
cmp byte [esp + 4], 0
mov al, byte [ecx + 0x15]
je 0x414add
or al, 1
mov byte [ecx + 0x15], al
mov eax, 1
ret 4