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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rsi, r8
lea rax, [rsp + 0x68]
xor r14d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x1c8], r14d
mov r9d, 0x2001b
mov ebx, r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005ef4
mov rcx, qword [rsp + 0x68]
lea rax, [rbp + 0x1c8]
mov qword [rsp + 0x58], r14
xor r9d, r9d
mov qword [rsp + 0x50], r14
xor r8d, r8d
mov qword [rsp + 0x48], r14
xor edx, edx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140005ef4
mov edx, dword [rbp + 0x1c8]
test edx, edx
je 0x140005ef4
lea rdi, [rbp - 0x80]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov edi, r14d
test edx, edx
je 0x140005ef4
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], r14
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], r14
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov edx, edi
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x70], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140005eea
cmp dword [rsp + 0x60], 3
jne 0x140005ee5
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.140001c50
test rax, rax
je 0x140005ee5
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x140005ee5
inc ebx
mov word [rbp - 0x80], r14w
inc edi
cmp edi, dword [rbp + 0x1c8]
jb 0x140005e78
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x290]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14000787c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
lea rdx, str.DelegateExecute
lea rcx, [rax - 0x18]
mov dword [rax + 0x18], ebx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], ebx
lea r9d, [rbx + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
test eax, eax
js 0x140007906
mov rax, rdi
test rdi, rdi
je 0x1400078ee
cmp word [rdi], bx
je 0x1400078e5
add rax, 2
cmp word [rax], bx
jne 0x1400078dc
mov rbx, rax
sub rbx, rdi
sar rbx, 1
lea eax, [rbx*2 + 2]
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.14000dc6c
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140007fd8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov r15, rdx
xor r12d, r12d
lea rdx, [rsp + 0x50]
mov qword [rbp + 0x1b8], r12
xor ecx, ecx
mov r14, r8
call fcn.14000f988
lea r13, str.lzx32
mov ebx, eax
test eax, eax
js 0x1400081ef
xor eax, eax
lea rdi, [rsp + 0x60]
mov ecx, 0x208
mov rdx, r13
rep stosb byte [rdi], al
lea rcx, [rsp + 0x60]
call fcn.140001af0
lea rdx, str._shellopen
lea rcx, [rsp + 0x60]
call fcn.140001ab4
lea rdx, [0x140026570]
lea rcx, [rsp + 0x60]
call fcn.140001ab4
lea rdx, str.command
lea rcx, [rsp + 0x60]
call fcn.140001ab4
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x1b8]
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov edi, 0x2000000
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140008109
mov rax, r14
test r14, r14
jne 0x1400080c0
mov eax, r12d
jmp 0x1400080d6
cmp word [r14], r12w
je 0x1400080d0
add rax, 2
cmp word [rax], r12w
jne 0x1400080c6
sub rax, r14
sar rax, 1
mov rcx, qword [rbp + 0x1b8]
lea eax, [rax*2 + 2]
mov r9, r14
mov dword [rsp + 0x20], eax
xor edx, edx
call fcn.14000dc6c
mov rcx, qword [rbp + 0x1b8]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x1400081ef
lea rdx, str.ms_settings
mov qword [rbp + 0x1b8], r12
lea rcx, [rsp + 0x60]
call fcn.140001af0
lea rdx, [0x140026570]
lea rcx, [rsp + 0x60]
call fcn.140001ab4
lea rdx, str.CurVer
lea rcx, [rsp + 0x60]
call fcn.140001ab4
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x1b8]
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400081ef
mov rax, r13
add rax, 2
cmp word [rax], r12w
jne 0x14000817f
mov rcx, qword [rbp + 0x1b8]
sub rax, r13
sar rax, 1
mov r9, r13
xor edx, edx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x20], eax
call fcn.14000dc6c
mov ebx, eax
test eax, eax
js 0x1400081d2
mov r9d, 5
mov dword [rsp + 0x20], 0x2ee0
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.14000df88
test eax, eax
cmovne ebx, r12d
mov rcx, qword [rbp + 0x1b8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x50]
mov rdx, r13
call fcn.14000e534
cmp qword [rsp + 0x50], r12
je 0x14000820e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
lea r11, [rsp + 0x270]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14000860c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x430
mov rdx, qword [0x14002ea10]
lea rcx, [rsp + 0x20]
add rdx, 0x47c
call fcn.140001af0
xor edi, edi
lea rbx, [rsp + 0x20]
cmp word [rsp + 0x20], di
je 0x140008648
add rbx, 2
cmp word [rbx], di
jne 0x14000863f
lea rax, [rsp + 0x20]
sub rbx, rax
lea rdx, str.kmkze.msc
lea rcx, [rsp + 0x20]
sar rbx, 1
call fcn.140001ab4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.readme.html
mov word [rsp + rbx*2 + 0x20], di
lea rcx, [rsp + 0x20]
call fcn.140001ab4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, str.osk.exe
mov word [rsp + rbx*2 + 0x20], di
lea rcx, [rsp + 0x20]
call fcn.140001ab4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x440]
add rsp, 0x430
pop rdi
ret
Function at 0x14000a134
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x430
sub ecx, 0x16
je 0x14000a23c
sub ecx, 1
je 0x14000a20a
sub ecx, 7
je 0x14000a1fa
sub ecx, 6
je 0x14000a20a
sub ecx, 1
je 0x14000a1d9
sub ecx, 1
je 0x14000a1cf
sub ecx, 0x25
je 0x14000a1fa
sub ecx, 1
je 0x14000a196
cmp ecx, 1
jne 0x14000a280
lea rdx, str.wbem_
lea rcx, str.ATL.dll
jmp 0x14000a203
mov rdx, qword [0x14002ea10]
lea rcx, [rsp + 0x20]
add rdx, 0x47c
call fcn.140001af0
lea rdx, str.iscsiexe.dll
lea rcx, [rsp + 0x20]
call fcn.140001ab4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000a280
call fcn.14000860c
jmp 0x14000a280
mov rdx, qword [0x14002ea10]
lea rcx, [rsp + 0x20]
add rdx, 0x272
call fcn.140001af0
lea rdx, str.dccw.exe
jmp 0x14000a25b
xor edx, edx
lea rcx, str.wow64log.dll
call fcn.1400086d0
jmp 0x14000a280
mov rax, qword [0x14002ea10]
lea rdi, str.dismcore.dll
cmp dword [rax + 8], 0x4a61
sbb rbx, rbx
add rbx, 2
mov rcx, qword [rdi]
xor edx, edx
call fcn.1400086d0
lea rdi, [rdi + 8]
sub rbx, 1
jne 0x14000a226
jmp 0x14000a280
mov rdx, qword [0x14002ea10]
lea rcx, [rsp + 0x20]
add rdx, 0x272
call fcn.140001af0
lea rdx, str.consent.exe
lea rcx, [rsp + 0x20]
call fcn.140001ab4
lea rdx, str..local
lea rcx, [rsp + 0x20]
call fcn.140001ab4
lea rcx, [rsp + 0x20]
call fcn.140009ebc
mov rbx, qword [rsp + 0x440]
add rsp, 0x430
pop rdi
ret
Function at 0x14000c4e4
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x430
mov rdx, qword [0x14002ea10]
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
add rdx, 0x47c
call fcn.140001af0
lea rdx, str.update.msu
lea rcx, [rsp + 0x20]
call fcn.140001ab4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rsp, 0x430
pop rdi
ret

Function at 0x14000cbe4
Capabilities:
Create thread
Terminate thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x10]
mov r9, rcx
mov qword [r11 - 0x10], rax
lea r8, [0x14000c664]
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14000cc9a
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14000c538]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x14000cc71
mov edx, 0x3a98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000cc68
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x2710
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000cc91
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x14002e9c0]
cmp ecx, 1
mov rsi, qword [rsp + 0x50]
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000dbd4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov edi, r8d
mov dword [rax + 0x10], ebx
mov rsi, rdx
test rdx, rdx
je 0x14000dc52
test r8d, r8d
je 0x14000dc52
mov qword [rax - 0x18], rbx
xor r9d, r9d
mov dword [rax - 0x20], ebx
xor r8d, r8d
mov edx, 0x40000000
mov dword [rax - 0x28], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000dc52
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x58], edi
sete bl
mov eax, ebx
jmp 0x14000dc54
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14000dc6c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor eax, eax
mov rbx, r9
mov rdi, rcx
test rdx, rdx
je 0x14000dc90
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
jmp 0x14000dc99
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000dcc8
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x80
and qword [rbp + 0x10], 0
lea rcx, [rbp - 0x60]
and qword [rbp + 0x18], 0
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x14000ddb5
and qword [rbp - 0x28], 0
lea rax, [rbp - 0x60]
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x30]
mov dword [rbp - 0x30], 0x30
mov edx, 0x2000000
mov dword [rbp - 0x18], 0x40
lea rcx, [rbp + 0x10]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000ddab
lea rdx, str.Environment
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp + 0x10]
lea r8, [rbp - 0x30]
mov qword [rbp - 0x28], rax
lea rcx, [rbp + 0x18]
lea rax, [rbp - 0x50]
mov edx, 0x2000000
mov qword [rbp - 0x20], rax
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000dda1
lea rdx, str.Path
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x18]
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov rcx, qword [rbp + 0x18]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rbp
ret
Function at 0x14000ddc8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15, qword [rsp + 0x90]
mov r14, r9
and dword [rax + 0x20], 0
mov ebp, r8d
and qword [r9], 0
mov r12, rcx
mov rsi, qword [rsp + 0x98]
and dword [r15], 0
test rsi, rsi
jne 0x14000de1a
mov rax, qword gs:[0x30]
mov r9, qword [rax + 0x60]
mov rsi, qword [r9 + 0x30]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor r9d, r9d
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
and dword [rsp + 0x20], 0
mov rcx, r12
lea r8d, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
jne 0x14000df0d
mov r8d, dword [rsp + 0x88]
mov edx, 8
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000df08
mov ecx, dword [rsp + 0x88]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, r12
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x14000def8
cmp dword [rdi + 4], ebp
jne 0x14000def3
mov r8d, dword [rdi + 8]
mov edx, 8
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000deec
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, rax
call fcn.140014fb0
mov qword [r14], rbx
xor ebx, ebx
mov eax, dword [rdi + 8]
mov dword [r15], eax
jmp 0x14000def8
mov ebx, 0xc0000017
jmp 0x14000def8
mov ebx, 0xc0000024
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14000df0d
mov ebx, 0xc0000017
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14000df28
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x90
mov r10, rcx
lea rdi, [rsp + 0x20]
xor eax, eax
lea r11d, [rax + 0x70]
mov ecx, r11d
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], r11d
mov dword [rsp + 0x24], 0x440
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x30], r8
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
neg eax
sbb rax, rax
and rax, qword [rsp + 0x88]
add rsp, 0x90
pop rdi
ret

Function at 0x14000df88
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
call fcn.14000df28
mov rdi, rax
test rax, rax
je 0x14000dfd2
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x14000dfc4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0x102
cmp eax, edx
jne 0x14000dfc4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000dfe0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, edx
xor esi, esi
mov r10, rcx
mov rdx, rcx
mov r8d, esi
lea r9d, [rdi + 1]
shr r9d, 1
je 0x14000e022
movzx eax, word [rdx]
lea rdx, [rdx + 2]
add r8d, eax
mov ecx, r8d
movzx r8d, r8w
shr ecx, 0x10
add r8d, ecx
add r9d, 0xffffffff
jne 0x14000e005
mov ebx, r8d
mov rcx, r10
shr ebx, 0x10
add bx, r8w
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x14000e056
movzx ecx, word [rax + 0x58]
movzx eax, word [rax + 0x5a]
cmp bx, cx
adc cx, si
sub bx, cx
cmp bx, ax
adc ax, si
sub bx, ax
jmp 0x14000e059
movzx ebx, si
mov rsi, qword [rsp + 0x38]
movzx eax, bx
mov rbx, qword [rsp + 0x30]
add eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x14000e070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x58], 0
mov rsi, r9
mov rbx, r8
mov rdi, rdx
test r8, r8
je 0x14000e096
and dword [r8], 0
test rdi, rdi
jne 0x14000e0a2
mov eax, 0xc00000f0
jmp 0x14000e0fe
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0x20], 0xa
mov r8d, 3
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
mov ecx, eax
test eax, eax
js 0x14000e0fc
mov rdx, qword [rsp + 0x60]
lea r9, [rsp + 0x58]
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
mov ecx, eax
test eax, eax
js 0x14000e0fc
test rbx, rbx
je 0x14000e0fc
mov eax, dword [rsp + 0x58]
mov dword [rbx], eax
mov eax, ecx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14000e3f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rsi, rdx
mov r14, rcx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ebx, ebx
test eax, eax
je 0x14000e515
lea rax, [rbp + 0x1a8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000e456
cmp eax, 2
je 0x14000e515
xor eax, eax
jmp 0x14000e51a
mov rdi, rsi
test rsi, rsi
jne 0x14000e463
mov rdi, rbx
jmp 0x14000e471
cmp word [rsi], bx
je 0x14000e471
add rdi, 2
cmp word [rdi], bx
jne 0x14000e468
mov eax, 0x5c
cmp word [rdi - 2], ax
je 0x14000e486
mov word [rdi], ax
add rdi, 2
mov word [rdi], bx
mov r15d, 0x104
jmp 0x14000e4b0
mov r9, r15
lea r8, [rsp + 0x50]
mov rdx, r15
mov rcx, rdi
call fcn.140001b30
mov rdx, rsi
mov rcx, r14
call fcn.14000e3f0
test eax, eax
je 0x14000e4ef
mov rcx, qword [rbp + 0x1a8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x1a0]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
mov dword [rbp + 0x1a0], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000e48e
mov rcx, qword [rbp + 0x1a8]
mov word [rdi - 2], bx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
mov eax, ebx
jmp 0x14000e51a
mov eax, 1
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e588
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14d, ecx
mov qword [rbp + 0x6f], r15
mov ecx, r15d
mov qword [rbp + 0x77], rcx
mov rdi, r9
mov qword [rbp - 0x21], r15
mov esi, r15d
mov ebx, 0xc0000001
test r9, r9
jne 0x14000e5d7
test r14d, r14d
je 0x14000e70e
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x14000e70a
lea rax, [rbp - 0x29]
mov dword [rbp + 7], 0x30
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
lea r8, [rbp + 7]
mov qword [rbp + 0xf], r15
mov edx, 0x2000000
mov dword [rbp + 0x1f], 0x40
lea rcx, [rbp + 0x6f]
mov esi, 1
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000e70a
lea rdx, str.Environment
lea rcx, [rbp - 9]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp + 0x6f]
lea r8, [rbp + 7]
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 0x77]
lea rax, [rbp - 9]
mov edx, 0x2000000
mov qword [rbp + 0x17], rax
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000e70a
lea rdx, str.windir
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test r14d, r14d
je 0x14000e693
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
jmp 0x14000e6da
mov rax, rdi
test rdi, rdi
jne 0x14000e6a0
mov rax, r15
jmp 0x14000e6b6
cmp word [rdi], r15w
je 0x14000e6b0
add rax, 2
cmp word [rax], r15w
jne 0x14000e6a6
sub rax, rdi
sar rax, 1
mov rcx, qword [rbp + 0x77]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [rbp - 0x19]
mov r9d, esi
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x14000e70a
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x3e8
lea r9, str.windir
mov ecx, 0xffff
mov dword [rsp + 0x20], esi
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x14000e719
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x14000e728
call qword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x14000e736
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
not ebx
shr ebx, 0x1f
mov eax, ebx
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e754
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
mov rbx, r9
mov qword [rax + 0x10], r14
mov rbp, r8
mov esi, ecx
mov edi, r14d
test r8, r8
je 0x14000e861
test rbx, rbx
jne 0x14000e793
test ecx, ecx
je 0x14000e861
lea r8, [rsp + 0x68]
mov rcx, 0xffffffff80000001
lea rdx, str.Environment
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000e846
test esi, esi
je 0x14000e7c8
mov rcx, qword [rsp + 0x68]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14000e812
mov rax, rbx
test rbx, rbx
jne 0x14000e7d5
mov rax, r14
jmp 0x14000e7eb
cmp word [rbx], r14w
je 0x14000e7e5
add rax, 2
cmp word [rax], r14w
jne 0x14000e7db
sub rax, rbx
sar rax, 1
mov rcx, qword [rsp + 0x68]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete dil
test edi, edi
je 0x14000e846
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x3e8
mov r9, rbp
mov ecx, 0xffff
mov dword [rsp + 0x20], 1
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000e861
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret