joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100012b00
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rdx, qword [rcx + 0x60]
xor edi, edi
xor esi, esi
mov qword [rax + 8], rdi
mov qword [rax + 0x18], rsi
mov rax, r8
neg rax
mov rbp, rcx
lea rcx, [rsp + 0x40]
sbb ebx, ebx
mov r14, r9
mov r13, r8
not ebx
call fcn.10000265c
and ebx, 0x80070057
js 0x100012b70
and dword [r13], esi
lea rcx, [rbp + 0x38]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x98]
call fcn.1000033a0
mov rdi, qword [rsp + 0x90]
mov ebx, eax
test ebx, ebx
jne 0x100019b18
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call fcn.100012c80
mov rsi, qword [rsp + 0xa0]
mov ebx, eax
jmp 0x100012b94
test ebx, ebx
js 0x100012c3f
mov r12, qword [rsi + 0x30]
mov rcx, r14
mov rdx, r12
call fcn.1000027ac
mov ebx, eax
test eax, eax
js 0x100012c21
and qword [rsp + 0x90], 0
mov rax, qword [rdi + 0x38]
and qword [rsp + 0x30], 0
lea r8, [0x100077544]
mov qword [rsp + 0x28], rax
lea r9, str.SoftwareMicrosoftWindows_NTCurrentVersionWindowsSessionDefaultDevices
lea rcx, [rsp + 0x90]
mov rdx, r12
mov qword [rsp + 0x20], r8
call fcn.100005420
mov ecx, eax
call fcn.100001230
mov ebx, eax
test eax, eax
js 0x100012c21
mov rdx, qword [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
mov rcx, qword [rsp + 0x90]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp dword [rsi + 0x24], 0
jne 0x100012c3f
mov dword [r13], 1
dec dword [rbp + 0x30]
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
test rdi, rdi
je 0x100012c51
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test ebx, ebx
js 0x100019b28
lea rcx, [rsp + 0x40]
call fcn.100002680
mov eax, ebx
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
js 0x100012c3f
mov ebx, 0x80004005
jmp 0x100012b94
mov rcx, qword [0x100080250]
lea rax, [0x100080250]
cmp rcx, rax
je 0x100012c59
test byte [rcx + 0x1c], 1
je 0x100012c59
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007a030]
mov edx, 0xd
mov r9d, ebx
call fcn.10001c124
nop
jmp 0x100012c59

Function at 0x10001b020
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_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
add rsp, 0x38
ret
Function at 0x10001b060
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x50
lea rax, [r11 + 0x20]
xor edi, edi
mov r9d, 0xf003f
xor r8d, r8d
mov rsi, rdx
mov rbp, rcx
mov qword [r11 - 0x48], rax
mov qword [r11 + 0x20], rdi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, edi
jne 0x10001b134
xor ebp, ebp
mov rcx, qword [rsp + 0x88]
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x80], ebp
call fcn.100008588
mov ebx, eax
cmp eax, ebp
jne 0x10001b12d
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x80]
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
mov ebx, eax
cmp eax, ebp
jne 0x10001b11d
mov rcx, qword [rsp + 0x88]
mov rdx, rdi
call fcn.10001b060
movzx ebx, ax
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
cmp ebx, ebp
je 0x10001b0a1
mov rbp, qword [rsp + 0x70]
xor edi, edi
mov rcx, qword [rsp + 0x88]
cmp rcx, rdi
je 0x10001b147
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp ebx, 0x103
cmove ebx, edi
cmp ebx, edi
jne 0x10001b168
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]
mov ebx, eax
movzx eax, bx
or eax, 0x80070000
cmp ebx, edi
cmovle eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x10001b188
Capabilities:
Query or enumerate registry key

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

Function at 0x10001b404
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov r9d, r8d
test rdx, rdx
je 0x10001b43a
test r8d, r8d
je 0x10001b43a
mov eax, dword [rcx + 8]
test eax, eax
js 0x10001b43f
mov rcx, qword [rcx]
mov r8, rdx
mov edx, r9d
call qword [sym.imp.CRYPTSP.dll_CryptGenRandom]
test eax, eax
je 0x10001b433
xor eax, eax
jmp 0x10001b43f
call fcn.10001acc0
jmp 0x10001b43f
mov eax, 0x80070057
add rsp, 0x28
ret
Function at 0x10001b450
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx + 4]
mov rbx, rcx
mov dword [rcx], 0x63726374
mov dword [rcx + 0x404], 0x80004005
xor edx, edx
mov r8d, 0x400
mov rcx, rdi
call sub.msvcrt.dll_memset
xor edx, edx
mov eax, edx
mov ecx, 8
test al, 1
je 0x10001b497
shr eax, 1
xor eax, 0xedb88320
jmp 0x10001b499
shr eax, 1
sub rcx, 1
jne 0x10001b48a
inc edx
mov dword [rdi], eax
add rdi, 4
cmp edx, 0x100
jl 0x10001b483
and dword [rbx + 0x404], ecx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x10001b4dc
Capabilities:
Encode data using xor

Disassembly:
mov r11, rcx
test r9d, r9d
je 0x10001b509
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 0x10001b4e7
mov rax, qword [rsp + 0x28]
mov dword [rax], edx
xor eax, eax
ret

Function at 0x10001bdec
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
lea rax, [rsp + 0x68]
lea rdx, str.SystemSetup
lea edi, [rbx + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, edi
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10001be80
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, str.Upgrade
xor r8d, r8d
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10001be75
cmp dword [rsp + 0x50], 4
jne 0x10001be75
cmp dword [rsp + 0x58], edi
cmove ebx, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret

Function at 0x100020750
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
cmp rcx, rdi
je 0x1000207b0
cmp word [rcx], di
je 0x1000207b0
call sym.spoolsv.exe_PrvAllocSplStr
mov rbx, rax
cmp rax, rdi
je 0x1000207b0
lea rax, [rsp + 0x40]
lea r8, [0x100020728]
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 0x1000207a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000207b0
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1000207ec
Capabilities:
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
xor edi, edi
mov esi, r9d
mov rbx, r8
mov rbp, rdx
mov r12, rcx
cmp r8, rdi
je 0x10002082d
cmp qword [r8 + 8], rdi
je 0x10002082d
cmp dword [r8], 3
je 0x10002084d
lea ecx, [rdi + 0x7c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x57
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov ecx, r9d
call fcn.100001920
cmp eax, edi
jne 0x100020861
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100020832
mov ecx, dword [0x1000801fc]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov r9, qword [rbx + 8]
mov r8d, dword [rbx]
mov rdx, rbp
mov rcx, r12
call sym.spoolsv.exe_PrvSetPortW
mov ecx, dword [0x1000801fc]
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call fcn.1000018d8
cmp ebx, edi
jne 0x1000208e5
mov rax, qword [0x100080250]
lea rcx, [0x100080250]
cmp rax, rcx
je 0x1000208dd
test byte [rax + 0x1c], 1
je 0x1000208dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080250]
lea r8, [0x1000794f0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x4a
call fcn.10001c124
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
jmp 0x100020832

Function at 0x1000334f0
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 0x10003350f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100033511
mov eax, edx
and dword [rsp + 0x3c], 0
and dword [rsp + 0x4c], 0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [0x1000777b8]
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.1000130a0
mov rcx, qword [0x100080250]
lea rbp, [0x100080250]
cmp rcx, rbp
je 0x100033581
test byte [rcx + 0x1c], 4
je 0x100033581
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079948]
mov edx, 0x1f
mov r9d, edi
mov dword [rsp + 0x20], ebx
call fcn.100034a94
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1000335fd
mov rcx, qword [0x100080250]
cmp rcx, rbp
je 0x1000335f4
test byte [rcx + 0x1c], 4
je 0x1000335d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080250]
lea r8, [0x100079948]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x20
call fcn.10001c124
mov rcx, qword [0x100080250]
cmp rcx, rbp
je 0x1000335f4
test byte [rcx + 0x1c], 4
je 0x1000335f4
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079948]
mov edx, 0x21
call fcn.10001c100
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 0x100034b34
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 0x100034c5c
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 0x100034b9c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x100034c52
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 0x100034c20
xor esi, esi
mov rcx, qword [rsp + 0x78]
mov rdx, rdi
call fcn.100034b34
mov ebx, eax
cmp eax, esi
je 0x100034c1b
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 0x100034bd3
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 0x100034c52
cmp eax, ecx
je 0x100034c39
mov ebx, ecx
jmp 0x100034c52
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 0x100034c69
mov ecx, 8
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp ebx, eax
jne 0x100034cad
mov rax, qword [0x100080250]
lea rcx, [0x100080250]
cmp rax, rcx
je 0x100034cad
test byte [rax + 0x1c], 1
je 0x100034cad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080250]
lea r8, [0x100079a98]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xe
call fcn.10001c124
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x100034cc4
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x100080200]
xor ebx, ebx
cmp ecx, 0xffffffff
jne 0x100034cdc
mov rax, rbx
jmp 0x100034ce2
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 0x100034d00
cmp dword [rsp + 0x30], 4
je 0x100034d00
mov ebx, 1
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x100034fac
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 0x10003503d
test rdx, rdx
je 0x10003503d
test r8, r8
je 0x10003503d
test r9, r9
je 0x10003503d
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 0x10003503d
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 0x10003506e
mov rcx, qword [0x100080250]
lea rax, [0x100080250]
cmp rcx, rax
je 0x10003506e
test byte [rcx + 0x1c], 1
je 0x10003506e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079a98]
mov edx, 0x2c
mov r9d, ebx
call fcn.10001c124
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x100035088
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 0x10003511a
test rdx, rdx
je 0x10003511a
test r8, r8
je 0x10003511a
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 0x10003511a
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 0x10003514b
mov rcx, qword [0x100080250]
lea rax, [0x100080250]
cmp rcx, rax
je 0x10003514b
test byte [rcx + 0x1c], 1
je 0x10003514b
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079a98]
mov edx, 0x2d
mov r9d, ebx
call fcn.10001c124
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x100035160
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x100080258]
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 0x1000351eb
call fcn.10000113c
cmp eax, edi
mov ebx, eax
jl 0x100035220
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, edi
jne 0x10003520c
call fcn.10000113c
cmp eax, edi
mov ebx, eax
jl 0x100035215
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.1000010b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1000393fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x100080258]
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 0x1000394b0
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 0x1000394b0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov rbx, qword [0x1000802f0]
jmp 0x1000394a6
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, edi
je 0x1000394ab
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x100039490
mov rax, rbx
jmp 0x1000394ca
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x1000394c8
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.1000010b0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x10003955c
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 0x1000395d4
cmp word [rbx], r14w
je 0x1000395cf
mov rdx, rbx
mov rcx, r13
call fcn.1000393fc
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.1000394f4
cmp eax, r14d
je 0x1000395e3
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 0x100039591
mov rdi, qword [rsp + 0x68]
mov rax, qword [0x1000802f0]
add esi, 2
mov edx, r14d
jmp 0x1000395f2
mov rdi, qword [rsp + 0x68]
jmp 0x10003967d
mov rax, qword [rax]
inc edx
cmp rax, r14
jne 0x1000395ed
mov ecx, 1
mov rax, rdi
cmp rdi, r14
je 0x10003960e
mov rax, qword [rax]
inc ecx
cmp rax, r14
jne 0x100039604
cmp ecx, edx
jne 0x100039668
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 0x10003963d
mov ecx, eax
jmp 0x10003966d
mov rdx, qword [0x1000802f0]
mov rcx, rdi
cmp rdi, r14
je 0x10003965e
mov rax, qword [rcx + 8]
mov qword [rdx], rax
mov rcx, qword [rcx]
mov rdx, rax
cmp rcx, r14
jne 0x10003964c
mov qword [rdx], r14
mov ebp, 1
jmp 0x10003967d
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10003967d
mov rdi, qword [rdi]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rcx, rdi
cmp rdi, r14
jne 0x100039675
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 0x10003c598
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x10003c633
cmp dword [rcx], 0x6060
jne 0x10003c633
mov rax, qword [0x1000802f0]
cmp qword [rcx + 8], rax
jne 0x10003c5cf
mov rcx, qword [rcx + 0x10]
call qword [rax + 0x2b0]
jmp 0x10003c640
mov rcx, qword [rcx + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x10003c62c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 0x38], 0xffffffffffffffff
cmp qword [rbx + 0x40], 0
je 0x10003c62c
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, qword [rbx + 0x40]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10003c611
mov rcx, qword [rbx + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test rdi, rdi
je 0x10003c61e
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 0x10003c640
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 0x10003e04c
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 0x10003e090
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10003e198
mov ecx, 0x18
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
jne 0x10003e0db
mov rcx, qword [0x100080250]
lea rax, [0x100080250]
cmp rcx, rax
je 0x10003e198
test byte [rcx + 0x1c], 1
je 0x10003e198
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x100079c30]
call fcn.10001c100
jmp 0x10003e198
mov rdi, qword [0x1000802f0]
and qword [rsi], 0
test rdi, rdi
je 0x10003e135
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 0x10003e1b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x70]
mov ecx, eax
call fcn.1000118bc
cmp ebp, 2
je 0x10003e135
mov rdi, qword [rdi]
test rdi, rdi
jne 0x10003e0f3
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplMem
lea rdx, [rsp + 0x70]
mov ecx, 0x709
call fcn.1000118bc
mov ecx, dword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x100080250]
lea rax, [0x100080250]
cmp rcx, rax
je 0x10003e198
test byte [rcx + 0x1c], 1
je 0x10003e198
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080250]
lea r8, [0x100079c30]
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.100020618
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 [0x100080318]
test rax, rax
je 0x10003e1d9
mov byte [rax + 0x60], 0
mov eax, 1
jmp 0x10003e19a