joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4556c0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov edi, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00464230
mov esi, eax
test esi, esi
je 0x455819
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.004b73c0
mov ebx, eax
test ebx, ebx
je 0x455819
push 0
push esi
mov byte [esp + 0x1b], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
test edi, edi
je 0x455796
cmp edi, dword [0x4fdb70]
je 0x455796
mov eax, dword [0x50010c]
test al, 1
jne 0x45574c
push str.IsHungAppWindow
or eax, 1
push str.user32
mov dword [0x50010c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x500110], eax
jmp 0x455751
mov eax, dword [0x500110]
test eax, eax
je 0x45575a
push esi
call eax
jmp 0x455778
lea eax, [esp + 0x14]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
jne 0x45579c
push 1
push edi
push dword [0x4fdb70]
call esi
test eax, eax
setne byte [esp + 0x13]
jmp 0x45579c
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x4557f9
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
call fcn.004b55f0
mov eax, dword [0x4f90f4]
cmp dword [eax + 0x58], 0xffffffff
jle 0x4557f9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fdb70], eax
je 0x4557e6
mov eax, dword [0x4f90f4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4557f9
mov ecx, dword [0x4f90f4]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004018d0
cmp byte [esp + 0x13], 0
je 0x45580b
push 0
push edi
push dword [0x4fdb70]
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x455846
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4cfc30
push 0
push 0x4e613c
mov ecx, edi
call fcn.0044e0b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x45ae90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x241c
call fcn.004cd440
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
push edi
push dword [0x4fe680]
lea ebp, [esp + 0x430]
push str.__s_s
mov eax, ebp
push 0x800
push eax
call fcn.004b0fe0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
add esp, 0x14
cmp esi, 0x800
jge 0x45aefc
lea eax, [esp + 0x42a]
push eax
call ebx
cmp eax, 0xffffffff
je 0x45aefc
mov dword [esp + esi*2 + 0x428], 0x22
mov esi, dword [0x4fe680]
jmp 0x45afc3
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.004b2510
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x45af48
nop dword [eax]
test esi, esi
jne 0x45af48
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.004b2510
mov edx, eax
add esp, 0x10
test edx, edx
je 0x45af20
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [esp + ecx + 0x18]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x21e], ax
test ax, ax
jne 0x45af50
test edx, edx
je 0x45b068
push edi
lea eax, [esp + 0x224]
push eax
push str.__s_s
lea eax, [esp + 0x434]
push 0x800
push eax
call fcn.004b0fe0
mov esi, eax
add esp, 0x14
cmp esi, 0x800
jge 0x45b068
lea eax, [esp + 0x42a]
push eax
call ebx
cmp eax, 0xffffffff
je 0x45b068
mov dword [esp + esi*2 + 0x428], 0x22
lea esi, [esp + 0x220]
cmp byte [esp + 0x17], 0
je 0x45b039
push str.AutoHotkey.exe
push esi
push str.__s_s
lea eax, [esp + 0x1434]
push 0x800
push eax
call fcn.004b0fe0
mov ebx, eax
add esp, 0x14
cmp ebx, 0x800
jge 0x45b022
lea eax, [esp + 0x142a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45b022
mov dword [esp + ebx*2 + 0x1428], 0x22
lea ebp, [esp + 0x1428]
lea eax, [esp + 0x428]
jmp 0x45b03e
cmp esi, dword [0x4fe680]
jne 0x45b039
mov ebp, dword [0x4fe67c]
lea eax, [esp + 0x428]
jmp 0x45b03e
mov eax, 0x4cfc30
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ebp
mov ecx, 0x4fdb90
call fcn.0044f7c0
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x241c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x241c
ret
Function at 0x45f040
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
push edi
mov edi, dword [0x4fd228]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 8]
xor edx, edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.0041f4a0
mov bl, al
add esp, 0xc
test bl, bl
jne 0x45f0de
push 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0047b140
add esp, 4
test eax, eax
jne 0x45f0a4
push 1
push eax
push 0xffffffffffffffff
push 0x4cfc30
mov ecx, edi
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, eax
mov dword [esp + 0x20], 0
call fcn.0047b3a0
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004b4e80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
movzx esi, word [eax]
test esi, 0xffffff80
je 0x45f0f0
xor eax, eax
jmp 0x45f0fc
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
cmp ecx, 0x50
je 0x45f11a
xor eax, eax
mov edx, 2
cmp ecx, 0x54
cmovne edx, eax
jmp 0x45f11f
mov edx, 1
mov cl, bl
call fcn.0047b300
push 1
test al, al
mov edx, 0x4ee98c
push 0
mov ecx, 0x4ee988
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45f150
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4fd228]
push 0
call fcn.004b55f0
mov eax, dword [ebp + 8]
test eax, eax
je 0x45f248
cmp word [eax], 0
je 0x45f248
push 0x103
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x20]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x226], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f1b0
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x1e], 0x5c
je 0x45f1d9
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x45f248
mov dword [esp + ecx*2 + 0x20], 0x5c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x45f248
cmp byte [ebp + 0xc], 0
je 0x45f207
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
jmp 0x45f20f
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
call fcn.004b55f0
mov ecx, dword [0x4fd228]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.00401470
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x45f274
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x4cfc30
push 0
push 0x4e613c
mov ecx, esi
call fcn.0044e0b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4610b0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x4610e4
cmp word [esi + 2], 0x3a
jne 0x4610e4
cmp word [esi + 4], 0
jne 0x4610e4
mov word [esp + 8], ax
lea esi, [esp + 8]
xor eax, eax
mov dword [esp + 0xa], 0x5c003a
mov word [esp + 0xe], ax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x46113c
cmp byte [0x4fe688], al
je 0x461162
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x461120
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop esi
add esp, 0x10
ret
mov ecx, dword [0x4fe1dc]
push 0x4cfc30
push 0
push 0x4e613c
call fcn.0044e0b0
pop esi
add esp, 0x10
ret
cmp byte [0x4fe688], 0
je 0x461162
mov ecx, esi
call fcn.00461170
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
call fcn.004b55f0
pop esi
add esp, 0x10
ret

Function at 0x461170
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004cd440
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
lea ecx, [esp + 4]
cmove ecx, esi
pop esi
test ecx, ecx
je 0x4611a7
push ecx
push ecx
mov ecx, 0x4fab54
call fcn.0047bc00
add esp, 0x10000
ret

Function at 0x4611b0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004cd440
lea eax, [esp]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4611e1
lea eax, [esp]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add esp, 4
add esp, 0x10000
ret
xor eax, eax
add esp, 0x10000
ret
Function at 0x461ad0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x461ba6
cmp word [ebx], 0
je 0x461ba6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x461b19
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
shr eax, 4
and al, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
cmp esi, ebx
jbe 0x461b8e
cmp word [esi - 2], 0x3a
je 0x461b8e
test edi, edi
je 0x461b51
xor eax, eax
mov edx, ebx
mov ecx, ebx
mov word [esi], ax
call fcn.00461ad0
mov ecx, 0x5c
mov word [esi], cx
jmp 0x461b83
mov edi, esi
sub edi, ebx
sar edi, 1
lea eax, [edi*2 + 2]
call fcn.004cd470
mov esi, esp
push edi
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov edx, esi
mov word [esi + edi*2], ax
mov ecx, esi
call fcn.00461ad0
mov esi, dword [ebp - 4]
cmp word [esi + 2], 0
je 0x461bb0
test al, al
je 0x461bb0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462e50
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
push edi
test esi, esi
je 0x462e9f
push 0
push 1
mov ecx, esi
call fcn.00401690
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x462e7a
mov edi, dword [esi + 0xc]
jmp 0x462e7c
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x462e96
test byte [edi + 0x15], 8
je 0x462e8f
mov ecx, edi
call fcn.004014f0
add edi, 0xc
mov edi, dword [edi]
jmp 0x462ed5
mov edi, 0x4ffb08
mov edi, dword [edi]
jmp 0x462ed5
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
lea edx, [esp + 0x20]
call fcn.004b5020
add esp, 4
test eax, eax
jne 0x462ecd
mov eax, dword [0x4f90f4]
pop edi
pop esi
pop ebx
mov dword [eax + 0x30], 0
xor eax, eax
add esp, 8
ret 8
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
push ebp
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x462f3a
xor ecx, ecx
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x462f13
push ecx
lea eax, [esp + 0x24]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, edi
sete al
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f90f4]
push ebp
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x462f4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f90f4]
xor edi, edi
mov dword [ecx + 0x30], eax
pop ebp
test esi, esi
jne 0x462f5a
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test edi, edi
je 0x462f7d
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
call fcn.004b55f0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x462faa
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
push 0x4cfc30
push 0
push 0x4e613c
call fcn.0044e0b0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x462fe0
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
movzx eax, word [ebx]
mov ebp, ecx
mov edi, ebx
test ax, ax
je 0x4630b6
test ebx, ebx
je 0x463035
mov esi, eax
nop
mov ecx, 0x4eef38
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x4630b6
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x463010
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x463000
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f90f4]
mov dword [ecx + 0x30], eax
test esi, esi
je 0x463076
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
call fcn.004b55f0
pop edi
pop esi
pop ebp
pop ebx
ret 4
test byte [ecx + 0x100], 1
jne 0x46309c
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0x4cfc30
push 0
push 0x4e613c
mov ecx, ebp
call fcn.0044e0b0
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0x462fd0
push 0
push 1
push ebx
mov ecx, ebp
call fcn.00463630
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x463330
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x100
push esi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4fd228]
push 0
call fcn.004b55f0
mov eax, dword [esp + 0x108]
test eax, eax
je 0x463414
cmp word [eax], 0
je 0x463414
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4633ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f90f4]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x4633ac
mov ecx, dword [0x4fb9e4]
push 1
push 0
push edi
push 0x4e613c
call fcn.004b55f0
pop edi
pop esi
add esp, 0x100
ret 4
push 0x4cfc30
push 0
push 0x4e613c
mov ecx, esi
call fcn.0044e0b0
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4f90f4]
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
mov dword [eax + 0x30], 0
call fcn.004b55f0
mov edx, edi
lea ecx, [esp + 8]
call fcn.004b2130
mov ecx, dword [0x4fd228]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b55f0
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x463449
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop esi
add esp, 0x100
ret 4
push 0x4cfc30
push 0
push 0x4e613c
mov ecx, esi
call fcn.0044e0b0
pop esi
add esp, 0x100
ret 4

Function at 0x463470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ebx
movzx eax, word [edi]
mov dword [esp + 0x1c], edx
test ax, ax
je 0x46356c
mov ecx, eax
nop word [eax + eax]
movzx esi, cx
test esi, 0xffffff80
je 0x4634bf
xor eax, eax
jmp 0x4634d3
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov edx, dword [esp + 0x24]
add esp, 8
mov ebx, dword [esp + 0x18]
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
add ecx, 0xffffffd5
cmp ecx, 0x33
ja case.0x4634ec.44
movzx eax, byte [ecx + 0x4635b8]
jmp dword [eax*4 + 0x463594]
movzx eax, word [edi]
mov dword [esp + 0x10], eax
jmp case.0x4634ec.44
mov ecx, 1
jmp 0x46352b
mov ecx, 0x20
jmp 0x46352b
mov ecx, 4
jmp 0x46352b
mov ecx, 2
jmp 0x46352b
mov ecx, 0x80
jmp 0x46352b
mov ecx, 0x1000
jmp 0x46352b
mov ecx, 0x100
mov eax, dword [esp + 0x10]
sub eax, 0x2b
je 0x46354a
sub eax, 2
je 0x463542
sub eax, 0x31
jne case.0x4634ec.44
xor edx, ecx
jmp 0x463556
not ecx
and ebx, ecx
and edx, ecx
jmp 0x463552
mov eax, ecx
not eax
and ebx, eax
or edx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x4634b0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x4635f0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00463630
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x463e80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
push ebx
push esi
push edi
push 1
push 0
mov esi, ecx
mov ecx, dword [0x4fd228]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x2c], esi
call fcn.004b55f0
mov edi, dword [ebp + 8]
test edi, edi
je 0x463fe3
cmp word [edi], 0
je 0x463fe3
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x463f01
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x463efd
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x463f46
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x463f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f90f4]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jmp 0x463ff6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x3c]
xor esi, esi
or esi, dword [esp + 0x40]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0xc]
movzx edi, word [eax]
test edi, 0xffffff80
je 0x463f58
xor eax, eax
jmp 0x463f6c
push 2
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov edx, dword [esp + 0x1c]
add esp, 8
mov esi, dword [esp + 0x10]
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
sub ecx, 0x4b
je 0x463f88
sub ecx, 2
jne 0x463f9e
push ecx
push 0x100000
jmp 0x463f8f
push 0
push 0x400
push edx
push esi
call fcn.004cd350
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x4f90f4]
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
mov dword [eax + 0x30], 0
call fcn.004b55f0
mov ecx, dword [0x4fd228]
push 0x18
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00401470
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x464017
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4cfc30
push 0
push 0x4e613c
mov ecx, esi
call fcn.0044e0b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x464040
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov bl, cl
mov ebp, edx
mov byte [esp + 0x13], bl
xor edx, edx
mov ecx, edi
call fcn.00414b40
mov esi, eax
test esi, esi
je 0x46408e
lea eax, [esi - 1]
cmp eax, 6
ja case.0x46406c.5
jmp dword [eax*4 + 0x46420c]
mov edx, esi
mov dword [ebp], 7
mov cl, bl
call fcn.0041e300
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push str.AlwaysOn
push edi
call esi
add esp, 8
test eax, eax
jne 0x4640a8
lea esi, [eax + 3]
jmp case.0x46406c.3
push str.AlwaysOff
push edi
call esi
add esp, 8
test eax, eax
jne case.0x46406c.7
mov esi, 4
mov al, byte [esp + 0x13]
xor ebx, ebx
cmp esi, 3
movzx edi, al
push edi
setne bl
inc ebx
mov dword [ebp], ebx
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
call ebp
xor eax, 0xffffffff
and eax, 1
inc eax
cmp eax, ebx
je 0x4641b6
push edi
call ebp
mov bl, byte [esp + 0x13]
test ax, ax
jns 0x464111
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0041c230
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.0041c230
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4fdb70]
sete bh
jne 0x464166
mov edx, 1
mov dword [0x4f90ec], 0
or ecx, 0xffffffff
call fcn.004018d0
mov dword [0x4f90ec], 1
cmp bl, 0x14
jne 0x4641b6
cmp esi, 3
je 0x4641b6
push edi
call ebp
test al, 1
je 0x4641b6
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 2
call fcn.0041c230
add esp, 0x10
test bh, bh
je 0x4641b6
mov edx, 1
mov dword [0x4f90ec], 0
or ecx, 0xffffffff
call fcn.004018d0
mov dword [0x4f90ec], 1
mov cl, byte [0x4fbbd7]
or cl, 1
cmp dword [0x4fba18], 0
mov byte [0x4fbbd7], cl
jne case.0x46406c.5
movzx eax, byte [0x4fbc94]
movzx edx, word [0x4fc56c]
push eax
movzx eax, cl
mov ecx, dword [0x4fc55c]
push eax
call fcn.00413450
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [ebp], 7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret