joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004ee28
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rax + 0x10], ebx
test rcx, rcx
je 0x14004eecf
mov qword [rax - 0x18], rbx
lea r8d, [rbx + 3]
mov dword [rax - 0x20], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x28], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004eecf
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rbx
lea r8d, [rbx + 2]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x14004eebc
cmp dword [rsp + 0x58], 2
jne 0x14004eebc
mov eax, 0xfeff
cmp word [rsp + 0x50], ax
je 0x14004eeb7
mov eax, 0xfffe
cmp word [rsp + 0x50], ax
jne 0x14004eebc
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14004eed1
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140056f4c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1400ece98]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebx, ebx
lea rdi, [r11 - 0x28]
mov word [rsp + 0x34], bx
mov r14, rdx
mov rsi, rcx
movzx eax, word [rsi]
lea rdx, [rsp + 0x28]
mov word [rsp + 0x30], ax
lea rcx, [rsp + 0x30]
movzx eax, word [rsi + 2]
lea rsi, [rsi + 4]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov word [rsp + 0x32], ax
call qword [sym.imp.msvcrt.dll_wcstol]
nop dword [rax + rax]
mov byte [rdi], al
lea rax, [rsp + 0x34]
cmp qword [rsp + 0x28], rax
jne 0x140056fea
inc ebx
inc rdi
cmp ebx, 3
jb 0x140056f81
movzx ecx, byte [rsp + 0x21]
movzx eax, byte [rsp + 0x22]
shl ecx, 8
shl eax, 0x10
or ecx, eax
movzx eax, byte [rsp + 0x20]
or ecx, eax
mov dword [r14], ecx
xor eax, eax
jmp 0x140056fef
mov eax, 0x80004005
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400842d0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140057288
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400ece98]
xor rax, rsp
mov qword [rsp + 0x230], rax
and qword [rdx], 0
mov rbx, rcx
mov ecx, CSocketFile::CSocketFile
mov rsi, rdx
call fcn.140083de0
mov rdi, rax
test rax, rax
jne 0x1400572f2
lea r9, [0x1400a4c88]
mov r8d, 0x2e6
lea rdx, str.GetTempDirFile
lea rcx, str.Error:_Func__s_Line__d:_Out_of_memory_for_temp_file_name
call fcn.1400571dc
mov eax, 0x8007000e
jmp 0x140057398
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
ja 0x14005734a
mov r9, rdi
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140057393
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str.Error:_Func__s_Line__d:_GetTempFileName_failed
mov r8d, 0x2f3
jmp 0x140057363
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str.Error:_Func__s_Line__d:_GetTempPath_failed
mov r8d, 0x2ee
lea r9, [0x1400a4c88]
mov ebx, eax
lea rdx, str.GetTempDirFile
call fcn.1400571dc
test ebx, ebx
je 0x140057393
mov rcx, rdi
call sub.msvcrt.dll_free
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x140057398
mov qword [rsi], rdi
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400842d0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140058660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x20
and qword [r9], 0
mov r14, r9
xor r9d, r9d
mov r8d, 0x9cbc
mov rdi, rcx
lea edx, [r9 + 0x17]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
lea rbp, str.shellosshell_accesorywordpadutils.cpp
mov rsi, rax
test rax, rax
jne 0x1400586c3
mov edx, Ordinal_1489
mov rcx, qword [rsp + 0x38]
mov r8, rbp
call fcn.14000b3bc
mov ebx, eax
jmp 0x140058726
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400586e2
mov edx, 0x5d2
jmp 0x1400586b2
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
test rax, rax
jne 0x140058700
mov edx, 0x5d5
jmp 0x1400586b2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
test rax, rax
jne 0x14005871b
mov edx, Ordinal_1499
jmp 0x1400586b2
mov dword [rsp + 0x50], ebx
xor ebx, ebx
mov qword [rsp + 0x48], rax
test ebx, ebx
jns 0x140058743
mov edx, 0x5e8
mov rcx, qword [rsp + 0x38]
mov r8, rbp
mov r9d, ebx
call fcn.14000b384
mov eax, ebx
jmp 0x14005876e
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
nop dword [rax + rax]
mov qword [r14], rax
test rax, rax
jne 0x14005876c
mov ebx, 0x8007000e
mov edx, Ordinal_1519
jmp 0x14005872f
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140063ea4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x18], 0
mov rax, rdx
and qword [rbp - 0x10], 0
lea rdx, [rbp - 0x10]
and dword [r8], 0
mov rsi, rcx
mov rcx, rax
mov rdi, r8
call qword [sym.imp.ole32.dll_StringFromCLSID]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140063f61
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140063f13
mov ebx, 1
jmp 0x140063f61
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x20]
and dword [rbp + 0x30], 0
lea r9, [rbp + 0x30]
and dword [rbp + 0x38], 0
lea rdx, str.Compatibility_Flags
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp + 0x38]
mov dword [rbp - 0x20], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140063f61
cmp dword [rbp + 0x30], 4
jne 0x140063f61
mov eax, dword [rbp + 0x38]
mov dword [rdi], eax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140063f76
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140063f8b
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140063fa4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1400ece98]
xor rax, rsp
mov qword [rbp + 0x390], rax
and qword [rsp + 0x50], 0
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionWordpadCOMChecks
and qword [rsp + 0x48], 0
mov rsi, rdx
mov rdi, rcx
mov r15d, 0x104
mov edx, r15d
lea rcx, [rsp + 0x70]
mov ebx, 1
call fcn.140009cc8
test eax, eax
js 0x1400641ec
lea r8, [0x1400a8e48]
mov edx, r15d
lea rcx, [rsp + 0x70]
call fcn.140009d54
test eax, eax
js 0x1400641ec
lea r8, str.KillbitList
mov edx, r15d
lea rcx, [rsp + 0x70]
call fcn.140009d54
test eax, eax
js 0x1400641ec
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400641c0
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x40]
mov rdx, rdi
call fcn.140063ea4
test eax, eax
js 0x1400641c0
test dword [rsp + 0x40], 0x400
jne 0x1400640a1
xor ebx, ebx
jmp 0x1400641c0
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromCLSID]
nop dword [rax + rax]
test eax, eax
js 0x1400641c0
xor edi, edi
lea r8, [rsp + 0x70]
mov dword [rsp + 0x58], 0x4e
mov rdx, r15
lea rcx, [rbp + 0x180]
call fcn.140009cc8
test eax, eax
js 0x1400641c0
lea r8, [0x1400a8e48]
mov rdx, r15
lea rcx, [rbp + 0x180]
call fcn.140009d54
test eax, eax
js 0x1400641c0
mov r8, qword [rsp + 0x48]
lea rcx, [rbp + 0x180]
mov rdx, r15
call fcn.140009d54
test eax, eax
js 0x1400641c0
lea rax, [rsp + 0x58]
mov r9d, 0x20000002
mov qword [rsp + 0x30], rax
lea r8, str.AlternateCLSID
mov rax, qword [rsp + 0x48]
lea rdx, [rbp + 0x180]
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000002
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x1400641c0
movups xmm0, xmmword [0x1400a3b10]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ole32.dll_CLSIDFromString]
nop dword [rax + rax]
test eax, eax
js 0x1400641c0
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
call fcn.140063ea4
test eax, eax
js 0x1400641ab
test dword [rsp + 0x40], 0x400
je 0x1400641b7
add edi, ebx
cmp edi, 0xa
jge 0x1400641c0
jmp 0x1400640bf
movups xmm0, xmmword [rsp + 0x60]
movdqu xmmword [rsi], xmm0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400641d6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400641ec
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400842d0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x140064684
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x38
xor ebx, ebx
mov dword [rbp + 0x28], 4
mov dword [rbp + 0x20], ebx
mov qword [rbp + 0x30], rbx
mov dword [rbp + 0x18], ebx
cmp word [rcx], bx
je 0x140064725
lea rax, [rbp + 0x30]
mov rdx, rcx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140064725
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x20]
xor r8d, r8d
lea rdx, str.ComCheckOn
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140064715
cmp dword [rbp + 0x18], 4
jne 0x140064715
lea eax, [rbx + 1]
cmp dword [rbp + 0x20], eax
cmove ebx, eax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x38
pop rbx
pop rbp
ret

Function at 0x140064738
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x38
xor ebx, ebx
mov dword [rbp + 0x28], 4
lea rax, [rbp + 0x30]
mov dword [rbp + 0x20], ebx
mov r9d, 0x20019
mov qword [rbp + 0x30], rbx
xor r8d, r8d
mov dword [rbp + 0x18], ebx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionWordpadCOMChecks
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400647dc
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x20]
xor r8d, r8d
lea rdx, str.BlockAllObjects
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400647cc
cmp dword [rbp + 0x18], 4
jne 0x1400647cc
lea eax, [rbx + 1]
cmp dword [rbp + 0x20], eax
cmove ebx, eax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x140067b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov r14, r9
mov rsi, rdx
mov r15, rcx
and qword [r9], 0
xor ebx, ebx
mov qword [rax - 0x40], rbx
xor r9d, r9d
lea rdx, str.Image
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rbp, rax
lea r12, str.shellosshell_accesorycommon_apribbon_ribbonutil.cpp
test rax, rax
jne 0x140067bfe
lea edx, [rbx + 0x16]
mov r8, r12
mov rcx, qword [rsp + 0x68]
call fcn.14000b3bc
mov edi, eax
jmp 0x140067c5e
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140067c1b
lea edx, [rax + 0x18]
jmp 0x140067bed
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
test rax, rax
jne 0x140067c37
lea edx, [rax + 0x1a]
jmp 0x140067bed
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
test rax, rax
jne 0x140067c50
lea edx, [rax + 0x1c]
jmp 0x140067bed
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x88], edi
xor edi, edi
test edi, edi
jns 0x140067c79
mov rcx, qword [rsp + 0x68]
mov r9d, edi
mov r8, r12
mov edx, 0x2b
call fcn.14000b384
jmp 0x140067cba
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x140067cb8
mov rcx, qword [rsp + 0x68]
mov edi, 0x8007000e
mov r9d, edi
mov r8, r12
lea edx, [rax + 0x2d]
call fcn.14000b384
jmp 0x140067cce
xor edi, edi
test edi, edi
js 0x140067cce
mov r8, r14
mov rdx, rbx
mov rcx, r15
call fcn.140067a50
mov edi, eax
test rbx, rbx
je 0x140067ce4
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
mov rcx, rbx
call qword [case.0x14004e05b.0]
nop
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140067dc0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov ebx, r15d
mov qword [rbp + 0x7f], rbx
lea rcx, [0x1400a4c88]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rbp + 0x77], rax
mov edi, 0x80004005
test rsi, rsi
je 0x140067efd
movups xmm0, xmmword [0x1400c1370]
movdqu xmmword [rbp - 0x19], xmm0
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x19]
call fcn.1400682b4
test eax, eax
js 0x140067ef9
mov qword [rbp + 0x6f], r15
mov rax, qword [rsi]
lea r9, [rbp - 0x19]
xor r8d, r8d
mov edx, r15d
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [case.0x14004e05b.0]
lea eax, [r15 + 0xd]
mov word [rbp - 9], ax
mov qword [rbp - 1], rsi
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x14004e05b.0]
nop
movups xmm0, xmmword [rbp - 9]
movaps xmmword [rbp + 0x17], xmm0
movsd xmm1, qword [rbp + 7]
movsd qword [rbp + 0x27], xmm1
mov rbx, qword [rbp + 0x7f]
mov rax, qword [rbx]
lea r8, [rbp + 0x6f]
lea rdx, [rbp + 0x17]
mov rcx, rbx
mov rax, qword [rax + 0x1d0]
call qword [case.0x14004e05b.0]
test eax, eax
jne 0x140067ed3
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov qword [rbp + 0x77], r15
mov rax, qword [rbx]
lea rdx, [rbp + 0x77]
mov rcx, rbx
mov rax, qword [rax + 0x110]
call qword [case.0x14004e05b.0]
nop
mov eax, 0xfff
cmp word [rbp - 9], ax
jne 0x140067ee7
mov eax, 8
mov word [rbp - 9], ax
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [rax + rax]
jmp 0x140067efd
mov rbx, qword [rbp + 0x7f]
mov qword [rbp + 0x7f], r15
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Ribbon
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140067fbd
mov rdi, qword [rbp + 0x7f]
mov rax, qword [rbp + 0x77]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140067f51
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.QatItems
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test rdi, rdi
je 0x140067f9e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, r15
test rdi, rdi
cmove rcx, rdi
mov edi, r15d
test rcx, rcx
je 0x140067fbd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x140067fe4
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
mov rcx, rbx
call qword [case.0x14004e05b.0]
nop
mov eax, edi
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140068004
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, rdx
mov r14, rcx
xor ebx, ebx
mov qword [rbp - 0x30], rbx
mov esi, 0x80004005
xor edi, edi
and qword [rbp - 0x18], rdi
and qword [rbp - 0x10], rdi
and qword [rbp - 0x38], rdi
lea rcx, [rbp - 0x38]
mov qword [r11 - 0x68], rcx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Ribbon
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140068131
mov rdi, qword [rbp - 0x38]
mov qword [rbp - 0x20], rdi
mov eax, dword [rbp + 0x30]
add eax, eax
mov dword [rbp + 0x38], eax
and dword [rbp + 0x30], ebx
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
lea r9, [rbp - 0x40]
xor r8d, r8d
lea rdx, str.QatItems
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x1400680b6
xor ecx, ecx
jmp 0x1400680ca
mov eax, dword [rbp - 0x40]
dec eax
cmp eax, 1
ja 0x140068119
mov ecx, dword [rbp + 0x38]
shr ecx, 1
mov dword [rbp + 0x30], ecx
xor eax, eax
test eax, eax
jne 0x140068119
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140083de0
mov rsi, rax
test rax, rax
je 0x140068119
lea r9, [rbp + 0x30]
mov r8, rax
lea rcx, [rbp - 0x20]
call fcn.140068ff4
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.1400683f8
mov rcx, rsi
call sub.msvcrt.dll_free
mov rbx, qword [rbp - 0x30]
test rdi, rdi
je 0x14006812f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor edi, edi
xor esi, esi
test rdi, rdi
je 0x140068145
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test esi, esi
js 0x140068186
test rbx, rbx
je 0x140068186
and dword [rbp + 0x30], 0
and dword [rbp + 0x34], 0
mov rax, qword [rbx]
lea r9, [rbp + 0x38]
xor r8d, r8d
mov rdx, qword [rbp + 0x30]
mov rcx, rbx
mov rax, qword [rax + 0x28]
call qword [case.0x14004e05b.0]
mov rax, qword [r14]
mov rdx, rbx
mov rcx, r14
mov rax, qword [rax + 0x20]
call qword [case.0x14004e05b.0]
mov esi, eax
test rbx, rbx
je 0x14006819c
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
mov rcx, rbx
call qword [case.0x14004e05b.0]
nop
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140068ff4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
mov eax, dword [r9]
lea rdx, str.QatItems
add eax, eax
mov rbx, r8
mov dword [rsp + 0x48], eax
mov rdi, r9
lea rax, [r11 + 0x10]
xor esi, esi
mov dword [r9], esi
xor r8d, r8d
mov rcx, qword [rcx]
lea r9, [r11 + 8]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140069077
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x140069072
mov ecx, dword [rsp + 0x48]
test rbx, rbx
je 0x14006908b
test ecx, ecx
je 0x140069088
test cl, 1
jne 0x140069072
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x14006908b
mov eax, SafeArrayGetDim
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x140069077

Function at 0x14006c880
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx]
mov rdi, rdx
mov rbx, rcx
cmp rax, qword [rcx + 0x1f8]
je 0x14006c8bc
cmp rax, qword [rcx + 0x278]
je 0x14006c8bc
cmp rax, qword [rcx + 0x358]
je 0x14006c8bc
cmp rax, qword [rcx + 0x438]
jne 0x14006c8df
call fcn.14006c694
mov rcx, qword [rbx + 0xc0]
mov r9, rdi
xor r8d, r8d
mov edx, COleControlSite::XOleClientSite::AddRef
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
xor esi, esi
cmp dword [rdi + 8], 0x100
jne 0x14006c942
cmp qword [rdi + 0x10], 9
jne 0x14006c917
lea ecx, [rsi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
mov r8d, esi
lea edx, [rsi + 9]
test ax, ax
mov rcx, rbx
sets r8b
call fcn.14006cffc
jmp 0x14006c937
cmp qword [rdi + 0x10], 0x1b
jne 0x14006c942
mov rcx, qword [rbx + 0x488]
mov edx, 2
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004e05b.0]
test al, al
je 0x14006c942
mov eax, 1
jmp 0x14006c99f
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rdx, rax
test rax, rax
je 0x14006c96e
mov rcx, qword [rax]
mov rax, qword [rcx + 0xf8]
mov rcx, rdx
call qword [case.0x14004e05b.0]
mov rcx, rax
jmp 0x14006c971
mov rcx, rsi
test rcx, rcx
je 0x14006c98d
mov rax, qword [rcx]
mov rdx, rdi
mov rax, qword [rax + 0x130]
call qword [case.0x14004e05b.0]
test eax, eax
jne 0x14006c99f
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_RFX_Long_Bulk]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret