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

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov rbx, rcx
lea rdx, str.SOFTWAREMicrosoftDriver_Signing
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x40], 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x50]
lea r11, [rsp + 0x40]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x48]
lea rdx, str.Policy
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
lea rdx, str.SOFTWAREMicrosoftNon_Driver_Signing
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r11, [rbx + 1]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.Policy
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
lea rdx, str.SOFTWAREMicrosoftDriver_Signing
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r11, [rbx + 2]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.Policy
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x50]
lea rax, [rbx + 3]
lea r9, [rsp + 0x48]
lea rdx, str.PrivateHash
xor r8d, r8d
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret
Function at 0x180014cb0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov rbx, rcx
lea rdx, str.SOFTWAREMicrosoftDriver_Signing
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x40]
lea rdx, str.Policy
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftNon_Driver_Signing
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x40]
lea r11, [rbx + 1]
lea rdx, str.Policy
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftDriver_Signing
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x40]
lea r11, [rbx + 2]
lea rdx, str.Policy
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x40]
lea r11, [rbx + 3]
lea rdx, str.PrivateHash
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret
Function at 0x180017220
Capabilities:
Copy file

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
mov qword [rbp - 0x28], 0xfffffffffffffffe
cmp dword [0x1800e5e04], 0
jne 0x180017259
mov dword [0x1800e5e04], 1
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x1800e5e10]
call fcn.180033c70
call fcn.18000f620
mov rbx, rax
mov r8d, 1
lea rdx, [0x1800dfe30]
lea rcx, [rbp - 0x20]
call fcn.180029410
nop
mov rcx, qword [0x180087258]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rcx
lea rcx, [rbp + 0x30]
call fcn.180027500
mov r9, qword [str.baksda64.sys]
mov r8, rbx
lea rdx, [0x18009c688]
lea rcx, [rbp + 0x30]
call fcn.180026420
lea rcx, [rbp + 0x28]
call fcn.180027500
mov r9, qword [str.sdagent64.dll]
lea r8, [0x1800e5e10]
lea rdx, [0x18009c688]
lea rcx, [rbp + 0x28]
call fcn.180026420
xor r11d, r11d
mov qword [rbp - 0x38], r11
mov qword [rbp - 0x30], r11
mov dword [rbp + 0x20], r11d
mov dword [rbp + 0x18], r11d
lea r8, [rbp + 0x20]
lea rdx, [rbp - 0x38]
mov rcx, qword [rbp + 0x30]
call fcn.1800120c0
lea r8, [rbp + 0x18]
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp + 0x28]
call fcn.1800120c0
mov r11d, dword [rbp + 0x18]
cmp dword [rbp + 0x20], r11d
jne 0x18001731a
mov rax, qword [rbp - 0x38]
cmp rax, qword [rbp - 0x30]
je 0x18001732c
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop
lea rcx, [rbp + 0x28]
call fcn.180025870
nop
lea rcx, [rbp + 0x30]
call fcn.180025870
nop
lea rcx, [rbp - 0x20]
call fcn.180029450
add rsp, 0x58
pop rbx
pop rbp
ret

Function at 0x1800186e0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rbx, rcx
lea rdx, [rcx + 8]
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.180029410
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
je 0x18001876f
test rsi, rsi
je 0x18001876f
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r11d, r11d
mov dword [rsp + 0x60], r11d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [rsp + 0x38]
call fcn.180029450
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1800255b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
shr edx, 4
mov rsi, r9
inc dx
movzx r9d, r8w
mov rdi, rcx
movzx r8d, dx
mov edx, 6
and ebx, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x180025613
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180025613
xor edx, edx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp ebx, edx
je 0x180025625
inc edx
lea rax, [rax + rcx*2 + 2]
cmp edx, 0x10
jl 0x180025600
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rbx, dword [rsp + 0x50]
lea rdx, [rax + 2]
mov rcx, rsi
mov r8, rbx
call fcn.1800254d0
test eax, eax
jne 0x180025643
mov byte [rbx + rsi - 1], al
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
dec eax
add rsp, 0x20
pop rdi
ret

Function at 0x1800265a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
shr edx, 4
mov rsi, r9
inc dx
movzx r9d, r8w
mov rdi, rcx
movzx r8d, dx
mov edx, 6
and ebx, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x18002660b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x18002660b
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x180026622
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x1800265f5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edi, dword [rsp + 0x50]
dec edi
cmp ecx, edi
cmovle edi, ecx
movsxd rcx, edi
lea rbx, [rcx + rcx]
mov rcx, rsi
mov r8, rbx
call fcn.180036e50
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x18002660d

Function at 0x180029500
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x18002952e
or r9d, 0x20019
mov r8d, r9d
call fcn.180029460
mov rbx, rax
jmp 0x180029531
mov rbx, rcx
test rbx, rbx
je 0x1800295d7
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800295ca
cmp dword [rsp + 0x30], 4
jne 0x1800295ca
mov eax, dword [rsp + 0x58]
mov ecx, 4
mov rdx, rsi
cmp eax, ecx
cmova eax, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800295ca
cmp rbx, rdi
je 0x1800295b5
mov rcx, rbx
call fcn.1800294e0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x1800295d7
mov rcx, rbx
call fcn.1800294e0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1800295f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x18002961e
or r9d, 0x20019
mov r8d, r9d
call fcn.180029460
mov rbx, rax
jmp 0x180029621
mov rbx, rcx
test rbx, rbx
je 0x1800296bf
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800296b2
cmp dword [rsp + 0x30], 3
jne 0x1800296b2
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x1800296b2
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800296b2
cmp rbx, rdi
je 0x18002969d
mov rcx, rbx
call fcn.1800294e0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x1800296bf
mov rcx, rbx
call fcn.1800294e0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x1800296e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x18002970e
or r9d, 0x20019
mov r8d, r9d
call fcn.180029460
mov rbx, rax
jmp 0x180029711
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x1800297c3
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800297b6
cmp dword [rsp + 0x30], 3
jne 0x1800297b6
mov ecx, dword [rsp + 0x58]
call fcn.180035738
mov rdi, rax
test rax, rax
je 0x1800297b6
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800297ae
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rdi
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
cmp rbx, rsi
je 0x1800297a7
mov rcx, rbx
call fcn.1800294e0
mov eax, 1
jmp 0x1800297c5
mov rcx, rdi
call fcn.1800356c0
cmp rbx, rsi
je 0x1800297c3
mov rcx, rbx
call fcn.1800294e0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
Function at 0x1800297e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x40
mov rbp, r8
mov rdi, rcx
test rdx, rdx
je 0x18002980e
or r9d, 0x20019
mov r8d, r9d
call fcn.180029460
mov rbx, rax
jmp 0x180029811
mov rbx, rcx
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x180029900
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800298f3
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x18002986a
cmp eax, 2
je 0x18002986a
cmp eax, 6
je 0x18002986a
cmp eax, 7
jne 0x1800298f3
mov ecx, dword [rsp + 0x58]
add ecx, 2
call fcn.180035738
mov r8d, dword [rsp + 0x58]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.180037550
lea r11, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800298da
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.1800259f0
cmp rbx, rdi
je 0x1800298cb
mov rcx, rbx
call fcn.1800294e0
mov rcx, rsi
call fcn.1800356c0
mov eax, 1
jmp 0x180029902
mov rcx, rsi
call fcn.1800356c0
mov rcx, qword [rsp + 0x70]
lea rdx, [0x18009c2c8]
call fcn.1800259f0
cmp rbx, rdi
je 0x180029900
mov rcx, rbx
call fcn.1800294e0
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x180029bc0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x180029bee
or r9d, 0x20006
mov r8d, r9d
call fcn.180029490
mov rbx, rax
jmp 0x180029bf1
mov rbx, rcx
test rbx, rbx
je 0x180029c50
lea rax, [rsp + 0x60]
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x180029c43
cmp rbx, rdi
je 0x180029c2e
mov rcx, rbx
call fcn.1800294e0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180029c50
mov rcx, rbx
call fcn.1800294e0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180029c70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x180029c9e
or r9d, 0x20006
mov r8d, r9d
call fcn.180029490
mov rbx, rax
jmp 0x180029ca1
mov rbx, rcx
test rbx, rbx
je 0x180029d18
mov rdx, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x40], rdi
mov rdi, rdx
mov r9d, 1
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x180029d0b
cmp rbx, rsi
je 0x180029cf6
mov rcx, rbx
call fcn.1800294e0
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp rbx, rsi
je 0x180029d18
mov rcx, rbx
call fcn.1800294e0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rsi
ret
Function at 0x180029d30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbp
push rsi
sub rsp, 0x68
xor eax, eax
mov esi, edx
xor r9d, r9d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rax
lea rax, [r11 + 0x18]
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x50], rax
lea rax, [r11 + 0x20]
mov rbp, rcx
mov qword [r11 - 0x58], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x180029ebc
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x60], rdi
cmp dword [rsp + 0x98], eax
je 0x180029e92
mov eax, dword [rsp + 0x90]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x90], eax
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180035738
mov rbx, rax
test rax, rax
je 0x180029eb8
nop word [rax + rax]
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rbx
inc r8d
add r8, r8
call fcn.180037550
mov r9d, dword [rsp + 0x90]
mov r8, rbx
xor edx, edx
mov rcx, rbp
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x180029eb0
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
or r8d, 0x2001f
call fcn.180029460
mov rdi, rax
test rax, rax
je 0x180029eb0
mov edx, esi
mov rcx, rax
call fcn.180029d30
mov rcx, rdi
test eax, eax
je 0x180029eab
call fcn.1800294e0
mov r11, qword [0x1800e0c98]
test r11, r11
je 0x180029e6d
test esi, esi
je 0x180029e6d
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call r11
jmp 0x180029e79
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x180029eb0
dec dword [rsp + 0x98]
jne 0x180029de0
mov rcx, rbx
call fcn.1800356c0
mov eax, 1
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop rsi
pop rbp
ret
call fcn.1800294e0
mov rcx, rbx
call fcn.1800356c0
xor eax, eax
jmp 0x180029e97
xor eax, eax
add rsp, 0x68
pop rsi
pop rbp
ret
Function at 0x180029ed0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov rdi, rcx
test rdx, rdx
je 0x180029f0f
mov r8d, r9d
or r8d, 0x2001f
call fcn.180029460
mov rbx, rax
jmp 0x180029f12
mov rbx, rcx
test rbx, rbx
je 0x180029fa9
mov rcx, rbx
test rbp, rbp
je 0x180029f44
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x180029f9c
cmp rbx, rdi
je 0x180029f3d
mov rcx, rbx
call fcn.1800294e0
mov eax, 1
jmp 0x180029fab
mov edx, esi
call fcn.180029d30
test eax, eax
je 0x180029f9c
cmp rbx, rdi
je 0x180029f5c
mov rcx, rbx
call fcn.1800294e0
mov rax, qword [0x1800e0c98]
test rax, rax
je 0x180029f85
test esi, esi
je 0x180029f85
xor r9d, r9d
mov r8d, esi
mov rdx, r12
mov rcx, rdi
call rax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x180029fab
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x180029fab
cmp rbx, rdi
je 0x180029fa9
mov rcx, rbx
call fcn.1800294e0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov r9d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x180029ed0

Function at 0x18002a190
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov rdi, rcx
test rdx, rdx
je 0x180029f0f
mov r8d, r9d
or r8d, 0x2001f
call fcn.180029460
mov rbx, rax
jmp 0x180029f12
mov rbx, rcx
test rbx, rbx
je 0x180029fa9
mov rcx, rbx
test rbp, rbp
je 0x180029f44
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x180029f9c
cmp rbx, rdi
je 0x180029f3d
mov rcx, rbx
call fcn.1800294e0
mov eax, 1
jmp 0x180029fab
mov edx, esi
call fcn.180029d30
test eax, eax
je 0x180029f9c
cmp rbx, rdi
je 0x180029f5c
mov rcx, rbx
call fcn.1800294e0
mov rax, qword [0x1800e0c98]
test rax, rax
je 0x180029f85
test esi, esi
je 0x180029f85
xor r9d, r9d
mov r8d, esi
mov rdx, r12
mov rcx, rdi
call rax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x180029fab
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x180029fab
cmp rbx, rdi
je 0x180029fa9
mov rcx, rbx
call fcn.1800294e0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov r9d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x180029ed0

Function at 0x18002a1a0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov r8, rdx
xor edx, edx
jmp fcn.18002a190
Function at 0x18002a200
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov edi, r9d
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x18002a233
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
or r8d, 0x20019
call fcn.180029460
mov rsi, rax
jmp 0x18002a236
mov rsi, qword [rcx]
test rsi, rsi
je 0x18002a2d2
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor ebx, ebx
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18002a2af
test edi, edi
je 0x18002a2aa
dec edi
je 0x18002a292
sub edi, 2
je 0x18002a288
dec edi
jne 0x18002a2af
cmp dword [rsp + 0x68], 4
sete bl
jmp 0x18002a2af
cmp dword [rsp + 0x68], 3
sete bl
jmp 0x18002a2af
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x18002a2aa
cmp eax, 2
je 0x18002a2aa
cmp eax, 6
je 0x18002a2aa
cmp eax, 7
jne 0x18002a2af
mov ebx, 1
cmp rsi, qword [rbp]
je 0x18002a2bd
mov rcx, rsi
call fcn.1800294e0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov r9d, r8d
mov r8, rdx
xor edx, edx
jmp 0x18002a200

Function at 0x18002a340
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov rbp, qword [rsp + 0x90]
mov r14, r8
mov rbx, rdx
mov r13, rcx
or r8d, 0xffffffff
xor edx, edx
mov rcx, rbp
mov edi, r9d
call fcn.1800279b0
test rbx, rbx
je 0x18002a390
or edi, 0x20019
mov rdx, rbx
mov rcx, r13
mov r8d, edi
call fcn.180029460
mov rsi, rax
jmp 0x18002a393
mov rsi, r13
mov qword [rsp + 0x70], r12
test rsi, rsi
je 0x18002a49a
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18002a48d
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x18002a3ec
cmp eax, 2
je 0x18002a3ec
cmp eax, 6
je 0x18002a3ec
cmp eax, 7
jne 0x18002a48d
mov ecx, dword [rsp + 0x78]
add ecx, 2
call fcn.180035738
mov r8d, dword [rsp + 0x78]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.180037550
lea rdx, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x28], rdx
xor r8d, r8d
mov rcx, rsi
mov rdx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18002a485
mov rbx, r12
cmp word [r12], ax
je 0x18002a469
nop dword [rax]
mov edx, dword [rbp + 8]
mov r8, rbx
mov rcx, rbp
call fcn.180027b70
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
cmp word [rbx + rcx*2], ax
lea rbx, [rbx + rcx*2]
jne 0x18002a440
cmp rsi, r13
je 0x18002a476
mov rcx, rsi
call fcn.1800294e0
mov rcx, r12
call fcn.1800356c0
mov eax, 1
jmp 0x18002a49c
mov rcx, r12
call fcn.1800356c0
cmp rsi, r13
je 0x18002a49a
mov rcx, rsi
call fcn.1800294e0
xor eax, eax
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret