joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007fe4
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.14000f794
lea r13, str.lzx32
mov ebx, eax
test eax, eax
js 0x1400081fb
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, [0x1400265c0]
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 0x140008115
mov rax, r14
test r14, r14
jne 0x1400080cc
mov eax, r12d
jmp 0x1400080e2
cmp word [r14], r12w
je 0x1400080dc
add rax, 2
cmp word [rax], r12w
jne 0x1400080d2
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.14000da78
mov rcx, qword [rbp + 0x1b8]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x1400081fb
lea rdx, str.ms_settings
mov qword [rbp + 0x1b8], r12
lea rcx, [rsp + 0x60]
call fcn.140001af0
lea rdx, [0x1400265c0]
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 0x1400081fb
mov rax, r13
add rax, 2
cmp word [rax], r12w
jne 0x14000818b
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.14000da78
mov ebx, eax
test eax, eax
js 0x1400081de
mov r9d, 5
mov dword [rsp + 0x20], 0x2ee0
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.14000dd94
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.14000e340
cmp qword [rsp + 0x50], r12
je 0x14000821a
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 0x140008618
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x430
mov rdx, qword [0x14002ea00]
lea rcx, [rsp + 0x20]
add rdx, 0x47c
call fcn.140001af0
xor edi, edi
lea rbx, [rsp + 0x20]
cmp word [rsp + 0x20], di
je 0x140008654
add rbx, 2
cmp word [rbx], di
jne 0x14000864b
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 0x14000a140
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x430
sub ecx, 0x16
je 0x14000a248
sub ecx, 1
je 0x14000a216
sub ecx, 7
je 0x14000a206
sub ecx, 6
je 0x14000a216
sub ecx, 1
je 0x14000a1e5
sub ecx, 1
je 0x14000a1db
sub ecx, 0x25
je 0x14000a206
sub ecx, 1
je 0x14000a1a2
cmp ecx, 1
jne 0x14000a28c
lea rdx, str.wbem_
lea rcx, str.ATL.dll
jmp 0x14000a20f
mov rdx, qword [0x14002ea00]
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 0x14000a28c
call fcn.140008618
jmp 0x14000a28c
mov rdx, qword [0x14002ea00]
lea rcx, [rsp + 0x20]
add rdx, 0x272
call fcn.140001af0
lea rdx, str.dccw.exe
jmp 0x14000a267
xor edx, edx
lea rcx, str.wow64log.dll
call fcn.1400086dc
jmp 0x14000a28c
mov rax, qword [0x14002ea00]
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.1400086dc
lea rdi, [rdi + 8]
sub rbx, 1
jne 0x14000a232
jmp 0x14000a28c
mov rdx, qword [0x14002ea00]
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.140009ec8
mov rbx, qword [rsp + 0x440]
add rsp, 0x430
pop rdi
ret
Function at 0x14000c328
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x430
mov rdx, qword [0x14002ea00]
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 0x14000ca28
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, [0x14000c4a8]
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 0x14000cade
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14000c37c]
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 0x14000cab5
mov edx, 0x3a98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000caac
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 0x14000cad5
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 [0x14002e9b0]
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 0x14000d9e0
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 0x14000da5e
test r8d, r8d
je 0x14000da5e
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 0x14000da5e
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 0x14000da60
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 0x14000da78
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 0x14000da9c
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
jmp 0x14000daa5
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 0x14000dad4
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 0x14000dbc1
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 0x14000dbb7
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 0x14000dbad
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 0x14000dbd4
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 0x14000dc26
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 0x14000dd19
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 0x14000dd14
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 0x14000dd04
cmp dword [rdi + 4], ebp
jne 0x14000dcff
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 0x14000dcf8
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, rax
call fcn.140014e40
mov qword [r14], rbx
xor ebx, ebx
mov eax, dword [rdi + 8]
mov dword [r15], eax
jmp 0x14000dd04
mov ebx, 0xc0000017
jmp 0x14000dd04
mov ebx, 0xc0000024
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14000dd19
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 0x14000dd34
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 0x14000dd94
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
call fcn.14000dd34
mov rdi, rax
test rax, rax
je 0x14000ddde
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x14000ddd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0x102
cmp eax, edx
jne 0x14000ddd0
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 0x14000ddec
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 0x14000de2e
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 0x14000de11
mov ebx, r8d
mov rcx, r10
shr ebx, 0x10
add bx, r8w
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x14000de62
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 0x14000de65
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 0x14000de7c
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 0x14000dea2
and dword [r8], 0
test rdi, rdi
jne 0x14000deae
mov eax, 0xc00000f0
jmp 0x14000df0a
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 0x14000df08
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 0x14000df08
test rbx, rbx
je 0x14000df08
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 0x14000e1fc
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 0x14000e321
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 0x14000e262
cmp eax, 2
je 0x14000e321
xor eax, eax
jmp 0x14000e326
mov rdi, rsi
test rsi, rsi
jne 0x14000e26f
mov rdi, rbx
jmp 0x14000e27d
cmp word [rsi], bx
je 0x14000e27d
add rdi, 2
cmp word [rdi], bx
jne 0x14000e274
mov eax, 0x5c
cmp word [rdi - 2], ax
je 0x14000e292
mov word [rdi], ax
add rdi, 2
mov word [rdi], bx
mov r15d, 0x104
jmp 0x14000e2bc
mov r9, r15
lea r8, [rsp + 0x50]
mov rdx, r15
mov rcx, rdi
call fcn.140001b30
mov rdx, rsi
mov rcx, r14
call fcn.14000e1fc
test eax, eax
je 0x14000e2fb
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 0x14000e29a
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 0x14000e326
mov eax, 1
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e394
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 0x14000e3e3
test r14d, r14d
je 0x14000e51a
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x14000e516
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 0x14000e516
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 0x14000e516
lea rdx, str.windir
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test r14d, r14d
je 0x14000e49f
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
jmp 0x14000e4e6
mov rax, rdi
test rdi, rdi
jne 0x14000e4ac
mov rax, r15
jmp 0x14000e4c2
cmp word [rdi], r15w
je 0x14000e4bc
add rax, 2
cmp word [rax], r15w
jne 0x14000e4b2
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 0x14000e516
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 0x14000e525
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x14000e534
call qword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x14000e542
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 0x14000e560
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 0x14000e66d
test rbx, rbx
jne 0x14000e59f
test ecx, ecx
je 0x14000e66d
lea r8, [rsp + 0x68]
mov rcx, 0xffffffff80000001
lea rdx, str.Environment
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000e652
test esi, esi
je 0x14000e5d4
mov rcx, qword [rsp + 0x68]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14000e61e
mov rax, rbx
test rbx, rbx
jne 0x14000e5e1
mov rax, r14
jmp 0x14000e5f7
cmp word [rbx], r14w
je 0x14000e5f1
add rax, 2
cmp word [rax], r14w
jne 0x14000e5e7
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 0x14000e652
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 0x14000e66d
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
Function at 0x14000e684
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov dword [rax + 8], ecx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rax - 0x178]
sub rsp, 0x250
xor r14d, r14d
mov rsi, r9
mov qword [rbp + 0x190], r14
mov ebx, r14d
test r9, r9
je 0x14000e82d
xor eax, eax
lea rdi, [rsp + 0x40]
mov ecx, 0x208
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x180]
mov dword [rbp + 0x180], eax
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov dword [rbp + 0x188], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
not eax
lea rcx, [rbp + 0x180]
mov dword [rbp + 0x180], eax
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov dword [rbp + 0x18c], eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp + 0x188]
call fcn.14000f718
mov rdi, 0xffffffff80000001
lea r8, [rsp + 0x40]
mov rcx, rdi
lea rdx, str.Environment
call qword [sym.imp.ADVAPI32.dll_RegRenameKey]
test eax, eax
jne 0x14000e80e
lea r8, [rbp + 0x190]
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000e7c7
mov rax, rsi
cmp word [rsi], r14w
je 0x14000e76e
add rax, 2
cmp word [rax], r14w
jne 0x14000e764
mov rcx, qword [rbp + 0x190]
lea rdx, str.windir
sub rax, rsi
mov r9d, 1
sar rax, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x190]
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x190], r14
lea r8, str.Environment
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegRenameKey]
test ebx, ebx
je 0x14000e80e
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x3e8
lea r9, str.windir
mov ecx, 0xffff
mov dword [rsp + 0x20], 1
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rbp + 0x190]
test rcx, rcx
je 0x14000e82d
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret