joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401e74c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x1404779b8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x51], rcx
mov qword [rbp - 0x49], rdx
cmp qword [rdx + 0x18], 8
jb 0x1401e74fa
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x1401e7504
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
jne 0x1401e7680
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x91
jne 0x1401e763a
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401e7532
mov rcx, qword [rbx]
mov r8d, 0x34
lea rdx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1401e75a2
xor eax, eax
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], 7
lea r8d, [rax + 0x57]
lea rdx, str._s______Path___s__has_already_been_mounted__but_its_volume_name_could_not_be_retrieved.
lea rcx, [rbp - 0x79]
call fcn.140101ff0
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401e7579
mov r8, qword [rbx]
lea rdx, str.asus::winhttp::FileSystem::MountVolume
lea rcx, [rbp - 0x79]
call fcn.1401a8890
nop
mov rcx, rbx
call fcn.14011ed90
nop
mov rcx, rdi
call fcn.14011ed90
xor eax, eax
jmp 0x1401e7696
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401e75af
mov rax, qword [rdi]
lea r8, [rbp - 0x39]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1401e75d4
add rax, 2
test ecx, ecx
jne 0x1401e75c0
test edx, edx
je 0x1401e7680
xor eax, eax
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], 7
lea r8d, [rax + 0x60]
lea rdx, str._s______Path___s__has_already_been_mounted__but_volume_name___s__doesnt_match_as_expected___s_.
lea rcx, [rbp - 0x79]
call fcn.140101ff0
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401e760f
mov rax, qword [rdi]
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401e761c
mov r8, qword [rbx]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x39]
lea rdx, str.asus::winhttp::FileSystem::MountVolume
lea rcx, [rbp - 0x79]
call fcn.1401a8890
jmp 0x1401e758a
xor eax, eax
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], 7
lea r8d, [rax + 0x35]
lea rdx, str._s______Fail_to_mount___s__to___s_._Error_code0x_08x
lea rcx, [rbp - 0x79]
call fcn.140101ff0
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401e766d
mov r9, qword [rbx]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401e767a
mov r8, qword [rdi]
mov dword [rsp + 0x20], esi
jmp 0x1401e7625
mov rcx, rbx
call fcn.14011ed90
nop
mov rcx, rdi
call fcn.14011ed90
mov eax, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14021f250
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401eb3a0
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [rcx + 0x10], 0
mov rbx, rcx
jne 0x1401eb3b7
xor al, al
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rcx]
mov qword [rsp + 0x50], rsi
mov esi, 0xffffffff
mov qword [rsp + 0x58], rdi
xor edi, edi
test edx, edx
cmove edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401eb451
cmp eax, 0x80
jne 0x1401eb456
mov rax, qword [rbx + 8]
cmp word [rax], di
je 0x1401eb456
mov rcx, qword [rbx]
test rcx, rcx
je 0x1401eb401
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov dword [rsp + 0x20], SafeArrayPutElement
lea r8, [rsp + 0x28]
mov dword [rsp + 0x30], edi
lea rcx, str.D:_A__GA___AN__A__GA___WD_
lea edx, [r9 + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
mov r8, qword [rbx + 8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, qword [rsp + 0x50]
mov qword [rbx], rax
movzx eax, dil
mov rdi, qword [rsp + 0x58]
mov byte [rbx + 0x10], 1
add rsp, 0x40
pop rbx
ret
mov edi, 1
mov rsi, qword [rsp + 0x50]
movzx eax, dil
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbx
ret
Function at 0x1401ef850
Capabilities:
Check internet connectivity via wininet

Disassembly:
sub rsp, 0x48
mov eax, dword [0x140361fd8]
lea rcx, [rsp + 0x20]
movsd xmm0, qword [str.checkNewtWork]
mov dword [rsp + 0x28], eax
movzx eax, byte [0x140361fdc]
mov byte [rsp + 0x2c], al
mov qword [rsp + 0x38], SafeArrayLock
mov qword [rsp + 0x30], SafeArrayLock
movsd qword [rsp + 0x20], xmm0
mov byte [rsp + 0x2d], 0
call fcn.1401a7f60
xor edx, edx
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
setne al
add rsp, 0x48
ret
Function at 0x1401f0640
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1404779b8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x50], rdx
xor esi, esi
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], si
xor r8d, r8d
lea rdx, [0x14034c7a8]
lea rcx, [rbp - 0x48]
call fcn.140101ff0
nop
mov qword [rbp - 0x50], rsi
cmp qword [rdi + 0x10], rsi
je 0x1401f06f0
mov rdx, rdi
mov rcx, rbx
call fcn.1400f4280
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1401f07f4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f06e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401f0819
call fcn.14021ecec
jmp 0x1401f07f4
lea r9, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14036d270]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1401f0796
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], 7
mov rdx, qword [rbp - 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1401f0730
lea rcx, [rbp - 0x28]
call fcn.140101ff0
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1401f0784
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f077f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401f0813
call fcn.14021ecec
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbp - 0x48], xmm0
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x38], xmm0
jmp 0x1401f079a
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rbp - 0x28], xmm0
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1401f07b1
call qword [sym.imp.OLE32.dll_CoTaskMemFree]
mov qword [rbp - 0x50], rsi
movups xmm1, xmmword [rbp - 0x28]
movq r8, xmm1
test r8, r8
je 0x1401f07e9
lea rax, [rbp - 0x48]
cmp rdi, rax
je 0x1401f07e9
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov rcx, rdi
call fcn.140101ff0
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmm0
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14021f250
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call fcn.140260f54
nop
call fcn.140260f54
int3

Function at 0x1401f0a40
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
cmp qword [r8 + 0x18], 8
mov rdi, r8
mov qword [rsp + 0x20], rdx
mov rbx, rdx
mov qword [rsp + 0x20], r8
jb 0x1401f0a64
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401f0a6e
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
mov rcx, rbx
test eax, eax
jne 0x1401f0a98
call fcn.1400f54b0
mov rcx, rdi
call fcn.1400f54b0
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.1400f54b0
mov rcx, rdi
call fcn.1400f54b0
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1401f0ac0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rbx, rdx
mov qword [rsp + 0x20], rdx
jb 0x1401f0ad8
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, rbx
test eax, eax
jne 0x1401f0af5
call fcn.1400f54b0
mov eax, 1
add rsp, 0x30
pop rbx
ret
call fcn.1400f54b0
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1401f0b10
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
cmp qword [r8 + 0x18], 8
mov rdi, r8
mov qword [rsp + 0x20], rdx
mov rbx, rdx
mov qword [rsp + 0x20], r8
jb 0x1401f0b34
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401f0b3e
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
mov rcx, rbx
test eax, eax
jne 0x1401f0b68
call fcn.1400f54b0
mov rcx, rdi
call fcn.1400f54b0
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.1400f54b0
mov rcx, rdi
call fcn.1400f54b0
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1401f1250
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1404779b8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, r9
mov r14, r8
mov rax, rdx
mov rbx, rcx
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x31], r8
mov qword [rbp - 0x29], r9
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1401f1296
mov rdx, qword [r8]
lea rcx, [rbp - 0x49]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401f12f5
xor edi, edi
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov r8d, 0xd
lea rdx, str.ERROR_READREG
mov rcx, rbx
call fcn.140101ff0
nop
mov rcx, r14
call fcn.1400f54b0
nop
mov rcx, rsi
call fcn.1400f54b0
jmp 0x1401f148d
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401f1302
mov rdx, qword [rsi]
lea rax, [rbp - 0x3d]
mov qword [rsp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x41]
xor r8d, r8d
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1401f1333
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401f12b7
cmp dword [rbp - 0x41], 4
jne 0x1401f1327
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401f1346
mov rdx, qword [rsi]
lea rax, [rbp - 0x3d]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x41]
xor r8d, r8d
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401f1327
lea r9, [rbp + 0x29]
mov r8d, dword [rbp - 0x39]
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x1401f1380
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], 7
lea rax, [rbp + 0x29]
cmp r9, rax
je 0x1401f13df
lea r8, [rbp + 0x29]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rbp - 0x21]
call fcn.140101ff0
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x11]
movups xmmword [rbx + 0x10], xmm1
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x1401f1433
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1401f142e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401f14aa
mov rcx, r8
call fcn.14021ecec
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov word [r14], di
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x1401f147e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1401f1479
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401f14b0
mov rcx, r8
call fcn.14021ecec
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 7
mov word [rsi], di
mov rax, rbx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14021f250
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140260f54
nop
call fcn.140260f54
int3
Function at 0x1401f14c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1404779b8]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, r9
mov r14, r8
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x50], r9
mov dword [rsp + 0x3c], 0x208
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1401f1517
mov rdx, qword [r8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401f1577
xor edi, edi
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov r8d, 0xd
lea rdx, str.ERROR_READREG
mov rcx, rbx
call fcn.140101ff0
nop
mov rcx, r14
call fcn.1400f54b0
nop
mov rcx, rsi
call fcn.1400f54b0
jmp 0x1401f16e2
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401f1584
mov rdx, qword [rsi]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1401f15b9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401f1539
cmp dword [rsp + 0x38], 2
jne 0x1401f15ac
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401f15cd
mov rdx, qword [rsi]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401f15ac
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], 7
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x1401f1615
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.140101ff0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rbx + 0x10], xmm1
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x1401f1688
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1401f1683
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401f1702
mov rcx, r8
call fcn.14021ecec
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov word [r14], di
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x1401f16d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1401f16ce
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401f1708
mov rcx, r8
call fcn.14021ecec
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 7
mov word [rsi], di
mov rax, rbx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14021f250
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140260f54
nop
call fcn.140260f54
int3
Function at 0x1401f1710
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1404779b8]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, r9
mov r14, r8
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1401f175f
mov rdx, qword [r8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401f17bf
xor edi, edi
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov r8d, 0xd
lea rdx, str.ERROR_READREG
mov rcx, rbx
call fcn.140101ff0
nop
mov rcx, r14
call fcn.1400f54b0
nop
mov rcx, rsi
call fcn.1400f54b0
jmp 0x1401f193f
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401f17cc
mov rdx, qword [rsi]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1401f1801
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401f1781
cmp dword [rsp + 0x38], 1
jne 0x1401f17f4
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x70]
call fcn.1402539e0
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401f1827
mov rdx, qword [rsi]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401f17f4
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x1401f1871
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140101ff0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x10], xmm1
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x1401f18e5
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1401f18e0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401f195f
mov rcx, r8
call fcn.14021ecec
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov word [r14], di
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x1401f1930
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1401f192b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401f1965
mov rcx, r8
call fcn.14021ecec
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 7
mov word [rsi], di
mov rax, rbx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14021f250
add rsp, 0x280
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140260f54
nop
call fcn.140260f54
int3
Function at 0x1401f1970
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x68], 8
cmp qword [r8 + 0x18], 8
mov qword [rsp + 0x58], rbx
jb 0x1401f198f
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401f1999
mov rdx, qword [rdx]
lea rax, [rsp + 0x68]
or r9d, 0x40
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
cmove rbx, qword [rsp + 0x58]
mov rax, rbx
add rsp, 0x40
pop rbx
ret

Function at 0x1401f19d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
cmp qword [r8 + 0x18], 8
mov dword [rsp + 0x68], ebx
jb 0x1401f19ee
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401f19f8
mov rdx, qword [rdx]
lea rax, [rsp + 0x58]
or r9d, 0x10
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
cmove ebx, dword [rsp + 0x68]
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1401f1a30
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1404779b8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, r8
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x30], r9
mov r9d, dword [rsp + 0xa0]
mov eax, VariantTimeToDosDateTime
test r9d, r9d
cmove r9d, eax
cmp qword [r8 + 0x18], 8
jb 0x1401f1a70
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401f1a7a
mov rdx, qword [rdx]
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
jne 0x1401f1ab1
mov rcx, rbx
call fcn.1400f54b0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14021f250
add rsp, 0x70
pop rbx
ret
mov r8d, eax
lea rdx, str.Cannot_set_DWORD64_to_registry
lea rcx, [rsp + 0x38]
call fcn.1401f0970
lea rdx, [0x1403d0310]
lea rcx, [rsp + 0x38]
call fcn.14025213c
int3

Function at 0x1401f1ae0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1404779b8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, r8
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x30], r9d
mov r9d, dword [rsp + 0xa0]
mov eax, 4
test r9d, r9d
cmove r9d, eax
cmp qword [r8 + 0x18], 8
jb 0x1401f1b20
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401f1b2a
mov rdx, qword [rdx]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
jne 0x1401f1b5d
mov rcx, rbx
call fcn.1400f54b0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14021f250
add rsp, 0x70
pop rbx
ret
mov r8d, eax
lea rdx, str.Cannot_set_DWORD_to_registry
lea rcx, [rsp + 0x38]
call fcn.1401f0970
lea rdx, [0x1403d0310]
lea rcx, [rsp + 0x38]
call fcn.14025213c
int3
Function at 0x1401f1b90
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x58], rdx
mov rdi, r8
mov qword [rsp + 0x58], r8
mov rbx, rdx
cmp qword [rdx + 0x18], 8
mov rsi, rcx
mov dword [rsp + 0x50], r9d
jb 0x1401f1bba
mov rdx, qword [rdx]
lea rax, [rsp + 0x58]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401f1c19
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1401f1be4
mov rdx, qword [rbx]
xor ecx, ecx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1401f1c5b
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1401f1c26
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x1401f1c75
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.1400f54b0
mov rcx, rdi
call fcn.1400f54b0
xor eax, eax
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.1400f54b0
mov rcx, rdi
call fcn.1400f54b0
mov eax, 1
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x1401f1ca0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov qword [rsp + 0x50], rdx
mov rdi, r9
mov qword [rsp + 0x50], r8
mov rsi, r8
mov qword [rsp + 0x50], r9
mov rbx, rdx
cmp qword [rdx + 0x18], 8
mov rbp, rcx
jb 0x1401f1cce
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401f1d2d
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1401f1cf8
mov rdx, qword [rbx]
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1401f1d7d
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x1401f1d3a
mov rcx, qword [rdi]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x1401f1d47
mov rdx, qword [rsi]
mov eax, dword [rdi + 0x10]
mov r9d, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x1401f1da0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.1400f54b0
mov rcx, rsi
call fcn.1400f54b0
mov rcx, rdi
call fcn.1400f54b0
xor eax, eax
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.1400f54b0
mov rcx, rsi
call fcn.1400f54b0
mov rcx, rdi
call fcn.1400f54b0
mov eax, 1
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret