joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140093360
Capabilities:
Clear file content

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x1400934be
test rdx, rdx
js 0x1400934be
mov qword [r11 - 0x68], 0
lea r8, [r11 - 0x18]
mov rdx, qword [r11 - 0x68]
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140093425
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14009347b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14009347b
mov rdx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140093450
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140144310
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_retrieve_the_file_pointer_
lea rcx, [rsp + 0x30]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x30]
call fcn.14015a550
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_set_the_file_pointer_
lea rcx, [rsp + 0x30]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x30]
call fcn.14015a550
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_set_size_of_file_to__bytes_
mov qword [rsp + 0x38], 0x27
mov qword [rsp + 0x30], rcx
lea r9, [rsp + 0x20]
lea rcx, [rsp + 0x50]
mov edx, eax
lea r8, [rsp + 0x30]
call fcn.140093600
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
int3
mov edx, 0x57
lea rcx, [rsp + 0x50]
call fcn.14006a110
lea rcx, [rsp + 0x50]
lea rdx, [0x14023da00]
call fcn.14015a550
int3
Function at 0x14009ac30
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, qword [rbp + 0x67]
mov qword [rbp - 1], rbx
mov rdi, qword [rbp + 0x6f]
xor esi, esi
mov dword [rbp - 0x29], esi
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov dword [rbp - 0x29], 1
mov qword [rbp + 0xf], rsi
lea rdx, [rbp + 0xf]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009ad5d
cmp dword [rbp + 0x13], esi
jne 0x14009ad37
mov edx, dword [rbp + 0xf]
mov rcx, rbx
call fcn.14000bce0
mov dword [rbp + 7], esi
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 7]
mov r8d, dword [rbp + 0xf]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009ad0e
mov edx, dword [rbp + 7]
mov rcx, rbx
call fcn.14000bce0
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140144310
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.get_file_content:_ReadFile
lea rcx, [rbp - 0x21]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rbp - 0x21]
call fcn.14015a550
int3
lea r8, str.get_file_content
mov edx, 0xdf
lea rcx, [rbp - 0x21]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rbp - 0x21]
call fcn.14015a550
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.get_file_content:_GetFileSizeEx
lea rcx, [rbp - 0x21]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rbp - 0x21]
call fcn.14015a550
int3
Function at 0x14009c1d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push r14
sub rsp, 0x68
mov rbx, qword [rsp + 0x80]
xor r14d, r14d
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14009c1f9
mov rcx, qword [rbx]
xor edx, edx
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14009c367
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14009c255
cmp qword [rbx + 0x18], 7
jbe 0x14009c225
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009c23b
test al, 0x10
jne 0x14009c367
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop r14
pop rbx
ret
cmp eax, 3
jne 0x14009c246
mov qword [rsp + 0x90], rbp
mov rbp, r14
mov qword [rsp + 0x98], rsi
nop dword [rax]
mov rdi, qword [rbx + 0x18]
mov rcx, rbx
mov rsi, qword [rbx + 0x10]
cmp rdi, 7
jbe 0x14009c284
mov rcx, qword [rbx]
lea r8, [rbp + 1]
mov qword [rsp + 0x20], 2
lea r9, [0x140211cac]
mov rdx, rsi
call fcn.140028040
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14009c304
lea r8, [rax + 1]
mov qword [rsp + 0x48], r14
cmp rsi, r8
mov qword [rsp + 0x50], r14
xorps xmm0, xmm0
mov rdx, rbx
cmovb r8, rsi
movups xmmword [rsp + 0x38], xmm0
cmp rdi, 7
jbe 0x14009c2d2
mov rdx, qword [rbx]
lea rcx, [rsp + 0x38]
call fcn.140025740
cmp qword [rsp + 0x50], 7
lea rcx, [rsp + 0x38]
cmova rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x38]
call fcn.140025f00
jmp 0x14009c270
mov rsi, qword [rsp + 0x98]
mov rcx, rbx
mov rbp, qword [rsp + 0x90]
cmp rdi, 7
jbe 0x14009c320
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14009c367
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 7
mov edi, eax
jbe 0x14009c33e
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009c350
test al, 0x10
jne 0x14009c367
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop r14
pop rbx
ret
mov rdi, qword [rsp + 0x60]
mov al, 1
add rsp, 0x68
pop r14
pop rbx
ret
Function at 0x14009cc70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd8
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
mov rbx, qword [rbp + 0x67]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
mov r12d, 1
mov dword [rsp + 0x20], r12d
mov rsi, qword [rbp + 0x7f]
mov r14, qword [rbp + 0x77]
mov r15, qword [rbp + 0x6f]
lea rax, str.:016x.
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x79], 4
lea rax, [rbp - 0x69]
mov qword [rbp - 0x71], rax
movabs r13, 0xb000000000000000
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rbp - 0x79]
mov rdi, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14009cd1d
mov rdi, qword [rsi]
call fcn.1400a49c0
mov rdx, rax
mov rcx, r14
cmp qword [r14 + 0x18], 7
jbe 0x14009cd32
mov rcx, qword [r14]
mov rax, r15
cmp qword [r15 + 0x18], 7
jbe 0x14009cd3f
mov rax, qword [r15]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x41], rcx
movabs rax, 0xb000000000000008
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x39], rdx
movabs rax, 0x4000000000000010
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x31], rdi
movabs rax, 0xb000000000000018
mov qword [rbp - 0x51], rax
movdqa xmmword [rbp - 0x79], xmm7
movdqa xmmword [rsp + 0x30], xmm6
lea r8, [rbp - 0x79]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x29]
call fcn.140023580
or r12d, 6
mov dword [rsp + 0x20], r12d
lea rdx, [rbp - 0x29]
mov rcx, rbx
call fcn.14002a100
lea rcx, [rbp - 0x29]
call fcn.140025f00
cmp qword [rbx + 0x10], 0
je 0x14009cdff
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14009cdcc
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009cddf
test al, 0x10
je 0x14009cd10
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14009cdec
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009cdff
test al, 0x10
jne 0x14009cd10
mov rax, rbx
movaps xmm6, xmmword [rsp + 0xc0]
movaps xmm7, xmmword [rsp + 0xb0]
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14009d110
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rbx, qword [rsp + 0x30]
mov dil, 1
nop dword [rax + rax]
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x14009d13d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009d19d
test al, 0x10
jne 0x14009d19d
test dil, dil
je 0x14009d19d
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x14009d15e
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x14009d173
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14009d190
add dil, 0xff
je 0x14009d130
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14009d130
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x14009d830
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov eax, 0xffffffff
cmp r8, rax
ja 0x14009d8e6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14009d8bb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140144310
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.set_file_content
lea rcx, [rsp + 0x30]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x30]
call fcn.14015a550
int3
lea rdx, str.set_file_content_content_is_too_large
lea rcx, [rsp + 0x50]
call fcn.1400219a0
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400535d0
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x30]
call fcn.14015a550
int3
Function at 0x14009ed30
Capabilities:
Get file size

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rdi
sub rsp, 0x68
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
mov qword [rcx + 0x18], 0
mov rbx, rcx
lea rdx, [r11 - 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009ede2
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14009edc3
xor edx, edx
mov qword [rsp + 0x28], 0
mov r9, rax
mov dword [rsp + 0x20], eax
shr r9, 0x20
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbx + 0x10]
mov rdi, rax
test rcx, rcx
je 0x14009edba
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rdi
test rdi, rdi
je 0x14009ee0d
mov dword [rbx + 0x20], 2
mov byte [rbx + 8], 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140144310
add rsp, 0x68
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_get_file_size_
lea rcx, [rsp + 0x30]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x30]
call fcn.14015a550
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_create_file_mapping_
lea rcx, [rsp + 0x30]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x30]
call fcn.14015a550
int3
Function at 0x14009fbe0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov rdi, rdx
test rcx, rcx
je 0x14009fd10
test rdx, rdx
je 0x14009fd10
cmp word [rdx], 0
je 0x14009fd10
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x14009fc70
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x14009fcef
mov r9d, 0x100
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x14009fcbe
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call fcn.14009fbe0
test al, al
je 0x14009fca6
xor ebx, ebx
jmp 0x14009fc70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x14009fc70
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x14009fcef
test ebx, ebx
je 0x14009fcce
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x14009fcef
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14009fd0b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14009fd0b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, bl
jmp 0x14009fd1d
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140144310
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret

Function at 0x14009fd40
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0x40
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
test rdx, rdx
je 0x14009fe02
cmp word [rdx], 0
je 0x14009fe02
lea rax, [r11 - 0x18]
mov qword [r11 - 0x18], 0
mov r9d, 2
mov qword [r11 - 0x28], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14009fdb3
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x14009fdd0
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14009fdec
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14009fdec
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140144310
add rsp, 0x40
pop rbx
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140144310
add rsp, 0x40
pop rbx
ret
Function at 0x14009ff50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rcx, qword [rbp + 0x1b0]
mov qword [rsp + 0x48], rcx
mov rdx, qword [rbp + 0x1b8]
mov rsi, qword [rbp + 0x1c0]
mov rbx, qword [rbp + 0x1c8]
mov r14, qword [rbp + 0x1d0]
test rcx, rcx
jne 0x14009ffc9
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x1400a0105
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
test rdx, rdx
je 0x1400a002e
cmp word [rdx], 0
je 0x1400a002e
mov r9d, dword [rbp + 0x1d8]
or r9d, 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400a0027
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x1400a00e7
mov rcx, qword [rsp + 0x40]
jmp 0x1400a0033
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], 0x200
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, r14
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400a0078
mov r8d, dword [rsp + 0x38]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1400a0880
jmp 0x1400a00da
cmp eax, 0xea
jne 0x1400a00cd
nop
mov edx, dword [rsp + 0x38]
mov rcx, rbx
call fcn.14000bce0
mov rax, qword [rbx]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, r14
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp eax, 0xea
je 0x1400a0080
test eax, eax
jne 0x1400a00da
mov edx, dword [rsp + 0x38]
mov rcx, rbx
call fcn.14000bce0
jmp 0x1400a00da
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x1400a00da
mov qword [rbx + 8], rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
cmp byte [rsp + 0x50], 0
jne 0x1400a0102
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.1400a07f0
movzx eax, bl
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140144310
add rsp, 0x280
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400a0610
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push r14
sub rsp, 0xa8
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov esi, dword [rsp + 0xf0]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x68], rcx
mov rbx, rdx
mov r14, r8
mov rbp, r9
test r9, r9
jne 0x1400a0676
test esi, esi
je 0x1400a0676
lea ecx, [r9 + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x1400a07a3
lea rax, [rsp + 0x60]
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x98], r15
xor r15d, r15d
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x68], r15b
test rbx, rbx
je 0x1400a0744
cmp word [rbx], r15w
je 0x1400a0744
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov rdx, rbx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
je 0x1400a073d
cmp eax, 5
jne 0x1400a0731
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov rdx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400a073d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x1400a0775
mov rcx, qword [rsp + 0x58]
jmp 0x1400a0749
mov qword [rsp + 0x58], rcx
mov r9d, dword [rsp + 0xf8]
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov rdx, r14
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete bl
cmp byte [rsp + 0x68], 0
mov r15, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
jne 0x1400a07a0
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
call fcn.1400a07f0
movzx eax, bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140144310
add rsp, 0xa8
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a1090
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rdi, rcx
mov qword [rax - 0x40], rcx
mov rbx, qword [rax + 0x10]
xor ebp, ebp
mov dword [rax - 0x68], ebp
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400a10c3
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea edx, [rax - 1]
mov rcx, rdi
call fcn.140028f50
mov r8, qword [rdi + 0x10]
inc r8
mov eax, r8d
cmp rax, r8
jne 0x1400a1178
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400a1117
mov rdx, qword [rdi]
cmp qword [rbx + 0x18], 7
jbe 0x1400a1121
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400a11a3
cmp eax, esi
jne 0x1400a1145
mov rax, rdi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.String_environment_expansion_failed_due_to_unexpected_buffer_size
lea rcx, [rsp + 0x50]
call fcn.1400219a0
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.1400a11e0
lea rdx, [0x14023e3b8]
lea rcx, [rsp + 0x28]
call fcn.14015a550
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x28]
call fcn.14000c300
lea rdx, [0x14023d798]
lea rcx, [rsp + 0x28]
call fcn.14015a550
int3
lea rdx, str.String_environment_expansion_failed
lea rcx, [rsp + 0x28]
call fcn.1400219a0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400a11e0
lea rdx, [0x14023e3b8]
lea rcx, [rsp + 0x50]
call fcn.14015a550
int3
Function at 0x1400a1230
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rcx, qword [rbp + 0x67]
mov rdi, qword [rbp + 0x6f]
mov r8d, 1
lea rdx, [rbp - 0x29]
call fcn.1400a2a20
nop
xor ebx, ebx
mov dword [rbp + 0x37], ebx
mov dword [rbp + 0x3b], 4
lea rcx, str.Cannot_query_registry_value
mov qword [rbp + 0x17], rcx
mov qword [rbp + 0x1f], rbx
lea rcx, [rbp + 0x3b]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x3f]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x37]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movups xmm0, xmmword [rbp + 0x17]
movaps xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rdi]
movaps xmmword [rbp - 9], xmm1
lea rdx, [rbp - 0x19]
mov ecx, eax
call fcn.1400a0dc0
nop
cmp byte [rbp - 0x21], bl
jne 0x1400a12dd
mov qword [rbp - 0x29], rbx
jmp 0x1400a12e1
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x1400a12fb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1400a12fb
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rbp + 0x37]
cmp ecx, 4
jne 0x1400a1327
mov eax, dword [rbp + 0x3f]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140144310
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x29], xmm0
call fcn.1400a2550
mov r8d, eax
lea r9, [rbp - 0x29]
mov edx, 4
lea rcx, [rbp - 0x19]
call fcn.1400a2560
lea rdx, [0x14023e240]
lea rcx, [rbp - 0x19]
call fcn.14015a550
int3