joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f3e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x40
cmp dword [0x51675c], 0
push ebx
push esi
je 0x40f3f8
mov al, byte [0x514de3]
jmp 0x40f51e
cmp dword [0x51600c], 0
je 0x40f40b
mov al, byte [0x515ed9]
jmp 0x40f51e
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0x13], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f42c
mov byte [esp + 0xf], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40f442
or byte [esp + 0xf], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f458
or byte [esp + 0xf], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40f46e
or byte [esp + 0xf], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f484
or byte [esp + 0xf], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40f49a
or byte [esp + 0xf], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f4ad
or byte [esp + 0xf], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40f4c0
or byte [esp + 0xf], 0x80
cmp dword [0x51600c], 0
je 0x40f519
mov bl, byte [esp + 0xf]
not bl
and bl, byte [0x515ed9]
je 0x40f519
mov cl, byte [0x515edb]
mov al, bl
not al
and byte [0x515ed9], al
and byte [0x515eda], al
and cl, al
mov al, cl
mov byte [0x515edb], cl
mov ecx, 0x515f00
call fcn.00413870
mov eax, dword [0x514dd4]
test eax, eax
je 0x40f519
test byte [eax + 8], bl
je 0x40f519
mov dword [0x514dd4], 0
movzx eax, byte [esp + 0xf]
mov esi, 1
push esi
push 0
push 0
push eax
mov eax, dword [esp + 0x5c]
push eax
mov eax, 0xffc3d44f
call fcn.00413090
add esp, 0x14
cmp dword [0x51675c], esi
jne 0x40f591
mov ecx, dword [0x51161c]
movzx edx, byte [ecx + 0xf6]
mov eax, 0xffc3d44d
sub eax, edx
push eax
push 4
push edi
push 0
push 0
call fcn.00412780
mov ecx, dword [0x51161c]
movzx edx, byte [ecx + 0xf6]
add esp, 0x14
mov eax, 0xffc3d44d
sub eax, edx
push eax
push 6
push edi
push 0
push 0
call fcn.00412780
add esp, 0x14
pop esi
pop ebx
add esp, 0x40
ret
mov eax, dword [0x51161c]
xor ecx, ecx
mov word [esp + 0x14], cx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], esi
mov word [esp + 0x16], di
mov dword [esp + 0x18], 4
movzx edx, byte [eax + 0xf6]
mov ecx, 0xffc3d44d
sub ecx, edx
xor edx, edx
mov dword [esp + 0x20], ecx
mov word [esp + 0x30], dx
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], esi
mov word [esp + 0x32], di
mov dword [esp + 0x34], 6
movzx eax, byte [eax + 0xf6]
push 0x1c
lea edx, [esp + 0x14]
mov ecx, 0xffc3d44d
push edx
sub ecx, eax
push 2
mov dword [esp + 0x48], ecx
call dword [sym.imp.USER32.dll_SendInput]
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x410cc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
cmp dword [0x51675c], 2
push ebx
push ebp
push esi
sete bl
push edi
mov esi, ecx
test bl, bl
je 0x410d05
movzx eax, ax
lea ecx, [esp + 0x30]
test eax, 0xffffff80
je 0x410cf3
mov ecx, 0x30
mov word [esp + 0x30], cx
lea ecx, [esp + 0x32]
push 0xa
push ecx
push eax
call fcn.004c4bd5
mov edi, dword [esp + 0x1c]
add esp, 0xc
jmp 0x410d08
movzx edi, ax
test esi, esi
jle 0x410db9
mov ebp, esi
cmp dword [0x51675c], 0
jne 0x410d75
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x5179a4]
mov edx, dword [0x51161c]
cmp eax, dword [edx + 0xd8]
jbe 0x410d75
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x410d6e
push 1
push 0xffffffffffffffff
mov dword [0x511524], 0
call fcn.00401930
add esp, 8
mov dword [0x511524], 1
call esi
mov dword [0x5179a4], eax
test bl, bl
je 0x410d84
lea eax, [esp + 0x30]
call fcn.00410dd0
jmp 0x410d91
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0040f3e0
add esp, 4
cmp dword [0x51675c], 2
jne 0x410da5
mov edx, dword [0x51161c]
mov esi, dword [edx + 0x60]
jmp 0x410dad
mov eax, dword [0x51161c]
mov esi, dword [eax + 0x5c]
call fcn.00412ca0
dec ebp
jne 0x410d12
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x410dd0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
cmp dword [0x51675c], 0
push ebx
push esi
push edi
mov esi, eax
je 0x410deb
mov al, byte [0x514de3]
jmp 0x410f10
cmp dword [0x51600c], 0
je 0x410dfe
mov al, byte [0x515ed9]
jmp 0x410f10
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0x13], 0
call edi
mov ecx, 0x8000
test cx, ax
je 0x410e1f
mov byte [esp + 0xf], 0x10
push 0xa1
call edi
mov edx, 0x8000
test dx, ax
je 0x410e35
or byte [esp + 0xf], 0x20
push 0xa2
call edi
mov ecx, 0x8000
test cx, ax
je 0x410e4b
or byte [esp + 0xf], 1
push 0xa3
call edi
mov edx, 0x8000
test dx, ax
je 0x410e61
or byte [esp + 0xf], 2
push 0xa4
call edi
mov ecx, 0x8000
test cx, ax
je 0x410e77
or byte [esp + 0xf], 4
push 0xa5
call edi
mov edx, 0x8000
test dx, ax
je 0x410e8d
or byte [esp + 0xf], 8
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
je 0x410ea0
or byte [esp + 0xf], 0x40
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x410eb3
or byte [esp + 0xf], 0x80
cmp dword [0x51600c], 0
je 0x410f0c
mov bl, byte [esp + 0xf]
not bl
and bl, byte [0x515ed9]
je 0x410f0c
mov cl, byte [0x515edb]
mov al, bl
not al
and byte [0x515ed9], al
and byte [0x515eda], al
and cl, al
mov al, cl
mov byte [0x515edb], cl
mov ecx, 0x515f00
call fcn.00413870
mov eax, dword [0x514dd4]
test eax, eax
je 0x410f0c
test byte [eax + 8], bl
je 0x410f0c
mov dword [0x514dd4], 0
mov al, byte [esp + 0xf]
mov byte [esp + 0x10], al
mov ecx, dword [esp + 0x10]
push 1
and al, 0xc4
push 0
or al, 4
movzx edx, al
push 0
push ecx
push edx
mov eax, 0xffc3d44f
call fcn.00413090
movzx eax, word [esi]
add esp, 0x14
cmp eax, 0x30
jb 0x410f6f
lea esp, [esp]
cmp ax, 0x39
ja 0x410f6f
mov al, byte [esi]
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx ecx, al
push 0
push ecx
push 2
call fcn.00411200
movzx eax, word [esi + 2]
add esi, 2
add esp, 0x18
cmp eax, 0x30
jae 0x410f40
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.00411200
add esp, 0x18
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x412530
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 0x412711
mov edi, dword [ebp]
cmp edi, 0x80000000
je 0x412711
mov edx, dword [0x51675c]
cmp edx, 2
jne 0x4125a5
movzx ebx, byte [esp + 0x24]
neg ebx
sbb ebx, ebx
and ebx, 0x80000000
push 0
or ebx, 1
call fcn.004128f0
add esp, 4
call fcn.00412d70
cmp byte [esp + 0x24], 0
je 0x412711
mov dword [esi], SysReAllocString
mov dword [ebp], SysStringLen
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
or dword [ecx], 0x8001
cmp byte [esp + 0x24], 0
je 0x4125fa
cmp edx, 1
jne 0x4125e0
cmp dword [0x514de4], 0x80000000
jne 0x4125ce
push 0x514de4
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x514de4]
add dword [esi], eax
mov ecx, dword [0x514de8]
add dword [ebp], ecx
jmp 0x41261f
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 0x41261f
mov edx, dword [0x51161c]
movzx eax, word [edx + 0xf0]
shr eax, 2
and eax, 3
cmp eax, 2
je 0x41261f
push eax
mov edi, ebp
mov ebx, esi
call fcn.004a85f0
add esp, 4
cmp dword [0x51675c], 1
jne 0x412638
mov eax, dword [esi]
mov dword [0x514de4], eax
mov ecx, dword [ebp]
mov dword [0x514de8], 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 0x4126fb
cmp eax, 0x64
jle 0x412693
mov dword [esp + 0x20], 0x64
jmp 0x412697
test eax, eax
je 0x4126fb
cmp dword [0x51675c], 1
je 0x4126fb
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.00454f30
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.00412720
add esp, 4
call fcn.00412d70
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x412b50
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 8
cmp dword [0x51675c], 1
push ebx
jne 0x412c17
xor bl, bl
cmp dword [0x51600c], 0
mov byte [esp + 8], bl
je 0x412b76
mov bl, 1
mov byte [esp + 8], bl
cmp dword [0x516010], 0
je 0x412b86
or bl, 2
mov byte [esp + 8], bl
test bl, bl
je 0x412ba1
mov al, byte [0x514de2]
not al
and al, bl
movzx ecx, al
push 1
push ecx
call fcn.004093c0
add esp, 8
mov edx, dword [0x514df8]
mov eax, dword [0x514df4]
push 0x1c
push edx
push eax
call dword [0x517f50]
test bl, bl
je 0x412c95
mov cl, byte [0x514de2]
and cl, bl
test cl, 1
je 0x412bfe
push 1
call fcn.00413740
mov dl, byte [esp + 0x18]
mov cl, al
xor cl, dl
mov bl, cl
and bl, dl
not bl
and bl, byte [0x515edb]
and cl, al
or bl, cl
add esp, 4
mov byte [0x515edb], bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x514c20], eax
mov edx, dword [esp + 8]
pop ebx
add esp, 8
mov dword [esp + 8], 1
mov dword [esp + 4], edx
jmp fcn.004093c0
mov eax, dword [0x515ed0]
push 0
push eax
push 0x410f90
push 1
mov dword [0x514dec], 0
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x516014], eax
test eax, eax
je 0x412c95
mov byte [0x515efd], 1
push 1
push 0x8000012f
mov dword [0x511524], 0
call fcn.00401930
add esp, 8
cmp dword [0x516014], 0
mov dword [0x511524], 1
jne 0x412c46
mov eax, dword [0x514df8]
mov ecx, dword [0x514df4]
cmp dword [eax + ecx*8 - 8], 0
mov byte [0x515efd], 0
jne 0x412c95
mov ecx, dword [eax + ecx*8 - 4]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
pop ebx
add esp, 8
ret

Function at 0x412e60
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x5166f0]
test eax, eax
je 0x412f78
mov ecx, dword [0x5166f4]
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 [0x517a04]
mov dword [0x5166f8], eax
mov dword [esp + 4], edx
fild dword [esp + 4]
jns 0x412ebb
fadd dword [0x50a0a0]
fdiv qword [0x50a098]
mov ecx, dword [0x5166f4]
mov edx, dword [0x5166f0]
mov dword [0x517a04], 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 0x412f28
mov eax, dword [0x5166f4]
imul eax, eax, 0xd4
cmp esi, dword [0x5166fc]
je 0x412f19
mov ecx, dword [0x5166f0]
push 0x64
lea edx, [eax + ecx + 0xc]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x412f54
mov edx, dword [0x5166f0]
xor ecx, ecx
mov word [eax + edx + 0xc], cx
jmp 0x412f54
mov ecx, dword [0x5166f4]
mov edx, dword [0x5166f0]
imul ecx, ecx, 0xd4
mov eax, 0x4e5db0
lea edx, [ecx + edx + 0xc]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x412f45
mov eax, dword [0x5166f4]
inc eax
mov dword [0x5166fc], esi
mov dword [0x5166f4], eax
pop esi
cmp eax, dword [0x511528]
jl 0x412f78
mov dword [0x5166f4], 0
pop ecx
ret
Function at 0x412f80
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
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 0x412fac
cmp ebp, 2
jne 0x413082
cmp esi, ebp
je 0x413082
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
call edi
mov ecx, 0x8000
test cx, ax
je 0x412fdd
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.00411200
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 2
call fcn.00411200
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x516e90]
sete al
mov byte [esp + 0x14], al
test al, al
je 0x413033
push 1
push 0xffffffffffffffff
mov dword [0x511524], 0
call fcn.00401930
add esp, 8
mov dword [0x511524], 1
cmp bl, 0x14
jne 0x413082
cmp ebp, 2
jne 0x413082
push 0x14
call edi
test al, 1
je 0x413082
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push ebp
call fcn.00411200
add esp, 0x18
cmp byte [esp + 0x14], 0
je 0x413082
push 1
push 0xffffffffffffffff
mov dword [0x511524], 0
call fcn.00401930
add esp, 8
mov dword [0x511524], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret

Function at 0x413740
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x51600c], 0
je 0x413758
cmp byte [esp + 8], 0
jne 0x413758
mov al, byte [0x515ed9]
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 0x41377a
mov byte [esp + 7], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x413790
or byte [esp + 7], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4137a6
or byte [esp + 7], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4137bc
or byte [esp + 7], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4137d2
or byte [esp + 7], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x4137e8
or byte [esp + 7], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x4137fb
or byte [esp + 7], 0x40
push 0x5c
call esi
mov edx, 0x8000
pop esi
test dx, ax
je 0x41380f
or byte [esp + 3], 0x80
cmp dword [0x51600c], 0
je 0x41386a
push ebx
mov bl, byte [esp + 7]
not bl
and bl, byte [0x515ed9]
je 0x413869
mov cl, byte [0x515edb]
mov al, bl
not al
and byte [0x515ed9], al
and byte [0x515eda], al
and cl, al
mov al, cl
mov byte [0x515edb], cl
mov ecx, 0x515f00
call fcn.00413870
mov eax, dword [0x514dd4]
test eax, eax
je 0x413869
test byte [eax + 8], bl
je 0x413869
mov dword [0x514dd4], 0
pop ebx
mov al, byte [esp + 3]
pop ecx
ret
Function at 0x413da0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x34
push esi
xor esi, esi
push edi
test eax, eax
je 0x413dde
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 0x413dde
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413dde
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 0x413df0
Capabilities:
Get keyboard layout

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x280
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
push edi
xor ebx, ebx
push ebx
push eax
call ebp
mov edi, eax
test edi, edi
je 0x413e84
push 0x4e77a0
call fcn.0049fc00
lea edx, [esp + 0x10]
add esp, 4
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x413e22
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x413e76
push esi
push 0x4e7818
call fcn.0049fc00
push eax
xor eax, eax
lea esi, [esp + 0x90]
lea edx, [esp + 0x18]
call fcn.004a86e0
add esp, 8
pop esi
test eax, eax
je 0x413e76
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp dword [esp + 0x290], edi
je 0x413e84
push 0
push edi
call ebp
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x280
ret

Function at 0x414080
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 0x41417c
push ebx
push esi
push 0x100
lea edx, [esp + 0x24]
push 0
push edx
call fcn.004ce290
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 0x4140df
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 0x414118
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 0x41415c
push edi
push 1
push ebp
lea edi, [esp + 0x1b]
call fcn.00414340
add esp, 8
mov byte [esp + 0x12], al
pop edi
test al, al
je 0x41415c
mov al, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.00413870
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 0x414172
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 0x414340
Capabilities:
Log keystrokes via polling

Disassembly:
cmp si, 0xa
jne 0x414349
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 0x4143a6
cmp al, 0xff
jne 0x4143a6
cmp byte [esp + 0xc], 0
je 0x4143ab
movzx eax, si
test eax, 0xffffff80
jne 0x4143ab
push 0x103
push eax
call fcn.004c613e
add esp, 8
test eax, eax
je 0x4143ab
mov eax, esi
call fcn.00409dc0
mov bl, al
mov ecx, 1
mov eax, esi
call fcn.00409da0
test eax, eax
setne cl
test cl, 0x38
je 0x4143af
xor al, al
pop ebx
ret
test edi, edi
je 0x4143ef
mov dl, cl
and dl, 6
cmp dl, 6
jne 0x4143c2
or byte [edi], 8
jmp 0x4143e0
test cl, 2
je 0x4143d1
mov al, byte [edi]
test al, 3
jne 0x4143d1
or al, 1
mov byte [edi], al
test cl, 4
je 0x4143e0
mov al, byte [edi]
test al, 0xc
jne 0x4143e0
or al, 4
mov byte [edi], al
test cl, 1
je 0x4143ef
mov al, byte [edi]
test al, 0x30
jne 0x4143ef
or al, 0x10
mov byte [edi], al
mov al, bl
pop ebx
ret

Function at 0x414b40
Capabilities:
Log keystrokes

Disassembly:
movzx ecx, bx
mov eax, ecx
cmp eax, 0x11c
jg 0x414b9d
je 0x414b9a
sub eax, 0x1d
cmp eax, 0x36
ja case.0x414bae.286
movzx eax, byte [eax + 0x414c48]
jmp dword [eax*4 + 0x414bfc]
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.0x414bae.286
movzx edx, byte [eax + 0x414ca8]
jmp dword [edx*4 + 0x414c80]
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 0x414bf0
movzx eax, cl
push 1
or eax, 0xe000
push eax
call esi
test eax, eax
jne 0x414bf8
movzx ecx, bl
push 1
push ecx
call esi
pop esi
ret

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

Disassembly:
mov dword [0x514e10], eax
mov edx, 1
mov eax, 0x514e10
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, 0x5157cc
jl 0x414d00
mov dword [0x511510], 1
mov dword [0x5167b0], 1
pop edi
ret
Function at 0x414d40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x5167b0], 0
push esi
mov esi, 0x514e10
jne 0x414d5a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.00414cf0
mov dword [0x511510], 0x270
mov dword [0x514e08], 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 0x414d70
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 0x414da5
mov ecx, dword [esi]
mov eax, dword [0x514e10]
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 0x414e10
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x511510]
jne 0x414e1d
call fcn.00414d40
mov eax, dword [0x514e08]
mov ecx, dword [eax]
add eax, 4
mov dword [0x514e08], 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 0x414e60
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x511510]
jne 0x414e6e
call fcn.00414d40
mov ecx, dword [0x514e08]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x514e08], 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 0x414eb5
fadd qword [0x50a058]
fmul qword [0x50a0b0]
pop ecx
ret