joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140170810
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x38], rax
lea edx, [rax + 0xc]
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r9d, 0xc
lea r8, str.SophosClean
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
mov edx, 0xc
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
mov edx, 0x26
lea rcx, [rsp + 0x50]
call fcn.1402081e0
nop
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rbx
call fcn.1400d2ba0
mov dword [rsp + 0x20], 1
cmp dword [rsp + 0x58], 0
jle 0x1401708a8
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
nop
cmp dword [rsp + 0x38], 0
jle 0x1401708b9
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1401ff680
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401708ed
test al, 0x10
je 0x1401708ed
cmp dword [rsp + 0x48], 0
jle 0x14017090c
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
jmp 0x14017090c
cmp dword [rsp + 0x48], 0
jle 0x1401708fe
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
xor r8d, r8d
mov rdx, qword [rbx]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rax, rbx
add rsp, 0x60
pop rbx
ret
Function at 0x140170cb0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140170db0
lea rdx, str.Sophos_Clean_Service
mov r8d, 0x10020
mov rcx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140170d22
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140170da2
mov bl, 1
jmp 0x140170da2
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140170d67
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x140170d67
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140358a20]
lea rdx, str._ls___failed__error__d_
mov r9d, eax
mov ecx, 2
call fcn.14016fab0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140170d78
mov bl, 1
jmp 0x140170d99
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140358a40]
lea rdx, str._ls___failed__error__d_
mov r9d, eax
mov ecx, 2
call fcn.14016fab0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
Function at 0x140174df0
Capabilities:
Unmount volume via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
xor dil, dil
call fcn.140175100
mov eax, dword [0x140345f88]
movsd xmm0, qword [0x140345f80]
xor esi, esi
movsd qword [rsp + 0x48], xmm0
mov dword [rsp + 0x50], eax
movzx eax, word [0x140345f8c]
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x54], ax
movzx eax, word [rbx + 8]
lea r8d, [rsi + 3]
lea rcx, [rsp + 0x48]
xor r9d, r9d
mov edx, 0x40100081
mov dword [rsp + 0x28], esi
mov word [rsp + 0x50], ax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140174f29
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90018
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140174f20
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x90020
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140174f20
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x2d4808
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx edi, dil
mov ecx, 1
test eax, eax
cmovne edi, ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140174f50
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x178
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x160], rax
movzx eax, byte [rcx + 8]
mov dword [rsp + 0x40], 0x5c3a5f
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x40], al
xor eax, eax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, 0x105
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x140174fda
lea rdx, [rsp + 0x50]
lea rcx, str.HITMANPRO
call fcn.1402b7e08
test eax, eax
jne 0x140174fda
mov al, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x178
ret
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x178
ret
Function at 0x140175210
Capabilities:
Delete drive layout via ioctl

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
xor r14b, r14b
mov rsi, rcx
cmp qword [rcx + 0x70], rbx
jne 0x140175261
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
add rcx, 0x24
xor r9d, r9d
mov edx, 0x100003
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140175261
mov qword [rsi + 0x70], rax
mov rcx, qword [rsi + 0x70]
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7c100
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx ebx, word [rsi + 0x54]
mov ecx, ebx
call fcn.1402b7390
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1402bfa30
lea rax, [rsp + 0x68]
mov ebp, 1
mov r9d, ebp
mov r8, rdi
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140175510
movzx ebx, r14b
mov rcx, rdi
test al, al
cmovne ebx, ebp
call fcn.1402b7350
mov rbp, qword [rsp + 0x78]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x140175420
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
movzx esi, word [rcx + 0x54]
xor ebx, ebx
mov rdi, rcx
xor ecx, ecx
mov eax, esi
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x20], rcx
mov qword [r11 - 0x18], rcx
mov qword [r11 - 0x10], rcx
imul esi, r9d
imul rax, rdx
mov dword [rsp + 0x50], eax
shr rax, 0x20
mov rbp, r8
mov dword [rsp + 0x54], eax
mov dword [r11 + 0x20], ebx
cmp qword [rdi + 0x70], rcx
jne 0x1401754a2
mov qword [r11 - 0x38], rbx
lea rcx, [rdi + 0x24]
lea r8d, [rbx + 3]
xor r9d, r9d
mov edx, 0x100003
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1401754a2
mov qword [rdi + 0x70], rax
mov rcx, qword [rdi + 0x70]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x88]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8, qword [rsp + 0x90]
mov r9d, eax
test r8, r8
je 0x1401754e6
movzx ecx, word [rdi + 0x54]
mov eax, dword [rsp + 0x88]
xor edx, edx
div ecx
mov dword [r8], eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
test r9d, r9d
setne al
add rsp, 0x60
pop rdi
ret
Function at 0x140175510
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
movzx esi, word [rcx + 0x54]
xor ebx, ebx
mov rdi, rcx
xor ecx, ecx
mov eax, esi
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x20], rcx
mov qword [r11 - 0x18], rcx
mov qword [r11 - 0x10], rcx
imul esi, r9d
imul rax, rdx
mov dword [rsp + 0x50], eax
shr rax, 0x20
mov rbp, r8
mov dword [rsp + 0x54], eax
mov dword [r11 + 0x20], ebx
cmp qword [rdi + 0x70], rcx
jne 0x140175592
mov qword [r11 - 0x38], rbx
lea rcx, [rdi + 0x24]
lea r8d, [rbx + 3]
xor r9d, r9d
mov edx, 0x100003
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140175592
mov qword [rdi + 0x70], rax
mov rcx, qword [rdi + 0x70]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x88]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8, qword [rsp + 0x90]
mov r9d, eax
test r8, r8
je 0x1401755d6
movzx ecx, word [rdi + 0x54]
mov eax, dword [rsp + 0x88]
xor edx, edx
div ecx
mov dword [r8], eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
test r9d, r9d
setne al
add rsp, 0x60
pop rdi
ret
Function at 0x140176ac0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
sub rsp, 0x2a8
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x290], rax
cmp byte [0x140428c56], 0
je 0x140176afc
xor al, al
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x2a8
ret
mov qword [rsp + 0x2b0], rbx
mov qword [rsp + 0x2b8], rbp
lea rax, str.HitmanPro.lic
mov qword [rsp + 0x2c0], rsi
mov qword [rsp + 0x30], rax
lea rax, str.HitmanPro.key
xor ebp, ebp
mov qword [rsp + 0x2a0], rdi
mov sil, 1
mov qword [rsp + 0x38], rax
mov ebx, ebp
lea rdi, [rsp + 0x30]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x20]
call fcn.1400f1930
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140176b9f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x140176b8b
mov rcx, qword [rsp + 0x20]
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx esi, sil
test eax, eax
cmove esi, ebp
cmp dword [rsp + 0x28], ebp
jle 0x140176baf
mov rcx, qword [rsp + 0x20]
call fcn.1402b7350
inc ebx
add rdi, 8
movsxd rcx, ebx
cmp rcx, 2
jb 0x140176b40
mov rdi, qword [rsp + 0x2a0]
mov rbp, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2b0]
movzx eax, sil
mov rsi, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x2a8
ret
Function at 0x14017ca40
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x90
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0x10
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x14017cad8
lea rax, vtable.Core::Text::ASCIIEncoding.0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140202020
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140201ca0
nop
jmp 0x14017cae7
mov rdx, qword [0x140416ee8]
mov rcx, rbx
call fcn.1401faae0
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x90
pop rbx
ret
Function at 0x14017e590
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x280], rbx
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, qword [0x140428b78]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14017e5de
xor eax, eax
jmp 0x14017e698
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14017e5f0
mov qword [rsp + 0x38], 0
test ebx, ebx
jne 0x14017e615
lea rax, [0x140346ce0]
mov qword [rsp + 0x30], rax
jmp 0x14017e63c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400f8ca0
mov rcx, rax
mov dword [rsp + 0x20], 0
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
call fcn.1402d68d8
mov rbx, rax
cmp dword [rsp + 0x38], 0
jle 0x14017e68a
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
test rbx, rbx
je 0x14017e5d7
call fcn.14018b340
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x14017ef50
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rsi, r8
mov rbx, rdx
mov r14, rcx
lea rax, [0x140346ce0]
mov qword [rcx + 8], rax
xor r12d, r12d
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x28], r12
lea r15, vtable.Core::EventWaitHandle.0
mov qword [rcx + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r14 + 0x28], rax
lea rbp, vtable.Core::ManualResetEvent.0
mov qword [r14 + 0x20], rbp
lea rax, vtable.Core::Mutex.0
mov qword [r14 + 0x38], rax
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
lea rax, vtable.Core::Queue_class_HitmanPro35::File____ptr64_.0
mov qword [r14 + 0x68], rax
mov dword [r14 + 0x70], r12d
mov qword [r14 + 0x78], r12
mov qword [r14 + 0x80], r12
mov qword [r14 + 0x90], r12
mov qword [r14 + 0x88], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r14 + 0x90], rax
mov qword [r14 + 0x88], rbp
mov qword [r14], rbx
mov edx, dword [rsi + 0xc]
lea rcx, [r14 + 8]
call fcn.1401fcb40
movsxd r9, dword [rsi + 0xc]
mov eax, dword [r14 + 0x10]
inc eax
movsxd rdx, eax
mov r8, qword [rsi]
mov rcx, qword [r14 + 8]
call fcn.1402ba94c
mov edx, dword [rsi + 0xc]
lea rcx, [r14 + 8]
call fcn.1401fde50
mov dword [r14 + 0x18], 0x2710
mov dword [r14 + 0x1c], 0xea60
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9, r14
lea r8, [0x14017f1d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14 + 0x30], rax
mov rax, r14
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140184c20
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
xor bl, bl
mov qword [rsp + 0x40], 0
mov edx, 0x22
lea rcx, [rsp + 0x38]
call fcn.1401fcb40
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r9d, 0x22
lea r8, str.SYSTEMCurrentControlSetServices_
mov rcx, qword [rsp + 0x38]
call fcn.1402ba94c
mov edx, 0x22
lea rcx, [rsp + 0x38]
call fcn.1401fde50
nop
lea rdx, str.iaNvStor
lea rcx, [rsp + 0x38]
call fcn.1401fb190
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov edi, 1
mov r9d, edi
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140184d0d
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140184d01
movzx ebx, bl
cmp dword [rsp + 0x60], 2
cmovbe ebx, edi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x40], 0
jle 0x140184d1e
mov rcx, qword [rsp + 0x38]
call fcn.1402b7350
movzx eax, bl
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140184d30
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
xor bl, bl
xor eax, eax
mov qword [rsp + 0x40], rax
lea edx, [rax + 0x22]
lea rcx, [rsp + 0x38]
call fcn.1401fcb40
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r9d, 0x22
lea r8, str.SYSTEMCurrentControlSetServices_
mov rcx, qword [rsp + 0x38]
call fcn.1402ba94c
mov edx, 0x22
lea rcx, [rsp + 0x38]
call fcn.1401fde50
nop
lea rdx, str.iaNvStor
lea rcx, [rsp + 0x38]
call fcn.1401fb190
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140184e0d
mov dword [rsp + 0x60], 4
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x40], 0
jle 0x140184e1e
mov rcx, qword [rsp + 0x38]
call fcn.1402b7350
movzx eax, bl
add rsp, 0x50
pop rbx
ret
Function at 0x14019eab0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
lea rdi, [rcx + 0x118]
xor r8d, r8d
lea rdx, str._RID_
mov rcx, rdi
call fcn.1401fc8b0
test al, al
je 0x14019ebf5
xor ecx, ecx
call fcn.1400f1cf0
mov rbx, rax
test rax, rax
je 0x14019ebf5
lea rdx, [0x14034d1e8]
mov rcx, rax
call fcn.1400eab30
cmp eax, 4
jne 0x14019ebf5
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, [0x14034d1e8]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [rsp + 0x70]
test ebx, ebx
cmove edx, dword [rsp + 0x70]
test edx, edx
je 0x14019ebf5
lea rcx, [rsp + 0x48]
call fcn.14000b500
nop
mov qword [rsp + 0x40], 0
mov edx, 5
lea rcx, [rsp + 0x38]
call fcn.1401fcb40
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r9d, 5
lea r8, str._RID_
mov rcx, qword [rsp + 0x38]
call fcn.1402ba94c
mov edx, 5
lea rcx, [rsp + 0x38]
call fcn.1401fde50
nop
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1401fe460
nop
cmp dword [rsp + 0x40], 0
jle 0x14019ebe4
mov rcx, qword [rsp + 0x38]
call fcn.1402b7350
nop
cmp dword [rsp + 0x50], 0
jle 0x14019ebf5
mov rcx, qword [rsp + 0x48]
call fcn.1402b7350
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x1401a3090
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx]
mov rbx, rcx
call qword [rax + 0xc8]
mov rcx, qword [rbx + 0xc0]
test al, al
mov rax, qword [rcx]
je 0x1401a311d
call qword [rax + 0xc8]
test al, al
je 0x1401a31df
mov rax, qword [rbx + 0xa0]
mov rbx, qword [rbx + 0xc0]
cmp qword [rbx + 8], 0
mov rdi, qword [rax + 0x158]
je 0x1401a3102
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0xf0
call qword [sym.imp.USER32.dll_SendMessageW]
and al, 1
mov byte [rbx + 0xb1], al
mov rax, qword [rdi]
movzx edx, byte [rbx + 0xb1]
mov rcx, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [rax + 0x60]
call qword [rax + 0xc8]
test al, al
je 0x1401a31df
mov eax, dword [0x140429a18]
test al, 1
jne 0x1401a3163
or eax, 1
lea rcx, [0x1402fedc0]
mov qword [0x1404299f8], 0xffffffff80000002
mov dword [0x140429a18], eax
lea rax, vtable.Core::Win32::RegistryKey.0
mov qword [0x1404299f0], rax
call fcn.1402b8a74
lea rdx, [0x14034ce18]
lea rcx, [0x1404299f0]
call fcn.1400ea630
mov rdi, rax
test rax, rax
je 0x1401a31df
mov rcx, qword [rbx + 0xc0]
call fcn.14020b380
mov rcx, qword [rdi + 8]
lea rdx, str.EULA37
test al, al
je 0x1401a31c4
lea rax, [rsp + 0x40]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1401a31d2
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1401b18c0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x1401b18d0
mov rcx, qword [rcx + 8]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x1401b1900
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push r12
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rbp, r8
mov r15, rcx
lea rax, [0x140346ce0]
mov qword [r11 - 0x30], rax
xor r12d, r12d
mov dword [r11 - 0x28], r12d
mov edx, r12d
mov dword [rsp + 0x44], edx
mov r14d, r12d
cmp dword [r8 + 8], r12d
jle 0x1401b19e9
mov esi, r12d
test edx, edx
jle 0x1401b1987
inc edx
lea rcx, [rsp + 0x38]
call fcn.1401fcb40
movsxd rcx, dword [rsp + 0x44]
mov rax, qword [rsp + 0x38]
mov word [rax + rcx*2], r12w
mov edx, dword [rsp + 0x44]
inc edx
lea rcx, [rsp + 0x38]
call fcn.1401fde50
mov edx, dword [rsp + 0x44]
mov rdi, qword [rbp + 0x10]
mov ebx, dword [rdi + rsi + 0xc]
add ebx, edx
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.1401fcb40
movsxd r9, dword [rdi + rsi + 0xc]
mov ecx, dword [rsp + 0x40]
movsxd rax, dword [rsp + 0x44]
sub ecx, eax
inc ecx
movsxd rdx, ecx
mov rcx, rax
mov rax, qword [rsp + 0x38]
lea rcx, [rax + rcx*2]
mov r8, qword [rdi + rsi]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.1401fde50
inc r14d
add rsi, 0x10
cmp r14d, dword [rbp + 8]
jge 0x1401b19e9
mov edx, dword [rsp + 0x44]
jmp 0x1401b1954
mov r8d, 2
lea rdx, [0x14034712c]
lea rcx, [rsp + 0x38]
call fcn.1401fb2b0
mov eax, dword [rsp + 0x44]
add eax, eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
lea rdx, [0x14035f5c8]
mov rcx, qword [r15 + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
cmp dword [rsp + 0x40], 0
jle 0x1401b1a44
mov rcx, qword [rsp + 0x38]
call fcn.1402b7350
movzx eax, bl
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret