joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800660d0
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x870
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x860], rax
xor esi, esi
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExt
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800662a3
cmp qword [rsp + 0x30], rsi
je 0x1800662b3
mov word [rsp + 0x60], si
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x62]
call fcn.1800c1250
lea r8, str.Stats_
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.1800beefc
lea r8, [0x180100260]
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.1800c0a54
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea r8, str.Settings_
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.1800beefc
lea r8, [0x180100260]
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.1800c0a54
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp eax, 5
jne 0x1800662a3
mov qword [rsp + 0x38], rsi
lea rax, vtable.CNTSecurityObject.0
mov qword [rsp + 0x40], rax
mov rdi, rsi
mov qword [rsp + 0x48], rsi
mov rbx, rsi
mov qword [rsp + 0x50], rbx
call fcn.18007d5a0
lea rcx, [rsp + 0x40]
call fcn.18007d8f0
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
mov r9d, 0x1060000
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180066272
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x180066287
mov r8d, 0xf003f
lea rcx, [rsp + 0x40]
call fcn.18007e160
test eax, eax
jne 0x180066268
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
jmp 0x180066272
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180066287
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rsi
test rdi, rdi
je 0x180066295
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x1800662a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800662b3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1800bd980
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1800662e0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push rbx
sub rsp, 0x8a0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x890], rax
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x90], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x92]
call fcn.1800c1250
lea r11, [rsp + 0x50]
mov qword [rsp + 0x20], r11
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExt
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18006655e
cmp qword [rsp + 0x50], rbx
je 0x18006655e
lea rax, vtable.CNTSecurityObject.0
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
call fcn.18007d5a0
lea rcx, [rsp + 0x68]
call fcn.18007d8f0
lea r8, str.Stats_
mov edx, 0x400
lea rcx, [rsp + 0x90]
call fcn.1800beefc
lea r8, [0x180100260]
mov edx, 0x400
lea rcx, [rsp + 0x90]
call fcn.1800c0a54
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea r8, str.Settings_
mov edx, 0x400
lea rcx, [rsp + 0x90]
call fcn.1800beefc
lea r8, [0x180100260]
mov edx, 0x400
lea rcx, [rsp + 0x90]
call fcn.1800c0a54
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp eax, 5
jne 0x180066489
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x1060000
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180066474
mov r8d, 0xf003f
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x68]
call fcn.18007e160
test eax, eax
jne 0x180066474
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x180066489
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x1060006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x180066514
mov dword [rsp + 0x60], 0x400
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Flags
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x180066514
mov r8d, 0x10002
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x68]
call fcn.18007db50
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x180066529
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18006653e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18006654e
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18006655e
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.1800bd980
add rsp, 0x8a0
pop rbx
ret
Function at 0x180067ac0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x90
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rdx
mov rdi, rcx
mov qword [r11 - 0x38], rcx
mov qword [r11 - 0x40], rdx
mov qword [r11 - 0x48], 7
xor r13d, r13d
mov qword [r11 - 0x50], r13
mov word [r11 - 0x60], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [r11 - 0x68]
call fcn.180003570
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.1800756d0
cmp qword [rax + 0x20], 0x10
jb 0x180067b3e
mov rcx, qword [rax + 8]
jmp 0x180067b42
lea rcx, [rax + 8]
call fcn.1800db574
mov rbp, rax
cmp qword [rsp + 0x40], 0x10
jb 0x180067b5c
mov rcx, qword [rsp + 0x28]
call fcn.1800bd964
mov qword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x38], r13
mov byte [rsp + 0x28], r13b
cmp qword [rdi + 0x20], 8
jb 0x180067b7f
lea rsi, [rdi + 8]
mov rcx, qword [rsi]
jmp 0x180067b86
lea rsi, [rdi + 8]
mov rcx, rsi
lea rdx, [0x1801072d0]
call fcn.1800bdbec
mov r12, rax
test rax, rax
je 0x180067c07
mov r9, rax
mov r8d, 1
mov rdx, qword [rbx + 0x18]
mov rcx, rbp
call fcn.1800be1d4
mov rcx, r12
call fcn.1800bdc84
mov rcx, rbp
call fcn.1800bf884
nop
cmp qword [rdi + 0x20], 8
jb 0x180067bcf
mov rcx, qword [rsi]
call fcn.1800bd964
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], r13
mov word [rsi], r13w
cmp qword [rbx + 0x20], 8
jb 0x180067bef
mov rcx, qword [rbx + 8]
call fcn.1800bd964
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r13
mov word [rbx + 8], r13w
mov eax, 1
jmp 0x180067c52
mov rcx, rbp
call fcn.1800bf884
nop
cmp qword [rdi + 0x20], 8
jb 0x180067c1f
mov rcx, qword [rsi]
call fcn.1800bd964
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], r13
mov word [rsi], r13w
cmp qword [rbx + 0x20], 8
jb 0x180067c3f
mov rcx, qword [rbx + 8]
call fcn.1800bd964
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r13
mov word [rbx + 8], r13w
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1800bd980
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800683c0
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x278], rbx
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], rax
mov word [rcx + 8], ax
mov dword [rsp + 0x20], 1
mov word [rsp + 0x40], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.1800c1250
mov r8b, 3
xor edx, edx
lea ecx, [rdx + 6]
call fcn.18006db10
mov edx, 3
mov ecx, 0x5c
test eax, eax
cmovne edx, ecx
mov r9d, 0x104
lea r8, [rsp + 0x40]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180068486
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180012d90
mov rax, rbx
jmp 0x180068489
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800bd980
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret

Function at 0x1800684b0
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x8f0
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
mov rbx, rcx
mov rsi, rdx
lea rcx, [rsp + 0xe2]
xor ebp, ebp
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0xe0], bp
call fcn.1800c1250
test rbx, rbx
jne 0x1800684fe
xor eax, eax
jmp 0x1800685fb
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1800c1250
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
test rsi, rsi
je 0x180068572
mov qword [rsp + 0x920], rdi
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x920]
not rcx
cmp rcx, 1
je 0x180068572
lea r8, str._s__s
lea rcx, [rsp + 0xe0]
mov r9, rbx
mov edx, 0x400
mov qword [rsp + 0x20], rsi
call fcn.1800bfb00
jmp 0x180068591
lea rcx, [rsp + 0xe0]
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x180068580
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xe0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1800684f7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.1800bd980
add rsp, 0x8f0
pop rsi
pop rbp
pop rbx
ret
Function at 0x18006dba0
Capabilities:
Create directory
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x860
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x38], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov rsi, rbx
mov qword [rsp + 0x28], rbx
mov edi, 0x57
mov dword [rsp + 0x20], edi
mov word [rsp + 0x50], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x52]
call fcn.1800c1250
nop
mov r8b, 3
xor edx, edx
lea ecx, [rbx + 6]
call fcn.18006db10
test eax, eax
je 0x18006dc9c
lea rcx, str.Shell32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x18006dc49
lea rcx, str.Shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x18006dc9c
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18006dc9c
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1800f1de0]
call rax
test eax, eax
js 0x18006dc9c
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x18006dc9c
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.1800beefc
mov edi, ebx
mov dword [rsp + 0x20], ebx
cmp word [rsp + 0x50], 0
jne 0x18006dcc5
mov r9d, 1
lea r8d, [r9 + 0x1b]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x18006dcc5
mov dword [rsp + 0x20], ebx
jmp 0x18006dcc9
test edi, edi
jne 0x18006dd3e
test r12, r12
je 0x18006dd32
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x18006dd32
mov rdx, r12
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1800c4e50
test eax, eax
je 0x18006dd32
xor r8d, r8d
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x18006dd32
mov dword [rsp + 0x24], 0xffffffff
lea rdx, [0x180136c18]
lea rcx, [rsp + 0x24]
call fcn.1800c1ef0
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop
jmp 0x18006dd4c
test rsi, rsi
je 0x18006dd5a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [r13 + 0x20], 7
mov qword [r13 + 0x18], rbx
mov word [r13 + 8], bx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.180012d90
mov rax, r13
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1800bd980
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x18006ed40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rax, r8
mov qword [rsp + 0x28], r9
mov rdi, r9
mov rbx, rdx
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x48]
xor esi, esi
xor r8d, r8d
mov rdx, rax
mov dword [rsp + 0x48], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
test rbx, rbx
je 0x18006ee0c
mov ecx, dword [rdi]
test ecx, ecx
je 0x18006ee09
mov edx, dword [rsp + 0x48]
test edx, edx
je 0x18006edf1
cmp edx, 2
jbe 0x18006eddf
cmp edx, 7
jne 0x18006edf1
test cl, 1
jne 0x18006edc7
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x18006edc7
mov rdx, rcx
shr rdx, 1
cmp word [rbx + rdx*2 - 2], si
jne 0x18006edc7
cmp eax, 1
jbe 0x18006ee0c
cmp word [rbx + rdx*2 - 4], si
je 0x18006ee0c
mov word [rbx], si
mov eax, SafeArrayGetDim
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test cl, 1
jne 0x18006edf1
mov rax, rcx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x18006ee0c
mov word [rbx], si
mov eax, SafeArrayGetDim
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov word [rbx], si
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov eax, r11d
add rsp, 0x30
pop rdi
ret

Function at 0x18006ee20
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor esi, esi
lea rax, [r11 - 0x48]
mov rdi, rdx
mov rdx, rcx
mov qword [r11 - 0x20], 7
mov qword [r11 - 0x28], rsi
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [r11 - 0x58], rax
mov rbx, rsi
mov word [rsp + 0x40], si
mov qword [r11 - 0x48], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18006eea3
mov rbx, qword [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x18006eea3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
cmp qword [rsp + 0x58], 8
jb 0x18006eeb5
mov rcx, qword [rsp + 0x40]
call fcn.1800bd964
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
test rbx, rbx
je 0x18006eed6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800bd980
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18006ef00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x2b0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x2f8], rbx
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r12, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x60], rcx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], r13
mov word [rcx + 8], r13w
mov dword [rsp + 0x40], 1
mov rbx, r13
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x30], 0x104
mov word [rsp + 0x90], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x92]
call fcn.1800c1250
mov qword [rsp + 0x88], 7
mov qword [rsp + 0x80], r13
mov word [rsp + 0x70], r13w
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18006f153
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x38], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x18006f0a7
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x18006f099
cmp edx, 2
jbe 0x18006f075
cmp edx, 7
jne 0x18006f099
test cl, 1
jne 0x18006f067
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x18006f067
mov rdx, rcx
shr rdx, 1
cmp word [rsp + rdx*2 + 0x8e], r13w
jne 0x18006f067
cmp eax, 1
jbe 0x18006f0b0
cmp word [rsp + rdx*2 + 0x8c], r13w
je 0x18006f0b0
mov word [rsp + 0x90], r13w
jmp 0x18006f142
test cl, 1
jne 0x18006f08b
mov rax, rcx
shr rax, 1
cmp word [rsp + rax*2 + 0x8e], 0
je 0x18006f0b0
mov word [rsp + 0x90], r13w
jmp 0x18006f142
mov word [rsp + 0x90], r13w
jmp 0x18006f142
mov word [rsp + 0x90], r13w
test edi, edi
jne 0x18006f0de
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.180012d90
jmp 0x18006f142
cmp edi, 0xea
jne 0x18006f142
mov eax, 2
mul rcx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.1800bd95c
mov rbp, rax
lea r9, [rsp + 0x30]
mov r8, r12
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.18006ed40
test eax, eax
jne 0x18006f13a
xor eax, eax
mov rcx, rdi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbp
mov rcx, rsi
call fcn.180012d90
mov rcx, rbp
call fcn.1800bd9a0
test rbx, rbx
je 0x18006f153
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
cmp qword [rsp + 0x88], 8
jb 0x18006f168
mov rcx, qword [rsp + 0x70]
call fcn.1800bd964
mov qword [rsp + 0x88], 7
mov qword [rsp + 0x80], r13
mov word [rsp + 0x70], r13w
test rbx, rbx
je 0x18006f195
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
jmp 0x18006f198
mov rax, rsi
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1800bd980
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2b0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18006f1c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x40
lea rax, [rsp + 0x38]
mov rbp, rdx
mov rsi, r8
mov rdx, rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov ebx, 1
mov qword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18006f286
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rdi
mov rdi, qword [rsp + 0x38]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x68], 4
jne 0x18006f25f
test eax, eax
jne 0x18006f25f
mov eax, dword [rsp + 0x30]
mov dword [rsi], eax
jmp 0x18006f261
xor ebx, ebx
test rdi, rdi
je 0x18006f26f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rsi
ret

Function at 0x18006f2a0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
lea rax, [rsp + 0x58]
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
mov rdx, rcx
xor ebp, ebp
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18006f2f2
mov rbx, qword [rsp + 0x58]
jmp 0x18006f34d
mov qword [rsp + 0x60], rbp
call fcn.180067400
mov r8d, 0xf013f
test eax, eax
lea rax, [rsp + 0x50]
mov edx, 0xf023f
mov qword [rsp + 0x40], rax
cmovne edx, r8d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], edx
mov rdx, rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18006f38c
mov rbx, qword [rsp + 0x60]
lea rax, [rsp + 0x98]
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x18006f38c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18006f3b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
lea rax, [rsp + 0x50]
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
mov rdx, rcx
xor ebp, ebp
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18006f402
mov rbx, qword [rsp + 0x50]
jmp 0x18006f460
mov qword [rsp + 0x58], rbp
call fcn.180067400
mov r8d, 0xf013f
test eax, eax
lea rax, [rsp + 0x88]
mov edx, 0xf023f
mov qword [rsp + 0x40], rax
cmovne edx, r8d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], edx
mov rdx, rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18006f499
mov rbx, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, 1
xor r8d, r8d
inc eax
mov rdx, rsi
mov rcx, rbx
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x18006f499
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret