joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067e64
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0xbb8]
sub rsp, 0xca0
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rbp + 0xb90], rax
mov rsi, rcx
xor r14d, r14d
mov ebx, 0x616
mov qword [rsp + 0x38], r14
mov r8d, ebx
mov word [rsp + 0x50], r14w
xor edx, edx
lea rcx, [rsp + 0x52]
call sub.msvcrt.dll_memset
mov r8d, ebx
mov word [rbp + 0x570], r14w
xor edx, edx
lea rcx, [rbp + 0x572]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x38]
mov dword [rsp + 0x44], 0x30c
lea r9d, [r14 + 3]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 1
lea rdx, [0x1400736f0]
mov dword [rsp + 0x34], r14d
mov rcx, rsi
mov dword [rsp + 0x30], r14d
mov edi, r14d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
mov r15d, 0x80070000
test eax, eax
jle 0x140067f25
movzx ebx, ax
or ebx, r15d
test ebx, ebx
js 0x14006806b
lea r8, [rsp + 0x44]
mov rcx, rsi
lea rdx, [rsp + 0x50]
call fcn.1400674bc
mov ebx, eax
test eax, eax
js 0x140067f57
cmp word [rsp + 0x50], r14w
mov ecx, r14d
setne cl
mov dword [rsp + 0x30], ecx
jmp 0x140067f63
cmp eax, 0x80070002
jne 0x140067f68
mov dword [rsp + 0x30], r14d
mov edi, 1
test eax, eax
js 0x14006802b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x570]
mov dword [rsp + 0x34], 0x618
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140073590]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jle 0x140067fb4
movzx ebx, ax
or ebx, r15d
test ebx, ebx
js 0x14006802b
cmp word [rbp + 0x570], r14w
je 0x14006802b
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x570]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14006802b
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140067fe1
mov rcx, qword [rsp + 0x38]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x140073590]
mov dword [rsp + 0x34], eax
mov r9d, 1
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jle 0x14006802b
movzx ebx, ax
or ebx, r15d
test edi, edi
je 0x14006806b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 4
lea rdx, [0x140072bb0]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test ebx, ebx
js 0x14006806b
test eax, eax
jg 0x140068065
mov ebx, eax
jmp 0x14006806b
movzx ebx, ax
or ebx, r15d
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14006807b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.140024ca0
lea r11, [rsp + 0xca0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14006816c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r15, r8
mov r14, rdx
mov esi, ecx
xor r12d, r12d
xor edx, edx
mov qword [rsp + 0x50], r12
mov r8d, 0x206
mov word [rsp + 0x60], r12w
lea rcx, [rsp + 0x62]
call sub.msvcrt.dll_memset
lea rcx, [0x1400ab418]
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_AcquireSRWLockExclusive]
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jle 0x14006820c
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1400682fd
mov edi, r12d
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], r12
mov edx, edi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
jle 0x14006825e
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1400682e9
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jle 0x140068297
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x1400682d6
mov rcx, qword [rsp + 0x40]
call fcn.140067744
test eax, eax
je 0x1400682d6
test esi, esi
je 0x1400682c2
cmp esi, 1
jne 0x1400682d6
mov rcx, qword [rsp + 0x40]
mov r8, r15
mov rdx, r14
call fcn.140066e48
jmp 0x1400682d6
mov rcx, qword [rsp + 0x40]
call fcn.140067e64
mov rcx, qword [rsp + 0x40]
call fcn.140068368
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400682e6
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, r12d
inc edi
test ebx, ebx
jns 0x140068217
cmp ebx, 0x80070103
cmove ebx, r12d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006830d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor r8d, r8d
lea r9, str.windows
mov ecx, 0xffff
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendNotifyMessageW]
lea rcx, [0x1400ab418]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockExclusive]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140024ca0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140068b7c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rbp, rdx
mov rdi, rcx
cmp byte [rcx + 0x60], r15b
jne 0x140068bae
xor eax, eax
jmp 0x140068cb9
mov esi, 0x80070057
test rdx, rdx
je 0x140068cb7
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r15w
jne 0x140068bc0
mov eax, dword [rdi + 0x10]
cmp rcx, rax
ja 0x140068cb7
lea rcx, [rdi + 0x20]
call fcn.140001754
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov r12d, r15d
mov r13d, eax
mov r14d, r15d
mov esi, r15d
cmp dword [rdi + 8], r15d
jbe 0x140068c71
mov eax, esi
lea r15, [rax + rax*2]
mov rax, qword [rdi + 0x18]
mov rdx, qword [rax + r15*8]
test rdx, rdx
je 0x140068c54
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140068c3c
mov rax, qword [rdi + 0x18]
mov ecx, r13d
sub ecx, dword [rax + r15*8 + 8]
cmp ecx, dword [rdi + 0xc]
ja 0x140068c54
cmp ecx, r14d
jbe 0x140068c33
mov r14d, ecx
mov r12d, esi
inc esi
cmp esi, dword [rdi + 8]
jb 0x140068bf7
jmp 0x140068c71
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov ecx, esi
xor esi, esi
lea rdx, [rcx + rcx*2]
mov rcx, qword [rdi + 0x18]
mov dword [rcx + rdx*8 + 8], eax
jmp 0x140068cae
mov eax, esi
mov rdx, rbp
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x18]
lea rcx, [rax + rcx*8]
call fcn.1400698d4
mov esi, eax
cmp eax, 1
jne 0x140068cae
mov eax, dword [rdi + 8]
mov rdx, rbp
cmp eax, dword [rdi + 4]
jae 0x140068c98
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x18]
lea rcx, [rax + rcx*8]
call fcn.1400698d4
mov esi, eax
test eax, eax
js 0x140068cae
inc dword [rdi + 8]
jmp 0x140068cae
mov eax, r12d
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x18]
lea rcx, [rax + rcx*8]
call fcn.1400698d4
mov esi, eax
lea rcx, [rdi + 0x20]
call fcn.140001780
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140069c3c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x58
xor eax, eax
mov r9d, 0xf003f
mov qword [rbp + 0x40], rax
xor r8d, r8d
lea rax, [rbp + 0x40]
mov rsi, rdx
mov qword [rsp + 0x20], rax
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x140069cf3
xor esi, esi
mov rcx, qword [rbp + 0x40]
lea r9, [rbp + 0x38]
lea r8, [rbp - 0x18]
mov qword [rbp - 0x18], rsi
mov dword [rbp + 0x38], esi
call fcn.140019b04
mov ebx, eax
test eax, eax
jne 0x140069ce9
mov rdi, qword [rbp - 0x18]
lea r9, [rbp + 0x38]
mov rcx, qword [rbp + 0x40]
mov r8, rdi
mov qword [rsp + 0x38], rsi
xor edx, edx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
jne 0x140069cdd
mov rcx, qword [rbp + 0x40]
mov rdx, rdi
call fcn.140069c3c
movzx ebx, ax
mov rcx, rdi
call fcn.140024954
test ebx, ebx
je 0x140069c7f
mov rsi, qword [rbp + 0x30]
xor eax, eax
mov rdi, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140069d04
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
cmp ebx, 0x103
cmove ebx, eax
test ebx, ebx
jne 0x140069d27
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov ebx, eax
test eax, eax
jle 0x140069d32
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
add rsp, 0x58
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140069d44
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 - 0x10], 0
lea r9, [r11 + 8]
inc dword [rcx + 0x10]
mov rbx, rcx
and qword [r11 - 0x18], 0
mov eax, dword [rcx + 0x14]
mov edx, dword [rcx + 0x10]
mov r8, qword [rcx + 8]
and qword [r11 - 0x20], 0
mov rcx, qword [rcx]
and qword [r11 - 0x28], 0
mov dword [rsp + 0x50], eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jle 0x140069d8d
movzx eax, ax
or eax, 0x80070000
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret

Function at 0x140069d9c
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x18]
mov dword [rsp + 0x28], r9d
mov r9d, r8d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jle 0x140069dcb
movzx eax, ax
or eax, 0x80070000
add rsp, 0x38
ret

Function at 0x140069dd8
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400aae70]
test rdx, rdx
jne 0x140069df2
mov eax, 0x80070057
add rsp, 0x28
ret
mov eax, dword [rcx + 8]
test eax, eax
js 0x140069e1a
mov rcx, qword [rcx]
mov r8, rdx
mov edx, 4
call qword [sym.imp.CRYPTSP.dll_CryptGenRandom]
test eax, eax
je 0x140069e15
xor eax, eax
add rsp, 0x28
ret
call fcn.14004f934
add rsp, 0x28
ret
Function at 0x140069e28
Capabilities:
Encode data using xor

Disassembly:
mov r11, rcx
test r9d, r9d
je 0x140069e55
mov r10d, r9d
movzx r9d, byte [r8]
mov eax, edx
mov ecx, edx
xor r9, rax
shr ecx, 8
inc r8
movzx eax, r9b
mov edx, dword [r11 + rax*4 + 4]
xor edx, ecx
sub r10, 1
jne 0x140069e33
mov rax, qword [rsp + 0x28]
mov dword [rax], edx
xor eax, eax
ret

Function at 0x14006b670
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
xor ebx, ebx
lea rax, [rbp + 0x38]
xor r8d, r8d
mov qword [rbp + 0x38], rbx
lea rdx, str.SystemSetup
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea edi, [rbx + 1]
mov r9d, edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006b6fc
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Upgrade
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14006b6f2
cmp dword [rbp + 0x20], 4
jne 0x14006b6f2
cmp dword [rbp + 0x28], edi
cmove ebx, edi
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret

Function at 0x14006c298
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x14006c32d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x58], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationOverrideCompat
mov dword [rsp + 0x60], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14006c322
cmp dword [rsp + 0x58], 4
jne 0x14006c322
cmp dword [rsp + 0x68], 1
sete bl
mov dword [rdi + 0x58], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x14006c371
test byte [rcx + 0x1c], 2
je 0x14006c371
cmp dword [rdi + 0x58], 1
lea rax, str.kOverrideCompatOFF
mov rcx, qword [rcx + 0x10]
lea r9, str.kOverrideCompatON
cmovne r9, rax
lea r8, [0x14009d710]
mov edx, 0xe
call fcn.140043c9c
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14006c384
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006c411
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationExecutionPolicy
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14006c3fd
cmp dword [rsp + 0x60], eax
jne 0x14006c3fd
and dword [rbx + 0x54], eax
jmp 0x14006c404
mov dword [rbx + 0x54], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14006c418
mov dword [rbx + 0x54], 1
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x14006c45c
test byte [rcx + 0x1c], 2
je 0x14006c45c
cmp dword [rbx + 0x54], 1
lea rax, str.kExecuteInProc
mov rcx, qword [rcx + 0x10]
lea r9, str.kExecuteInSandbox
cmovne r9, rax
lea r8, [0x14009d710]
mov edx, 0xd
call fcn.140043c9c
add rsp, 0x40
pop rbx
ret
Function at 0x14006ddb8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
cmp rdx, 0xffffffffffffffff
je 0x14006de24
test rdx, rdx
je 0x14006de24
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_SetThreadToken]
test eax, eax
jne 0x14006de24
mov rax, qword [0x1400a92b0]
lea rcx, [0x1400a92b0]
cmp rax, rcx
je 0x14006de18
test byte [rax + 0x1c], 1
je 0x14006de18
call fcn.14004f960
mov rcx, qword [0x1400a92b0]
lea r8, [0x14009d800]
mov r9d, eax
mov edx, 0xa
mov rcx, qword [rcx + 0x10]
call fcn.14003d1e0
mov ecx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_ExitProcess]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000fea0

Function at 0x14006f66c
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
lea rdx, [rbp - 8]
mov rdi, rcx
mov qword [rbp - 8], rbx
mov ecx, 0x20019
mov qword [rbp - 0x10], rbx
mov dword [rbp + 0x30], ebx
lea eax, [rbx + 4]
mov dword [rbp + 0x38], eax
mov dword [rbp + 0x28], eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenCurrentUser]
test eax, eax
jne 0x14006f6ff
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9d, [rbx + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.PrintersDefaults
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006f6ff
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x30]
xor r8d, r8d
lea rdx, [0x14009dbf8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14006f703
cmp dword [rbp + 0x30], 1
jne 0x14006f703
mov edi, ebx
jmp 0x14006f738
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.NetID
mov dword [rbp + 0x28], 0x50
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
mov edi, ebx
sete dil
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14006f747
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
mov edx, 0x1016
setne bl
xor ecx, ecx
mov r8d, ebx
call qword [sym.imp.ntdll.dll_WinSqmSetDWORD]
mov eax, edi
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x14006fe3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, rcx
mov eax, ebx
test rcx, rcx
jne 0x14006fe57
lea eax, [rcx + 0x57]
jmp 0x14006fe5d
mov dword [rcx], 1
mov dword [rsp + 0x50], ebx
mov ecx, ebx
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14006fead
lea rax, [rsp + 0x58]
mov r9d, 0x10
mov qword [rsp + 0x30], rax
lea r8, str.UserSelectedDefault
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x28], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov ecx, dword [rsp + 0x50]
cmp eax, 2
jne 0x14006febd
xor ecx, ecx
mov dword [rdi], ebx
call fcn.1400705e4
jmp 0x14006fec9
test eax, eax
jne 0x14006fec9
cmp ecx, 1
sete bl
mov dword [rdi], ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400705e4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x30
mov esi, ecx
xor ebx, ebx
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x38], rbx
call fcn.140020930
lea rcx, [rbp + 0x30]
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x30], rbx
call fcn.140020930
lea rdx, [rbp + 0x38]
mov qword [rbp + 0x30], rbx
mov ecx, 0x2001f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenCurrentUser]
mov edi, eax
test eax, eax
jne 0x140070687
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140070687
mov rcx, qword [rbp + 0x30]
lea r9d, [rax + 4]
test esi, esi
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x28]
setne bl
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x28], ebx
lea rdx, str.UserSelectedDefault
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
lea rcx, [rbp + 0x30]
call fcn.140020930
lea rcx, [rbp + 0x38]
call fcn.140020930
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x2fc4ca8a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cb2a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4cb33a
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb31e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cb312
cmp qword [rbp - 0x10], 0
je 0x2fc4cb312
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cb2d8
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb33b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb440
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cb468
mov eax, 0
jmp 0x2fc4cb4b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cb491
mov eax, 0
jmp 0x2fc4cb4b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cb4b1
mov eax, 0
jmp 0x2fc4cb4b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb4bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cb53a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb531
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cb531
mov rax, qword [rbp - 8]
jmp 0x2fc4cb54f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cb504
mov eax, 0
add rsp, 0x20
pop rbp
ret