joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400365d0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
lea rax, vtable.CManagedPointingDeviceList.0
mov qword [rcx], rax
mov rcx, qword [rcx + 0x68]
test rcx, rcx
je 0x140036601
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rdx, qword [rbx + 0x50]
test rdx, rdx
je 0x140036612
mov rcx, rbx
call fcn.140038aa0
mov rdx, qword [rbx + 0x58]
test rdx, rdx
je 0x140036623
mov rcx, rbx
call fcn.140038aa0
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x140036634
mov rcx, rbx
call fcn.140038aa0
mov rdx, qword [rbx + 0x70]
test rdx, rdx
je 0x140036645
mov rcx, rbx
call fcn.140038aa0
mov rcx, rbx
call fcn.1400378c0
nop
lea rax, vtable.CSynList_class_CManagedPointingDevice_.0
mov qword [rbx], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140036685
nop word [rax + rax]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14006bb60
cmp qword [rsp + 0x40], 0
jne 0x140036670
lea rcx, [rbx + 0x20]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
Function at 0x14003b460
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
xor eax, eax
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], rax
mov qword [rsp + 0x90], rax
or rbx, 0xffffffffffffffff
call fcn.14003dfa0
cmp word [rax], 0
je 0x14003b4f0
xor eax, eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x40], 0x38
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call fcn.14003dfa0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003b4f0
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x1402dc4ac]
test al, 1
jne 0x14003b511
or eax, 1
mov dword [0x1402dc4ac], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402dc4a8], eax
jmp 0x14003b517
mov eax, dword [0x1402dc4a8]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14003b53d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x1402dc4a8]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x14003b56c
xor edx, edx
lea r9, [0x14016e900]
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x14003b581
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x14003b590
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
lea r11, [rsp + 0x80]
mov rax, rdi
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14003b5b0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
xor eax, eax
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], rax
mov qword [rsp + 0x90], rax
or rbx, 0xffffffffffffffff
call fcn.14003dfa0
cmp word [rax], 0
je 0x14003b640
xor eax, eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x40], 0x38
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call fcn.14003dfa0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003b640
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x1402dc4b4]
test al, 1
jne 0x14003b661
or eax, 1
mov dword [0x1402dc4b4], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402dc4b0], eax
jmp 0x14003b667
mov eax, dword [0x1402dc4b0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14003b68d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x1402dc4b0]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x14003b6bc
xor edx, edx
lea r9, [0x14016e910]
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x14003b6d1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x14003b6e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
lea r11, [rsp + 0x80]
mov rax, rdi
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14003b700
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
xor eax, eax
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], rax
mov qword [rsp + 0x90], rax
or rbx, 0xffffffffffffffff
call fcn.14003dfa0
cmp word [rax], 0
je 0x14003b790
xor eax, eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x40], 0x38
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call fcn.14003dfa0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003b790
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x1402dc4a4]
test al, 1
jne 0x14003b7b1
or eax, 1
mov dword [0x1402dc4a4], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402dc4a0], eax
jmp 0x14003b7b7
mov eax, dword [0x1402dc4a0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14003b7dd
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x1402dc4a0]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x14003b80c
xor edx, edx
lea r9, [0x14016e8f0]
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x14003b821
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x14003b830
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
lea r11, [rsp + 0x80]
mov rax, rdi
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14003b850
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
xor eax, eax
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], rax
mov qword [rsp + 0x90], rax
or rbx, 0xffffffffffffffff
call fcn.14003dfa0
cmp word [rax], 0
je 0x14003b8e0
xor eax, eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x40], 0x38
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call fcn.14003dfa0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003b8e0
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x1402dc49c]
test al, 1
jne 0x14003b901
or eax, 1
mov dword [0x1402dc49c], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402dc498], eax
jmp 0x14003b907
mov eax, dword [0x1402dc498]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14003b92d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x1402dc498]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x14003b95c
xor edx, edx
lea r9, [0x14016e8e0]
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x14003b971
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x14003b980
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
lea r11, [rsp + 0x80]
mov rax, rdi
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400456a0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
xor r8d, r8d
mov rcx, rax
xor edx, edx
call fcn.1400d26a0
mov edi, eax
bt eax, 0x12
jae 0x1400456de
mov rcx, rbx
call fcn.140045c30
test al, al
je 0x1400456de
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
bt edi, 0x13
jae 0x1400456f0
mov rcx, rbx
call fcn.140045bb0
test al, al
jne 0x1400456d1
bt edi, 0x14
jae 0x140045702
mov rcx, rbx
call fcn.140045cf0
test al, al
jne 0x1400456d1
bt edi, 0x16
jae 0x140045722
lea rcx, [0x140046120]
mov rdx, rbx
mov byte [rbx + 0x28], 0
call qword [sym.imp.USER32.dll_EnumWindows]
cmp byte [rbx + 0x28], 0
jne 0x1400456d1
bt edi, 0x15
jae 0x140045734
mov rcx, rbx
call fcn.140045e80
test al, al
jne 0x1400456d1
mov rbx, qword [rsp + 0x30]
test edi, 0x1800000
setne al
add rsp, 0x20
pop rdi
ret

Function at 0x140045bb0
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call fcn.140116270
cmp eax, 0xa
jl 0x140045c1d
mov rcx, rbx
call fcn.140045f60
mov dword [rbx + 0x1c], eax
cmp eax, 0xffffffff
je 0x140045c1d
lea rcx, [0x140045ff0]
mov rdx, rbx
mov word [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rbx + 0x20], 0
je 0x140045c02
mov al, 1
add rsp, 0x20
pop rbx
ret
cmp byte [rbx + 0x18], 0
je 0x140045c1d
movsxd rax, dword [rbx + 0x1c]
lea rcx, [0x14025ea6a]
shl rax, 4
cmp byte [rax + rcx], 0
jne 0x140045bfa
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140045c30
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x238
xor ecx, ecx
call fcn.140116270
cmp eax, 0xb
jge 0x140045c4d
xor al, al
add rsp, 0x238
ret
xor eax, eax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x230], rbx
mov word [rsp + 0x20], ax
call fcn.14011fa60
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rdx, [rsp + 0x20]
mov rcx, rax
mov r8d, 0x104
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [rsp + 0x20], 0
je 0x140045cd3
mov rdx, qword [str.NativeHWNDHost]
mov rcx, rbx
call fcn.14011ba30
test al, al
je 0x140045cd3
mov rcx, qword [str.Charm_Bar]
lea rdx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1401228e4
test eax, eax
jne 0x140045cd3
mov al, 1
mov rbx, qword [rsp + 0x230]
add rsp, 0x238
ret
xor al, al
mov rbx, qword [rsp + 0x230]
add rsp, 0x238
ret
Function at 0x140045f60
Capabilities:
Get keyboard layout

Disassembly:
mov r11, rsp
sub rsp, 0x78
xor eax, eax
lea rdx, [r11 - 0x58]
xor ecx, ecx
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x20], 0x48
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
mov rcx, qword [rsp + 0x28]
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r8d, dword [reloc.OLEAUT32.dll_SysStringLen]
mov rdx, rax
xor eax, eax
shr edx, 0x10
test r8d, r8d
jle 0x140045fe1
lea rcx, [0x14025ea68]
cmp dx, word [rcx]
je 0x140045fe4
inc eax
add rcx, 0x10
cmp eax, r8d
jl 0x140045fd1
or eax, 0xffffffff
add rsp, 0x78
ret
Function at 0x1400483a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [rsp + 0x70]
mov rbx, rcx
mov dword [rcx + 0x28e8], 1
mov qword [rcx + 0x2978], rax
movzx eax, word [rsp + 0x78]
mov dword [rcx + 0x2974], 2
mov word [rcx + 0x2980], ax
mov ecx, 0x14
mov edi, r9d
mov r14, r8
movzx esi, dx
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebp, ax
mov ecx, 0x10
and ebp, 1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and eax, 1
mov dword [rbx + 0x28e4], eax
je 0x140048429
xor ecx, ecx
test edi, edi
cmove eax, ecx
mov dword [rbx + 0x28e4], eax
mov ecx, dword [rbx + 0x28e0]
test ecx, ecx
jne 0x14004843d
test edi, edi
jne 0x14004843d
cmp si, 0xd
je 0x14004848b
movzx eax, si
add eax, 0xffffffa5
cmp eax, 2
jbe 0x14004848b
cmp dword [rbx + 0x59a0], 0
je 0x14004848b
cmp ecx, 0x100
je 0x14004848b
mov edx, dword [rbx + 0x28e4]
mov dword [rsp + 0x30], 1
lea rcx, [rbx + 0x28c0]
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], edx
mov r9d, edi
movzx edx, si
mov r8, r14
call fcn.1400467b0
mov eax, 1
jmp 0x14004848d
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140048890
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
xor ecx, ecx
mov rdi, r9
mov esi, r8d
mov r15, rdx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edx, 0xfff
movzx r10d, ax
movzx r14d, ax
mov eax, 0x412
and r10w, dx
mov rcx, rbp
cmp r10w, ax
sete r12b
and rcx, rdx
cmp rcx, rax
sete r13b
cmp esi, 0x100
ja 0x140048929
je 0x140048959
mov eax, esi
sub eax, 0x7b
je 0x14004899e
cmp eax, 0xc
jne 0x140048ae0
mov eax, dword [rbx + 0x59a0]
neg eax
sbb rax, rax
and eax, 4
or rax, 3
jmp 0x1400489ff
cmp esi, 0x105
ja 0x140048abf
je 0x140048a2a
mov eax, esi
sub eax, 0x101
je 0x140048a2a
dec eax
je 0x1400489fa
cmp eax, 2
jne 0x140048ae0
cmp dword [rbx + 0x59a0], 0
jne 0x1400489a2
lea rax, [rdi - 9]
test rax, 0xfffffffffffffffb
jne 0x1400489a2
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, r15
shr eax, 0xf
and eax, 1
movsxd rbx, eax
call qword [sym.imp.USER32.dll_GetParent]
xor r9d, r9d
lea edx, [r9 + 0x28]
mov rcx, rax
mov r8, rbx
call qword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x1400489ff
mov r8d, 1
movzx edx, di
mov rcx, rbx
call fcn.1400482e0
test eax, eax
je 0x1400489fa
mov r8, qword [rsp + 0x90]
mov r9d, 1
movzx edx, di
mov rcx, rbx
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], rbp
call fcn.1400483a0
test eax, eax
je 0x140048a1f
mov r9d, dword [rbx + 0x28e0]
mov r8d, 1
dec r9d
movzx edx, di
mov rcx, rbx
call fcn.140048bc0
mov eax, 1
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x1400489fa
test byte [0x1402d741c], 4
mov rsi, qword [rsp + 0x90]
je 0x140048a68
movzx eax, r14w
mov qword [rsp + 0x30], rsi
lea r8, str.ulLocale0x_8x__ulLang0x_8x__wParam0x_2x__lParam0x_2x_n
lea rcx, str.CMacroDialog::MyEditProc
mov r9, rbp
mov edx, 3
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call fcn.14011a490
test r13b, r13b
jne 0x140048a72
test r12b, r12b
je 0x140048a89
cmp rdi, 0xe5
jne 0x140048a89
mov eax, 0x80000000
test rax, rsi
jne 0x1400489fa
xor r9d, r9d
mov r8, rsi
movzx edx, di
mov rcx, rbx
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], rbp
call fcn.1400483a0
test eax, eax
je 0x140048a1f
mov r9d, dword [rbx + 0x28e0]
dec r9d
xor r8d, r8d
jmp 0x1400489ef
mov eax, esi
sub eax, 0x106
je 0x1400489fa
sub eax, 0xb
je 0x1400489fa
cmp eax, 0xf4
je 0x14004899e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rbx + 0x5998]
mov r9, rdi
mov r8d, esi
mov rdx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x1400489ff
Function at 0x140048bc0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x240
lea rbp, [rcx + 0x28c0]
mov rbx, rcx
mov edi, r9d
mov rcx, rbp
mov r14d, r8d
movzx esi, dx
call fcn.140047670
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
mov r15d, eax
call fcn.14011fa60
lea rcx, [rdi + 0xde]
lea rdx, [rsp + 0x30]
lea r9, [rcx + rcx*2]
mov r8d, 0x104
add r9, r9
mov ecx, dword [rbx + r9*8]
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
movzx edx, si
mov rcx, rbp
call fcn.140047670
test eax, eax
jle 0x140048c50
test r14d, r14d
je 0x140048c4a
inc dword [rbp + 0x30c8]
jmp 0x140048c50
dec dword [rbp + 0x30c8]
test r15d, r15d
je 0x140048d0e
cmp word [rsp + 0x30], 0
je 0x140048d5e
lea rsi, [0x140173db4]
mov eax, 0x7b
xor edi, edi
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rbx + 0x5990]
mov rcx, qword [rbx + 0x5998]
movsxd r9, eax
mov r8d, 0x102
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_CallWindowProcW]
movzx eax, word [rsi + 2]
lea rsi, [rsi + 2]
test eax, eax
jne 0x140048c80
movzx eax, word [rsp + 0x30]
lea rsi, [rsp + 0x30]
test eax, eax
je 0x140048cee
nop dword [rax]
mov rdx, qword [rbx + 0x5990]
mov rcx, qword [rbx + 0x5998]
movsxd r9, eax
mov r8d, 0x102
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_CallWindowProcW]
movzx eax, word [rsi + 2]
lea rsi, [rsi + 2]
test eax, eax
jne 0x140048cc0
lea rax, [0x140173db8]
cmp r14d, 1
lea rdx, str._UP
cmove rdx, rax
mov rcx, rbx
call fcn.140048d90
jmp 0x140048d5e
cmp r14d, 1
jne 0x140048d5e
movzx eax, word [rsp + 0x30]
lea rsi, [rsp + 0x30]
test eax, eax
je 0x140048d5e
xor edi, edi
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rbx + 0x5990]
mov rcx, qword [rbx + 0x5998]
movsxd r9, eax
mov r8d, 0x102
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_CallWindowProcW]
movzx eax, word [rsi + 2]
lea rsi, [rsi + 2]
test eax, eax
jne 0x140048d30
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14004b110
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14004b13e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14004b570
cmp byte [0x1402dc560], 0
jne 0x14004b189
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004b179
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1402dc560], 1
mov qword [0x1402dc558], rax
jmp 0x14004b190
mov rax, qword [0x1402dc558]
mov byte [0x1402dc560], 1
jmp 0x14004b190
mov rax, qword [0x1402dc558]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14004b1af
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14004b5e4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14004b5ff
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14004b5ff
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14004b5ff
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x14004b430
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x260
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x40]
or r9d, 0x2001f
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
call fcn.14004b330
mov ebx, eax
test eax, eax
jne 0x14004b540
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x290]
lea r9, [rsp + 0x280]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x280], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14004b51a
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14004b430
mov ebx, eax
test eax, eax
jne 0x14004b540
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x290]
lea r9, [rsp + 0x280]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x280], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14004b4c0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14004b52f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x48], ebp
call fcn.14004b110
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14004b550
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004b570
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14004b13e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14004b570
cmp byte [0x1402dc560], 0
jne 0x14004b189
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004b179
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1402dc560], 1
mov qword [0x1402dc558], rax
jmp 0x14004b190
mov rax, qword [0x1402dc558]
mov byte [0x1402dc560], 1
jmp 0x14004b190
mov rax, qword [0x1402dc558]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14004b1af
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14004b5e4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14004b5ff
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14004b5ff
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14004b5ff
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret