joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000403cc
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 0x100040500
mov r8d, 0x80000030
mov rdx, qword [rsi]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1000404d8
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x100040454
mov r8, qword [rsi]
lea rdx, [0x10000e620]
mov ecx, ebx
call fcn.100054fd8
jmp 0x1000404cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x10004047a
xor ebx, ebx
mov r9d, eax
mov r8, qword [rsi]
lea rdx, [0x10000e660]
lea ecx, [rbx + 3]
call fcn.100054fd8
jmp 0x1000404cd
lea r8, [rsp + 0x28]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x100040492
xor ebx, ebx
jmp 0x1000404cd
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1000404cb
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.100040354
test eax, eax
je 0x1000404cb
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 0x1000404cd
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000404f5
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rsi]
lea rdx, [0x10000e6d0]
lea ecx, [rbx + 3]
call fcn.100054fd8
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10004051c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x10000e750]
mov ecx, 3
call fcn.100054fd8
xor ebx, ebx
mov rcx, rsi
call fcn.10002006c
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 0x10004055c
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 0x10004073f
mov r8d, 0x80010020
mov rdx, qword [rbp]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
test rax, rax
je 0x100040716
lea ebx, [rdi + 2]
cmp esi, 2
je 0x1000405e1
cmp esi, ebx
je 0x1000405e1
cmp esi, 4
je 0x1000405e1
cmp esi, edi
jne 0x10004064b
lea r8, [rsp + 0x28]
mov edx, edi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x100040610
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbp]
lea rdx, [0x10000e7e0]
mov ecx, ebx
call fcn.100054fd8
lea rdx, [rsp + 0x28]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100040633
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.100040354
test eax, eax
jne 0x10004064b
mov r8, qword [rbp]
lea rdx, [0x10000e840]
mov ecx, 2
call fcn.100054fd8
mov dword [r14], edi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1000406ee
mov r8, qword [rbp]
lea rdx, [0x10000e878]
mov ecx, edi
call fcn.100054fd8
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r12d, r12d
cmp esi, 2
je 0x100040688
cmp esi, ebx
je 0x100040688
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 0x100040734
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 0x1000406dc
lea rdx, [0x10000e8b0]
mov ecx, 2
call fcn.100054fd8
mov dword [r14], edi
jmp 0x1000406e7
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp r12d, ebx
jb 0x100040688
jmp 0x100040734
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbp]
lea rdx, [0x10000e990]
mov ecx, ebx
call fcn.100054fd8
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100040734
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbp]
lea rdx, [0x10000ea10]
lea ecx, [rdi + 3]
call fcn.100054fd8
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10004075b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x10000eaa0]
mov ecx, 3
call fcn.100054fd8
xor edi, edi
mov rcx, rbp
call fcn.10002006c
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 0x100041bfc
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.100020360
nop
lea rdx, [0x10000e5b0]
lea rcx, [rsp + 0x30]
call fcn.100020428
nop
lea r8, [rsp + 0xe0]
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.100032a84
nop
lea rcx, [rsp + 0x30]
call fcn.10002006c
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 0x100041ce3
cmp eax, 2
je 0x100041ccf
mov r9, qword [r12]
mov r8d, eax
lea rdx, [0x10000f1d0]
lea ecx, [rdi + 2]
call fcn.100054fd8
mov ebp, ebx
jmp 0x100041d37
mov r8, qword [r12]
lea rdx, [0x10000f2b0]
mov ecx, edi
call fcn.100054fd8
jmp 0x100041d37
cmp rsi, rbx
jne 0x100041ced
mov r13d, edi
jmp 0x100041d37
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
mov r9d, 7
xor r8d, r8d
lea rdx, [0x10000e598]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x100041d35
mov r9, qword [r12]
mov r8d, eax
lea rdx, [0x10000f380]
mov ecx, 3
call fcn.100054fd8
mov ebp, ebx
jmp 0x100041d37
mov ebp, edi
mov rcx, qword [rsp + 0xd0]
cmp rcx, rbx
je 0x100041d4a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r13d, ebx
je 0x100041d64
mov rdx, qword [rsp + 0xe0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rcx, [rsp + 0x48]
call fcn.1000193b8
nop
cmp rsi, rbx
je 0x100041d81
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.10003cc14
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.100020390
nop
mov r9, r15
lea r8, [rsp + 0x48]
mov edx, dword [rsp + 0xc8]
mov rcx, rax
call fcn.100042c30
cmp eax, ebx
jne 0x100041dc7
lea rdx, [0x10000f440]
mov ecx, 3
call fcn.100054fd8
mov edi, ebx
cmp ebp, ebx
je 0x100041dcf
cmp edi, ebx
jne 0x100041dd4
mov ebx, 0x643
lea rcx, [rsp + 0x48]
call fcn.10001f994
nop
lea rcx, [rsp + 0xe0]
call fcn.10002006c
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 0x100041e8c
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.100020360
nop
lea rdx, [0x10000e5b0]
lea rcx, [rsp + 0x78]
call fcn.100020428
nop
lea r8, [rsp + 0x68]
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.100032a84
nop
lea rcx, [rsp + 0x78]
call fcn.10002006c
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 0x100041f24
mov r9, qword [rdi]
mov r8d, eax
lea rdx, [0x10000f1d0]
mov ecx, 3
call fcn.100054fd8
jmp 0x100041f92
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x10000e598]
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 0x100041f90
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
je 0x100041f90
mov r9, qword [rdi]
mov r8d, eax
lea rdx, [0x10000f4b0]
mov ecx, ebp
call fcn.100054fd8
jmp 0x100041f92
xor ebx, ebx
lea rcx, [rsp + 0x68]
call fcn.10002006c
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x100043c34
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
cmp qword [rcx + 0x20], rdi
mov rsi, rdx
mov rbx, rcx
jne 0x100043c9a
add rcx, 0x10
mov edx, 0x20019
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x20], rax
jne 0x100043c9a
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 0x100043db0
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x100043cad
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbx + 0x20], rdi
lea rax, [rsp + 0x60]
lea rdx, [0x100010390]
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 0x100043d62
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x68]
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x100043d62
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 0x100043d1f
cmp eax, 2
je 0x100043d7c
jmp 0x100043d62
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__
test rax, rax
mov rdi, rax
je 0x100043d62
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 0x100043d71
mov ecx, 0x65b
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x100043d81
mov rdx, rdi
mov rcx, rsi
call fcn.10003cc14
mov ebx, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x100043d91
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x100043d9e
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x100043dae
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x100043dc0
Capabilities:
Delete registry value
Set 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
cmp qword [rcx + 0x20], rdi
mov rsi, rdx
mov rbx, rcx
jne 0x100043e26
add rcx, 0x10
mov edx, 0x20019
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x20], rax
jne 0x100043e26
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 0x100043f1a
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x100043e39
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbx + 0x20], rdi
lea rax, [rsp + 0x60]
lea rdx, [0x100010390]
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100043ed7
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x68]
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x100043ed7
cmp qword [rsi + 0x10], rdi
je 0x100043ebe
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.100035004
test rax, rax
mov rdi, rax
je 0x100043ed7
mov eax, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
add eax, eax
mov r9d, 7
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jmp 0x100043ed5
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100043ee6
cmp eax, 2
je 0x100043ee6
mov ecx, 0x65b
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x100043eeb
mov ebx, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x100043efb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x100043f08
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x100043f18
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1000447bc
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
lea rcx, [rax + 0x20]
call fcn.100020360
nop
lea rcx, [rsp + 0x98]
call fcn.100020360
nop
xor ebx, ebx
mov qword [rsp + 0x50], rbx
cmp rdi, rbx
jne 0x100044825
lea rcx, [rsp + 0x98]
call fcn.10002006c
nop
lea rcx, [rsp + 0xa8]
call fcn.10002006c
nop
jmp 0x10004494a
lea rdx, [0x100010400]
lea rcx, [rsp + 0x58]
call fcn.100020428
nop
lea r8, [rsp + 0xa8]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.100032a84
nop
lea rcx, [rsp + 0x58]
call fcn.10002006c
lea rdx, [0x100010330]
lea rcx, [rsp + 0x58]
call fcn.100020428
nop
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xa8]
call fcn.100032a84
nop
lea rcx, [rsp + 0x58]
call fcn.10002006c
mov rdx, qword [rsp + 0x98]
cmp dword [rdx - 8], 1
jle 0x1000448b4
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0x98]
call fcn.10002009c
mov rdx, qword [rsp + 0x98]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x1000448ef
mov edi, ebx
jmp 0x10004491b
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rdi
mov r9d, 7
xor r8d, r8d
lea rdx, [0x10000e598]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, ebx
cmp eax, ebx
sete dil
mov rcx, qword [rsp + 0x50]
cmp rcx, rbx
je 0x10004492c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x98]
call fcn.10002006c
nop
lea rcx, [rsp + 0xa8]
call fcn.10002006c
nop
mov ebx, edi
mov rcx, rsi
call fcn.10002006c
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x100048e8c
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rdi, rcx
and qword [rsp + 0x70], 0
lea rcx, [rsp + 0x78]
call fcn.100020360
nop
lea rcx, [rsp + 0x68]
call fcn.100020360
nop
lea rdx, [0x100010400]
lea rcx, [rsp + 0x30]
call fcn.100020428
nop
lea r8, [rsp + 0x78]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.100032a84
nop
lea rcx, [rsp + 0x30]
call fcn.10002006c
lea rdx, [0x100010330]
lea rcx, [rsp + 0x30]
call fcn.100020428
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.100032a84
nop
lea rcx, [rsp + 0x30]
call fcn.10002006c
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 0x100048f69
cmp eax, 2
je 0x100048f65
mov r9, qword [rdi]
mov r8d, eax
lea rdx, [0x10000f1d0]
mov ecx, 3
call fcn.100054fd8
jmp 0x100048fd7
xor ebx, ebx
jmp 0x100048fd7
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x10000e598]
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 0x100048fd5
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
je 0x100048fd5
mov r9, qword [rdi]
mov r8d, eax
lea rdx, [0x10000f4b0]
mov ecx, ebp
call fcn.100054fd8
jmp 0x100048fd7
xor ebx, ebx
lea rcx, [rsp + 0x68]
call fcn.10002006c
nop
lea rcx, [rsp + 0x78]
call fcn.10002006c
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x100052e88
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x30
mov rax, qword [r8]
mov r12, rcx
xor esi, esi
lea r15d, [rsi + 1]
mov rbx, r8
mov rbp, rdx
mov ecx, r15d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x104
or ecx, eax
jge 0x100052ed1
mov edx, 0x104
mov rcx, rbx
call fcn.100020154
mov rdi, qword [rbx]
cmp dword [rdi - 0xc], 0x104
jge 0x100052ee8
mov ecx, 0x80070057
call fcn.1000201f8
int3
mov dword [rdi - 0x10], 0x104
mov rax, qword [rbx]
xor r9d, r9d
and word [rax + 0x208], si
mov r8d, r15d
mov rdx, rbp
mov rcx, r12
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x100052f6a
mov rax, qword [rbx]
lea rdx, [0x100012b08]
xor r9d, r9d
mov ecx, dword [rax - 0x10]
lea rax, [rsp + 0x60]
xor r8d, r8d
add ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x60], ecx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100052f61
cmp dword [rsp + 0x60], esi
cmova esi, r15d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx]
test rdx, rdx
jne 0x100052f76
xor ecx, ecx
jmp 0x100052f8c
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
test ecx, ecx
js 0x100052fba
cmp ecx, dword [rdx - 0xc]
jg 0x100052fba
mov rbp, qword [rsp + 0x58]
mov dword [rdx - 0x10], ecx
movsxd rdx, ecx
mov rcx, qword [rbx]
mov rbx, qword [rsp + 0x50]
mov eax, esi
and word [rcx + rdx*2], 0
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r12
pop rdi
ret
mov ecx, 0x80070057
call fcn.1000201f8
int3

Function at 0x1000605a0
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.100032d64
test al, al
jne 0x1000605c0
mov eax, 0xe0000303
jmp 0x100060613
mov rcx, qword [rbx]
call fcn.1000696ec
test eax, eax
jne 0x100060613
mov rdx, qword [rbx]
mov rcx, qword [rdi]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100060609
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100060613
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 0x10006060d
xor eax, eax
jmp 0x100060613
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1000636e4
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, [0x1000136b8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x100063823
lea rdx, [0x1000136d8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x1000637c3
lea rcx, [rsp + 0x70]
call fcn.100020360
nop
lea rcx, [rsp + 0x68]
call fcn.100020360
nop
lea rcx, [rsp + 0x70]
call fcn.1000202e8
lea rcx, [rsp + 0x68]
call fcn.1000202e8
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1000328c4
test al, al
je 0x1000637aa
mov rcx, qword [rsp + 0x68]
cmp dword [rcx - 0x10], ebp
je 0x1000637aa
xor r8d, r8d
lea edx, [rdi + 1]
call r12
test eax, eax
je 0x100063794
lea edi, [rbp + 1]
jmp 0x1000637aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe000023c
jne 0x1000637a5
xor edi, edi
jmp 0x1000637aa
mov ebp, 1
lea rcx, [rsp + 0x68]
call fcn.10002006c
nop
lea rcx, [rsp + 0x70]
call fcn.10002006c
test ebp, ebp
je 0x100063819
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 0x100063819
lea edi, [rbp - 0x7f]
mov rcx, rbx
call fcn.10001f210
lea r8, [0x100014cf0]
lea rdx, [0x10000a128]
mov rcx, rbx
call fcn.100028044
test eax, eax
je 0x100063819
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.10002006c
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret