joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f330
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x50
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x20], rax
lea rdx, str.SoftwareMicrosoftInputPersonalization
and qword [r11 - 0x28], 0
mov rbx, r9
mov rdi, r8
mov dword [rsp + 0x28], 0x20106
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000f3bd
mov rcx, qword [rsp + 0x68]
lea r9d, [rax + 4]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
test eax, eax
je 0x14000f3b7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14000f3bd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x14000f3c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
mov rbx, r9
mov dword [rax - 0x18], 4
lea rax, [rax - 0x10]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f44e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14000f441
cmp dword [rsp + 0x34], 4
jne 0x14000f441
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000f44e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14000f45c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
mov rbx, qword [rsp + 0x70]
lea rax, [r11 - 0x18]
mov rsi, r8
mov qword [r11 - 0x20], rax
mov rdi, r9
mov qword [r11 - 0x28], r9
mov rbp, rdx
mov dword [rsp + 0x30], 4
mov r14, rcx
lea r9, [r11 - 0x14]
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000f4b8
cmp dword [rsp + 0x34], 4
je 0x14000f508
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 0x20119
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000f4e5
and qword [rbx], 0
jmp 0x14000f508
mov rcx, qword [rbx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
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 0x140010c78
Capabilities:
Get keyboard layout

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov r13, rdx
mov qword [rdx], rbx
mov r15, rcx
mov dword [r8], ebx
mov r14d, ebx
or r12, 0xffffffffffffffff
mov rcx, qword [r15 + 0xe0]
test rcx, rcx
je 0x140010ccc
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
mov rax, qword [rax]
call qword [case.0x140024a15.0]
jmp 0x140010cd6
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov edi, eax
movsxd rbp, eax
mov eax, 8
mul rbp
lea rdx, [0x14003c468]
cmovo rax, r12
mov rcx, rax
call fcn.140036d90
mov rsi, rax
test rax, rax
je 0x140010d3b
test edi, edi
je 0x140010d30
mov rcx, qword [r15 + 0xe0]
test rcx, rcx
je 0x140010d21
mov rdx, qword [rcx]
mov r8, rsi
mov rax, qword [rdx]
mov edx, edi
call qword [case.0x140024a15.0]
jmp 0x140010d2c
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
cmp edi, eax
je 0x140010d53
mov rcx, rsi
call fcn.140035cb4
mov rsi, rbx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r14d
cmp r14d, 5
jl 0x140010cad
mov r12, qword [rsp + 0x60]
test edi, edi
jle 0x140010da1
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rbp
lea rdx, [0x14003c468]
cmovo rax, rcx
mov rcx, rax
call fcn.140036d90
test rax, rax
je 0x140010da1
test edi, edi
jle 0x140010d97
movzx ecx, word [rsi + rbx*8]
mov word [rax + rbx*2], cx
inc rbx
cmp rbx, rbp
jl 0x140010d87
mov qword [r13], rax
mov bl, 1
mov dword [r12], edi
mov rcx, rsi
call fcn.140035cb4
mov rbp, qword [rsp + 0x58]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001279c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor edi, edi
mov r14, r8
xor ebp, ebp
mov r15, rdx
inc ebp
lea r8, str.SentItemsHint_d
mov r9d, ebp
lea rcx, [rsp + 0x50]
mov edx, 0x20
call fcn.1400065c4
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
lea rdx, str.SoftwareMicrosoftInputPersonalization
and qword [rsp + 0x20], 0
mov r9d, 2
mov rcx, 0xffffffff80000001
call qword [sym.imp.KERNEL32.dll_RegGetValueW]
test eax, eax
jne 0x140012892
mov edx, dword [rsp + 0x40]
xor ecx, ecx
shr edx, 1
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rbx, rax
test rax, rax
je 0x140012892
lea rax, [rsp + 0x40]
mov r9d, 2
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rbx
lea rdx, str.SoftwareMicrosoftInputPersonalization
and qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
call qword [sym.imp.KERNEL32.dll_RegGetValueW]
test eax, eax
jne 0x140012889
mov rcx, qword [r14 + rdi*8]
cmp rcx, rbx
je 0x140012885
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [r14 + rdi*8], rbx
inc edi
jmp 0x140012892
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp ebp, 5
jb 0x1400127cb
mov dword [r15], edi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400362c0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400140e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x3d8]
sub rsp, 0x4c0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r15, rdx
xor edi, edi
and qword [rsp + 0x70], rdi
and qword [rsp + 0x78], rdi
and qword [rbp - 0x80], rdi
and dword [rsp + 0x40], edi
xor ebx, ebx
test edi, edi
jne 0x14001424b
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_memset
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x48], 0x104
mov dword [rsp + 0x44], 0x208
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x70]
mov edx, ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_RegEnumValueW]
mov edi, eax
test eax, eax
jne 0x14001423c
cmp dword [rsp + 0x40], 1
jne 0x14001423c
lea rcx, [rbp - 0x70]
call qword [sym.imp.msvcrt.dll__wtoi]
mov esi, eax
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.msvcrt.dll__wtoi]
movsxd r14, eax
test eax, eax
jle 0x14001423c
mov r8, qword [0x14004fe18]
mov rdx, qword [r8 + 8]
mov rcx, r8
jmp 0x140014202
cmp dword [rdx + 0x18], esi
jae 0x1400141fc
mov rdx, qword [rdx + 0x10]
jmp 0x140014202
mov rcx, rdx
mov rdx, qword [rdx]
cmp byte [rdx + 0x29], 0
je 0x1400141f1
cmp rcx, r8
je 0x140014212
cmp esi, dword [rcx + 0x18]
jae 0x140014238
mov dword [rsp + 0x50], esi
and qword [rsp + 0x58], 0
lea r9, [rsp + 0x50]
mov r8, rcx
lea rdx, [rsp + 0x68]
lea rcx, [0x14004fe10]
call fcn.1400194fc
mov rcx, qword [rax]
mov qword [rcx + 0x20], r14
lea eax, [rbx + 1]
test edi, edi
cmovne eax, ebx
mov ebx, eax
jmp 0x140014139
xor eax, eax
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400362c0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001427c
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x398]
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor r14d, r14d
mov edi, r14d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov ebx, 0x208
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + reloc.OLEAUT32.dll_VarBstrFromUI8]
call sub.msvcrt.dll_memset
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftInputPersonalizationInkStoreLangCounts
mov rbx, 0xffffffff80000001
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RegDeleteKeyExW]
mov esi, eax
cmp qword [0x14004fe20], r14
jbe 0x14001443f
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
lea r8, str.SoftwareMicrosoftInputPersonalizationInkStoreLangCounts
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140001b5c
mov esi, eax
mov rbx, qword [0x14004fe18]
mov rbx, qword [rbx]
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x14001443f
cmp rbx, qword [0x14004fe18]
je 0x14001443f
cmp qword [rbx + 0x20], r14
jbe 0x1400143d8
mov r8d, 0xa
lea rdx, [rbp + reloc.OLEAUT32.dll_VarBstrFromUI8]
mov ecx, dword [rbx + 0x18]
call qword [sym.imp.msvcrt.dll__itow]
mov r8d, 0xa
lea rdx, [rsp + 0x60]
mov ecx, dword [rbx + 0x20]
call qword [sym.imp.msvcrt.dll__itow]
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14001439e
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + reloc.OLEAUT32.dll_VarBstrFromUI8]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp byte [rbx + 0x29], r14b
je 0x1400143f4
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140036b54
jmp 0x140014437
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x29], r14b
jne 0x14001441b
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x29], r14b
jne 0x140014437
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x29], r14b
je 0x14001440a
jmp 0x140014437
mov rax, qword [rbx + 8]
jmp 0x14001442e
cmp rbx, qword [rax + 0x10]
jne 0x140014434
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x29], r14b
je 0x140014421
mov rbx, rax
test esi, esi
je 0x140014358
mov eax, r14d
sub eax, esi
neg eax
sbb ebx, ebx
and ebx, 0x80004005
test rdi, rdi
je 0x14001445c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400362c0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001448c
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xf0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, rdx
xor esi, esi
and qword [rsp + 0x48], rsi
and qword [rsp + 0x50], rsi
and qword [rsp + 0x30], rsi
lea rax, str.SoftwareMicrosoftInputPersonalizationInkStoreToTrainImplicit
lea rdx, [0x14003dc40]
test cl, cl
cmovne rdx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014555
mov rsi, qword [rsp + 0x30]
mov qword [rsp + 0x40], rsi
lea r8d, [rax + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
je 0x14001458f
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ebx, ebx
test edi, edi
setne bl
jmp 0x14001455a
mov ebx, 0x80004005
test rsi, rsi
je 0x140014568
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400362c0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 0x8007000e
call fcn.140001648
int3
Function at 0x14001459c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 8], rax
mov edi, r8d
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
lea rax, str.SoftwareMicrosoftInputPersonalizationInkStoreToTrainImplicit
lea r8, [0x14003dc40]
test cl, cl
cmovne r8, rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20006
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.140001b5c
test eax, eax
jne 0x1400146c9
mov eax, dword [0x14003de28]
mov dword [rsp + 0x60], eax
movzx eax, word [0x14003de2c]
mov word [rsp + 0x64], ax
xor eax, eax
mov qword [rsp + 0x66], rax
mov qword [rsp + 0x6e], rax
lea r8d, [r14 + 0x10]
lea rdx, [rsp + 0x64]
mov ecx, edi
call qword [sym.imp.msvcrt.dll__itow]
lea r8d, [r14 + 0x40]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rbp - 0x80]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
je 0x140014702
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14001467e
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, r14d
test edi, edi
setne bl
jmp 0x1400146ce
mov ebx, 0x80004005
cmp qword [rsp + 0x40], r14
je 0x1400146e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400362c0
mov rbx, qword [rsp + 0x148]
add rsp, 0x110
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140001648
int3
Function at 0x140014dec
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebp, ebp
mov qword [rdi + 0x98], rax
test rax, rax
jne 0x140014e2b
mov eax, 0x80004005
jmp 0x140014f01
lea rax, [rdi + 0x88]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140018340]
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, 0x80004005
mov qword [rdi + 0x80], rax
test rax, rax
mov ebx, esi
cmovne ebx, ebp
je 0x140014e99
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rdi + 0x98]
mov edx, 0x9c4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x80]
test eax, eax
cmovne ebx, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x98], rbp
test ebx, ebx
js 0x140014ef7
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140014ed1
lea r8, [rdi + 0x58]
mov qword [rdi + 0x50], rbp
lea rdx, [0x14003d590]
call qword [sym.imp.ole32.dll_CoGetInterfaceAndReleaseStream]
mov ebx, eax
mov rcx, qword [rdi + 0x58]
test rcx, rcx
jne 0x140014ee0
test ebx, ebx
js 0x140014ef7
mov ebx, esi
test ebx, ebx
js 0x140014ef7
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140024a15.0]
mov ebx, eax
test eax, eax
jns 0x140014eff
mov rcx, rdi
call fcn.140014c74
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400159b4
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5d8]
sub rsp, 0x6d0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov r10d, edx
mov ebx, ecx
mov rdi, qword [rbp + 0x608]
test rdi, rdi
je 0x140015a00
and dword [rdi], 0
cmp r10d, 0xffff
je 0x140015a2f
movzx eax, r10w
mov ecx, 0x3ff
and ax, cx
mov ecx, 0x7f
cmp cx, ax
je 0x140015a2f
mov ecx, r10d
call fcn.14002d64c
test al, al
je 0x140015af4
test r8, r8
js 0x140015af4
mov eax, r9d
not eax
mov ecx, dword [rbp + 0x600]
test ecx, eax
jne 0x140015af4
lea rsi, [0x14003ac60]
mov qword [rsp + 0x30], rsi
or qword [rsp + 0x38], 0xffffffffffffffff
and dword [rsp + 0x40], 0
mov dword [rsp + 0x44], r10d
mov qword [rsp + 0x48], r8
mov dword [rsp + 0x50], r9d
mov dword [rsp + 0x54], ecx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3b0]
call sub.msvcrt.dll_memset
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x160]
call sub.msvcrt.dll_memset
jmp 0x140015ad6
lea r8, [rbp + 0x3b0]
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x30]
call fcn.14001b040
test eax, eax
jne 0x140015ada
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebx, 0x7fffffff
jge 0x140015ad6
sub ebx, dword [rbp + 0x180]
test ebx, ebx
jg 0x140015a9f
test rdi, rdi
je 0x140015ae1
mov dword [rdi], ebx
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x30]
call fcn.14001affc
xor eax, eax
jmp 0x140015af9
mov eax, 0x80070057
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.1400362c0
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14001ae60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
lea rcx, str._localappdata_MicrosoftInputPersonalizationInkStore
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14001ae8e
mov ebx, 0x80004005
jmp 0x14001aeb0
mov rcx, rdi
call fcn.14002eab4
mov ebx, eax
test eax, eax
js 0x14001aeb0
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test rax, rax
mov ecx, 0x800700ce
cmove ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b040
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov r14, r8
mov word [r8], bp
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x14001b07e
mov ecx, 0x80070057
jmp 0x14001b158
xor edx, edx
mov r8d, 0x250
mov rcx, rdi
call sub.msvcrt.dll_memset
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x14001b0fb
lea rsi, [rbx + 0x28]
mov rcx, rsi
call fcn.14001ae60
mov ecx, eax
test eax, eax
js 0x14001b154
mov eax, dword [rbx + 0x24]
lea rcx, [rsp + 0x40]
mov r9d, dword [rbx + 0x14]
mov r8d, dword [rbx + 0x10]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call fcn.14001aec0
mov ecx, eax
test eax, eax
js 0x14001b154
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14001b108
lea ecx, [rax + 2]
jmp 0x14001b158
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14001b140
mov edx, 0x5f
lea rcx, [rdi + 0x2c]
mov rsi, rbp
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x14001b132
xor edx, edx
lea rcx, [rax + 2]
lea r8d, [rdx + 0x24]
call qword [sym.imp.msvcrt.dll__wcstoi64]
mov rsi, rax
cmp rsi, qword [rbx + 0x18]
jle 0x14001b08e
mov ecx, ebp
jmp 0x14001b154
mov rcx, rbx
call fcn.14001affc
mov ecx, 1
test eax, eax
cmovns eax, ecx
mov ecx, eax
test ecx, ecx
je 0x14001b15c
mov eax, ecx
jmp 0x14001b189
lea r8, [rbx + 0x28]
mov edx, 0x104
mov rcx, r14
call fcn.140006470
test eax, eax
js 0x14001b189
lea rdx, [rdi + 0x2c]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
neg eax
sbb eax, eax
not eax
and eax, 0x80004005
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400362c0
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001bf38
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rax, r8
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rdx
mov qword [rsp + 0x78], rcx
xor ebx, ebx
test rdx, rdx
je 0x14001c140
xor r8d, r8d
mov qword [rdx], r8
test rcx, rcx
je 0x14001c140
test rax, rax
je 0x14001bf9a
mov byte [rax], bl
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14001bfec
mov eax, 0x80004005
jmp 0x14001c145
mov esi, ebx
mov edi, ebx
mov qword [rbp - 0x68], rbx
and qword [rbp - 0x60], rbx
and qword [rbp - 0x58], rbx
and dword [rsp + 0x64], 0
and dword [rsp + 0x60], 0
test edi, edi
jne 0x14001c11e
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x64], 0x104
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
lea r8, [rbp - 0x40]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test eax, eax
jne 0x14001c106
test rbx, rbx
je 0x14001c073
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rbp - 0x68], rbx
and qword [rbp - 0x80], 0
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14001c0b7
test rbx, rbx
je 0x14001c0af
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rbx, qword [rbp - 0x80]
mov qword [rbp - 0x68], rbx
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x14001c0ca
cmp word [rbp - 0x40], 0x7b
jne 0x14001c0ca
mov byte [rax], 1
test edi, edi
jne 0x14001c106
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.14001bf38
mov esi, eax
test eax, eax
js 0x14001c12e
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
mov rcx, qword [rsp + 0x68]
test eax, eax
cmovs rcx, qword [rsp + 0x70]
mov qword [rsp + 0x68], rcx
mov ecx, dword [rsp + 0x60]
lea eax, [rcx + 1]
test edi, edi
cmovne eax, ecx
mov dword [rsp + 0x60], eax
test esi, esi
jns 0x14001c006
test esi, esi
js 0x14001c12e
mov rax, qword [rsp + 0x68]
mov rcx, qword [rbp - 0x70]
mov qword [rcx], rax
test rbx, rbx
je 0x14001c13c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x14001c145
mov eax, 0x80070057
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400362c0
mov rbx, qword [rsp + 0x318]
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret