joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006acb8
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov dword [rsp + 0x68], ebx
mov r14, rcx
mov rcx, qword [str._0_n_]
lea r12, str._0_n_
lea r13, [0x140095598]
cmp rcx, r12
je 0x14006ad08
test byte [rcx + 0x1c], 2
je 0x14006ad08
cmp byte [rcx + 0x19], 5
jb 0x14006ad08
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
mov r8, r13
call fcn.14000459c
test rdi, rdi
je 0x14006aeb7
cmp dword [rdi], 0x14
jne 0x14006aeb7
lea rdx, [rsp + 0x68]
mov dword [rdi + 4], ebx
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x14006ad78
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
cmp rcx, r12
je 0x14006ad71
test byte [rcx + 0x1c], 2
je 0x14006ad71
cmp byte [rcx + 0x19], 2
jb 0x14006ad71
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r9d, eax
mov r8, r13
call fcn.140004994
mov eax, ebx
jmp 0x14006aebc
mov rcx, rsi
call fcn.14006a264
mov rbp, rax
test rax, rax
jne 0x14006adbc
mov rcx, qword [str._0_n_]
cmp rcx, r12
je 0x14006adb2
test byte [rcx + 0x1c], 2
je 0x14006adb2
cmp byte [rcx + 0x19], 2
jb 0x14006adb2
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0xc]
mov r9d, esi
mov r8, r13
call fcn.140004994
mov eax, 8
jmp 0x14006aebc
mov edx, dword [rsp + 0x68]
mov r9, rbp
mov r8d, esi
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x14006ae24
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
cmp rcx, r12
je 0x14006aeaa
test byte [rcx + 0x1c], 2
je 0x14006aeaa
cmp byte [rcx + 0x19], 2
jb 0x14006aeaa
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.140004994
jmp 0x14006aeaa
lea r9, [rsp + 0x70]
mov rcx, rbp
lea r8, [rsp + 0x78]
lea rdx, [0x1400954b8]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14006ae75
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
cmp rcx, r12
je 0x14006aeaa
test byte [rcx + 0x1c], 2
je 0x14006aeaa
cmp byte [rcx + 0x19], 2
jb 0x14006aeaa
mov edx, 0xe
jmp 0x14006ae10
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + 0x1c]
and eax, 1
mov dword [rdi + 0x10], eax
movzx eax, word [rcx + 0x12]
mov word [rdi + 8], ax
movzx eax, word [rcx + 0x10]
mov word [rdi + 0xa], ax
movzx eax, word [rcx + 0x16]
mov word [rdi + 0xc], ax
movzx eax, word [rcx + 0x14]
mov word [rdi + 0xe], ax
mov dword [rdi + 4], 1
mov rcx, rbp
call fcn.14006a328
jmp 0x14006ad71
mov eax, 0x57
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006aed4
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rcx, qword [str._0_n_]
lea rdi, str._0_n_
cmp rcx, rdi
je 0x14006af23
test byte [rcx + 0x1c], 2
je 0x14006af23
cmp byte [rcx + 0x19], 5
jb 0x14006af23
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095598]
mov edx, 0xf
call fcn.14000459c
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x110
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
jne 0x14006af9b
mov rax, qword [str._0_n_]
cmp rax, rdi
je 0x14006af97
test byte [rax + 0x1c], 2
je 0x14006af97
cmp byte [rax + 0x19], 2
jb 0x14006af97
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
lea r8, [0x140095598]
mov edx, 0x10
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140004900
xor eax, eax
jmp 0x14006afa5
cmp dword [rsp + 0x24], 6
setae cl
mov eax, ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001b10
add rsp, 0x150
pop rdi
ret

Function at 0x14006afc8
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rdx
mov rbp, r8
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
lea esi, [rax - 1]
cmp esi, 0x103
ja 0x14006b0f5
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
mov r9d, esi
mov qword [rsp + 0x20], rbx
mov edx, 1
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_CompareStringW]
nop dword [rax + rax]
cmp eax, 2
jne 0x14006b0f5
xor r14d, r14d
test rbx, rbx
je 0x14006b0f5
mov r9d, 0x7fffffff
mov rax, rbx
mov edx, r9d
cmp word [rax], r14w
je 0x14006b072
add rax, 2
sub rdx, 1
jne 0x14006b062
mov rcx, r9
mov rax, rdx
sub rcx, rdx
neg rax
sbb r11, r11
and r11, rcx
test rdx, rdx
je 0x14006b0f5
test rdi, rdi
je 0x14006b0f5
mov rcx, r9
mov rax, rdi
cmp word [rax], r14w
je 0x14006b0a4
add rax, 2
sub rcx, 1
jne 0x14006b094
sub r9, rcx
mov rax, rcx
neg rax
sbb r8, r8
and r8, r9
test rcx, rcx
je 0x14006b0f5
mov r10d, esi
sub r8, r10
add r8, r11
cmp r8, 0x104
jae 0x14006b0f5
lea r8, [rbx + rsi*2]
mov r9, rdi
mov qword [rsp + 0x20], r8
mov edx, 0x104
lea r8, str._s_s
mov rcx, rbp
call fcn.140004520
test eax, eax
js 0x14006b0f5
mov eax, 1
jmp 0x14006b0f7
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140001b10
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006b2d4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [str._0_n_]
lea r14, str._0_n_
lea r15, [0x1400956b8]
cmp rcx, r14
je 0x14006b327
test byte [rcx + 0x1c], 2
je 0x14006b327
cmp byte [rcx + 0x19], 5
jb 0x14006b327
mov rcx, qword [rcx + 0x10]
mov edx, 0x17
mov r8, r15
call fcn.14000459c
mov edx, 0x25
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rcx, rsi
test rax, rax
jne 0x14006b37d
call fcn.14006bd20
test rax, rax
jne 0x14006b47c
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x14006b47a
test byte [rcx + 0x1c], 2
je 0x14006b47a
cmp byte [rcx + 0x19], 2
jb 0x14006b47a
lea edx, [rax + 0x18]
jmp 0x14006b40a
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14006b3db
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x14006b47a
test byte [rcx + 0x1c], 2
je 0x14006b47a
cmp byte [rcx + 0x19], 2
jb 0x14006b47a
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x19]
mov r9d, eax
mov r8, r15
call fcn.1400045c8
jmp 0x14006b47a
inc ebx
mov ecx, ebx
add rcx, rcx
call fcn.14006a264
mov rdi, rax
test rax, rax
jne 0x14006b418
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x14006b47a
test byte [rcx + 0x1c], 2
je 0x14006b47a
cmp byte [rcx + 0x19], 2
jb 0x14006b47a
lea edx, [rax + 0x1a]
mov rcx, qword [rcx + 0x10]
mov r8, r15
call fcn.14000459c
jmp 0x14006b47a
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x14006b43a
cmp eax, ebx
ja 0x14006b43a
mov rax, rdi
jmp 0x14006b47c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x14006b472
test byte [rcx + 0x1c], 2
je 0x14006b472
cmp byte [rcx + 0x19], 2
jb 0x14006b472
mov rcx, qword [rcx + 0x10]
mov edx, 0x1b
mov r9d, eax
mov r8, r15
call fcn.1400045c8
mov rcx, rdi
call fcn.14006a328
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x14006de7c
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r13d, r13d
mov rsi, r8
mov ebx, r13d
mov dword [rbp + 0x58], r13d
mov edi, r13d
mov dword [rbp + 0x40], r13d
mov r15d, r13d
mov r12, rdx
mov r14, rcx
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x14006dee3
test byte [rcx + 0x1c], 2
je 0x14006dee3
cmp byte [rcx + 0x19], 5
jb 0x14006dee3
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x19]
lea r8, [0x140095748]
call fcn.14000459c
cmp r13w, word [r14]
jne 0x14006def3
mov eax, 0x57
jmp 0x14006e0b9
lea rax, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x58]
lea rax, [rbp + 0x40]
mov rdx, r14
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14006df3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x7a
jne 0x14006df87
mov ebx, r13d
mov ecx, dword [rbp + 0x58]
call fcn.14006a264
mov rdi, rax
test rax, rax
jne 0x14006dfe1
lea ebx, [rax + 8]
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x14006e0a3
test byte [rcx + 0x1c], 2
je 0x14006e0a3
cmp byte [rcx + 0x19], 2
jb 0x14006e0a3
mov r9d, dword [rbp + 0x58]
lea edx, [rdi + 0x1b]
jmp 0x14006dfcc
test eax, eax
je 0x14006df3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x14006e0a3
test byte [rcx + 0x1c], 2
je 0x14006e0a3
cmp byte [rcx + 0x19], 2
jb 0x14006e0a3
mov edx, 0x1a
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095748]
call fcn.140004900
jmp 0x14006e0a3
mov ecx, dword [rbp + 0x40]
add rcx, rcx
call fcn.14006a264
mov r15, rax
test rax, rax
jne 0x14006e02b
lea ebx, [rax + 8]
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x14006e0a3
test byte [rcx + 0x1c], 2
je 0x14006e0a3
cmp byte [rcx + 0x19], 2
jb 0x14006e0a3
mov r9d, dword [rbp + 0x40]
lea edx, [rbx + 0x14]
jmp 0x14006dfcc
lea rax, [rbp - 0x10]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x58]
lea rax, [rbp + 0x40]
mov rdx, r14
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14006e095
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x14006e0a3
test byte [rcx + 0x1c], 2
je 0x14006e0a3
cmp byte [rcx + 0x19], 2
jb 0x14006e0a3
mov edx, 0x1d
jmp 0x14006dfc9
mov qword [r12], rdi
test rsi, rsi
je 0x14006e0a3
mov eax, dword [rbp - 0x10]
mov dword [rsi], eax
mov rcx, r15
call fcn.14006a328
test ebx, ebx
je 0x14006e0b7
mov rcx, rdi
call fcn.14006a328
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006e89c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, r8
test r9, r9
je 0x14006e8c8
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], di
jne 0x14006e8b4
lea rax, [rax*2 + 2]
jmp 0x14006e8cb
mov rax, rdi
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], r9
mov r9d, edx
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14006e903
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rbx
call fcn.140070eb4
xor eax, eax
jmp 0x14006e908
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14006ee70
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x48], 0
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [str._0_n_]
lea r12, str._0_n_
cmp rcx, r12
je 0x14006eede
test byte [rcx + 0x1c], 2
je 0x14006eede
cmp byte [rcx + 0x19], 5
jb 0x14006eede
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095c88]
mov edx, 0xa
call fcn.14000459c
lea rax, [rsp + 0x48]
mov r9d, 0x3001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14006ef61
mov rcx, qword [str._0_n_]
cmp rcx, r12
je 0x14006f03e
test byte [rcx + 0x1c], 2
je 0x14006f03e
cmp byte [rcx + 0x19], 2
jb 0x14006f03e
mov edx, 0xb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095c88]
mov r9d, ebx
call fcn.140004994
jmp 0x14006f03e
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
call fcn.14006ee70
test eax, eax
je 0x14006f04c
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
xor edx, edx
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14006ef4a
cmp eax, 0x103
jne 0x14006effd
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14006eff6
mov rcx, qword [str._0_n_]
cmp rcx, r12
je 0x14006f03e
test byte [rcx + 0x1c], 2
je 0x14006f03e
cmp byte [rcx + 0x19], 2
jb 0x14006f03e
mov edx, 0xd
jmp 0x14006ef32
mov eax, 1
jmp 0x14006f04e
mov rcx, qword [str._0_n_]
cmp rcx, r12
je 0x14006f02d
test byte [rcx + 0x1c], 2
je 0x14006f02d
cmp byte [rcx + 0x19], 2
jb 0x14006f02d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095c88]
mov edx, 0xc
mov r9d, ebx
call fcn.140004994
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140001b10
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x14006f220
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
xor ebx, ebx
mov eax, r8d
and dword [rsp + 0x60], ebx
mov r12, r9
xor ebp, ebp
mov r15d, r8d
neg eax
sbb r14d, r14d
and r14d, 6
lea r9d, [r14 + 0x20019]
call fcn.14006f790
mov rdi, rax
test rax, rax
je 0x14006f3d5
and qword [rsp + 0x58], rbx
lea rax, [rsp + 0x60]
and qword [rsp + 0x50], rbx
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
and qword [rsp + 0x40], rbx
lea rax, [rsp + 0xb0]
and qword [rsp + 0x38], rbx
xor edx, edx
and qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
je 0x14006f2c9
lea rcx, str.RegQueryInfoKey___failed__ec_d
jmp 0x14006f3bf
movabs r10, 0x949987cc325ca970
mov r9, qword [rsp + 0xc0]
xor edx, edx
mov r8d, dword [rsp + 0x64]
mov rcx, rdi
mov rax, r12
call qword [0x1400913f0]
test eax, eax
je 0x14006f3c6
mov eax, dword [rsp + 0xb0]
add eax, 4
mov dword [rsp + 0xb0], eax
cmp eax, 0x7ffffffe
ja 0x14006f3c6
lea ecx, [rax + 1]
add rcx, rcx
call fcn.14006a264
mov rbx, rax
test rax, rax
je 0x14006f3c6
xor edx, edx
mov r9d, dword [rsp + 0xb0]
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14006f3b1
lea r9d, [r14 + 0x20019]
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call fcn.14006f790
mov rsi, rax
test rax, rax
je 0x14006f39f
movabs r10, 0x949987cc325ca970
mov r9, qword [rsp + 0xc0]
mov rcx, rax
mov rax, r12
mov r8d, ebp
mov rdx, rbx
call qword [0x1400913f0]
mov rcx, rsi
test eax, eax
je 0x14006f3a3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
inc ebp
mov edx, ebp
jmp 0x14006f32b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14006f3c6
cmp eax, 0x103
je 0x14006f3c6
lea rcx, str.RegEnumKey___failed__ec_d
mov edx, eax
call fcn.140070eb4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rbx
call fcn.14006a328
lea r11, [rsp + 0x70]
mov eax, ebp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14006f400
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
and dword [rbp + 0x38], 0
lea rax, [rbp + 0x38]
mov rsi, r8
mov qword [r11 - 0x30], rax
xor ebx, ebx
mov dword [rbp - 0x10], 3
and qword [r11 - 0x38], rbx
lea r9, [rbp - 0x10]
xor r8d, r8d
mov rdi, rdx
mov r14, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14006f480
cmp eax, 2
je 0x14006f48d
mov edx, eax
lea rcx, str.RegQueryValueEx___failed__ec_d
call fcn.140070eb4
mov rcx, rbx
call fcn.14006a328
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
cmp dword [rbp - 0x10], 3
jne 0x14006f46a
mov eax, dword [rbp + 0x38]
test eax, eax
jne 0x14006f495
mov eax, 1
mov dword [rbp + 0x38], eax
lea ecx, [rax + 1]
call fcn.14006a264
mov rbx, rax
test rax, rax
je 0x14006f462
lea rax, [rbp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x38]
mov byte [rcx + rbx], 0
test eax, eax
je 0x14006f522
cmp eax, 2
jne 0x14006f454
mov eax, dword [rbp + 0x38]
mov r9d, 3
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14006f522
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rdi
call fcn.140070eb4
jmp 0x14006f462
test rsi, rsi
je 0x14006f52c
mov eax, dword [rbp + 0x38]
mov dword [rsi], eax
mov rax, rbx
jmp 0x14006f46c

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov dword [rsp + 0x70], 4
mov r14d, r9d
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
test r8, r8
jne 0x14006f570
lea ecx, [r8 + 0x57]
jmp 0x14006f5f8
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 2
jne 0x14006f5d9
mov dword [rsp + 0x28], 4
lea r9d, [rax + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov dword [rsi], r14d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14006f5d2
lea rcx, str.RegSetValueEx___failed__s___ec_d
jmp 0x14006f5eb
mov eax, 1
jmp 0x14006f606
test ebx, ebx
jne 0x14006f5e4
cmp dword [rsp + 0x30], 4
je 0x14006f5d2
lea rcx, str.RegQueryValueEx___failed__s___ec_d
mov r8d, ebx
mov rdx, rdi
call fcn.140070eb4
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14006f620
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r15
sub rsp, 0x40
and dword [rax - 0x28], 0
mov rbp, r8
mov rdi, rdx
mov dword [rax + 0x20], 4
mov rsi, rcx
mov rcx, qword [str._0_n_]
lea r15, str._0_n_
cmp rcx, r15
je 0x14006f67b
test byte [rcx + 0x1c], 2
je 0x14006f67b
cmp byte [rcx + 0x19], 5
jb 0x14006f67b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095c88]
mov edx, 0xe
call fcn.14000459c
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
and qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14006f6d9
mov rcx, qword [str._0_n_]
cmp rcx, r15
je 0x14006f773
test byte [rcx + 0x1c], 2
je 0x14006f773
cmp byte [rcx + 0x19], 2
jb 0x14006f773
mov edx, 0xf
jmp 0x14006f760
cmp dword [rsp + 0x78], 4
je 0x14006f714
mov rcx, qword [str._0_n_]
cmp rcx, r15
je 0x14006f70d
test byte [rcx + 0x1c], 2
je 0x14006f70d
cmp byte [rcx + 0x19], 2
jb 0x14006f70d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095c88]
mov edx, 0x10
call fcn.14000459c
mov ebx, 0x3f1
jmp 0x14006f773
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
mov rdx, rdi
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14006f773
mov rcx, qword [str._0_n_]
cmp rcx, r15
je 0x14006f773
test byte [rcx + 0x1c], 2
je 0x14006f773
cmp byte [rcx + 0x19], 2
jb 0x14006f773
mov edx, 0x11
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095c88]
mov r9d, eax
call fcn.140004994
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop rdi
pop rsi
ret

Function at 0x14006f874
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
push rbx
sub rsp, 0x30
test r9d, r9d
mov dword [r11 - 0x10], r9d
lea rax, [r11 + 0x20]
mov r9d, 3
cmovne rax, r8
mov rbx, rdx
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14006f8c5
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rbx
call fcn.140070eb4
xor eax, eax
jmp 0x14006f8ca
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x14006f8d8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov dword [r11 + 0x18], r8d
push rdi
sub rsp, 0x30
mov r9d, 4
lea rax, [r11 + 0x18]
mov dword [r11 - 0x10], r9d
xor r8d, r8d
mov qword [r11 - 0x18], rax
mov rdi, rdx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14006f936
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rdi
call fcn.140070eb4
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14006f93b
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14006fbd4
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call sub.msvcrt.dll_memset
mov rcx, qword [str._0_n_]
lea rdi, str._0_n_
cmp rcx, rdi
je 0x14006fc35
test byte [rcx + 0x1c], 2
je 0x14006fc35
cmp byte [rcx + 0x19], 5
jb 0x14006fc35
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095dc8]
mov edx, 0xa
call fcn.14000459c
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
xor edx, edx
test eax, eax
jne 0x14006fca5
mov rax, qword [str._0_n_]
cmp rax, rdi
je 0x14006fcff
test byte [rax + 0x1c], 2
je 0x14006fcff
cmp byte [rax + 0x19], 2
jb 0x14006fcff
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
lea r8, [0x140095dc8]
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140004994
jmp 0x14006fcff
cmp dword [rsp + 0x30], 2
je 0x14006fccb
mov rcx, qword [str._0_n_]
cmp rcx, rdi
je 0x14006fcff
test byte [rcx + 0x1c], 2
je 0x14006fcff
cmp byte [rcx + 0x19], 3
jb 0x14006fcff
mov edx, 0xd
jmp 0x14006fcef
cmp dword [rsp + 0x24], 5
jae 0x14006fd06
mov rcx, qword [str._0_n_]
cmp rcx, rdi
je 0x14006fcff
test byte [rcx + 0x1c], 2
je 0x14006fcff
cmp byte [rcx + 0x19], 3
jb 0x14006fcff
mov edx, 0xe
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095dc8]
call fcn.14000459c
xor eax, eax
jmp 0x14006fd8a
mov cl, byte [rsp + 0x138]
mov eax, 0x40
test al, cl
je 0x14006fd26
cmp byte [rsp + 0x13a], 1
lea ecx, [rax - 0x20]
cmove eax, ecx
jmp 0x14006fd8a
mov eax, 0x200
test word [rsp + 0x138], ax
je 0x14006fd3c
mov eax, 1
jmp 0x14006fd8a
test cl, 2
je 0x14006fd48
mov eax, 8
jmp 0x14006fd8a
mov eax, 0x80
test al, cl
je 0x14006fd58
mov eax, 0x10
jmp 0x14006fd8a
mov ecx, 0x400
test word [rsp + 0x138], cx
jne 0x14006fd8a
mov cl, byte [rsp + 0x13a]
cmp cl, 1
jne 0x14006fd7a
mov eax, 2
jmp 0x14006fd8a
mov eax, 4
cmp cl, 3
je 0x14006fd8a
cmp cl, 2
cmovne eax, edx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001b10
add rsp, 0x150
pop rdi
ret