joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000482a0
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.10001fee0
nop
lea rcx, [rsp + 0x68]
call fcn.10001fee0
nop
lea rcx, [rsp + 0x70]
call fcn.10001fee0
nop
lea rcx, [rsp + 0x30]
call fcn.10001fee0
nop
lea rcx, [rsp + 0x28]
call fcn.10001fee0
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1000325f8
test al, al
je 0x10004838e
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.1000325f8
test al, al
je 0x10004838e
lea rdx, [0x10000e550]
lea rcx, [rsp + 0x20]
call fcn.10001ff98
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x20]
call fcn.1000327cc
test al, al
sete bl
lea rcx, [rsp + 0x20]
call fcn.10001fba0
test bl, bl
je 0x100048360
mov ebx, 0x65b
jmp 0x100048393
mov rdx, qword [rsp + 0x68]
cmp dword [rdx - 8], 1
jle 0x10004837d
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.10001fbd0
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x100048393
mov ebx, 0x65b
lea rcx, [rsp + 0x28]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x70]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x68]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x78]
call fcn.10001fba0
nop
mov rcx, rdi
call fcn.10001fba0
mov eax, ebx
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x10004e554
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x38
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
xor ebp, ebp
xor edi, edi
lea rcx, [0x10000f5f8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r12, rax
test rax, rax
je 0x10004e6f1
lea rdx, [0x10000f618]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea esi, [rbp + 1]
test rax, rax
je 0x10004e643
lea rcx, [rsp + 0x80]
call fcn.10001fee0
nop
lea rcx, [rsp + 0x78]
call fcn.10001fee0
nop
lea rcx, [rsp + 0x80]
call fcn.10001fe6c
lea rcx, [rsp + 0x78]
call fcn.10001fe6c
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.1000325f8
test al, al
je 0x10004e623
mov rcx, qword [rsp + 0x78]
cmp dword [rcx - 0x10], edi
je 0x10004e623
xor r8d, r8d
mov edx, esi
call r13
test eax, eax
je 0x10004e610
mov ebp, esi
jmp 0x10004e623
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe000023c
jne 0x10004e621
xor ebp, ebp
jmp 0x10004e623
mov edi, esi
lea rcx, [rsp + 0x78]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x80]
call fcn.10001fba0
test edi, edi
je 0x10004e6e7
mov r13d, 0x80
mov edx, r13d
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 0x10004e6e7
mov ebp, esi
mov rax, qword [rbx]
movsxd rdi, dword [rax - 0x10]
sub esi, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or eax, esi
jge 0x10004e685
mov edx, edi
mov rcx, rbx
call fcn.10001fc6c
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, qword [rbx]
call fcn.10006a910
test edi, edi
js 0x10004e6dc
mov rax, qword [rbx]
cmp edi, dword [rax - 0xc]
jg 0x10004e6dc
mov dword [rax - 0x10], edi
mov rax, qword [rbx]
mov word [rax + rdi*2], 0
lea r8, [0x10000f630]
lea rdx, [0x100009f08]
mov rcx, rbx
call fcn.100027d88
test eax, eax
je 0x10004e6e7
mov edx, r13d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10004e6e7
mov ecx, 0x80070057
call fcn.10001fd10
int3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, rbx
call fcn.10001fba0
mov eax, ebp
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100051b4c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x38
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 0x100051b8a
mov edx, 0x104
mov rcx, r8
call fcn.10001fc6c
mov rdi, qword [rbx]
cmp dword [rdi - 0xc], 0x104
jge 0x100051ba1
mov ecx, 0x80070057
call fcn.10001fd10
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], si
mov dword [rsp + 0x20], 2
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x100051c2c
mov rax, qword [rbx]
lea rdx, [0x10000f958]
xor r9d, r9d
mov ecx, dword [rax - 0x10]
lea rax, [rsp + 0x80]
xor r8d, r8d
add ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x80], ecx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100051c23
cmp dword [rsp + 0x80], esi
cmova esi, r15d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx]
test rdx, rdx
jne 0x100051c38
xor ecx, ecx
jmp 0x100051c4e
xor eax, eax
mov rdi, rdx
lea rcx, [rax - 1]
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
test ecx, ecx
js 0x100051c71
cmp ecx, dword [rdx - 0xc]
jg 0x100051c71
mov dword [rdx - 0x10], ecx
movsxd rdx, ecx
mov rcx, qword [rbx]
mov word [rcx + rdx*2], 0
mov eax, esi
add rsp, 0x38
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80070057
call fcn.10001fd10
int3

Function at 0x100053de0
Capabilities:
Query service status

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
cmp dword [rdx + 4], 1
mov rdi, rdx
mov rsi, rcx
je 0x100053e25
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 0x100053e3d
add ebx, 0x1f4
cmp ebx, 0x2710
ja 0x100053e32
cmp dword [rdi + 4], 1
jne 0x100053df6
mov eax, 1
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x41d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100053e2a
Function at 0x100053e48
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
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 0x100053f71
mov r8d, 0x80000030
mov rdx, qword [rsi]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x100053f49
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x100053ec5
mov r8, qword [rsi]
lea rdx, [0x100010830]
mov ecx, ebx
call fcn.10003c3c0
jmp 0x100053f3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x100053eeb
xor ebx, ebx
mov r9d, eax
mov r8, qword [rsi]
lea rdx, [0x100010870]
lea ecx, [rbx + 3]
call fcn.10003c3c0
jmp 0x100053f3e
lea r8, [rsp + 0x28]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x100053f03
xor ebx, ebx
jmp 0x100053f3e
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100053f3c
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.100053de0
test eax, eax
je 0x100053f3c
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 0x100053f3e
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100053f66
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rsi]
lea rdx, [0x1000108e0]
lea ecx, [rbx + 3]
call fcn.10003c3c0
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100053f8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x100010960]
mov ecx, 3
call fcn.10003c3c0
xor ebx, ebx
mov rcx, rsi
call fcn.10001fba0
mov eax, ebx
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100053fcc
Capabilities:
Delete service
Query service status

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r14, r8
mov esi, edx
mov rbp, rcx
mov edi, 1
mov 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 0x1000541aa
mov r8d, 0x80010020
mov rdx, qword [rbp]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
test rax, rax
je 0x100054181
lea ebx, [rdi + 2]
cmp esi, 2
je 0x10005404c
cmp esi, ebx
je 0x10005404c
cmp esi, 4
je 0x10005404c
cmp esi, edi
jne 0x1000540b6
lea r8, [rsp + 0x28]
mov edx, edi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10005407b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbp]
lea rdx, [0x1000109f0]
mov ecx, ebx
call fcn.10003c3c0
lea rdx, [rsp + 0x28]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10005409e
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.100053de0
test eax, eax
jne 0x1000540b6
mov r8, qword [rbp]
lea rdx, [0x100010a50]
mov ecx, 2
call fcn.10003c3c0
mov dword [r14], edi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x100054159
mov r8, qword [rbp]
lea rdx, [0x100010a88]
mov ecx, edi
call fcn.10003c3c0
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r12d, r12d
cmp esi, 2
je 0x1000540f3
cmp esi, ebx
je 0x1000540f3
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 0x10005419f
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 0x100054147
lea rdx, [0x100010ac0]
mov ecx, 2
call fcn.10003c3c0
mov dword [r14], edi
jmp 0x100054152
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp r12d, ebx
jb 0x1000540f3
jmp 0x10005419f
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbp]
lea rdx, [0x100010ba0]
mov ecx, ebx
call fcn.10003c3c0
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10005419f
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbp]
lea rdx, [0x100010c20]
lea ecx, [rdi + 3]
call fcn.10003c3c0
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000541c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x100010cb0]
mov ecx, 3
call fcn.10003c3c0
xor edi, edi
mov rcx, rbp
call fcn.10001fba0
mov eax, edi
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10005579c
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rax, rsp
sub rsp, 0x88
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r14d, r9d
mov rsi, r8
mov r12, rcx
mov edi, 1
mov ebp, edi
xor ebx, ebx
mov r15, qword [rsp + 0xf0]
mov dword [r15], ebx
mov qword [rax + 0x58], rbx
mov r13d, ebx
lea rcx, [rax + 0x68]
call fcn.10001fee0
nop
lea rdx, [0x1000107c0]
lea rcx, [rsp + 0x30]
call fcn.10001ff98
nop
lea r8, [rsp + 0xf0]
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.1000327cc
nop
lea rcx, [rsp + 0x30]
call fcn.10001fba0
lea r11, [rsp + 0xe0]
mov qword [rsp + 0x20], r11
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x100055881
cmp eax, 2
je 0x10005586d
mov r9, qword [r12]
mov r8d, eax
lea rdx, [0x100011610]
lea ecx, [rdi + 2]
call fcn.10003c3c0
mov ebp, ebx
jmp 0x1000558d5
mov r8, qword [r12]
lea rdx, [0x1000116f0]
mov ecx, edi
call fcn.10003c3c0
jmp 0x1000558d5
cmp rsi, rbx
jne 0x10005588b
mov r13d, edi
jmp 0x1000558d5
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
mov r9d, 7
xor r8d, r8d
lea rdx, [0x1000107a0]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x1000558d3
mov r9, qword [r12]
mov r8d, eax
lea rdx, [0x1000117c0]
mov ecx, 3
call fcn.10003c3c0
mov ebp, ebx
jmp 0x1000558d5
mov ebp, edi
mov rcx, qword [rsp + 0xe0]
cmp rcx, rbx
je 0x1000558e8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r13d, ebx
je 0x100055902
mov rdx, qword [rsp + 0xf0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rcx, [rsp + 0x48]
call fcn.100019218
nop
cmp rsi, rbx
je 0x10005591f
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.100044e08
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.10001ff10
nop
mov r9, r15
lea r8, [rsp + 0x48]
mov edx, dword [rsp + 0xd8]
mov rcx, rax
call fcn.1000567a0
cmp eax, ebx
jne 0x100055965
lea rdx, [0x100011880]
mov ecx, 3
call fcn.10003c3c0
mov edi, ebx
cmp ebp, ebx
je 0x10005596d
cmp edi, ebx
jne 0x100055972
mov ebx, 0x643
lea rcx, [rsp + 0x48]
call fcn.10001f53c
nop
lea rcx, [rsp + 0xf0]
call fcn.10001fba0
mov eax, ebx
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100055a2c
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
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x68]
call fcn.10001fee0
nop
lea rdx, [0x1000107c0]
lea rcx, [rsp + 0x78]
call fcn.10001ff98
nop
lea r8, [rsp + 0x68]
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.1000327cc
nop
lea rcx, [rsp + 0x78]
call fcn.10001fba0
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 0x100055ac7
mov r9, qword [rdi]
mov r8d, eax
lea rdx, [0x100011610]
mov ecx, 3
call fcn.10003c3c0
jmp 0x100055b3b
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1000107a0]
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 0x100055b39
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
je 0x100055b39
mov r9, qword [rdi]
mov r8d, eax
lea rdx, [0x1000118f0]
mov ecx, ebp
call fcn.10003c3c0
jmp 0x100055b3b
xor ebx, ebx
lea rcx, [rsp + 0x68]
call fcn.10001fba0
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x100057024
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov r12, r8
mov rsi, rdx
mov r14, rcx
mov edi, 1
mov ebp, edi
xor ebx, ebx
mov r15, qword [rsp + 0xc8]
mov dword [r15], ebx
mov qword [rsp + 0x38], rbx
mov r13d, ebx
lea rcx, [rsp + 0x30]
call fcn.10001fee0
nop
lea rdx, [0x1000107c0]
lea rcx, [rsp + 0xc8]
call fcn.10001ff98
nop
lea r8, [rsp + 0x30]
mov rdx, rsi
lea rcx, [rsp + 0xc8]
call fcn.1000327cc
nop
lea rcx, [rsp + 0xc8]
call fcn.10001fba0
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x100057104
cmp eax, 2
je 0x1000570f1
mov r9, qword [rsi]
mov r8d, eax
lea rdx, [0x100011610]
lea ecx, [rdi + 2]
call fcn.10003c3c0
mov ebp, ebx
jmp 0x10005715a
mov r8, qword [rsi]
lea rdx, [0x1000116f0]
mov ecx, edi
call fcn.10003c3c0
jmp 0x10005715a
cmp r12, rbx
jne 0x10005710e
mov r13d, edi
jmp 0x10005715a
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, 7
xor r8d, r8d
lea rdx, [0x1000107a0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x100057158
mov r9, qword [rsi]
mov r8d, eax
lea rdx, [0x1000117c0]
mov ecx, 3
call fcn.10003c3c0
mov ebp, ebx
jmp 0x10005715a
mov ebp, edi
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x10005716a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r13d, ebx
je 0x100057181
mov rdx, qword [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [rsp + 0xc0], ebx
je 0x1000572c7
lea rcx, [rsp + 0xc8]
call fcn.10001fee0
nop
lea rax, [rsp + 0xc8]
cmp rax, rbx
jne 0x1000571b6
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000571cf
lea r8, [rsp + 0xc8]
mov edx, 2
mov rcx, r14
call fcn.1000454bc
cmp eax, ebx
jne 0x1000571f4
lea rdx, [0x10000ca00]
mov ecx, 3
call fcn.10003c3c0
mov edi, ebx
lea rcx, [rsp + 0xc8]
call fcn.10001fba0
jmp 0x1000572c7
lea rdx, [rsp + 0xc0]
mov rcx, r14
call fcn.10004545c
cmp eax, ebx
jne 0x100057235
mov r8, qword [rsp + 0xc8]
lea rdx, [0x100012390]
mov ecx, 3
call fcn.10003c3c0
mov edi, ebx
lea rcx, [rsp + 0xc8]
call fcn.10001fba0
jmp 0x1000572c7
mov r9d, dword [rsp + 0xc0]
mov r8, qword [rsp + 0xc8]
lea rdx, [0x100011b20]
mov ecx, edi
call fcn.10003c3c0
mov r11d, dword [rsp + 0xc0]
cmp r11d, edi
je 0x100057289
cmp r11d, edi
jbe 0x100057280
cmp r11d, 4
ja 0x100057280
mov r8, r15
mov rdx, rsi
lea rcx, [rsp + 0xc8]
call fcn.100054894
jmp 0x10005729c
mov eax, dword [rsp + 0xc0]
jmp 0x10005729c
mov r8, r15
mov rdx, rsi
lea rcx, [rsp + 0xc8]
call fcn.100054210
cmp eax, ebx
je 0x1000572ba
mov r8, qword [rsp + 0xc8]
lea rdx, [0x100012400]
mov ecx, 3
call fcn.10003c3c0
nop
lea rcx, [rsp + 0xc8]
call fcn.10001fba0
cmp ebp, ebx
je 0x1000572cf
cmp edi, ebx
jne 0x1000572d4
mov ebx, 0x643
lea rcx, [rsp + 0x30]
call fcn.10001fba0
mov eax, ebx
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100057694
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x20], rdi
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x50], edi
jne 0x100057700
add rcx, 0x10
mov edx, 0x20019
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x20], rax
jne 0x100057700
mov 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 0x100057816
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x100057713
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx + 0x20], rdi
lea rax, [rsp + 0x60]
lea rdx, [0x1000127d0]
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 0x1000577c8
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x68]
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x1000577c8
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 0x100057785
cmp eax, 2
je 0x1000577e2
jmp 0x1000577c8
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 0x1000577c8
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 0x1000577d7
mov ecx, 0x65b
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1000577e7
mov rdx, rdi
mov rcx, rsi
call fcn.100044e08
mov ebx, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1000577f7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x100057804
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x100057814
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x100057824
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x20], rdi
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x50], edi
jne 0x100057890
add rcx, 0x10
mov edx, 0x20019
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x20], rax
jne 0x100057890
mov 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 0x100057984
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1000578a3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx + 0x20], rdi
lea rax, [rsp + 0x60]
lea rdx, [0x1000127d0]
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 0x100057941
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x68]
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x100057941
cmp qword [rsi + 0x10], rdi
je 0x100057928
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.100034e1c
test rax, rax
mov rdi, rax
je 0x100057941
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 0x10005793f
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100057950
cmp eax, 2
je 0x100057950
mov ecx, 0x65b
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x100057955
mov ebx, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x100057965
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x100057972
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x100057982
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret