joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009e5d0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x130
mov rax, qword [0x1401761c0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor ebx, ebx
xor r8d, r8d
mov edx, 0x104
lea rcx, [r11 - 0x58]
call fcn.140048d60
nop
lea rdx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 7
cmova rdx, qword [rsp + 0xe0]
mov r8d, dword [rsp + 0xf0]
lea rcx, str._TMP_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, eax
test eax, eax
je 0x14009ea84
mov r8, qword [rsp + 0xf0]
cmp rcx, r8
ja 0x14009ea84
dec ecx
cmp rcx, r8
ja 0x14009e68e
lea rax, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 7
cmova rax, qword [rsp + 0xe0]
mov qword [rsp + 0xf0], rcx
mov word [rax + rcx*2], bx
jmp 0x14009e6fc
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rsp + 0xf8]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14009e6e1
mov qword [rsp + 0xf0], rcx
lea r9, [rsp + 0xe0]
cmp rdi, 7
cmova r9, qword [rsp + 0xe0]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14009e6d6
movzx eax, bx
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], bx
jmp 0x14009e6fc
mov word [rsp + 0x20], bx
mov r9, rdx
movzx r8d, byte [rsp + 0x30]
lea rcx, [rsp + 0xe0]
call fcn.14000e4d0
lea rdx, [rsp + 0xe0]
call fcn.14009eb00
movups xmm0, xmmword [rsp + 0xe0]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0xf0]
movups xmmword [rsi + 0x10], xmm1
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0xf8], 7
mov word [rsp + 0xe0], bx
lea rcx, [rsp + 0xe0]
call fcn.14000c080
mov rax, rsi
jmp 0x14009ea31
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400b89f0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_expand__TMP_environment_variable_
lea rcx, [rsp + 0x48]
call fcn.1400aa730
lea rdx, [0x140172368]
lea rcx, [rsp + 0x48]
call fcn.1400bb9a0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14015569c]
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xe8], 2
lea r8, [rsp + 0xe0]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.1400a0070
lea rdx, [0x140172368]
lea rcx, [rsp + 0x70]
call fcn.1400bb9a0
int3
Function at 0x14009ec00
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], 0xf
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 0x14009ecad
mov rdi, qword [rsi]
call fcn.1400a7270
mov rdx, rax
mov rcx, r14
cmp qword [r14 + 0x18], 7
jbe 0x14009ecc2
mov rcx, qword [r14]
mov rax, r15
cmp qword [r15 + 0x18], 7
jbe 0x14009eccf
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.14000f490
or r12d, 6
mov dword [rsp + 0x20], r12d
lea rdx, [rbp - 0x29]
mov rcx, rbx
call fcn.140025ba0
lea rcx, [rbp - 0x29]
call fcn.14000c080
cmp qword [rbx + 0x10], 0
je 0x14009ed8f
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14009ed5c
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009ed6f
test al, 0x10
je 0x14009eca0
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14009ed7c
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009ed8f
test al, 0x10
jne 0x14009eca0
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 0x14009edc0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14009ede5
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009ee1d
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp qword [rbx + 0x18], 7
jbe 0x14009ee07
mov rbx, qword [rbx]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14009ee30
Capabilities:
Copy file

Disassembly:
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rbx, qword [rsp + 0x58]
mov bpl, 1
mov rsi, qword [rsp + 0x50]
movzx edi, bpl
nop dword [rax]
test dil, dil
je 0x14009ee74
mov rcx, rbx
call fcn.14009edc0
movzx edi, al
xor dil, 1
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x14009ee81
mov rdx, qword [rbx]
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14009ee8e
mov rcx, qword [rsi]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14009eece
add bpl, 0xff
je 0x14009eec3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14009eeb6
mov ecx, 0x14
cmp eax, 0x20
jne 0x14009eebb
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14009ee60
xor al, al
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, rbx
call fcn.14009edc0
mov al, 1
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14009f1d0
Capabilities:
Move file

Disassembly:
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rbx, qword [rsp + 0x58]
mov bpl, 1
mov rsi, qword [rsp + 0x50]
movzx edi, bpl
nop dword [rax]
test dil, dil
je 0x14009f214
mov rcx, rbx
call fcn.14009edc0
movzx edi, al
xor dil, 1
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x14009f221
mov rdx, qword [rbx]
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14009f22e
mov rcx, qword [rsi]
mov r8d, 0xb
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14009f271
add bpl, 0xff
je 0x14009f266
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14009f259
mov ecx, 0x14
cmp eax, 0x20
jne 0x14009f25e
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14009f200
xor al, al
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, rbx
call fcn.14009edc0
mov al, 1
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14009f290
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 0x14009f2bd
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009f31d
test al, 0x10
jne 0x14009f31d
test dil, dil
je 0x14009f31d
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x14009f2de
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x14009f2f3
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14009f310
add dil, 0xff
je 0x14009f2b0
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14009f2b0
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 0x14009f330
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [0x1401761c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, qword [rsp + 0x80]
cmp qword [rdi + 0x10], 0
jne 0x14009f368
xor al, al
jmp 0x14009f433
cmp byte [rsp + 0x88], 0
jne 0x14009f395
cmp qword [rdi + 0x18], 7
jbe 0x14009f37c
mov rdi, qword [rdi]
xor edx, edx
lea r8d, [rdx + 4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x14009f433
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r8d, [rax + 3]
lea rdx, [0x140153578]
lea rcx, [rsp + 0x30]
call fcn.14000c360
nop
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14009fad0
nop
lea rcx, [rsp + 0x30]
call fcn.14000c080
mov rbx, qword [rsp + 0x58]
cmp rbx, qword [rsp + 0x50]
je 0x14009f419
mov rcx, rbx
nop dword [rax]
add rbx, 0xffffffffffffffe0
add rcx, 0xffffffffffffffe0
xor edx, edx
call fcn.14009f330
mov rcx, rbx
cmp rbx, qword [rsp + 0x50]
jne 0x14009f400
xor edx, edx
mov rcx, rdi
call fcn.14009f330
movzx ebx, al
lea rcx, [rsp + 0x50]
call fcn.14000d820
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400b89f0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x14009f910
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov byte [r11 + 0x20], r9b
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xa8
mov rax, qword [0x1401761c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov rbp, rdx
mov rsi, r8
mov eax, 0xffffffff
cmp r8, rax
ja 0x14009fa67
cmp qword [rcx + 0x18], 7
jbe 0x14009f961
mov rcx, qword [rcx]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14009dba0
nop
xor edx, edx
mov rcx, rax
call fcn.14009dd20
nop
lea rcx, [rsp + 0x50]
call fcn.14000c080
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14009f9b5
mov rcx, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 5]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x80], rax
cmp rax, 0xffffffffffffffff
je 0x14009fa8a
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14009fa3b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400b89f0
add rsp, 0xa8
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea r8, str.set_file_content
lea rcx, [rsp + 0x50]
call fcn.1400aa6a0
lea rdx, [0x140172368]
lea rcx, [rsp + 0x50]
call fcn.1400bb9a0
nop
lea rdx, str.set_file_content_content_is_too_large
lea rcx, [rsp + 0x50]
call fcn.1400aa660
lea rdx, [0x140172368]
lea rcx, [rsp + 0x50]
call fcn.1400bb9a0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.set_file_content_
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x15
mov r9, rdi
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14003f240
lea rdx, [0x140172368]
lea rcx, [rsp + 0x50]
call fcn.1400bb9a0
int3
Function at 0x1400a0630
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4d8
xor ecx, ecx
lea rax, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x40
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], ecx
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x290]
call fcn.14004aa20
nop
mov rax, qword [rsp + 0x290]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x298]
lea rcx, [rsp + 0x50]
call fcn.14004ac70
mov eax, dword [rsp + 0x4c8]
mov dword [rsp + 0x280], eax
mov eax, dword [rsp + 0x4cc]
mov dword [rsp + 0x284], eax
mov byte [rsp + 0x288], 1
mov rax, qword [rsp + 0x4e8]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x4e0]
call fcn.1400a3730
nop
lea rcx, [rsp + 0x48]
call fcn.14004a930
nop
lea rcx, [rsp + 0x4a0]
call fcn.14004ad90
mov rax, qword [rsp + 0x4e0]
add rsp, 0x4d8
ret
Function at 0x1400a0c90
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0x70
mov rax, qword [0x1401761c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [rcx]
mov eax, r8d
mov r8d, 0x104
mov dword [rsp + 0x58], eax
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400a0ced
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400a0d06
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400b89f0
add rsp, 0x70
pop rbx
ret
cmp eax, 0x104
jbe 0x1400a0cfb
mov eax, 0xea
jmp 0x1400a0d06
cmp word [rbx], 0x25
jne 0x1400a0cda
mov eax, 3
lea rcx, str.Unable_to_retrieve_a_path_of_the_known_folder____
mov qword [rsp + 0x28], 0x33
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x58]
lea rcx, [rsp + 0x30]
mov edx, eax
lea r8, [rsp + 0x20]
call fcn.1400a0bd0
lea rdx, [0x140172368]
lea rcx, [rsp + 0x30]
call fcn.1400bb9a0
int3

Function at 0x1400a0e50
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, 0x78
mov rax, qword [0x1401761c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov qword [rcx + 0x18], 0
mov rbx, rcx
lea rdx, [r11 - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a0f02
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x1400a0ee3
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 0x1400a0eda
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rdi
test rdi, rdi
je 0x1400a0f2d
mov dword [rbx + 0x20], 2
mov byte [rbx + 8], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400b89f0
add rsp, 0x78
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.1400aa6a0
lea rdx, [0x140172368]
lea rcx, [rsp + 0x30]
call fcn.1400bb9a0
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.1400aa6a0
lea rdx, [0x140172368]
lea rcx, [rsp + 0x30]
call fcn.1400bb9a0
int3
Function at 0x1400a1cc0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1401761c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbp, rcx
mov rsi, rdx
mov edi, r8d
test rcx, rcx
je 0x1400a1df0
test rdx, rdx
je 0x1400a1df0
cmp word [rdx], 0
je 0x1400a1df0
mov qword [rsp + 0x30], 0
mov r9d, r8d
or r9d, 8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1400a1d50
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x1400a1dcf
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 0x1400a1d9e
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call fcn.1400a1cc0
test al, al
je 0x1400a1d86
xor ebx, ebx
jmp 0x1400a1d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x1400a1d50
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x1400a1dcf
test ebx, ebx
je 0x1400a1dae
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x1400a1dcf
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
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 0x1400a1deb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1400a1deb
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, bl
jmp 0x1400a1dfd
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400b89f0
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a1f50
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
lea rbp, [rsp - 0x188]
sub rsp, 0x288
mov rax, qword [0x1401761c0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, qword [rbp + 0x1c8]
mov rsi, qword [rbp + 0x1d0]
mov qword [rsp + 0x48], 0xffffffff80000002
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
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, str.SoftwareClassesCLSIDB7E6B353_129C_43BE_86A5_1041305A828CProductIDs
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400a1ffb
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x1400a20bb
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, rsi
xor r8d, r8d
lea rdx, [0x1401490d0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400a2049
mov r8d, dword [rsp + 0x38]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.14005a290
jmp 0x1400a20ae
cmp eax, 0xea
jne 0x1400a20a1
mov edx, dword [rsp + 0x38]
mov rcx, rbx
call fcn.1400271e0
mov rax, qword [rbx]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, rsi
xor r8d, r8d
lea rdx, [0x1401490d0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp eax, 0xea
je 0x1400a2050
test eax, eax
jne 0x1400a20ae
mov edx, dword [rsp + 0x38]
mov rcx, rbx
call fcn.1400271e0
jmp 0x1400a20ae
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x1400a20ae
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 0x1400a20d6
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.1400a2e00
movzx eax, bl
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400b89f0
add rsp, 0x288
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400a2510
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
sub rsp, 0xa0
mov rax, qword [0x1401761c0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rcx, 0xffffffff80000000
mov rbx, rdx
mov qword [r11 - 0x58], rcx
mov rbp, r8
mov rsi, r9
test r9, r9
je 0x1400a2679
lea rax, [r11 - 0x58]
mov qword [r11 - 0x28], r14
xor r14d, r14d
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x20], rdi
lea rax, [r11 - 0x60]
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x60], r14
mov byte [r11 - 0x48], r14b
test rdx, rdx
je 0x1400a2616
cmp word [rdx], r14w
je 0x1400a2616
mov qword [r11 - 0x78], r14
lea rax, [r11 - 0x60]
mov qword [r11 - 0x80], rax
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
je 0x1400a260f
cmp eax, 5
jne 0x1400a2603
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r14
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov rdx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400a260f
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x1400a2649
mov rcx, qword [rsp + 0x58]
jmp 0x1400a261b
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, 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 + 0x70], 0
mov r14, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
jne 0x1400a2674
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
call fcn.1400a2e00
movzx eax, bl
jmp 0x1400a2686
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400b89f0
add rsp, 0xa0
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a2aa0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1401761c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdx, qword [rbp + 0x10]
xor eax, eax
mov qword [rbp - 0x30], rax
test rdx, rdx
jne 0x1400a2adc
lea ebx, [rdx + 0x57]
jmp 0x1400a2c0a
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], ax
jne 0x1400a2af2
lea rcx, [rbp - 0x28]
call fcn.14000c360
nop
lea rcx, [0x1401431b0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a2bea
lea rdx, [0x140153100]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1400a2bea
lea rbx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rbx, qword [rbp - 0x28]
lea rdx, str.WOW6432Node_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x1400a2b85
sub rax, rbx
sar rax, 1
cmp qword [rbp - 0x18], rax
jb 0x1400a2c36
mov r8d, 0xc
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140049270
mov r9d, 0xf023f
jmp 0x1400a2b8b
mov r9d, 0xf013f
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400a2bf2
lea rdx, str.SymbolicLinkValue
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test eax, eax
jne 0x1400a2bf2
mov rcx, qword [rbp - 0x30]
mov rax, rdi
call qword [case.0x1400a96cf.0]
test eax, eax
je 0x1400a2bf2
mov ebx, 5
jmp 0x1400a2bf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp - 0x28]
call fcn.14000c080
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400a2c0a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400b89f0
mov rbx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
call fcn.14000dcd0
nop
int3