joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f0b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400ff2b8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
call fcn.14003edf0
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x20]
mov ecx, COleDropTarget::XDropTarget::AddRef
lea edx, [r9 + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
nop dword [rax + rax]
mov edi, 1
test eax, eax
je 0x14003f10b
mov eax, 0x800
test word [rsp + 0x2e], ax
je 0x14003f10b
mov al, dil
jmp 0x14003f10d
xor al, al
mov byte [0x140100d88], al
lea rcx, [0x140100e50]
lea rax, [rbx + 0xc0]
mov qword [0x140101678], rax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
nop dword [rax + rax]
mov r9d, 2
lea r8, [0x1400ff2d8]
mov edx, 0x20001009
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
nop dword [rax + rax]
mov ecx, dword [0x1400ff2d8]
test eax, eax
cmove ecx, edi
cmp byte [0x140100d88], 0
mov dword [0x1400ff2d8], ecx
je 0x14003f1db
test byte [0x140100d9a], dil
je 0x14003f1db
mov rcx, qword [0x140101678]
mov edx, 0xffffffec
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
nop dword [rax + rax]
bt rax, 0x16
jb 0x14003f1db
mov rcx, qword [0x140101678]
mov edx, 0xffffffec
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
nop dword [rax + rax]
mov rcx, qword [0x140101678]
mov edx, 0xffffffec
or rax, 0x7000
mov r8, rax
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
nop dword [rax + rax]
mov r8d, edi
lea rcx, [0x14003f280]
mov edx, COleDropTarget::XDropTarget::AddRef
call qword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
nop dword [rax + rax]
mov edx, COleDropTarget::XDropTarget::AddRef
lea rcx, [0x14003f280]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x14003f370]
mov edx, COleDropTarget::XDropTarget::AddRef
call qword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x100]
xor r9d, r9d
and qword [0x140101678], 0
xor r8d, r8d
mov edx, 0x186
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140093810
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14003f4b4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0xc0
mov rax, qword [0x1400ff2b8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, r8
mov rbp, rcx
call qword [sym.imp.MFC42u.dll_RFX_Date_Bulk]
nop dword [rax + rax]
xor r14d, r14d
mov rsi, rax
cmp dword [rbp], r14d
je 0x14003f580
lea r8d, [r14 + 0x40]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowTextW]
nop dword [rax + rax]
cmp word [rsp + 0x30], r14w
je 0x14003f578
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140056ee4
test eax, eax
jne 0x14003f54e
or r8d, 0xffffffff
lea edx, [rax + 0x40]
lea ecx, [rax + 0x67]
call qword [sym.imp.MFC42u.dll_Ordinal_1498]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.MFC42u.dll_CGopherFileFind::FindFile]
nop dword [rax + rax]
mov r9d, dword [rbx]
lea rdx, [rsp + 0x30]
mov r8d, 0x40
call fcn.140057030
cmp word [rsp + 0x30], r14w
je 0x14003f5af
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140056ee4
jmp 0x14003f5af
mov dword [rbx], 0x7fffffff
jmp 0x14003f5af
cmp dword [rbx], 0x7fffffff
je 0x14003f5af
mov r9d, dword [rbx]
lea rdx, [rsp + 0x30]
mov r8d, 0x40
call fcn.140057030
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140093810
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r14
pop rsi
pop rbp
ret

Function at 0x14003fc70
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400ff2b8]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
cmp dword [0x140101680], esi
jne 0x14003fd71
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, CSocketFile::CSocketFile
call sub.msvcrt.dll_memset
mov edi, esi
lea rbx, [0x1400ffb18]
cmp dword [rbx - 8], esi
jne 0x14003fd53
cmp qword [rbx], rsi
je 0x14003fd53
mov r8d, 0x104
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x14003fd34
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
nop dword [rax + rax]
test rax, rax
je 0x14003fd34
mov word [rax], si
lea rcx, [rsp + 0x20]
mov r8, qword [rbx]
mov edx, 0x104
call fcn.140009bd0
movzx edi, ax
test edi, edi
jne 0x14003fd50
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
and edi, 0x10
test edi, edi
jne 0x14003fd50
movsxd rdx, dword [rbx + 8]
lea r8, [rsp + 0x20]
mov rcx, qword [rbx]
call fcn.140009b48
movzx edi, ax
test edi, edi
je 0x14003fd53
mov qword [rbx], rsi
add rbx, 0x50
lea rax, [0x1400fffc8]
cmp rbx, rax
jl 0x14003fcbd
mov dword [0x140101680], 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140093810
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14005693c
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x258
mov rax, qword [0x1400ff2b8]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp word [rdx], 0
je 0x1400569bc
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_Ordinal_1447]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
nop dword [rax + rax]
mov word [rsp + 0x20], ax
test ax, ax
je 0x1400569bc
lea rdx, [rsp + 0x20]
lea rcx, [0x1400569e0]
call qword [sym.imp.USER32.dll_EnumWindows]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x20]
test cx, cx
jne 0x1400569b0
mov eax, 1
jmp 0x1400569be
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140093810
add rsp, 0x258
ret
Function at 0x140059048
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 0x1400590ef
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 0x1400590ef
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 0x1400590dc
cmp dword [rsp + 0x58], 2
jne 0x1400590dc
mov eax, 0xfeff
cmp word [rsp + 0x50], ax
je 0x1400590d7
mov eax, 0xfffe
cmp word [rsp + 0x50], ax
jne 0x1400590dc
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
jmp 0x1400590f1
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14005d860
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x1400ff2b8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r12, rdx
mov rbx, rcx
mov rcx, r12
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor r14d, r14d
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
nop dword [rax + rax]
mov rcx, rbx
mov r15d, eax
call fcn.14000428c
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x30]
and dword [rsp + 0x3c], r14d
xor r8d, r8d
mov edx, 0x434
mov dword [rsp + 0x38], eax
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
xor edi, edi
test r15d, r15d
je 0x14005d9a2
mov r9d, 0x104
lea r8, [rsp + 0x40]
mov edx, edi
mov rcx, r12
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0x10
je 0x14005d997
mov eax, dword [rsp + 0x34]
lea r9, [rsp + 0x30]
mov rcx, qword [rbx + 0x40]
xor r8d, r8d
mov edx, CObList::AddTail
mov dword [rsp + 0x30], eax
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
mov esi, 1
call fcn.140060598
test eax, eax
je 0x14005d975
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8, qword [rsp + 0x38]
mov r9d, esi
mov rcx, rbx
call fcn.140004550
mov esi, eax
cmp r15d, 1
jne 0x14005d986
xor r14d, r14d
test esi, esi
sete r14b
jmp 0x14005d997
test esi, esi
je 0x14005d997
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400066cc
inc edi
cmp edi, r15d
jb 0x14005d8ef
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, CObList::AddTail
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov eax, r14d
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140093810
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400613d4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400ff2b8]
xor rax, rsp
mov qword [rsp + 0x230], rax
and qword [rdx], 0
mov rbx, rcx
mov ecx, CSocketFile::CSocketFile
mov rsi, rdx
call fcn.140093320
mov rdi, rax
test rax, rax
jne 0x14006143e
lea r9, [0x1400b3e24]
mov r8d, 0x2df
lea rdx, str.GetTempDirFile
lea rcx, str.Error:_Func__s_Line__d:_Out_of_memory_for_temp_file_name
call fcn.140061364
mov eax, 0x8007000e
jmp 0x1400614e4
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
ja 0x140061496
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 0x1400614df
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str.Error:_Func__s_Line__d:_GetTempFileName_failed
mov r8d, 0x2ec
jmp 0x1400614af
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str.Error:_Func__s_Line__d:_GetTempPath_failed
mov r8d, 0x2e7
lea r9, [0x1400b3e24]
mov ebx, eax
lea rdx, str.GetTempDirFile
call fcn.140061364
test ebx, ebx
je 0x1400614df
mov rcx, rdi
call sub.msvcrt.dll_free
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1400614e4
mov qword [rsi], rdi
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140093810
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14007250c
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 0x1400725c9
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 0x14007257b
mov ebx, 1
jmp 0x1400725c9
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 0x1400725c9
cmp dword [rbp + 0x30], 4
jne 0x1400725c9
mov eax, dword [rbp + 0x38]
mov dword [rdi], eax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400725de
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400725f3
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 0x140072608
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 [0x1400ff2b8]
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.140009b48
test eax, eax
js 0x140072850
lea r8, [0x1400b7fe8]
mov edx, r15d
lea rcx, [rsp + 0x70]
call fcn.140009bd0
test eax, eax
js 0x140072850
lea r8, str.KillbitList
mov edx, r15d
lea rcx, [rsp + 0x70]
call fcn.140009bd0
test eax, eax
js 0x140072850
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 0x140072824
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x40]
mov rdx, rdi
call fcn.14007250c
test eax, eax
js 0x140072824
test dword [rsp + 0x40], 0x400
jne 0x140072705
xor ebx, ebx
jmp 0x140072824
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromCLSID]
nop dword [rax + rax]
test eax, eax
js 0x140072824
xor edi, edi
lea r8, [rsp + 0x70]
mov dword [rsp + 0x58], 0x4e
mov rdx, r15
lea rcx, [rbp + 0x180]
call fcn.140009b48
test eax, eax
js 0x140072824
lea r8, [0x1400b7fe8]
mov rdx, r15
lea rcx, [rbp + 0x180]
call fcn.140009bd0
test eax, eax
js 0x140072824
mov r8, qword [rsp + 0x48]
lea rcx, [rbp + 0x180]
mov rdx, r15
call fcn.140009bd0
test eax, eax
js 0x140072824
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 0x140072824
movups xmm0, xmmword [0x1400b2c90]
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 0x140072824
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
call fcn.14007250c
test eax, eax
js 0x14007280f
test dword [rsp + 0x40], 0x400
je 0x14007281b
add edi, ebx
cmp edi, 0xa
jge 0x140072824
jmp 0x140072723
movups xmm0, xmmword [rsp + 0x60]
movdqu xmmword [rsi], xmm0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14007283a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140072850
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140093810
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 0x140072d84
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 0x140072e28
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 0x140072e18
cmp dword [rbp + 0x18], 4
jne 0x140072e18
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 0x1400771fc
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, [0x1400b3e24]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rbp + 0x77], rax
mov edi, 0x80004005
test rsi, rsi
je 0x140077339
movups xmm0, xmmword [0x1400d05d8]
movdqu xmmword [rbp - 0x19], xmm0
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x19]
call fcn.1400776f0
test eax, eax
js 0x140077335
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 [str._S_t_]
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 [str._S_t_]
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 [str._S_t_]
test eax, eax
jne 0x14007730f
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 [str._S_t_]
nop
mov eax, 0xfff
cmp word [rbp - 9], ax
jne 0x140077323
mov eax, 8
mov word [rbp - 9], ax
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [rax + rax]
jmp 0x140077339
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 0x1400773f9
mov rdi, qword [rbp + 0x7f]
mov rax, qword [rbp + 0x77]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x14007738d
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 0x1400773da
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 0x1400773f9
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 0x140077420
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
mov rcx, rbx
call qword [str._S_t_]
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 0x140077440
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 0x14007756d
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 0x1400774f2
xor ecx, ecx
jmp 0x140077506
mov eax, dword [rbp - 0x40]
dec eax
cmp eax, 1
ja 0x140077555
mov ecx, dword [rbp + 0x38]
shr ecx, 1
mov dword [rbp + 0x30], ecx
xor eax, eax
test eax, eax
jne 0x140077555
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140093320
mov rsi, rax
test rax, rax
je 0x140077555
lea r9, [rbp + 0x30]
mov r8, rax
lea rcx, [rbp - 0x20]
call fcn.1400782a8
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.140077834
mov rcx, rsi
call sub.msvcrt.dll_free
mov rbx, qword [rbp - 0x30]
test rdi, rdi
je 0x14007756b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor edi, edi
xor esi, esi
test rdi, rdi
je 0x140077581
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test esi, esi
js 0x1400775c2
test rbx, rbx
je 0x1400775c2
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 [str._S_t_]
mov rax, qword [r14]
mov rdx, rbx
mov rcx, r14
mov rax, qword [rax + 0x20]
call qword [str._S_t_]
mov esi, eax
test rbx, rbx
je 0x1400775d8
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
mov rcx, rbx
call qword [str._S_t_]
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 0x1400782a8
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 0x14007832b
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x140078326
mov ecx, dword [rsp + 0x48]
test rbx, rbx
je 0x14007833e
test ecx, ecx
je 0x14007833b
test cl, 1
jne 0x140078326
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x14007833e
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 0x14007832b

Function at 0x14007bb90
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 0x14007bbcc
cmp rax, qword [rcx + 0x278]
je 0x14007bbcc
cmp rax, qword [rcx + 0x358]
je 0x14007bbcc
cmp rax, qword [rcx + 0x438]
jne 0x14007bbef
call fcn.14007b9a4
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 0x14007bc52
cmp qword [rdi + 0x10], 9
jne 0x14007bc27
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.14007c30c
jmp 0x14007bc47
cmp qword [rdi + 0x10], 0x1b
jne 0x14007bc52
mov rcx, qword [rbx + 0x488]
mov edx, 2
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._S_t_]
test al, al
je 0x14007bc52
mov eax, 1
jmp 0x14007bcaf
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rdx, rax
test rax, rax
je 0x14007bc7e
mov rcx, qword [rax]
mov rax, qword [rcx + 0xf8]
mov rcx, rdx
call qword [str._S_t_]
mov rcx, rax
jmp 0x14007bc81
mov rcx, rsi
test rcx, rcx
je 0x14007bc9d
mov rax, qword [rcx]
mov rdx, rdi
mov rax, qword [rax + 0x130]
call qword [str._S_t_]
test eax, eax
jne 0x14007bcaf
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