joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400536d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rdi, rcx
lea rcx, str.CRtHDVBgProcWnd::OnUserLogOff__d__d_n
call fcn.1400022c0
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x80], ebx
bt dword [rdi + 0xaf4], 0xf
jae 0x1400538b1
mov qword [rsp + 0x98], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [0x1400c8d98]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400537d4
mov rbx, qword [rsp + 0x98]
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.Logoff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x98], 2
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Logoff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1400538a3
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400c8d98]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400538a3
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.Logoff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x98], 2
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Logoff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, 2
mov rcx, rdi
call fcn.140052a00
nop
test rbx, rbx
je 0x1400538cb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movabs rax, 1
jmp 0x1400538d5
movabs rax, 1
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x1400559f0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
lea rsi, [rcx + 0x500]
lea rax, [rcx + 0x868]
mov rdx, rcx
xor ebp, ebp
lea rcx, [0x140055aa0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov qword [0x1400f9e40], rax
mov qword [rsi], rbp
mov dword [rsp + 0x20], 4
call fcn.1400729c0
test rax, rax
mov rdi, rax
je 0x140055a89
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi + 0x58]
mov dword [rsp + 0x30], 2
mov r9, rsi
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400560e0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
lea rsi, [rcx + 0x4f8]
lea rbx, [rcx + 0x868]
mov rdi, rcx
lea edx, [rbp + 2]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov qword [rsi], rbp
mov dword [rsp + 0x20], ebp
call fcn.140034a70
lea rcx, [0x1400561b0]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x28], rbp
mov qword [0x1400f9e40], rbx
mov dword [rsp + 0x20], 4
call fcn.1400729c0
test rax, rax
mov rdi, rax
je 0x14005618c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi + 0x58]
mov dword [rsp + 0x30], 2
mov r9, rsi
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400569d0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140056a03
lea rcx, str.OpenProcessToken_fail_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x48
ret
lea r8, [rsp + 0x34]
lea rdx, str.SeSystemEnvironmentPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140056a66
lea rcx, str.Failed_RisePrivileges___r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x48
ret
Function at 0x140058c60
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x70
add ecx, 0xffffffff
xor ebx, ebx
cmp ecx, 6
ja case.default.0x140058c89
lea r8, [0x140000000]
movsxd rax, ecx
mov ecx, dword [r8 + rax*4 + 0x58e30]
add rcx, r8
jmp rcx
xor edx, edx
mov ecx, 0xaf
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [rsp + 0x28], 0xaf
mov word [rsp + 0x50], 0xaf
jmp 0x140058dd8
xor edx, edx
mov ecx, 0xaf
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, 0x28
lea rdx, [rsp + 0x20]
lea ecx, [r8 - 0x26]
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x48], 1
mov word [rsp + 0x28], 0xaf
mov word [rsp + 0x50], 0xaf
mov word [rsp + 0x2a], bx
mov word [rsp + 0x52], bx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x2c], ebx
mov dword [rsp + 0x54], 2
call qword [sym.imp.USER32.dll_SendInput]
xor edx, edx
mov ecx, 0xaf
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [rsp + 0x28], 0xaf
mov word [rsp + 0x50], 0xaf
jmp 0x140058dd8
xor edx, edx
mov ecx, 0xae
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, 0x28
lea rdx, [rsp + 0x20]
lea ecx, [r8 - 0x26]
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x48], 1
mov word [rsp + 0x28], 0xae
mov word [rsp + 0x50], 0xae
mov word [rsp + 0x2a], bx
mov word [rsp + 0x52], bx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x2c], ebx
mov dword [rsp + 0x54], 2
call qword [sym.imp.USER32.dll_SendInput]
xor edx, edx
mov ecx, 0xae
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [rsp + 0x28], 0xae
mov word [rsp + 0x50], 0xae
jmp 0x140058dd8
test edx, edx
je 0x140058dbd
mov eax, 1
add rsp, 0x70
pop rbx
ret
xor edx, edx
mov ecx, 0xb3
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [rsp + 0x28], VariantTimeToSystemTime
mov word [rsp + 0x50], VariantTimeToSystemTime
mov r8d, 0x28
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 1
lea ecx, [r8 - 0x26]
mov dword [rsp + 0x48], 1
mov word [rsp + 0x2a], bx
mov word [rsp + 0x52], bx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x2c], ebx
mov dword [rsp + 0x54], 2
call qword [sym.imp.USER32.dll_SendInput]
mov ebx, 1
mov eax, ebx
add rsp, 0x70
pop rbx
ret
Function at 0x14005ae50
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0
mov rbx, rcx
je 0x14005ae69
mov eax, 1
add rsp, 0x20
pop rbx
ret
lea rcx, str.SRCOM64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx + 8], rax
je 0x14005b008
lea rdx, str.sffxInit
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxFree
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetPower
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetPower
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetUserControlValue
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetUserControlValue
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxResetPreset
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetPreset
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetPreset
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetNumPresets
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetDefaultPlaybackDevice
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetSelectedPlaybackDevice
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetNumPlaybackDevices
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetPlaybackDeviceIndex
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetJackState
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetNumJackStates
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetJackStateInfo
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x90], rax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14005b008
call rax
cmp eax, 0x80000001
je 0x14005b008
mov dword [rbx], 1
mov eax, dword [rbx]
add rsp, 0x20
pop rbx
ret
Function at 0x14005ce40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x58], 0xfffffffffffffffe
test rcx, rcx
jne 0x14005ce5d
xor eax, eax
jmp 0x14005d012
mov dword [rsp + 0x80], 1
lea rdx, [rsp + 0x48]
call fcn.14003a360
nop
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rsi - 8], 0
jl 0x14005ce9c
cmp rax, qword [rsi - 0x18]
jne 0x14005ce9c
lea rbx, [rsi - 0x18]
lock add dword [rsi - 8], 1
jmp 0x14005ceda
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rsi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x14005ceb8
call fcn.140001a80
int3
mov eax, dword [rsi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rsi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rsi
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.14008e4d0
lea rax, [rbx + 0x18]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14005d840
nop
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x98], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005cfbc
mov rbx, qword [rsp + 0x98]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
test rbx, rbx
je 0x14005cfbc
lea rdx, [rsp + 0x30]
lea rcx, [0x1400c1460]
call fcn.1400153e0
test eax, eax
js 0x14005cfac
mov dword [rsp + 0x88], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x90]
xor r8d, r8d
mov rdi, qword [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov edi, dword [rsp + 0x80]
test rbx, rbx
je 0x14005cfd2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14005cff5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock xadd dword [rsi - 8], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14005d010
mov rcx, qword [rsi - 0x18]
mov r8, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005d600
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
mov eax, 0x200f8
call fcn.1400b18a0
sub rsp, rax
mov rax, qword [0x1400f0bc8]
xor rax, rsp
mov qword [rsp + 0x200e0], rax
lea rcx, [rsp + 0xe2]
xor edx, edx
mov r8d, 0xfffc
mov word [rsp + 0xe0], 0
call fcn.1400926c0
lea rcx, [rsp + 0x100e2]
xor edx, edx
mov r8d, 0xfffc
mov word [rsp + 0x100e0], 0
call fcn.1400926c0
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14005d778
mov qword [rsp + 0x200f0], rdi
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0xe0]
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x200f0]
not rcx
cmp word [rsp + rcx*2 + 0xdc], 0x5c
jne 0x14005d6af
mov word [rsp + rcx*2 + 0xdc], ax
lea r8, [0x1400c1d38]
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.14008f840
lea r8, str.SRSLabs
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.14008f840
lea r8, [0x1400c1d38]
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.14008f840
lea r8, str.176F4E15_8F7C_4833_ADED_81FAE8CCD186
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.14008f840
lea r8, str._slInit64.dll
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.14008f840
lea r8, str.rundll32.exe
lea rcx, [rsp + 0x100e0]
mov edx, 0x7fff
call fcn.14008f840
lea r8, [rsp + 0xe0]
lea rcx, [rsp + 0x100e0]
mov edx, 0x7fff
call fcn.14008f840
lea r8, str._SRS_InitializeEndpoints_Rundll32
lea rcx, [rsp + 0x100e0]
mov edx, 0x7fff
call fcn.14008f840
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005d825
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1400926c0
xor eax, eax
lea rdx, [rsp + 0x100e0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x40], rax
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14005d825
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov rcx, qword [rsp + 0x200e0]
xor rcx, rsp
call fcn.14008e4b0
add rsp, 0x200f8
ret
xor eax, eax
mov rcx, qword [rsp + 0x200e0]
xor rcx, rsp
call fcn.14008e4b0
add rsp, 0x200f8
ret
Function at 0x1400617e0
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x1400f0bc8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x48], rdx
lea rcx, str.CWmiEventSink::ServiceBIOSPackage_enter_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x140061968
lea rcx, [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x80
call fcn.1400927c0
mov r12, qword [rsp + 0x50]
mov rsi, r12
shr rsi, 0x10
mov rbp, r12
shr rbp, 0x20
mov r14, r12
shr r14, 0x30
mov r15, qword [rsp + 0x58]
shr r15, 0x10
call fcn.140062978
mov rcx, rax
test rax, rax
setne bl
test ebx, ebx
jne 0x1400618a1
mov ecx, 0x80004005
call fcn.140001950
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
movzx eax, bp
movzx r9d, si
movzx r8d, r12w
mov dword [rsp + 0x20], eax
lea rdx, str.WmiBuffer0_x_WmiBuffer1_x_WmiBuffer2_x_r_n
lea rcx, [rsp + 0x30]
call fcn.140001e50
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movzx r11d, r15w
movzx r9d, word [rsp + 0x58]
mov r8d, r14d
mov dword [rsp + 0x20], r11d
lea rdx, str.WmiBuffer3_x_WmiBuffer4_x_WmiBuffer5_x_r_n
lea rcx, [rsp + 0x30]
call fcn.140001e50
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp r12w, 2
jne 0x14006194c
test si, si
je 0x14006191e
cmp si, 0x10
jne 0x14006194c
cmp bp, 0x150
jne 0x14006194c
lea rcx, str.Wmi_Event_Key_______r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [r13 + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8063
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140061968
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 8]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14008e4b0
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140064d4c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
test r8d, r8d
mov rbx, rcx
jne 0x140064d5e
xor eax, eax
jmp 0x140064d8f
mov rcx, qword [rcx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140064d8b
mov rbx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.14007aa68
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x140066b8c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.14007b690
test rax, rax
mov rsi, rax
je 0x140066c09
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
test rbx, rbx
movzx edi, ax
je 0x140066c04
cmp dword [rbx], 0x38
jb 0x140066c04
mov rax, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x140066c04
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x140066c0d
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140067ae4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.14006fcf0
mov rbx, rax
mov rax, qword [rax + 0x78]
test rax, rax
je 0x140067b1b
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x140067b1b
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
mov rbx, qword [rbx + 0xa0]
je 0x140067b4b
test rbx, rbx
je 0x140067b4b
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140067b4b
mov rax, qword [rbx]
or rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [rax + 0x2d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14006af50
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0xa0], 0
mov rbx, rdx
mov rsi, rcx
jne 0x14006b008
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r8, qword [rbx]
mov edx, 1
mov ecx, dword [r8 - 0xc]
sub edx, dword [r8 - 8]
movsxd rdi, eax
sub ecx, edi
or edx, ecx
jge 0x14006afa0
mov edx, edi
mov rcx, rbx
call fcn.140001970
test edi, edi
mov rdx, qword [rbx]
js 0x14006affd
cmp edi, dword [rdx - 0xc]
jg 0x14006affd
mov dword [rdx - 0x10], edi
mov rax, qword [rbx]
lea r8d, [rdi + 1]
and word [rax + rdi*2], 0
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14006afd1
xor eax, eax
jmp 0x14006afda
call fcn.140091f00
test eax, eax
js 0x14006aff2
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14006aff2
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
and word [rax + rcx*2], 0
jmp 0x14006b018
mov ecx, 0x80070057
call fcn.140001950
int3
mov ecx, 0x80070057
call fcn.140001950
int3
mov rcx, qword [rcx + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x118]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14006db54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x14006dbbc
call fcn.14006fca0
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14006dbbc
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x14006dbde
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14006d5b0
test rdi, rdi
mov esi, eax
je 0x14006dbdc
test rbx, rbx
je 0x14006dbdc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x14006ff40
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xa8], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14006ffb7
call fcn.14006fecc
test rax, rax
mov rsi, rax
jne 0x14006ff73
mov eax, edi
jmp 0x14006ffcd
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x14006ff6f
mov r9, qword [rcx + 0xd0]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret