joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001c898
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
lea rcx, [0x10007aae8]
call fcn.10001c864
test eax, eax
je 0x10001caae
and qword [rsp + 0x40], 0
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_spoolsv.exe
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
mov dword [rsp + 0x60], 1
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x10001c97d
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea rdx, str.AssemblyManifestRedirectTrust
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
lea rbx, [0x100083210]
test eax, eax
jne 0x10001c970
mov rax, qword [0x100083210]
cmp rax, rbx
je 0x10001c970
test byte [rax + 0x1c], 1
je 0x10001c970
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100083210]
lea r8, [0x1000795d0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x16
call fcn.10001c48c
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x10001c9bb
mov rax, qword [0x100083210]
lea rbx, [0x100083210]
cmp rax, rbx
je 0x10001c9bb
test byte [rax + 0x1c], 1
je 0x10001c9bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100083210]
lea r8, [0x1000795d0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x17
call fcn.10001c48c
and qword [rsp + 0x40], 0
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_OptionsPrintFilterPipelineSvc.exe
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x10001ca77
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea rdx, str.AssemblyManifestRedirectTrust
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x10001ca6a
mov rax, qword [0x100083210]
cmp rax, rbx
je 0x10001ca6a
test byte [rax + 0x1c], 1
je 0x10001ca6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100083210]
lea r8, [0x1000795d0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x18
call fcn.10001c48c
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x10001caae
mov rax, qword [0x100083210]
cmp rax, rbx
je 0x10001caae
test byte [rax + 0x1c], 1
je 0x10001caae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100083210]
lea r8, [0x1000795d0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x19
call fcn.10001c48c
add rsp, 0x50
pop rbx
ret
Function at 0x100022c90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
cmp rcx, rdi
je 0x100022cf0
cmp word [rcx], di
je 0x100022cf0
call sym.spoolsv.exe_PrvAllocSplStr
mov rbx, rax
cmp rax, rdi
je 0x100022cf0
lea rax, [rsp + 0x40]
lea r8, [0x100022c68]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, rdi
je 0x100022ce8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100022cf0
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x100022d38
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor esi, esi
mov ebp, r9d
mov rbx, r8
mov r12, rdx
mov r13, rcx
cmp r8, rsi
je 0x100022d78
cmp qword [r8 + 8], rsi
je 0x100022d78
cmp dword [r8], 3
je 0x100022d96
lea ecx, [rsi + 0x7c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x57
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov ecx, r9d
call fcn.100001908
cmp eax, esi
jne 0x100022daa
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100022d7d
mov ecx, dword [0x1000831bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1000831bc]
mov edx, eax
mov edi, eax
or rdx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov r9, qword [rbx + 8]
mov r8d, dword [rbx]
mov rdx, r12
mov rcx, r13
call sym.spoolsv.exe_PrvSetPortW
mov ecx, dword [0x1000831bc]
mov rdx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, ebp
call fcn.1000018cc
cmp ebx, esi
jne 0x100022e3e
mov rax, qword [0x100083210]
lea rcx, [0x100083210]
cmp rax, rcx
je 0x100022e36
test byte [rax + 0x1c], 1
je 0x100022e36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100083210]
lea r8, [0x10007c940]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x5a
call fcn.10001c48c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
jmp 0x100022d7d
Function at 0x100035e34
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x50
mov ebx, edx
mov edi, ecx
test edx, edx
jne 0x100035e53
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100035e55
mov eax, edx
and dword [rsp + 0x3c], 0
and dword [rsp + 0x4c], 0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [0x10007a998]
xor r9d, r9d
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x48], 4
call fcn.100012e38
mov rcx, qword [0x100083210]
lea rbp, [0x100083210]
cmp rcx, rbp
je 0x100035ec5
test byte [rcx + 0x1c], 4
je 0x100035ec5
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007ceb0]
mov edx, 0x1f
mov r9d, edi
mov dword [rsp + 0x20], ebx
call fcn.100037384
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x100035f41
mov rcx, qword [0x100083210]
cmp rcx, rbp
je 0x100035f38
test byte [rcx + 0x1c], 4
je 0x100035f18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100083210]
lea r8, [0x10007ceb0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x20
call fcn.10001c48c
mov rcx, qword [0x100083210]
cmp rcx, rbp
je 0x100035f38
test byte [rcx + 0x1c], 4
je 0x100035f38
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007ceb0]
mov edx, 0x21
call fcn.10001c468
xor eax, eax
mov byte [0], al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x100037424
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
mov ecx, 0x208
mov rsi, rdx
mov ebx, 1
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
xor eax, eax
cmp rdi, rax
je 0x10003754c
lea rax, [rsp + 0x78]
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
je 0x10003748c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x100037542
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x70], 0x104
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x100037510
xor esi, esi
mov rcx, qword [rsp + 0x78]
mov rdx, rdi
call fcn.100037424
mov ebx, eax
cmp eax, esi
je 0x10003750b
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x70]
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x70], 0x104
mov qword [rsp + 0x20], rsi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
cmp eax, esi
je 0x1000374c3
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
xor ecx, ecx
cmp ebx, ecx
je 0x100037542
cmp eax, ecx
je 0x100037529
mov ebx, ecx
jmp 0x100037542
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
xor ecx, ecx
cmp eax, ecx
cmovne ebx, ecx
mov rcx, rdi
call sym.spoolsv.exe_PrvDllFreeSplMem
jmp 0x100037559
mov ecx, 8
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp ebx, eax
jne 0x10003759d
mov rax, qword [0x100083210]
lea rcx, [0x100083210]
cmp rax, rcx
je 0x10003759d
test byte [rax + 0x1c], 1
je 0x10003759d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100083210]
lea r8, [0x10007d008]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xe
call fcn.10001c48c
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x1000375b4
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1000831c0]
xor ebx, ebx
cmp ecx, 0xffffffff
jne 0x1000375cc
mov rax, rbx
jmp 0x1000375d2
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
cmp eax, ebx
jne 0x1000375f0
cmp dword [rsp + 0x30], 4
je 0x1000375f0
mov ebx, 1
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x100037898
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r9
mov rsi, r8
mov ebx, 0x57
test rcx, rcx
je 0x100037929
test rdx, rdx
je 0x100037929
test r8, r8
je 0x100037929
test r9, r9
je 0x100037929
and dword [r9], 0
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [r11 - 0x28], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x100037929
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x50], 4
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x10003795a
mov rcx, qword [0x100083210]
lea rax, [0x100083210]
cmp rcx, rax
je 0x10003795a
test byte [rcx + 0x1c], 1
je 0x10003795a
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007d008]
mov edx, 0x2c
mov r9d, ebx
call fcn.10001c48c
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x100037980
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov dword [r11 + 0x20], r9d
push rdi
sub rsp, 0x50
mov rdi, r8
mov ebx, 0x57
test rcx, rcx
je 0x100037a12
test rdx, rdx
je 0x100037a12
test r8, r8
je 0x100037a12
and qword [r11 - 0x18], 0
and qword [r11 + 8], 0
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 2
and dword [rsp + 0x20], 0
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x100037a12
mov rcx, qword [rsp + 0x60]
lea r9d, [rax + 4]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x100037a43
mov rcx, qword [0x100083210]
lea rax, [0x100083210]
cmp rcx, rax
je 0x100037a43
test byte [rcx + 0x1c], 1
je 0x100037a43
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007d008]
mov edx, 0x2d
mov r9d, ebx
call fcn.10001c48c
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x100037a58
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x100083218]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor edi, edi
lea rax, [r11 - 0x20]
lea rcx, [r11 - 0x18]
mov qword [r11 - 0x38], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
lea r8d, [rdi + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], edi
mov byte [rsp + 0x70], dil
mov byte [rsp + 0x71], dil
mov byte [rsp + 0x72], dil
mov dword [rsp + 0x20], edi
mov byte [rsp + 0x73], dil
mov byte [rsp + 0x74], dil
mov byte [rsp + 0x75], 5
mov qword [r11 - 0x20], rdi
mov dword [rsp + 0x60], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, edi
jne 0x100037ae3
call fcn.100001140
cmp eax, edi
mov ebx, eax
jl 0x100037b18
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, edi
jne 0x100037b04
call fcn.100001140
cmp eax, edi
mov ebx, eax
jl 0x100037b0d
cmp dword [rsp + 0x60], edi
mov ebx, edi
sete bl
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1000010c0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x10003bc9c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x100083218]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x30]
xor edi, edi
mov r9d, 0x20019
xor r8d, r8d
mov dword [rsp + 0x38], 0x104
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x40], di
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10003bd50
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea rdx, str.Name
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, edi
jne 0x10003bd50
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov rbx, qword [0x1000832b0]
jmp 0x10003bd46
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, edi
je 0x10003bd4b
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x10003bd30
mov rax, rbx
jmp 0x10003bd6a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x10003bd68
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1000010c0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x10003bdfc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
xor r14d, r14d
mov r12, rdx
mov r13, rcx
mov ebp, r14d
mov rdi, r14
mov qword [rsp + 0x68], r14
mov rbx, rdx
mov esi, r14d
cmp rdx, r14
je 0x10003be74
cmp word [rbx], r14w
je 0x10003be6f
mov rdx, rbx
mov rcx, r13
call fcn.10003bc9c
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.10003bd94
cmp eax, r14d
je 0x10003be83
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rbx, [rbx + rcx*2]
lea esi, [rsi + rcx*2]
cmp rbx, r14
jne 0x10003be31
mov rdi, qword [rsp + 0x68]
mov rax, qword [0x1000832b0]
add esi, 2
mov edx, r14d
jmp 0x10003be92
mov rdi, qword [rsp + 0x68]
jmp 0x10003bf1d
mov rax, qword [rax]
inc edx
cmp rax, r14
jne 0x10003be8d
mov ecx, 1
mov rax, rdi
cmp rdi, r14
je 0x10003beae
mov rax, qword [rax]
inc ecx
cmp rax, r14
jne 0x10003bea4
cmp ecx, edx
jne 0x10003bf08
lea rdx, str.Order
mov r9d, 7
xor r8d, r8d
mov rcx, r13
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r12
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
cmp eax, r14d
je 0x10003bedd
mov ecx, eax
jmp 0x10003bf0d
mov rdx, qword [0x1000832b0]
mov rcx, rdi
cmp rdi, r14
je 0x10003befe
mov rax, qword [rcx + 8]
mov qword [rdx], rax
mov rcx, qword [rcx]
mov rdx, rax
cmp rcx, r14
jne 0x10003beec
mov qword [rdx], r14
mov ebp, 1
jmp 0x10003bf1d
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10003bf1d
mov rdi, qword [rdi]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rcx, rdi
cmp rdi, r14
jne 0x10003bf15
mov rbx, qword [rsp + 0x60]
mov eax, ebp
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x10003ee24
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x10003eebf
cmp dword [rcx], 0x6060
jne 0x10003eebf
mov rax, qword [0x1000832b0]
cmp qword [rcx + 8], rax
jne 0x10003ee5b
mov rcx, qword [rcx + 0x10]
call qword [rax + 0x2b0]
jmp 0x10003eecc
mov rcx, qword [rcx + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x10003eeb8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 0x38], 0xffffffffffffffff
cmp qword [rbx + 0x40], 0
je 0x10003eeb8
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, qword [rbx + 0x40]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10003ee9d
mov rcx, qword [rbx + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test rdi, rdi
je 0x10003eeaa
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
mov rcx, qword [rbx + 0x40]
call sym.spoolsv.exe_PrvDllFreeSplMem
and qword [rbx + 0x40], 0
mov eax, 1
jmp 0x10003eecc
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1000408d8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r14, r9
mov rsi, r8
mov r12, rdx
mov rbx, rcx
mov dword [rsp + 0x70], 0x7b
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
test rbx, rbx
je 0x10004091c
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100040a24
mov ecx, 0x18
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
jne 0x100040967
mov rcx, qword [0x100083210]
lea rax, [0x100083210]
cmp rcx, rax
je 0x100040a24
test byte [rcx + 0x1c], 1
je 0x100040a24
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x10007d1a0]
call fcn.10001c468
jmp 0x100040a24
mov rdi, qword [0x1000832b0]
and qword [rsi], 0
test rdi, rdi
je 0x1000409c1
mov r13, qword [rsp + 0x90]
lea r8, [rsp + 0x30]
mov r9, r14
mov rdx, r12
xor ecx, ecx
mov qword [rsp + 0x20], r13
call qword [rdi + 0x210]
mov ebp, eax
cmp eax, 1
je 0x100040a3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x70]
mov ecx, eax
call fcn.100011658
cmp ebp, 2
je 0x1000409c1
mov rdi, qword [rdi]
test rdi, rdi
jne 0x10004097f
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplMem
lea rdx, [rsp + 0x70]
mov ecx, 0x709
call fcn.100011658
mov ecx, dword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x100083210]
lea rax, [0x100083210]
cmp rcx, rax
je 0x100040a24
test byte [rcx + 0x1c], 1
je 0x100040a24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100083210]
lea r8, [0x10007d1a0]
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.1000224cc
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov dword [rbx], 0x6262
mov qword [rbx + 8], rdi
mov rcx, qword [rsp + 0x30]
mov qword [rbx + 0x10], rcx
mov qword [rsi], rbx
mov rax, qword [0x1000832d8]
test rax, rax
je 0x100040a65
mov byte [rax + 0x60], 0
mov eax, 1
jmp 0x100040a26
Function at 0x100042fcc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x460
mov rax, qword [0x100083218]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov rdi, rcx
mov rbx, rdx
mov ecx, 0x80070057
cmp rdx, rbp
je 0x10004308f
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x40e
mov word [rsp + 0x40], bp
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x30]
lea rdx, [0x100078a60]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x40e
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x100043081
lea edx, [rbp + 0x2c]
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcschr]
cmp rax, rbp
je 0x10004306a
mov word [rax], bp
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov ecx, ebp
cmp eax, ebp
setne cl
jmp 0x10004308f
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebp
cmovle ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1000010c0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1000433d0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x260
mov rax, qword [0x100083218]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
lea rax, [rsp + 0x48]
mov r12, rdx
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rdi
and qword [rsp + 0x28], rdi
and qword [rsp + 0x20], rdi
mov rbx, r9
mov esi, r8d
xor edx, edx
mov rbp, rcx
jmp 0x100043493
lea rdx, str..Default
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x100043473
lea rcx, [rsp + 0x50]
mov edx, 0x5f
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x100043473
test rbx, rbx
je 0x10004345d
lea rcx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100043473
lea rdx, [rsp + 0x50]
mov r9, r12
mov r8, rbp
xor ecx, ecx
mov dword [rsp + 0x20], esi
call sym.spoolsv.exe_PrvUpdatePrinterRegUser
inc edi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov edx, edi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000003
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x10004341b
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1000010c0
add rsp, 0x260
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100043724
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x490
mov rax, qword [0x100083218]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbp, rdx
xor edx, edx
mov rsi, rcx
lea r8d, [rdx + 0x10]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll_memset
xor r12d, r12d
xor edx, edx
mov edi, r12d
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x270]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov rcx, rsi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x40], 0x208
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumValueW]
cmp eax, r12d
jne 0x10004386c
cmp word [rsp + 0x60], r12w
je 0x10004385e
lea rcx, [rsp + 0x60]
mov edx, 0x2c
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
cmp rax, r12
je 0x10004385e
mov word [rax], r12w
add rbx, 2
cmp word [rbx], 0x20
je 0x1000437e2
lea rdx, [0x10007d318]
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
cmp eax, r12d
jne 0x10004385e
lea rcx, [rbx + 4]
mov word [rbx + 8], r12w
call fcn.1000436b4
mov r8, rbp
mov r10d, eax
lea rax, [rsp + 0x270]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x10004383a
add rax, 2
test edx, edx
jne 0x100043826
cmp ecx, r12d
je 0x100043867
cmp r10d, 0x64
jae 0x10004385e
mov rdx, r10
and r10d, 0x1f
mov eax, 1
mov cl, r10b
shr rdx, 5
shl eax, cl
or dword [rsp + rdx*4 + 0x48], eax
inc edi
mov edx, edi
jmp 0x100043769
mov eax, r10d
jmp 0x100043876
lea rcx, [rsp + 0x48]
call fcn.1000436f0
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1000010c0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret