joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40afdd
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x10], ebx
mov ebp, edx
cmp edi, 0xffffffff
jne 0x40affe
push ebp
call fcn.004a90d0
pop ecx
mov edi, eax
cmp edi, 2
jbe 0x40b087
lea eax, [ebx + 2]
xor edx, edx
mov dword [esp + 0x18], eax
lea eax, [edi - 3]
push 3
pop ecx
div ecx
mov ebx, dword [esp + 0x18]
lea edx, [eax + 1]
mov esi, edx
shl esi, 2
movzx ecx, byte [ebp]
sub edi, 3
movzx eax, byte [ebp + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + 2]
shl ecx, 8
add ebp, 3
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 2], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 1], al
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
lea ebx, [ebx + 4]
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 3], al
sub edx, 1
jne 0x40b024
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x40b0e1
movzx ecx, byte [ebp]
shl ecx, 0x10
cmp edi, 1
jbe 0x40b0a0
movzx eax, byte [ebp + 1]
shl eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], al
cmp edi, 1
jbe 0x40b0d3
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40b0d5
mov al, 0x3d
mov byte [esi + ebx + 2], al
mov byte [esi + ebx + 3], 0x3d
add esi, 4
pop edi
mov byte [esi + ebx], 0
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40c940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bbefd
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4f0014]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
je 0x40c980
push str.stdout
push esi
mov ecx, 0x4effc8
call fcn.0040aa3e
mov eax, dword [0x4f0014]
cmp eax, 2
je 0x40cb06
mov eax, dword [0x4f0914]
mov dword [ebp - 0x44], vtable.TextStream.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 0xffffffff
je 0x40c9d9
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x40c9d9
mov byte [ebp - 0x2a], al
mov dword [ebp - 0x44], vtable.TextFile.0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push dword [edi + 0x6d0]
push 2
push dword [ebp + 0x10]
call fcn.00483e40
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
push esi
call fcn.00484630
mov edx, dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
test edx, edx
je 0x40ca53
cmp dword [ebp - 0x18], 0
jne 0x40ca53
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
cmp eax, fcn.00484a70
jne 0x40ca45
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
jmp 0x40ca4e
push edx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call eax
xor edx, edx
mov dword [ebp - 0x3c], edx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
cmp eax, fcn.00484a10
jne 0x40ca91
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xffffffff
je 0x40ca9c
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40ca89
push ecx
call esi
mov edx, dword [ebp - 0x3c]
or ecx, 0xffffffff
mov dword [ebp - 0x10], ecx
jmp 0x40ca9c
lea ecx, [ebp - 0x44]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], vtable.TextFile.0
test edx, edx
je 0x40cacb
cmp dword [ebp - 0x18], 0
jne 0x40cacb
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push ecx
call edi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x1c], ax
cmp ecx, 0xffffffff
je 0x40caef
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40cae8
push ecx
call esi
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], vtable.TextStream.0
test eax, eax
je 0x40cb06
push eax
call fcn.004a45b2
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e9e0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4000
call fcn.004badd0
push ebp
push esi
mov esi, dword [esp + 0x4018]
push edi
mov edi, ecx
test esi, esi
jne 0x40ea13
mov esi, dword [edi + 0x63c]
test esi, esi
jne 0x40ea13
mov ecx, dword [edi + 0x274]
movzx eax, word [edi + 0x278]
jmp 0x40ea1b
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
mov ebp, dword [esp + 0x4010]
test ebp, ebp
je 0x40eb05
push ebx
push dword [esp + 0x4018]
movzx eax, ax
push str.Warning:
push eax
mov eax, dword [0x4ef190]
movzx ecx, cx
push dword [eax + ecx*4]
lea eax, [esp + 0x20]
push str._s___d__:____s_s_n
push 0x2000
push eax
call fcn.004868c0
mov ebx, eax
add esp, 0x1c
mov eax, dword [esp + 0x401c]
cmp word [eax], 0
je 0x40ea8c
push eax
mov ecx, 0x2000
lea eax, [esp + 0x14]
push str._____Specifically:__s_n
sub ecx, ebx
lea eax, [eax + ebx*2]
push ecx
push eax
call fcn.004868c0
add esp, 0x10
add ebx, eax
cmp ebp, 3
jne 0x40eab0
push 0x4d7c6c
push ebx
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040c940
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x4000
ret 0x10
mov eax, dword [0x4f0010]
test eax, eax
je 0x40ead2
push str.stderr
lea eax, [esp + 0x14]
mov ecx, 0x4effc8
push eax
call fcn.0040aa3e
mov eax, dword [0x4f0010]
cmp eax, 2
je 0x40eae2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, 2
jne 0x40eb04
push 0
push esi
push dword [esp + 0x4024]
mov ecx, 0x4f0050
push 1
push dword [esp + 0x4028]
call fcn.0040d820
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x4000
ret 0x10
Function at 0x4130c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
xor al, al
mov bl, cl
cmp dword [0x4ef014], 0
mov ecx, 1
push ebp
movzx eax, al
mov bh, dl
cmovne eax, ecx
mov byte [esp + 0xb], bh
cmp dword [0x4ef010], 0
push esi
push edi
mov dword [esp + 0x14], eax
je 0x4130fd
or eax, 2
mov dword [esp + 0x14], eax
cmp bl, al
je 0x4132fa
test al, al
jne 0x41313e
test bh, bh
jne 0x41313e
push 0x4ef148
push 0
push 0
push 0x4133d0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4f0920], eax
test eax, eax
je 0x4131f6
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx edi, bh
xor esi, esi
xor edi, 1
movzx ebp, bl
nop dword [eax]
push edi
push ebp
push 0x417
push dword [0x4ef148]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x413175
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x413150
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor bh, bh
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, eax
mov dh, bl
mov dl, bh
test bl, bl
je 0x413203
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x4131e1
cmp dword [esp + 0x24], 0
je 0x41321d
mov bh, 1
call fcn.00413840
test al, al
jne 0x41321d
cmp byte [esp + 0x13], al
jne 0x4132cd
xor bl, bl
lea eax, [esp + 0x18]
push eax
push dword [0x4f0920]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x41322a
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x41321d
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x413187
call fcn.00413860
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x13], 0
mov bh, dl
mov bl, dh
je 0x4131c6
call fcn.00413840
test al, al
je 0x4132c9
jmp 0x4131e1
cmp byte [esp + 0x13], 0
jne 0x4132c9
jmp 0x413245
push dword [0x4f0920]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4f0920], 0
call fcn.00413860
mov al, byte [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
and al, 1
cmp dword [0x4ef014], 0
je 0x413270
test al, al
jne 0x41328a
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4f0918], eax
jmp 0x41328a
test al, al
je 0x41328a
push dword [0x4f0918]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4f0918], 0
mov eax, dword [esp + 0x14]
and al, 2
cmp dword [0x4ef010], 0
je 0x4132af
test al, al
jne 0x4132c9
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4f091c], eax
jmp 0x4132c9
test al, al
je 0x4132c9
push dword [0x4f091c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4f091c], 0
test bh, bh
je 0x4132fa
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4ea820], 0
mov edx, 0x10000
mov ecx, str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
call fcn.0048be80
add esp, 8
mov dword [0x4ea820], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4197c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov bl, byte [ebp + 0xc]
mov bh, cl
or byte [ebp + 8], bl
mov al, bh
dec al
mov dword [esp + 8], edx
push esi
push edi
cmp al, 5
ja 0x4197e5
cmp bh, 3
jne 0x4197ed
mov al, bh
add al, 0x66
cmp al, 5
ja 0x4197f4
mov byte [esp + 0xf], 1
jmp 0x4197f9
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x419929
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x4f09b0], 0
jne 0x419873
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4ea828]
sub eax, dword [0x4f0734]
cmp eax, dword [ecx + 0x54]
jbe 0x419879
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 0x419868
mov edx, 1
mov dword [0x4ea820], 0
or ecx, 0xffffffff
call fcn.004016d0
mov dword [0x4ea820], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4f0734], eax
mov ecx, dword [0x4ea828]
cmp byte [ebp + 0x18], 0
jne 0x4198cd
mov al, byte [ecx + 0x91]
test al, al
je 0x419895
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x41989a
mov esi, 0xffc3d44f
cmp dword [0x4f09b0], 0
je 0x4198aa
mov al, byte [0x4f09a4]
jmp 0x4198b1
xor cl, cl
call fcn.0041c490
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.0041bd90
mov ecx, dword [0x4ea828]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x4198f7
test edi, edi
jne 0x4198f7
push dword [ebp + 0x28]
movzx eax, byte [ecx + 0x8f]
mov cl, bh
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
push eax
push 1
push dword [ebp + 0x24]
call fcn.0041ac00
add esp, 0x14
jmp 0x41991a
movzx eax, byte [ecx + 0x91]
mov dl, bh
mov ecx, 0xffc3d44d
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x14]
push 1
push edi
push dword [esp + 0x1c]
call fcn.00419d60
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x419810
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x419965
cmp dword [0x4f09b0], 0
je 0x41993f
mov al, byte [0x4f09a4]
jmp 0x419946
xor cl, cl
call fcn.0041c490
not bl
and bl, al
and bl, 0xcc
je 0x419965
push 0xffc3d44d
push 0
push 1
push edi
mov dl, bl
xor cl, cl
call fcn.0041bd90
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419970
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x44
mov eax, dword [0x4f09b0]
cmp eax, 2
push ebx
push esi
push edi
mov esi, edx
sete byte [esp + 0xf]
jne 0x4199bf
movzx edx, cx
mov ecx, edx
and ecx, 0xffffff80
je 0x41999b
mov eax, 0x30
mov word [esp + 0x30], ax
test ecx, ecx
lea eax, [esp + 0x30]
lea edi, [esp + 0x32]
push 0xa
cmovne eax, edi
push eax
push edx
call fcn.004a9051
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [0x4f09b0]
jmp 0x4199c2
movzx ebx, cx
test esi, esi
jle 0x419a71
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x419a29
call edi
mov ecx, dword [0x4ea828]
sub eax, dword [0x4f0734]
cmp eax, dword [ecx + 0x54]
jbe 0x419a29
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call ebp
test eax, eax
je 0x419a22
mov edx, 1
mov dword [0x4ea820], 0
or ecx, 0xffffffff
call fcn.004016d0
mov dword [0x4ea820], 1
call edi
mov dword [0x4f0734], eax
cmp byte [esp + 0x13], 0
je 0x419a3b
lea ecx, [esp + 0x34]
call fcn.00419a80
jmp 0x419a46
mov dl, byte [esp + 0x58]
mov ecx, ebx
call fcn.004182b0
cmp dword [0x4f09b0], 2
mov eax, dword [0x4ea828]
jne 0x419a59
mov ecx, dword [eax + 0x68]
jmp 0x419a5c
mov ecx, dword [eax + 0x64]
call fcn.0041b900
sub esi, 1
je 0x419a70
mov eax, dword [0x4f09b0]
jmp 0x4199d7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x41b790
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 8
cmp dword [0x4f09b0], 1
push esi
mov byte [esp + 7], dl
mov esi, ecx
jne 0x41b86a
xor al, al
cmp dword [0x4ef014], 0
push ebx
movzx ebx, al
mov eax, 1
cmovne ebx, eax
cmp dword [0x4ef010], 0
mov dword [esp + 0xc], ebx
je 0x41b7d0
or ebx, 2
mov dword [esp + 0xc], ebx
test bl, bl
je 0x41b850
mov cl, byte [0x4f09a5]
mov dl, al
not cl
and cl, bl
call fcn.004130c0
push 0x1c
push dword [0x4ef18c]
push dword [0x4f0998]
call dword [sym.imp.USER32.dll_SendInput]
mov al, byte [0x4f09a5]
and al, bl
test al, 1
je 0x41b842
mov cl, 1
call fcn.0041c490
mov bl, al
mov byte [0x4ef01e], al
xor bl, byte [esp + 0xb]
mov dl, bl
mov byte [0x4ef01f], al
and dl, byte [esp + 0xb]
and bl, al
not dl
and dl, byte [0x4ef01d]
or dl, bl
mov byte [0x4ef01d], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0xc]
mov dword [0x4eeecc], eax
mov cl, bl
mov dl, 1
pop ebx
pop esi
add esp, 8
jmp fcn.004130c0
push 0x1c
push dword [0x4ef18c]
push dword [0x4f0998]
call dword [sym.imp.USER32.dll_SendInput]
pop ebx
pop esi
add esp, 8
ret
push 0
push dword [0x4eee04]
mov dword [0x4f09a0], 0
push 0x419b10
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4eedd8], eax
test eax, eax
je 0x41b865
mov byte [0x4ef00d], 1
nop dword [eax]
mov edx, 1
mov dword [0x4ea820], 0
mov ecx, 0x8000012f
call fcn.004016d0
cmp dword [0x4eedd8], 0
mov dword [0x4ea820], 1
jne 0x41b8a0
mov eax, dword [0x4ebf2c]
mov byte [0x4ef00d], 0
mov ecx, dword [eax]
mov eax, dword [0x4f0998]
cmp dword [ecx + eax*8 - 8], 0
jne 0x41b865
mov eax, dword [ecx + eax*8 - 4]
mov dword [esi], eax
pop esi
add esp, 8
ret

Function at 0x41bad0
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, dword [0x4eee00]
test edi, edi
je 0x41bbe1
mov ax, word [esp + 8]
push esi
imul esi, dword [0x4eee18], 0xd4
mov byte [esi + edi + 6], cl
mov byte [esi + edi], dl
mov word [esi + edi + 2], ax
mov eax, 0x69
mov word [esi + edi + 4], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [0x4eee00]
mov ecx, edx
mov dword [0x4eee14], edx
sub ecx, dword [0x4f0900]
mov dword [0x4f0900], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4e2010]
imul ecx, dword [0x4eee18], 0xd4
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4e1f0c]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4eee00]
test esi, esi
je 0x41bba5
cmp esi, dword [0x4eee10]
je 0x41bb90
imul edx, dword [0x4eee18], 0xd4
push 0x64
add edx, 0xc
add eax, edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x4eee18]
jmp 0x41bbc1
mov edx, dword [0x4eee18]
imul ecx, edx, 0xd4
xor edi, edi
mov word [ecx + eax + 0xc], di
jmp 0x41bbc1
mov edx, dword [0x4eee18]
imul ecx, edx, 0xd4
mov dword [ecx + eax + 0xc], 0x2f004e
mov dword [ecx + eax + 0x10], 0x41
inc edx
mov dword [0x4eee10], esi
mov dword [0x4eee18], edx
pop esi
cmp edx, dword [0x4ea82c]
jl 0x41bbe1
mov dword [0x4eee18], 0
pop edi
ret
Function at 0x41bc80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov bl, cl
push edi
movzx ebp, bl
mov edi, edx
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
movzx esi, ax
xor esi, 0xffffffff
and esi, 1
inc esi
cmp edi, 1
je 0x41bcaa
cmp edi, 2
jne 0x41bd7c
cmp esi, edi
je 0x41bd7c
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x41bcd8
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00419d60
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.00419d60
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4f0038]
sete bh
jne 0x41bd2d
mov edx, 1
mov dword [0x4ea820], 0
or ecx, 0xffffffff
call fcn.004016d0
mov dword [0x4ea820], 1
cmp bl, 0x14
jne 0x41bd7c
cmp edi, 2
jne 0x41bd7c
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x41bd7c
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, edi
call fcn.00419d60
add esp, 0x10
test bh, bh
je 0x41bd7c
lea edx, [edi - 1]
mov dword [0x4ea820], 0
or ecx, 0xffffffff
call fcn.004016d0
mov dword [0x4ea820], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x41c490
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4ef014], 0
je 0x41c4a5
test cl, cl
jne 0x41c4a5
mov al, byte [0x4ef01f]
pop ecx
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
call esi
test ax, ax
push 0xa1
setns bl
dec bl
and bl, 0x10
call esi
mov cl, bl
or cl, 0x20
test ax, ax
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
push 0xa2
mov dword [esp + 0xc], edx
call esi
mov edx, dword [esp + 8]
mov cl, dl
or cl, 1
test ax, ax
movzx ebx, cl
movzx ecx, dl
push 0xa3
cmovns ebx, ecx
call esi
mov cl, bl
or cl, 2
test ax, ax
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
push 0xa4
mov dword [esp + 0xc], edx
call esi
mov edx, dword [esp + 8]
mov cl, dl
or cl, 4
test ax, ax
movzx ebx, cl
movzx ecx, dl
push 0xa5
cmovns ebx, ecx
call esi
mov cl, bl
or cl, 8
test ax, ax
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
push 0x5b
mov dword [esp + 0xc], edx
call esi
mov edx, dword [esp + 8]
mov cl, dl
or cl, 0x40
test ax, ax
movzx ebx, cl
movzx ecx, dl
push 0x5c
cmovns ebx, ecx
call esi
mov cl, bl
or cl, 0x80
test ax, ax
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
cmp dword [0x4ef014], 0
mov dword [esp + 8], edx
mov bh, dl
je 0x41c60c
mov bl, dl
not bl
and bl, byte [0x4ef01f]
cmp byte [0x4ef00e], 0
je 0x41c5c8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ef120]
cmp eax, 0x14
jae 0x41c5c8
mov dl, byte [0x4ef00e]
mov ecx, dword [esp + 8]
mov bh, cl
test bl, dl
je 0x41c5c8
mov al, dl
not al
and bl, al
or bh, dl
test bl, bl
je 0x41c60c
mov dl, byte [0x4ef01d]
mov al, bl
not al
mov ecx, 0x4ef020
and byte [0x4ef01f], al
and dl, al
and byte [0x4ef01e], al
mov byte [0x4ef01d], dl
call fcn.0041c620
mov eax, dword [0x4ef14c]
test eax, eax
je 0x41c60c
test byte [eax + 8], bl
je 0x41c60c
mov dword [0x4ef14c], 0
pop esi
mov al, bh
pop ebx
pop ecx
ret
Function at 0x41ca10
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x288
xor eax, eax
push ebp
mov ebp, ecx
nop dword [eax + eax]
mov edx, dword [eax*8 + 0x4f0940]
test edx, edx
je 0x41ca39
cmp edx, ebp
je 0x41cab3
inc eax
cmp eax, 0xa
jl 0x41ca20
cmp eax, 0xa
mov ecx, 9
push ebx
cmovl ecx, eax
xor ebx, ebx
push ebx
push ebp
mov dword [esp + 0x14], ecx
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov dword [esp + 8], eax
test eax, eax
je 0x41cb23
push esi
push edi
mov ecx, 0x19
lea edi, [esp + 0x18]
mov esi, str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
lea eax, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x41cac2
push ebx
push ecx
lea eax, [esp + 0x98]
push eax
push str.Layout_File
lea edx, [esp + 0x28]
call fcn.00487f10
add esp, 0x10
test eax, eax
je 0x41cac2
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x41cac4
mov eax, dword [eax*8 + 0x4f0944]
pop ebp
add esp, 0x288
ret
xor esi, esi
mov eax, dword [esp + 0x10]
cmp ebp, eax
je 0x41cad5
push 0
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test esi, esi
je 0x41cb21
push str.KbdLayerDescriptor
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41cb1a
call eax
mov ebx, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x41cb0f
cmp dword [esp + 0x10], 0
je 0x41cb0f
mov ebx, dword [ebx + 0x50]
jmp 0x41cb12
mov ebx, dword [ebx + 0x28]
not ebx
and ebx, 1
add ebx, 3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, dword [esp + 0xc]
mov dword [eax*8 + 0x4f0944], ebx
mov dword [eax*8 + 0x4f0940], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0x288
ret
Function at 0x41cb40
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x114
push ebx
push esi
mov al, cl
mov ebx, edx
push edi
mov byte [esp + 0xd], al
xor edi, edi
cmp byte [edi*8 + 0x4ea95c], al
je 0x41ccbf
inc edi
cmp edi, 0x6b
jl 0x41cb53
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
mov al, byte [esp + 0xd]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x41cc51
push ebp
push 0x100
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004a2dc0
add esp, 0xc
lea eax, [esp + 0x14]
xor ebp, ebp
push esi
push ebp
push 2
push eax
lea eax, [esp + 0x34]
push eax
push ebp
push 0x6e
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 2
jne 0x41cbb8
movzx ebp, word [esp + 0x14]
movzx edi, byte [esp + 0x11]
lea eax, [esp + 0x14]
push esi
push 0
push 2
push eax
lea eax, [esp + 0x34]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov dword [esp + 0x20], eax
test eax, eax
jns 0x41cbf6
push esi
push 0
push 2
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0x6e
call dword [sym.imp.USER32.dll_ToUnicodeEx]
test bp, bp
je 0x41cc3e
push 1
push esi
lea edx, [esp + 0x1a]
mov ecx, ebp
call fcn.0041cee0
add esp, 8
mov byte [esp + 0x13], al
test al, al
je 0x41cc3e
mov dl, byte [esp + 0x12]
lea ecx, [esp + 0x24]
call fcn.0041c620
push esi
push 0
push 2
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
movzx eax, byte [esp + 0x27]
push 0
push eax
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp dword [esp + 0x20], 0
pop ebp
je 0x41cc4d
movzx eax, word [esp + 0x10]
jmp 0x41cc61
xor eax, eax
jmp 0x41cc61
push esi
movzx edi, al
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
movzx eax, ax
mov word [ebx], ax
test ax, ax
je 0x41cc7b
xor eax, eax
pop edi
mov word [ebx + 2], ax
mov eax, ebx
pop esi
pop ebx
add esp, 0x114
ret
cmp byte [esp + 0x128], 0
je 0x41ccae
cmp byte [esp + 0xd], 0
je 0x41ccae
push edi
push str.vk_02X
push dword [esp + 0x12c]
push ebx
call fcn.004868c0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x114
ret
xor eax, eax
pop edi
mov word [ebx], ax
mov eax, ebx
pop esi
pop ebx
add esp, 0x114
ret
mov esi, dword [esp + 0x124]
dec esi
push esi
push dword [edi*8 + 0x4ea958]
push ebx
call fcn.004afab4
add esp, 0xc
xor eax, eax
mov word [ebx + esi*2], ax
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x114
ret