joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100057734
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x260], rax
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov r9d, 0x2001f
xor r8d, r8d
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100057808
jmp 0x1000577b3
test eax, eax
jne 0x1000577f1
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1000577b3
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.100057734
test eax, eax
jne 0x1000577f1
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x100057787
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x100057834
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rsp + 0x40], 0
mov rsi, r9
mov rbx, r8
mov rdi, rdx
test ecx, ecx
jne 0x10005788c
lea rax, [r11 + 8]
xor r9d, r9d
xor r8d, r8d
mov qword [r11 - 0x10], rax
and qword [r11 - 0x18], 0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005788c
test rbx, rbx
jne 0x100057885
cmp dword [rsp + 0x40], 2
jbe 0x10005788c
mov eax, 0xb7
jmp 0x1000578ae
mov eax, dword [rsp + 0x60]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x10005795c
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor ebx, ebx
mov rbp, rdx
mov rdi, rcx
cmp rcx, rbx
jne 0x10005797b
xor eax, eax
jmp 0x1000579fb
mov dword [rsp + 0x50], ebx
call fcn.100053454
cmp eax, ebx
je 0x1000579f9
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, eax
mov r12d, eax
call fcn.10007fa96
mov rsi, rax
cmp rax, rbx
je 0x1000579f9
mov r9, rax
mov r8d, r12d
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, ebx
je 0x1000579f1
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x68]
lea rdx, [0x10002aaf0]
mov rcx, rsi
mov dword [rsp + 0x60], 4
call sub.VERSION.dll_VerQueryValueW
cmp eax, ebx
je 0x1000579f1
mov rcx, qword [rsp + 0x68]
mov ebx, 1
movzx edx, word [rcx]
mov word [rbp], dx
mov rcx, rsi
call fcn.10007faa2
mov eax, ebx
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100057a0c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ebx, ebx
cmp eax, ebx
je 0x100057a73
lea r8, [0x100025da0]
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.100039ee4
cmp eax, ebx
jl 0x100057a73
lea rax, [rsp + 0x20]
cmp rax, rbx
je 0x100057a6e
lea rcx, [rsp + 0x20]
call fcn.100054858
mov rbx, rax
mov rax, rbx
jmp 0x100057a75
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.10007fa70
add rsp, 0x240
pop rbx
ret

Function at 0x100057a94
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
mov edx, 0x104
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x100057b62
lea r8, [0x100025da0]
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.100039ee4
cmp eax, ebx
jl 0x100057b62
lea rax, [rsp + 0x50]
mov ecx, ebx
mov dword [rsp + 0x44], ebx
mov r9d, ebx
mov dword [rsp + 0x40], ebx
cmp rax, rbx
je 0x100057b20
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.100054598
mov ecx, dword [rsp + 0x44]
mov r9d, dword [rsp + 0x40]
jmp 0x100057b25
mov eax, 0x80004005
cmp eax, ebx
jl 0x100057b62
movzx eax, cx
movzx r8d, r9w
shr ecx, 0x10
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r8d
lea r8, [0x1000296c8]
shr r9d, 0x10
mov edx, 0x104
mov rcx, rdi
call fcn.10003a080
mov ecx, 1
cmp eax, ebx
cmovge ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.10007fa70
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret

Function at 0x100057b8c
Capabilities:
Delete file
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x480
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x470], rax
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
lea rdx, [0x10002ab30]
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 0x100057c88
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x260]
lea rdx, [0x10002ab88]
xor r8d, r8d
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x40], 0x105
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100057c7d
cmp dword [rsp + 0x30], 1
jne 0x100057c7d
lea ebx, [rax + 1]
lea rax, [0x10002abc8]
lea r9, [rsp + 0x260]
lea r8, [0x10002abd8]
lea rcx, [rsp + 0x50]
mov edx, 0x105
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call fcn.10003a080
test eax, eax
js 0x100057c76
lea rcx, [rsp + 0x50]
call fcn.100053454
test eax, eax
je 0x100057c76
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebx
cmp ebx, 0x10
jl 0x100057c2b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.10007fa70
add rsp, 0x480
pop rbx
ret
Function at 0x100057ca8
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x4a0
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x490], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov rsi, 0xffffffff80000002
lea rdx, [0x10002ac70]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100057e41
xor ebx, ebx
lea rax, [rsp + 0x5c]
mov dword [rsp + 0x58], 4
and dword [rsp + 0x50], ebx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x5c], 4
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
xor edx, edx
jmp 0x100057e11
lea rax, [rsp + 0x70]
lea r9, [0x10002abf0]
lea r8, [0x100025e98]
lea rcx, [rsp + 0x280]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.10003a080
test eax, eax
js 0x100057de9
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x280]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100057de9
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
lea rdx, [0x100027008]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x5c]
inc ebx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov edx, ebx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x54], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x100057d55
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x10002ac70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.10007fa70
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x4a0
pop rsi
ret
Function at 0x100058034
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r9, rcx
mov rdi, rdx
lea r8, [0x10002ada0]
lea rcx, [rsp + 0x50]
mov edx, 0x104
xor esi, esi
call fcn.10003a080
test eax, eax
js 0x100058142
and qword [rsp + 0x38], rsi
mov ebx, 0x20019
call fcn.100063fcc
test eax, eax
mov ecx, 0x20119
lea rax, [rsp + 0x38]
cmovne ebx, ecx
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov r9d, ebx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100058142
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea ebx, [rsi + 1]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rdx, [0x10002ae10]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x40], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100058137
cmp dword [rsp + 0x30], ebx
jne 0x100058137
mov esi, ebx
test rdi, rdi
je 0x10005811c
lea rdx, [rsp + 0x260]
mov rcx, rdi
call fcn.100052a8c
jmp 0x10005811e
xor eax, eax
test eax, eax
je 0x100058137
lea r8, [rsp + 0x260]
mov edx, 0x104
mov rcx, rdi
call fcn.100039df8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x100058634
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
test rax, rax
je 0x100058682
lea rcx, [0x10002ae98]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x100058682
mov edx, 0xbba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x100058679
mov rcx, rbx
call rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x100058694
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
sub rsp, 0x38
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov ebx, 1
lea rdx, [0x100028710]
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [rbx + 3]
test eax, eax
jne 0x100058731
and dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x50]
lea rdx, [0x10002aea8]
xor r8d, r8d
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005871e
xor ebx, ebx
cmp dword [rsp + 0x50], esi
jne 0x10005871e
cmp dword [rsp + 0x58], ebx
sete bl
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x10005883f
lea rax, [rsp + 0x68]
lea rdx, [0x10002aed0]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000587b4
and dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x50]
lea rdx, [0x10002af30]
xor r8d, r8d
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000587a9
xor ebx, ebx
cmp dword [rsp + 0x50], esi
jne 0x1000587a9
cmp dword [rsp + 0x58], ebx
sete bl
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x10005883f
lea rax, [rsp + 0x68]
lea rdx, [0x10002af50]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005883f
and dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x50]
lea rdx, [0x10002afc8]
xor r8d, r8d
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100058834
xor ebx, ebx
cmp dword [rsp + 0x50], esi
jne 0x100058834
cmp dword [rsp + 0x58], ebx
sete bl
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x38
pop rsi
pop rbx
ret
Function at 0x100058850
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
sub rsp, 0x58
and qword [r11 - 0x18], 0
and qword [r11 + 8], 0
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
lea rdx, [0x100025840]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 2
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000588e0
lea rcx, [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_time]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
lea rdx, [0x1000062a0]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret

Function at 0x100058908
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edi, edi
mov esi, edx
mov rbx, rcx
cmp rcx, rdi
je 0x100058a47
lea rdx, [0x10002b000]
call qword [sym.imp.msvcrt.dll_wcsstr]
cmp rax, rdi
jne 0x10005896d
lea rdx, [0x10002b020]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsstr]
cmp rax, rdi
jne 0x10005896d
mov edi, 1
jmp 0x100058a47
mov ebx, 0x104
lea rcx, [rsp + 0x250]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x100058a47
lea r9, [rsp + 0x250]
lea r8, [0x10002b048]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.10003a080
cmp eax, edi
jl 0x100058a47
xor r8d, r8d
cmp esi, 0xd2af9
jne 0x100058a33
lea rax, [rsp + 0x30]
lea r9d, [r8 + 2]
lea rdx, [0x100025960]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x100058a47
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
lea rdx, [0x10002b068]
mov r9d, 1
not rcx
xor r8d, r8d
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov edi, 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100058a47
lea rdx, [rsp + 0x40]
mov r9d, 0xffff
xor ecx, ecx
call fcn.100056190
mov edi, eax
mov eax, edi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100059154
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r13, r8
mov rbx, rcx
mov rsi, r15
mov qword [rsp + 0x38], r15
mov r12d, 0x80004005
cmp r8, r15
jne 0x10005918e
mov eax, 0x8007000e
jmp 0x1000593d3
lea rdi, [rdx + 1]
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.10007fa96
mov r14, rax
cmp rax, r15
je 0x100059184
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.100039df8
mov ebx, 0x2c
mov rcx, r14
mov edx, ebx
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbp, rax
cmp rax, r15
je 0x1000593c8
mov word [rax], r15w
lea edi, [rbx - 0xc]
jmp 0x1000591ed
mov word [rbp], r15w
add rbp, 2
cmp di, word [rbp]
je 0x1000591e8
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
cmp rax, r15
je 0x10005925d
mov word [rax], r15w
jmp 0x100059214
mov word [rbx], r15w
add rbx, 2
cmp di, word [rbx]
je 0x100059210
mov edx, 0x2c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcschr]
mov rsi, rax
cmp rax, r15
je 0x100059246
mov word [rax], r15w
jmp 0x10005923d
mov word [rsi], r15w
add rsi, 2
cmp di, word [rsi]
je 0x100059239
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
cmove rbx, r15
mov rdx, 0xffffffff80000001
mov rcx, r14
call fcn.1000578c4
lea rcx, [rsp + 0x38]
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r15d
jne 0x1000593c8
mov rcx, 0xffffffffffffffff
mov ebp, 0x104
mov eax, 2
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.10007fa96
mov dword [rsp + 0x90], 0x208
mov rdi, rax
cmp rax, r15
je 0x1000593bd
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x98]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x98], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r15d
jne 0x1000593b0
mov eax, dword [rsp + 0x98]
cmp eax, 1
je 0x10005938a
cmp eax, 2
je 0x10005938a
cmp eax, 4
jne 0x1000593b0
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x90], eax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x98]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r15d
jne 0x1000593b0
mov r9d, dword [rsp + 0x30]
lea r8, [0x1000297a8]
mov rdx, rbp
mov rcx, rdi
call fcn.10003a080
cmp eax, r15d
jl 0x1000593b0
mov r12d, r15d
mov qword [r13], rdi
jmp 0x1000593bd
mov r12d, r15d
cmp rsi, r15
je 0x1000593a9
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.100039ee4
mov qword [r13], rdi
mov rdi, r15
cmp rdi, r15
je 0x1000593bd
mov rcx, rdi
call fcn.10007faa2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call fcn.10007faa2
mov eax, r12d
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10005992c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x40
xor ebx, ebx
xor ebp, ebp
mov r12, r8
and dword [rax - 0x28], ebx
mov rsi, rdx
mov r13, rcx
mov dword [rax - 0x24], 1
cmp dword [rsp + 0x80], ebx
je 0x100059a85
xor eax, eax
or r8, 0xffffffffffffffff
mov rdi, rdx
mov rcx, r8
repne scasw ax, word [rdi]
lea eax, [rbx + 2]
not rcx
lea r14, [rcx + 0x14]
mul r14
cmovo rax, r8
mov rcx, rax
call fcn.10007fa96
mov rdi, rax
test rax, rax
jne 0x1000599b6
lea rdx, [0x10002b160]
lea ecx, [rbx + 2]
call fcn.1000527a0
mov eax, 0x8007000e
jmp 0x100059aec
mov eax, dword [0x100087a3c]
cmp eax, 0xff
jne 0x1000599ce
call fcn.1000537e4
mov dword [0x100087a3c], eax
test eax, eax
je 0x100059a79
lea r8, [0x10002b178]
mov r9, rsi
mov rdx, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.10003a080
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov ebx, 0x208
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100059a2d
cmp dword [rsp + 0x34], 1
jne 0x100059a2d
xor ebx, ebx
lea ebp, [rbx + 1]
jmp 0x100059a79
lea r8, [0x10002b190]
mov r9, rsi
mov rdx, r14
mov rcx, rdi
call fcn.10003a080
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100059a74
cmp dword [rsp + 0x34], 1
je 0x100059a26
mov ebx, 0x80004005
mov rcx, rdi
call fcn.10007faa2
test ebp, ebp
jne 0x100059ac4
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, r13
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x30], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100059abf
cmp dword [rsp + 0x34], 1
jne 0x100059abf
xor ebx, ebx
jmp 0x100059ac8
mov ebx, 0x80004005
test ebx, ebx
js 0x100059aea
test rsi, rsi
lea r9, [0x100029a10]
lea rdx, [0x10002b1a0]
mov r8, r12
mov ecx, 4
cmovne r9, rsi
call fcn.1000527f4
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x100059b14
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x490
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x480], rax
xor r14d, r14d
cmp dword [rcx + 4], 3
mov rsi, rdx
mov ebp, r14d
jne 0x100059d1b
mov rbx, qword [rcx + 0x10]
cmp rbx, r14
je 0x100059d1b
mov rcx, rbx
call fcn.100053454
cmp eax, r14d
je 0x100059d1b
xor eax, eax
or r8, 0xffffffffffffffff
mov rdi, rbx
mov rcx, r8
repne scasw ax, word [rdi]
lea eax, [r14 + 2]
not rcx
mov rdi, rcx
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.10007fa96
mov r12, rax
cmp rax, r14
je 0x100059d1b
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.100039df8
lea rdx, [0x10002b1d8]
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rbx, rax
cmp rax, r14
je 0x100059d13
mov rdx, 0xffffffff80000002
mov rcx, r12
mov word [rax], r14w
call fcn.1000578c4
add rbx, 2
lea rdx, [0x10002b1d8]
mov rcx, rbx
mov r13, rax
call qword [sym.imp.msvcrt.dll_wcsstr]
cmp rax, r14
je 0x100059c01
mov word [rax], r14w
cmp rbx, r14
je 0x100059d13
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x100059d13
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, r13
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r14d
jne 0x100059d13
mov r13d, 0x104
mov dword [rsp + 0x40], 1
mov ebx, r14d
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x48], r13d
xor edx, edx
jmp 0x100059cc4
inc ebx
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x48], 0x208
cmp r14w, word [rsp + 0x60]
je 0x100059cc2
cmp r14w, word [rsp + 0x270]
je 0x100059cc2
cmp dword [rsp + 0x40], 1
je 0x100059c9f
cmp dword [rsp + 0x40], 2
jne 0x100059cb6
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x100059cc2
mov ebp, 1
cmp rsi, r14
je 0x100059d08
inc dword [rsi]
mov edx, ebx
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x270]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, r14d
je 0x100059c6f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r12
call fcn.10007faa2
mov eax, ebp
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret