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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r12, r8
mov rsi, rdx
mov rbp, rcx
xor r13d, r13d
mov qword [rax - 0x48], r13
lea rcx, [rax - 0x40]
call fcn.10001e06c
nop
lea rdx, [0x10000e130]
lea rcx, [rsp + 0x60]
call fcn.10001e134
nop
lea r8, [rsp + 0x58]
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.10002f9d0
cmp al, r13b
sete bl
lea rcx, [rsp + 0x60]
call fcn.10001f3ec
cmp bl, r13b
je 0x10003fb38
mov ebx, 0x65b
jmp 0x10003fc52
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp eax, r13d
jne 0x10003fc52
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, r13d
je 0x10003fbbc
cmp eax, 2
jne 0x10003fc52
mov ebx, 0x490
jmp 0x10003fc52
mov eax, dword [rsp + 0xb8]
add eax, 4
mov dword [rsp + 0xb8], eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
cmp rax, r13
jne 0x10003fbe9
mov ebx, 8
jmp 0x10003fc44
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, r13d
jne 0x10003fc44
mov eax, dword [rsp + 0xb8]
shr rax, 1
mov word [rdi + rax*2 - 4], r13w
mov eax, dword [rsp + 0xb8]
shr rax, 1
mov word [rdi + rax*2 - 2], r13w
mov rdx, rdi
mov rcx, r12
call fcn.10003de0c
mov ebx, r13d
cmp rdi, r13
je 0x10003fc52
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
cmp rcx, r13
je 0x10003fc63
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x58]
call fcn.10001f3ec
nop
mov rcx, rbp
call fcn.10001f3ec
nop
mov rcx, rsi
call fcn.10001f3ec
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10003fc9c
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rsi, r8
mov rbp, rdx
mov r12, rcx
and qword [rax - 0x48], 0
lea rcx, [rax - 0x40]
call fcn.10001e06c
nop
xor edi, edi
lea rdx, [0x10000e130]
lea rcx, [rsp + 0xb8]
call fcn.10001e134
nop
lea r8, [rsp + 0x58]
mov rdx, r12
lea rcx, [rsp + 0xb8]
call fcn.10002f9d0
test al, al
sete bl
lea rcx, [rsp + 0xb8]
call fcn.10001f3ec
test bl, bl
je 0x10003fd1e
mov ebx, 0x65b
jmp 0x10003fdd9
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x10003fdd9
cmp qword [rsi + 0x10], 0
jbe 0x10003fdb5
lea rdx, [rsp + 0xb8]
mov rcx, rsi
call fcn.100031ad4
mov rdi, rax
test rax, rax
jne 0x10003fd83
lea ebx, [rax + 8]
jmp 0x10003fdcc
mov eax, dword [rsp + 0xb8]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rbp]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x10003fdcc
jmp 0x10003fdca
mov rdx, qword [rbp]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test eax, eax
jne 0x10003fdd9
xor ebx, ebx
test rdi, rdi
je 0x10003fdd9
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x10003fdea
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x58]
call fcn.10001f3ec
nop
mov rcx, r12
call fcn.10001f3ec
nop
mov rcx, rbp
call fcn.10001f3ec
mov eax, ebx
add rsp, 0x70
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100040580
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rdi, rcx
lea rcx, [rsp + 0x78]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x68]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x70]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x30]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x28]
call fcn.10001e06c
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.10002f82c
test al, al
je 0x10004066e
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.10002f82c
test al, al
je 0x10004066e
lea rdx, [0x10000e130]
lea rcx, [rsp + 0x20]
call fcn.10001e134
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x20]
call fcn.10002f9d0
test al, al
sete bl
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
test bl, bl
je 0x100040640
mov ebx, 0x65b
jmp 0x100040673
mov rdx, qword [rsp + 0x68]
cmp dword [rdx - 8], 1
jle 0x10004065d
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.10001e9a0
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x100040673
mov ebx, 0x65b
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x68]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x78]
call fcn.10001f3ec
nop
mov rcx, rdi
call fcn.10001f3ec
mov eax, ebx
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x100042d50
Capabilities:
Copy file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.10002fbcc
test al, al
jne 0x100042d70
mov eax, 0xe0000303
jmp 0x100042dc3
mov rcx, qword [rbx]
call fcn.10005ab8c
test eax, eax
jne 0x100042dc3
mov rdx, qword [rbx]
mov rcx, qword [rdi]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100042db9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100042dc3
mov rcx, qword [rbx]
lea edx, [rax + 0x7b]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, qword [rbx]
mov rcx, qword [rdi]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x100042dbd
xor eax, eax
jmp 0x100042dc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x10004552c
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
xor edi, edi
xor ebp, ebp
lea rcx, [0x10000f190]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x10004566b
lea rdx, [0x10000f210]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x10004560b
lea rcx, [rsp + 0x70]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x68]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x70]
call fcn.10001e65c
lea rcx, [rsp + 0x68]
call fcn.10001e65c
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.10002f82c
test al, al
je 0x1000455f2
mov rcx, qword [rsp + 0x68]
cmp dword [rcx - 0x10], ebp
je 0x1000455f2
xor r8d, r8d
lea edx, [rdi + 1]
call r12
test eax, eax
je 0x1000455dc
lea edi, [rbp + 1]
jmp 0x1000455f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe000023c
jne 0x1000455ed
xor edi, edi
jmp 0x1000455f2
mov ebp, 1
lea rcx, [rsp + 0x68]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10001f3ec
test ebp, ebp
je 0x100045661
mov ebp, 0x80
mov edx, ebp
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100045661
lea edi, [rbp - 0x7f]
mov rcx, rbx
call fcn.10001e38c
lea r8, [0x10000f228]
lea rdx, [0x100009820]
mov rcx, rbx
call fcn.1000261f0
test eax, eax
je 0x100045661
mov edx, ebp
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, rbx
call fcn.10001f3ec
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100048394
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x30
mov rax, qword [r8]
xor r13d, r13d
mov r12, rcx
lea r15d, [r13 + 1]
mov rbx, r8
mov rbp, rdx
mov ecx, r15d
mov esi, r13d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x104
or ecx, eax
jge 0x1000483df
mov edx, 0x104
mov rcx, rbx
call fcn.10001edf8
mov rdi, qword [rbx]
cmp dword [rdi - 0xc], 0x104
jge 0x1000483f6
mov ecx, 0x80070057
call fcn.10001f28c
int3
mov dword [rdi - 0x10], 0x104
mov rax, qword [rbx]
xor r9d, r9d
mov r8d, r15d
mov rdx, rbp
mov rcx, r12
mov dword [rsp + 0x28], 0x20019
mov word [rax + 0x208], r13w
mov dword [rsp + 0x20], 2
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x10004847b
mov rax, qword [rbx]
lea rdx, [0x10000f560]
xor r9d, r9d
mov ecx, dword [rax - 0x10]
lea rax, [rsp + 0x70]
xor r8d, r8d
add ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x70], ecx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r13d
jne 0x100048472
cmp dword [rsp + 0x70], r13d
cmova esi, r15d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx]
cmp rdx, r13
jne 0x100048488
mov ecx, r13d
jmp 0x10004849f
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
cmp ecx, r13d
jl 0x1000484cb
cmp ecx, dword [rdx - 0xc]
jg 0x1000484cb
mov rbp, qword [rsp + 0x68]
mov dword [rdx - 0x10], ecx
movsxd rdx, ecx
mov rcx, qword [rbx]
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov word [rcx + rdx*2], r13w
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.10001f28c
int3
Function at 0x10004a15c
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
cmp dword [rdx + 4], 1
mov rdi, rdx
mov rsi, rcx
je 0x10004a1a8
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10004a1c8
add ebx, 0x1f4
cmp ebx, 0x2710
ja 0x10004a1bd
cmp dword [rdi + 4], 1
jne 0x10004a179
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x41d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10004a1ad

Function at 0x10004a1d4
Capabilities:
Query service status
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rsi, rcx
mov ebx, 1
xor edx, edx
xor ecx, ecx
mov r8d, 0xe0000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x10004a308
mov r8d, 0x80000030
mov rdx, qword [rsi]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x10004a2e0
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x10004a25c
mov r8, qword [rsi]
lea rdx, [0x100010700]
mov ecx, ebx
call fcn.100037e18
jmp 0x10004a2d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x10004a282
xor ebx, ebx
mov r9d, eax
mov r8, qword [rsi]
lea rdx, [0x100010740]
lea ecx, [rbx + 3]
call fcn.100037e18
jmp 0x10004a2d5
lea r8, [rsp + 0x28]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10004a29a
xor ebx, ebx
jmp 0x10004a2d5
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10004a2d3
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.10004a15c
test eax, eax
je 0x10004a2d3
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
neg eax
sbb ecx, ecx
and ebx, ecx
jmp 0x10004a2d5
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10004a2fd
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rsi]
lea rdx, [0x1000107b0]
lea ecx, [rbx + 3]
call fcn.100037e18
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10004a324
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x100010830]
mov ecx, 3
call fcn.100037e18
xor ebx, ebx
mov rcx, rsi
call fcn.10001f3ec
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x10004a34c
Capabilities:
Delete service
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov r14, r8
mov esi, edx
mov rbp, rcx
mov edi, 1
and dword [r8], 0
xor edx, edx
xor ecx, ecx
mov r8d, 0xe0000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r13, rax
test rax, rax
je 0x10004a52f
mov r8d, 0x80010020
mov rdx, qword [rbp]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
test rax, rax
je 0x10004a506
lea ebx, [rdi + 2]
cmp esi, 2
je 0x10004a3d1
cmp esi, ebx
je 0x10004a3d1
cmp esi, 4
je 0x10004a3d1
cmp esi, edi
jne 0x10004a43b
lea r8, [rsp + 0x28]
mov edx, edi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10004a400
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbp]
lea rdx, [0x1000108c0]
mov ecx, ebx
call fcn.100037e18
lea rdx, [rsp + 0x28]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10004a423
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.10004a15c
test eax, eax
jne 0x10004a43b
mov r8, qword [rbp]
lea rdx, [0x100010920]
mov ecx, 2
call fcn.100037e18
mov dword [r14], edi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x10004a4de
mov r8, qword [rbp]
lea rdx, [0x100010958]
mov ecx, edi
call fcn.100037e18
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r12d, r12d
cmp esi, 2
je 0x10004a478
cmp esi, ebx
je 0x10004a478
lea ebx, [r12 + 6]
mov r8d, 0x80000000
mov rdx, qword [rbp]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
add r12d, edi
test rax, rax
je 0x10004a524
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp r12d, ebx
jne 0x10004a4cc
lea rdx, [0x100010990]
mov ecx, 2
call fcn.100037e18
mov dword [r14], edi
jmp 0x10004a4d7
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp r12d, ebx
jb 0x10004a478
jmp 0x10004a524
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbp]
lea rdx, [0x100010a70]
mov ecx, ebx
call fcn.100037e18
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10004a524
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbp]
lea rdx, [0x100010af0]
lea ecx, [rdi + 3]
call fcn.100037e18
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10004a54b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x100010b80]
mov ecx, 3
call fcn.100037e18
xor edi, edi
mov rcx, rbp
call fcn.10001f3ec
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x10004b21c
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r14d, r9d
mov rsi, r8
mov r12, rcx
mov edi, 1
mov ebp, edi
xor ebx, ebx
mov r15, qword [rsp + 0xe0]
mov dword [r15], ebx
mov qword [rax + 0x18], rbx
mov r13d, ebx
lea rcx, [rax + 0x28]
call fcn.10001e06c
nop
lea rdx, [0x100010690]
lea rcx, [rsp + 0x30]
call fcn.10001e134
nop
lea r8, [rsp + 0xe0]
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.10002f9d0
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
lea r11, [rsp + 0xd0]
mov qword [rsp + 0x20], r11
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0xe0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x10004b303
cmp eax, 2
je 0x10004b2ef
mov r9, qword [r12]
mov r8d, eax
lea rdx, [0x1000112b0]
lea ecx, [rdi + 2]
call fcn.100037e18
mov ebp, ebx
jmp 0x10004b357
mov r8, qword [r12]
lea rdx, [0x100011390]
mov ecx, edi
call fcn.100037e18
jmp 0x10004b357
cmp rsi, rbx
jne 0x10004b30d
mov r13d, edi
jmp 0x10004b357
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
mov r9d, 7
xor r8d, r8d
lea rdx, [0x100010678]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x10004b355
mov r9, qword [r12]
mov r8d, eax
lea rdx, [0x100011460]
mov ecx, 3
call fcn.100037e18
mov ebp, ebx
jmp 0x10004b357
mov ebp, edi
mov rcx, qword [rsp + 0xd0]
cmp rcx, rbx
je 0x10004b36a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r13d, ebx
je 0x10004b384
mov rdx, qword [rsp + 0xe0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rcx, [rsp + 0x48]
call fcn.100018ee8
nop
cmp rsi, rbx
je 0x10004b3a1
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.10003de0c
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.10001e09c
nop
mov r9, r15
lea r8, [rsp + 0x48]
mov edx, dword [rsp + 0xc8]
mov rcx, rax
call fcn.10004bf94
cmp eax, ebx
jne 0x10004b3e7
lea rdx, [0x100011520]
mov ecx, 3
call fcn.100037e18
mov edi, ebx
cmp ebp, ebx
je 0x10004b3ef
cmp edi, ebx
jne 0x10004b3f4
mov ebx, 0x643
lea rcx, [rsp + 0x48]
call fcn.10001a784
nop
lea rcx, [rsp + 0xe0]
call fcn.10001f3ec
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10004b430
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
and qword [rsp + 0x70], 0
lea rcx, [rsp + 0x68]
call fcn.10001e06c
nop
lea rdx, [0x100010690]
lea rcx, [rsp + 0x78]
call fcn.10001e134
nop
lea r8, [rsp + 0x68]
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.10002f9d0
nop
lea rcx, [rsp + 0x78]
call fcn.10001f3ec
lea r11, [rsp + 0x70]
mov qword [rsp + 0x20], r11
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x10004b4c8
mov r9, qword [rdi]
mov r8d, eax
lea rdx, [0x1000112b0]
mov ecx, 3
call fcn.100037e18
jmp 0x10004b536
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x100010678]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
lea ebp, [rbx + 1]
cmp eax, 2
cmove ebx, ebp
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x10004b534
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
je 0x10004b534
mov r9, qword [rdi]
mov r8d, eax
lea rdx, [0x100011590]
mov ecx, ebp
call fcn.100037e18
jmp 0x10004b536
xor ebx, ebx
lea rcx, [rsp + 0x68]
call fcn.10001f3ec
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x10004cc08
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
xor edi, edi
and dword [rsp + 0x50], edi
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x20], rdi
jne 0x10004cc6e
add rcx, 0x10
mov edx, 0x20019
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov qword [rbx + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x10004cc6e
and qword [rbx + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10004cd84
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x10004cc81
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbx + 0x20], rdi
lea rax, [rsp + 0x60]
lea rdx, [0x100012470]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004cd36
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x68]
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x10004cd36
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10004ccf3
cmp eax, 2
je 0x10004cd50
jmp 0x10004cd36
mov eax, dword [rsp + 0x50]
add eax, 4
mov ecx, eax
mov dword [rsp + 0x50], eax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rdi, rax
test rax, rax
je 0x10004cd36
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10004cd45
mov ecx, 0x65b
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x10004cd55
mov rdx, rdi
mov rcx, rsi
call fcn.10003de0c
mov ebx, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x10004cd65
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x10004cd72
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x10004cd82
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret