joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012450
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140012470
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001034c
or eax, 0xffffffff
jmp 0x140012472
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400127a0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x1400124df
call fcn.1400103bc
mov dword [rax], 0x16
call fcn.140015ba0
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000a950
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x1400124a6
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001254d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140012520
cmp eax, 3
jbe 0x14001253d
cmp eax, 8
je 0x14001252d
cmp eax, 0x12
je 0x14001253d
call fcn.1400103bc
mov dword [rax], 0x16
jmp 0x1400124b6
call fcn.1400103bc
mov dword [rax], 0xc
jmp 0x1400124b6
call fcn.1400103bc
mov dword [rax], 2
jmp 0x1400124b6
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.1400126e8
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.1400126e8
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.1400126e8
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001b3d0
test eax, eax
jne 0x1400125ab
mov rax, rdi
jmp 0x1400124ba
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140015bc0
int3
jmp 0x140012478
Function at 0x1400127a8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x14001261d
call fcn.1400103bc
mov dword [rax], 0x16
call fcn.140015ba0
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000a950
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x1400125e9
test rbx, rbx
je 0x1400125e9
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140012678
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140012651
cmp eax, 3
jbe 0x14001266b
cmp eax, 8
je 0x14001265e
cmp eax, 0x12
je 0x14001266b
call fcn.1400103bc
mov dword [rax], 0x16
jmp 0x1400125f9
call fcn.1400103bc
mov dword [rax], 0xc
jmp 0x1400125f9
call fcn.1400103bc
mov dword [rax], 2
jmp 0x1400125f9
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.1400126e8
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.1400126e8
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.1400126e8
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001b3d0
test eax, eax
je 0x1400125fc
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140015bc0
int3
jmp 0x1400125c0

Function at 0x140013288
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400132a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001034c
or eax, 0xffffffff
jmp 0x1400132aa
xor eax, eax
add rsp, 0x28
ret

Function at 0x140014630
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001445c
Function at 0x140002f3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002f88
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002f80
cmp dword [rcx + 0x3c], edx
jl 0x140002f80
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002f80
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002f88
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1400031e4
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400031f0
push rbx
sub rsp, 0x540
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14000326d
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14000328d
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400027f0
add rsp, 0x540
pop rbx
ret
Function at 0x14000cd34
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rbp + reloc.OLEAUT32.dll_VarBstrFromUI8], rax
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x60]
and qword [rsp + 0x50], 0
mov rdi, rcx
mov rcx, qword [rcx]
mov r9d, 0x2001f
and qword [rsp + 0x58], 0
xor r8d, r8d
and qword [rsp + 0x60], 0
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x14000ce54
test rcx, rcx
je 0x14000cdbe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test ebx, ebx
mov qword [rsp + 0x48], rcx
jmp 0x14000cde4
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14000cd34
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x14000ce54
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14000cdcc
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000ce42
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.140008cc4
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x14000ce65
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + reloc.OLEAUT32.dll_VarBstrFromUI8]
xor rcx, rsp
call fcn.1400027f0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x480
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x60], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000d0af
call fcn.140007030
mov ebx, eax
jmp 0x14000d1f7
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000d0d9
call fcn.140007030
jmp 0x14000d1e5
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000d0cf
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x14000d137
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14000d12d
lea rcx, [rsp + 0x60]
call fcn.140009520
nop
mov eax, 0x8007000e
jmp 0x14000d210
mov ecx, eax
test eax, eax
je 0x14000d16e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000d235
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000d16e
lea rcx, [rsp + 0x60]
call fcn.140006ec4
mov rax, qword [rsp + 0x60]
jmp 0x14000d178
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14000d18f
test rax, rax
jne 0x14000d19b
mov ebx, 0x8007000e
jmp 0x14000d1e7
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
je 0x14000d0cf
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4c0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14000ce90
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14000d20e
lea rcx, [rsp + 0x60]
call fcn.140009520
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400027f0
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x480
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.140007a38
int3
Function at 0x14000f8bc
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r14, r8
xor r15d, r15d
mov qword [r8], r15
mov esi, 0x104
mov r9d, esi
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x30]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000f92f
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000f92f
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14000f90d
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r15w
lea r8, [0x1400437f0]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000f594
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000fa73
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r15d
lea rdx, [rsp + 0x24]
mov rcx, rax
call fcn.14000a498
mov edi, eax
test eax, eax
jns 0x14000f9b8
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xcf
call fcn.14000e604
nop
mov rcx, rbx
call fcn.140008104
nop
mov eax, edi
jmp 0x14000fa99
lea r8, [0x1400437f8]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000f594
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000fa52
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000a498
mov esi, eax
test eax, eax
jns 0x14000fa2a
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd7
call fcn.14000e604
nop
mov rcx, rdi
call fcn.140008104
nop
mov rcx, rbx
call fcn.140008104
nop
mov eax, esi
jmp 0x14000fa99
mov rcx, rdi
call fcn.140008104
nop
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r14], rax
mov rcx, rbx
call fcn.140008104
nop
jmp 0x14000fa84
mov rcx, qword [rbp + 0x168]
mov edx, 0xd5
call fcn.14000e5e4
mov edi, eax
mov rcx, rbx
call fcn.140008104
nop
jmp 0x14000f9b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x14000fa88
xor eax, eax
jmp 0x14000fa99
mov rcx, qword [rbp + 0x168]
mov edx, 0xc9
call fcn.14000e5e4
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400027f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140014020
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 + 0xd0]
test rcx, rcx
je 0x14001407e
mov rax, qword [rcx]
movabs r10, 0xe53596971ed70a70
mov rax, qword [rax]
xor r8d, r8d
xor edx, edx
call qword [vtable.H_MA8HI.0]
jmp 0x14001408e
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
nop dword [rax + rax]
mov edi, eax
movsxd rbp, eax
mov eax, 8
mul rbp
lea rdx, [0x140042cb0]
cmovo rax, r12
mov rcx, rax
call fcn.1400033a0
mov rsi, rax
test rax, rax
je 0x140014103
test edi, edi
je 0x1400140f8
mov rcx, qword [r15 + 0xd0]
test rcx, rcx
je 0x1400140e3
mov rdx, qword [rcx]
mov rax, qword [rdx]
movabs r10, 0xe53596971ed70a70
mov r8, rsi
mov edx, edi
call qword [vtable.H_MA8HI.0]
jmp 0x1400140f4
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
nop dword [rax + rax]
cmp edi, eax
je 0x140014121
mov rcx, rsi
call fcn.140001e40
mov rsi, rbx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
inc r14d
cmp r14d, 5
jl 0x140014055
mov r12, qword [rsp + 0x60]
test edi, edi
jle 0x14001416f
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rbp
lea rdx, [0x140042cb0]
cmovo rax, rcx
mov rcx, rax
call fcn.1400033a0
test rax, rax
je 0x14001416f
test edi, edi
jle 0x140014165
movzx ecx, word [rsi + rbx*8]
mov word [rax + rbx*2], cx
inc rbx
cmp rbx, rbp
jl 0x140014155
mov qword [r13], rax
mov bl, 1
mov dword [r12], edi
mov rcx, rsi
call fcn.140001e40
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 0x14001424c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov rbx, r9
mov dword [rax + 0x10], 4
lea rax, [rax - 0x18]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
lea rdx, str.SoftwareMicrosoftInputPersonalization
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140014300
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400142ed
cmp dword [rsp + 0x50], 4
jne 0x1400142ed
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140014300
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140014314
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, qword [rsp + 0x60]
mov rdi, r9
mov dword [rax + 0x10], 4
mov rsi, r8
test rbx, rbx
jne 0x14001434b
lea eax, [rbx + 6]
jmp 0x1400143e9
mov rcx, qword [rbx]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001437f
cmp dword [rsp + 0x40], 4
je 0x1400143e9
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r9d, 0x20119
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftInputPersonalization
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1400143c0
and qword [rbx], 0
jmp 0x1400143e9
mov rcx, qword [rbx]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140015364
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, r8
test r8, r8
jne 0x140015380
mov eax, 0x80004003
jmp 0x140015468
lea rax, [rsp + 0x68]
mov byte [r8], 0
mov qword [rsp + 0x30], rax
lea r8, str.AcceptedPrivacyPolicy
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x28], rax
mov r9d, 0x10010
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
jle 0x1400153ce
movzx ecx, ax
or ecx, 0x80070000
test ecx, ecx
jns 0x14001544e
cmp ecx, 0x80070002
jne 0x140015466
mov edx, 0x5c
lea rcx, [0x140043fa0]
call qword [sym.imp.SHLWAPI.dll_StrChrW]
nop dword [rax + rax]
mov r9d, 0x10010
mov dword [rsp + 0x68], 4
lea r8, str.AcceptedPrivacyPolicy
mov rcx, 0xffffffff80000002
lea rdx, [rax + 2]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jle 0x140015448
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
test eax, eax
js 0x14001545a
cmp dword [rsp + 0x60], 0
setne al
mov byte [rbx], al
jmp 0x140015466
cmp eax, 0x80070002
jne 0x140015466
mov byte [rbx], 0
xor ecx, ecx
mov eax, ecx
add rsp, 0x40
pop rbx
ret
Function at 0x140015a08
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]
nop dword [rax + rax]
test eax, eax
jne 0x140015aad
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]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
test eax, eax
je 0x140015aa1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140015aad
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140016a6c
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 [0x140051058]
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.14000f748
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.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140016b84
mov edx, dword [rsp + 0x40]
xor ecx, ecx
shr edx, 1
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140016b84
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.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140016b75
mov rcx, qword [r14 + rdi*8]
cmp rcx, rbx
je 0x140016b71
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov qword [r14 + rdi*8], rbx
inc edi
jmp 0x140016b84
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
cmp ebp, 5
jb 0x140016a9b
mov dword [r15], edi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400027f0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001b258
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5c8]
sub rsp, 0x6c0
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov ebx, ecx
mov rdi, qword [rbp + 0x5f8]
test rdi, rdi
je 0x14001b298
and dword [rdi], 0
cmp edx, 0xffff
je 0x14001b2c4
movzx eax, dx
mov ecx, 0x3ff
and ax, cx
mov ecx, 0x7f
cmp cx, ax
je 0x14001b2c4
mov ecx, edx
call fcn.140034004
test al, al
je 0x14001b38e
test r8, r8
js 0x14001b38e
mov eax, r9d
not eax
mov ecx, dword [rbp + 0x5f0]
test ecx, eax
jne 0x14001b38e
lea rsi, [0x1400402d0]
mov qword [rsp + 0x20], rsi
or qword [rsp + 0x28], 0xffffffffffffffff
and dword [rsp + 0x30], 0
mov dword [rsp + 0x34], edx
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x44], ecx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3a0]
call sub.msvcrt.dll_memset
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x150]
call sub.msvcrt.dll_memset
jmp 0x14001b370
lea r8, [rbp + 0x3a0]
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x20]
call fcn.14001fdc8
test eax, eax
jne 0x14001b374
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
cmp ebx, 0x7fffffff
jae 0x14001b370
sub ebx, dword [rbp + reloc.OLEAUT32.dll_VarBstrFromUI8]
test ebx, ebx
jg 0x14001b333
test rdi, rdi
je 0x14001b37b
mov dword [rdi], ebx
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x20]
call fcn.14001ff98
xor eax, eax
jmp 0x14001b393
mov eax, 0x80070057
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.1400027f0
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14001b81c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rdx
and qword [rsp + 0x38], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x30], 0
lea rax, [0x140044340]
lea rdx, str.SoftwareMicrosoftInputPersonalizationInkStoreToTrainImplicit
test cl, cl
cmove 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]
nop dword [rax + rax]
test eax, eax
jne 0x14001b916
mov rsi, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
lea r8d, [rax + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ole32.dll_StringFromGUID2]
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14001b941
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
xor ebx, ebx
test edi, edi
setne bl
test rsi, rsi
je 0x14001b912
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14001b91b
mov eax, 0x80004005
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400027f0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x8007000e
call fcn.140007a38
int3