joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000370c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xfa8]
mov eax, 0x1080
call fcn.140010520
sub rsp, rax
mov rbx, rcx
lea rdi, [rsp + 0x30]
xor esi, esi
lea rdx, [rsp + 0x50]
xor eax, eax
mov dword [rbp + 0xfc0], esi
mov dword [rbp + 0xfb8], esi
mov r15d, 0x1000
lea ecx, [rsi + 0x10]
rep stosb byte [rdi], al
mov eax, dword [rbx + 8]
lea rdi, [rsp + 0x40]
mov dword [rsp + 0x3c], eax
lea ecx, [rsi + 0x38]
xor eax, eax
mov dword [rsp + 0x30], 0x30b0005
rep stosb byte [rdi], al
lea r14d, [rsi + 1]
mov dword [rsp + 0x34], InitCommonControls
lea rcx, str.367abb81_9844_35f1_ad32_98f038001003
mov dword [rsp + 0x38], 0x48
lea r12d, [rsi + 5]
mov qword [rsp + 0x40], 0x10001000
mov byte [rsp + 0x48], r14b
mov dword [rsp + 0x4c], 0x10000
mov dword [rsp + 0x74], 2
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x1400038bb
lea rdx, [rsp + 0x64]
mov dword [rsp + 0x60], 2
lea rcx, str.8a885d04_1ceb_11c9_9fe8_08002b104860
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x1400038bb
mov rcx, qword [rbx]
lea r9, [rbp + 0xfc0]
lea r8d, [rsi + 0x10]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400038bb
mov rcx, qword [rbx]
lea r9, [rbp + 0xfc0]
lea r8d, [rsi + 0x38]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400038bb
add dword [rbx + 8], r14d
lea rdi, [rbp - 0x80]
xor eax, eax
mov qword [rsp + 0x20], rsi
mov ecx, r15d
lea r9, [rbp + 0xfb8]
rep stosb byte [rdi], al
mov rcx, qword [rbx]
lea rdx, [rbp - 0x80]
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400038bb
cmp word [rbp - 0x80], r12w
jne 0x1400038bb
cmp byte [rbp - 0x7e], 0xc
jne 0x1400038bb
cmp byte [rbp - 0x7d], 3
jne 0x1400038bb
movzx eax, word [rbp - 0x78]
cmp eax, dword [rbp + 0xfb8]
jne 0x1400038bb
mov eax, pe_nt_image_headers64
cmp word [rbp - 0x68], ax
ja 0x1400038bb
movzx edx, word [rbp - 0x68]
lea rcx, [rdx + 5]
and rcx, 0xfffffffffffffffc
sub rcx, rdx
sub rcx, 2
mov ecx, ecx
add rcx, rdx
cmp dword [rbp + rcx - 0x66], r14d
jne 0x1400038bb
cmp word [rbp + rcx - 0x62], si
jne 0x1400038bb
mov eax, r14d
jmp 0x1400038bd
xor eax, eax
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400038dc
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xf40]
mov eax, 0x1040
call fcn.140010520
sub rsp, rax
xor esi, esi
mov rbx, rcx
mov dword [rbp + 0xf70], esi
mov dword [rbp + 0xf80], esi
cmp dword [rcx + 0x10], esi
je 0x140003a77
mov dword [rcx + 0x10], esi
cmp dword [rcx + 0xc], esi
jne 0x140003a77
xor eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 0x10]
mov ecx, r8d
lea rdi, [rsp + 0x30]
rep stosb byte [rdi], al
movzx eax, word [rbx + 0x814]
lea rdi, [rbp + 0xf88]
add ax, 0x18
mov dword [rsp + 0x30], 0x3000005
mov word [rsp + 0x38], ax
lea ecx, [rsi + 8]
mov eax, dword [rbx + 8]
lea r9, [rbp + 0xf70]
mov dword [rsp + 0x3c], eax
lea r14d, [rsi + 5]
xor eax, eax
mov dword [rsp + 0x34], r8d
rep stosb byte [rdi], al
mov rcx, qword [rbx]
mov word [rbp + 0xf8e], dx
lea rdx, [rsp + 0x30]
mov word [rsp + 0x3a], si
mov dword [rbp + 0xf88], esi
mov word [rbp + 0xf8c], si
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003a77
mov rcx, qword [rbx]
lea r9, [rbp + 0xf70]
lea r8d, [rsi + 8]
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0xf88]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003a77
mov r8d, dword [rbx + 0x814]
lea rdx, [rbx + 0x14]
mov rcx, qword [rbx]
lea r9, [rbp + 0xf70]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003a77
inc dword [rbx + 8]
lea rdi, [rsp + 0x40]
mov edx, 0x1000
mov qword [rsp + 0x20], rsi
mov ecx, edx
lea r9, [rbp + 0xf80]
xor eax, eax
mov r8d, edx
rep stosb byte [rdi], al
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003a77
cmp word [rsp + 0x40], r14w
jne 0x140003a77
cmp byte [rsp + 0x42], 2
jne 0x140003a77
cmp byte [rsp + 0x43], 3
jne 0x140003a77
movzx edi, word [rsp + 0x48]
cmp edi, dword [rbp + 0xf80]
jne 0x140003a77
cmp word [rsp + 0x54], si
jne 0x140003a77
add edi, 0xffffffe8
cmp edi, 0x800
ja 0x140003a77
mov r8d, edi
lea rcx, [rbx + 0x818]
lea rdx, [rsp + 0x58]
call sub.VCRUNTIME140D.dll_memcpy
lea eax, [rsi + 1]
mov dword [rbx + 0x1018], edi
jmp 0x140003a79
xor eax, eax
add rsp, 0x1040
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140005674
Capabilities:
Query service status

Disassembly:
sub rsp, 0x68
lea rax, [rsp + 0x78]
mov r9d, 0x24
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
mov ecx, 1
cmovne ecx, dword [rsp + 0x34]
mov eax, ecx
add rsp, 0x68
ret

Function at 0x1400056a8
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rdx, str.ServicesActive
xor ecx, ecx
mov r8d, 1
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x14000577e
mov r8d, 0x14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140005775
mov rcx, rax
call fcn.140005674
mov edi, eax
cmp eax, 4
je 0x14000576a
cmp eax, 6
je 0x140005715
cmp eax, 3
jne 0x140005739
mov ebx, 5
mov rcx, rsi
call fcn.140005674
mov edi, eax
cmp eax, 4
je 0x14000576a
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0xffffffff
jne 0x14000571a
xor bl, bl
cmp edi, 1
jne 0x14000576c
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14000576c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.140005674
cmp eax, 4
jne 0x14000576c
mov bl, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005798
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.14000f4a0
test eax, eax
js 0x14000594b
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 0x14000584c
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, [0x1400150e0]
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 0x140005937
mov rax, rdi
test rdi, rdi
jne 0x1400058db
mov rax, rbx
jmp 0x1400058ef
cmp word [rdi], bx
je 0x1400058e9
add rax, 2
cmp word [rax], bx
jne 0x1400058e0
sub rax, rdi
sar rax, 1
mov rcx, qword [rbp + 0x178]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x140015298]
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 0x14000593c
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 0x140005b4c
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 0x140005c80
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 0x140005c80
mov edx, dword [rbp + 0x1c8]
test edx, edx
je 0x140005c80
lea rdi, [rbp - 0x80]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov edi, r14d
test edx, edx
je 0x140005c80
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 0x140005c76
cmp dword [rsp + 0x60], 3
jne 0x140005c71
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.140001cd0
test rax, rax
je 0x140005c71
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x140005c71
inc ebx
mov word [rbp - 0x80], r14w
inc edi
cmp edi, dword [rbp + 0x1c8]
jb 0x140005c04
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 0x14000767c
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 0x140007706
mov rax, rdi
test rdi, rdi
je 0x1400076ee
cmp word [rdi], bx
je 0x1400076e5
add rax, 2
cmp word [rax], bx
jne 0x1400076dc
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.14000d81c
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140007d8c
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.14000f4a0
lea r13, str.lzx32
mov ebx, eax
test eax, eax
js 0x140007faf
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, [0x1400150e0]
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 0x140007ec5
mov rax, r14
test r14, r14
jne 0x140007e7c
mov eax, r12d
jmp 0x140007e92
cmp word [r14], r12w
je 0x140007e8c
add rax, 2
cmp word [rax], r12w
jne 0x140007e82
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.14000d81c
mov rcx, qword [rbp + 0x190]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x140007faf
lea rdx, str.ms_settings
mov qword [rbp + 0x190], r12
lea rcx, [rsp + 0x50]
call fcn.140001b70
lea rdx, [0x1400150e0]
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 0x140007faf
mov rax, r13
add rax, 2
cmp word [rax], r12w
jne 0x140007f3d
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.14000d81c
mov ebx, eax
test eax, eax
js 0x140007f90
mov r9d, 5
mov dword [rsp + 0x20], 0x2ee0
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.14000db38
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.14000e094
cmp qword [rbp + 0x1a8], r12
je 0x140007fd4
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 0x1400083d8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x430
mov rdx, qword [0x140019fd8]
lea rcx, [rsp + 0x20]
add rdx, 0x47c
call fcn.140001b70
xor edi, edi
lea rbx, [rsp + 0x20]
cmp word [rsp + 0x20], di
je 0x140008414
add rbx, 2
cmp word [rbx], di
jne 0x14000840b
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 0x140009c34
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rsi, rcx
and qword [rsp + 0x50], rdi
xor ecx, ecx
and qword [rsp + 0x48], rdi
lea edx, [rdi + 2]
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea r9, [rsp + 0x50]
mov ebp, eax
lea rdx, [0x1400117d0]
lea rcx, str.3AD05575_8857_4850_9277_11B85BDB8E09
call fcn.1400097dc
mov rbx, qword [rsp + 0x50]
test eax, eax
jne 0x140009cf8
test rbx, rbx
je 0x140009d0b
mov rax, qword [0x140019fd8]
mov rcx, rbx
mov r8, qword [rbx]
mov edx, dword [rax + 0x10]
call qword [r8 + 0x28]
test eax, eax
jne 0x140009cf8
lea r9, [rsp + 0x48]
xor edx, edx
lea r8, [0x1400117c0]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
jne 0x140009cf8
mov rax, qword [rbx]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call qword [rax + 0x90]
test eax, eax
jne 0x140009cf8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xa8]
test eax, eax
jne 0x140009cf8
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
xor ecx, ecx
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
jmp 0x140009cfd
mov rcx, qword [rsp + 0x48]
test rbx, rbx
je 0x140009d10
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + InitCommonControls]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140009d1b
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
test ebp, ebp
jne 0x140009d25
call qword [sym.imp.ole32.dll_CoUninitialize]
test edi, edi
je 0x140009d3b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str._r_nCleanup_success_r_n
jmp 0x140009d42
lea rcx, str._r_nCleanup_failed_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009ed0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x430
sub ecx, 0x16
je 0x140009fd8
sub ecx, 1
je 0x140009fa6
sub ecx, 7
je 0x140009f96
sub ecx, 6
je 0x140009fa6
sub ecx, 1
je 0x140009f75
sub ecx, 1
je 0x140009f6b
sub ecx, 0x25
je 0x140009f96
sub ecx, 1
je 0x140009f32
cmp ecx, 1
jne 0x14000a01c
lea rdx, str.wbem_
lea rcx, str.ATL.dll
jmp 0x140009f9f
mov rdx, qword [0x140019fd8]
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 0x14000a01c
call fcn.1400083d8
jmp 0x14000a01c
mov rdx, qword [0x140019fd8]
lea rcx, [rsp + 0x20]
add rdx, 0x272
call fcn.140001b70
lea rdx, str.dccw.exe
jmp 0x140009ff7
xor edx, edx
lea rcx, str.wow64log.dll
call fcn.14000849c
jmp 0x14000a01c
mov rax, qword [0x140019fd8]
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.14000849c
lea rdi, [rdi + 8]
sub rbx, 1
jne 0x140009fc2
jmp 0x14000a01c
mov rdx, qword [0x140019fd8]
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.140009c34
mov rbx, qword [rsp + 0x440]
add rsp, 0x430
pop rdi
ret
Function at 0x14000c0c8
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x430
mov rdx, qword [0x140019fd8]
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 0x14000c680
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, [0x14000c248]
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 0x14000c736
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14000c11c]
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 0x14000c70d
mov edx, 0x3a98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000c704
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 0x14000c72d
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 [0x140019f88]
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 0x14000d630
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 0x14000d6c2
test r8d, r8d
je 0x14000d6c2
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 0x14000d6ae
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 0x14000d6c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateFile
call fcn.14000d6dc
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 0x14000d6dc
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov r14d, edx
mov rbx, rcx
mov r8d, 0x104
test rcx, rcx
je 0x14000d728
mov rax, rcx
cmp word [rcx], r15w
je 0x14000d71b
add rax, 2
cmp word [rax], r15w
jne 0x14000d711
sub rax, rbx
sar rax, 1
lea r8, [rax + 0x104]
mov rax, qword [0x140019fd8]
test rax, rax
jne 0x14000d747
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rsi, qword [rcx + 0x30]
jmp 0x14000d74b
mov rsi, qword [rax + 0x18]
mov ebp, 8
add r8, r8
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000d802
lea rdx, str._UCM_
mov rcx, rax
call fcn.140001b70
test rbx, rbx
je 0x14000d786
mov rdx, rbx
call fcn.140001ac8
lea rdx, str._code__0x
mov rcx, rdi
call fcn.140001ac8
mov r9, rdi
cmp word [rdi], r15w
je 0x14000d7a8
add r9, 2
cmp word [r9], r15w
jne 0x14000d79e
lea rdx, [r9 + 0xe]
movzx ecx, r14w
shr r14d, 4
and cx, 0xf
cmp cx, 0xa
sbb ax, ax
and ax, 0xfff9
add ax, 0x37
add ax, cx
mov word [rdx], ax
lea rdx, [rdx - 2]
sub rbp, 1
jne 0x14000d7ac
lea rdx, reloc.Cabinet.dll_FCICreate
mov word [r9 + 0x10], r15w
mov rcx, rdi
call fcn.140001ac8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14000d81c
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 0x14000d840
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
jmp 0x14000d849
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