joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401b2e20
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 [0x14039a678]
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 0x1401b2e5a
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x1401b2e64
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
jne 0x1401b2fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x91
jne 0x1401b2f9a
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401b2e92
mov rcx, qword [rbx]
mov r8d, 0x34
lea rdx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1401b2f02
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.1400e83c0
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401b2ed9
mov r8, qword [rbx]
lea rdx, str.asus::winhttp::FileSystem::MountVolume
lea rcx, [rbp - 0x79]
call fcn.14017f3e0
nop
mov rcx, rbx
call fcn.140103e20
nop
mov rcx, rdi
call fcn.140103e20
xor eax, eax
jmp 0x1401b2ff6
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401b2f0f
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 0x1401b2f34
add rax, 2
test ecx, ecx
jne 0x1401b2f20
test edx, edx
je 0x1401b2fe0
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.1400e83c0
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401b2f6f
mov rax, qword [rdi]
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401b2f7c
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.14017f3e0
jmp 0x1401b2eea
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.1400e83c0
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401b2fcd
mov r9, qword [rbx]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401b2fda
mov r8, qword [rdi]
mov dword [rsp + 0x20], esi
jmp 0x1401b2f85
mov rcx, rbx
call fcn.140103e20
nop
mov rcx, rdi
call fcn.140103e20
mov eax, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401e3ce0
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401b6d60
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [rcx + 0x10], 0
mov rbx, rcx
jne 0x1401b6d77
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 0x1401b6e11
cmp eax, 0x80
jne 0x1401b6e16
mov rax, qword [rbx + 8]
cmp word [rax], di
je 0x1401b6e16
mov rcx, qword [rbx]
test rcx, rcx
je 0x1401b6dc1
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 0x1401bb210
Capabilities:
Check internet connectivity via wininet

Disassembly:
sub rsp, 0x48
mov eax, dword [0x1402afba8]
lea rcx, [rsp + 0x20]
movsd xmm0, qword [str.checkNewtWork]
mov dword [rsp + 0x28], eax
movzx eax, byte [0x1402afbac]
mov byte [rsp + 0x2c], al
mov qword [rsp + 0x38], SafeArrayGetLBound
mov qword [rsp + 0x30], SafeArrayGetLBound
movsd qword [rsp + 0x20], xmm0
mov byte [rsp + 0x2d], 0
call fcn.14017eab0
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 0x1401bc000
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 [0x14039a678]
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, [0x14029bc90]
lea rcx, [rbp - 0x48]
call fcn.1400e83c0
nop
mov qword [rbp - 0x50], rsi
cmp qword [rdi + 0x10], rsi
je 0x1401bc0b0
mov rdx, rdi
mov rcx, rbx
call fcn.1400da650
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1401bc1b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401bc0a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401bc1d9
call fcn.1401e3784
jmp 0x1401bc1b4
lea r9, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1402b9b40]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1401bc156
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 0x1401bc0f0
lea rcx, [rbp - 0x28]
call fcn.1400e83c0
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1401bc144
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401bc13f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401bc1d3
call fcn.1401e3784
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbp - 0x48], xmm0
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x38], xmm0
jmp 0x1401bc15a
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rbp - 0x28], xmm0
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1401bc171
call qword [sym.imp.OLE32.dll_CoTaskMemFree]
mov qword [rbp - 0x50], rsi
movups xmm1, xmmword [rbp - 0x28]
movq r8, xmm1
test r8, r8
je 0x1401bc1a9
lea rax, [rbp - 0x48]
cmp rdi, rax
je 0x1401bc1a9
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov rcx, rdi
call fcn.1400e83c0
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.1401e3ce0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
Function at 0x1401bc400
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 0x1401bc424
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401bc42e
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
mov rcx, rbx
test eax, eax
jne 0x1401bc458
call fcn.1400db880
mov rcx, rdi
call fcn.1400db880
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.1400db880
mov rcx, rdi
call fcn.1400db880
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1401bc480
Capabilities:
Delete registry key

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

Function at 0x1401bc4d0
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 0x1401bc4f4
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401bc4fe
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
mov rcx, rbx
test eax, eax
jne 0x1401bc528
call fcn.1400db880
mov rcx, rdi
call fcn.1400db880
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.1400db880
mov rcx, rdi
call fcn.1400db880
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1401bc610
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14039a678]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r15, r8
mov r10, rdx
mov rsi, rcx
mov qword [rsp + 0x68], rcx
mov qword [rbp - 0x78], r8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
xor r12d, r12d
mov r14d, r12d
mov qword [rbp - 0x80], r12
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1401bc667
mov rdx, qword [r8]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401bc697
mov qword [rsi], r12
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], r12
jmp 0x1401bc825
mov dword [rsp + 0x60], 0x32
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1401bc805
mov edi, r12d
cmp dword [rsp + 0x64], r12d
jbe 0x1401bc805
mov rbx, qword [rsp + 0x78]
nop word [rax + rax]
mov dword [rsp + 0x60], 0x32
mov word [rbp - 0x50], r12w
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x50]
mov edx, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1401bc7f8
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r12w
lea rax, [rbp - 0x50]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1401bc760
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.1400e83c0
nop
cmp rbx, r14
je 0x1401bc7a2
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x60]
movups xmmword [rbx + 0x10], xmm1
mov eax, 7
mov word [rbp - 0x70], r12w
add rbx, 0x20
mov qword [rsp + 0x78], rbx
jmp 0x1401bc7c0
lea r8, [rbp - 0x70]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1401bb3f0
mov r14, qword [rbp - 0x80]
mov rbx, qword [rsp + 0x78]
mov rax, qword [rbp - 0x58]
cmp rax, 8
jb 0x1401bc7f8
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401bc7f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401bc84e
call fcn.1401e3784
inc edi
cmp edi, dword [rsp + 0x64]
jae 0x1401bc80a
jmp 0x1401bc700
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x70]
mov qword [rsi], rax
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r14
mov rcx, r15
call fcn.1400db880
mov rax, rsi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1401e3ce0
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
int3
Function at 0x1401bcac0
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 [0x14039a678]
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 0x1401bcb0f
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 0x1401bcb6f
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.1400e83c0
nop
mov rcx, r14
call fcn.1400db880
nop
mov rcx, rsi
call fcn.1400db880
jmp 0x1401bcce4
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401bcb7c
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 0x1401bcbb1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401bcb31
cmp dword [rsp + 0x38], 1
jne 0x1401bcba4
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401bcbd7
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 0x1401bcba4
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 0x1401bcc21
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400e83c0
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 0x1401bcc8a
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1401bcc85
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401bcd04
mov rcx, r8
call fcn.1401e3784
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov word [r14], di
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x1401bccd5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1401bccd0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401bcd0a
mov rcx, r8
call fcn.1401e3784
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.1401e3ce0
add rsp, 0x280
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
Function at 0x1401bcd10
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 0x1401bcd2f
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401bcd39
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 0x1401bcd70
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 0x1401bcd8e
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401bcd98
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 0x1401bcdd0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14039a678]
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 0x1401bce10
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401bce1a
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 0x1401bce51
mov rcx, rbx
call fcn.1400db880
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401e3ce0
add rsp, 0x70
pop rbx
ret
mov r8d, eax
lea rdx, str.Cannot_set_DWORD64_to_registry
lea rcx, [rsp + 0x38]
call fcn.1401bc330
lea rdx, [0x140303670]
lea rcx, [rsp + 0x38]
call fcn.14021a94c
int3

Function at 0x1401bce80
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14039a678]
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 0x1401bcec0
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401bceca
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 0x1401bcefd
mov rcx, rbx
call fcn.1400db880
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401e3ce0
add rsp, 0x70
pop rbx
ret
mov r8d, eax
lea rdx, str.Cannot_set_DWORD_to_registry
lea rcx, [rsp + 0x38]
call fcn.1401bc330
lea rdx, [0x140303670]
lea rcx, [rsp + 0x38]
call fcn.14021a94c
int3
Function at 0x1401bcf30
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 0x1401bcf5a
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 0x1401bcfb9
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1401bcf84
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 0x1401bcffb
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1401bcfc6
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]
test eax, eax
je 0x1401bd015
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.1400db880
mov rcx, rdi
call fcn.1400db880
xor eax, eax
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call fcn.1400db880
mov rcx, rdi
call fcn.1400db880
mov eax, 1
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x1401bd040
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 0x1401bd06e
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 0x1401bd0cd
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1401bd098
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 0x1401bd11d
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x1401bd0da
mov rcx, qword [rdi]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x1401bd0e7
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]
test eax, eax
je 0x1401bd140
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.1400db880
mov rcx, rsi
call fcn.1400db880
mov rcx, rdi
call fcn.1400db880
xor eax, eax
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, rbx
call fcn.1400db880
mov rcx, rsi
call fcn.1400db880
mov rcx, rdi
call fcn.1400db880
mov eax, 1
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401c4480
Capabilities:
Check if file exists
Create directory
Delete directory
Get file attributes

Disassembly:
sub rsp, 0x28
lea rcx, str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysis_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jae 0x1401c44a3
lea rcx, [0x14029d340]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__rmdir
lea rcx, str.C:ProgramData_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401c44bc
shr eax, 4
and al, 1
jne 0x1401c44c8
lea rcx, str.C:ProgramData_
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
lea rcx, str.C:ProgramDataASUS_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401c44e1
shr eax, 4
and al, 1
jne 0x1401c44ed
lea rcx, str.C:ProgramDataASUS_
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
lea rcx, str.C:ProgramDataASUSASUS_System_Control_Interface_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401c4506
shr eax, 4
and al, 1
jne 0x1401c4512
lea rcx, str.C:ProgramDataASUSASUS_System_Control_Interface_
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
lea rcx, [0x14029d340]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401c452b
shr eax, 4
and al, 1
jne 0x1401c4537
lea rcx, [0x14029d340]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
lea rcx, str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysis_
add rsp, 0x28
jmp fcn.1401cc540

Function at 0x1401c4550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1401c4566
xor al, al
add rsp, 0x28
ret
shr eax, 4
and al, 1
add rsp, 0x28
ret
Function at 0x1401d0ee0
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 edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1401d0f58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1401d0f58
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1401d0f45
nop
cmp rbx, rcx
jae 0x1401d0f58
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1401d0f30
cmp rbx, rcx
jae 0x1401d0f58
cmp word [rbx], 0
je 0x1401d0f58
lfence
mov rax, rbx
jmp 0x1401d0f5a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret