joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000010b0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100080218]
jne 0x1000137d4
rol rcx, 0x10
test cx, 0xffff
jne 0x1000137d0
ret 0
ror rcx, 0x10
jmp 0x10002f198
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100080580]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100080678]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10002f21d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100080580]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x10002f23f
mov rax, qword [rsp + 0x88]
mov qword [0x100080678], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100080618], rax
mov rax, qword [0x100080678]
mov qword [0x1000804f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100080600], rax
mov dword [0x1000804e0], 0xc0000409
mov dword [0x1000804e4], 1
mov rax, qword [0x100080218]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100080220]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100079800]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x100001174
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1000801ec], 0
je 0x10000a478
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call sym.spoolsv.exe_PrvRevertToPrinterSelf
xor edx, edx
lea r8, str.RouterPreInitEvent
lea ecx, [rdx + 2]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x100015a53
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x10000a4c5
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
je 0x100015ab4
mov rcx, qword [0x100081a90]
or edx, 0xffffffff
call fcn.10000a4e0
nop
jmp 0x10000118b
mov rax, qword [0x100080210]
lea rcx, [0x100080210]
cmp rax, rcx
je 0x100015a8f
test byte [rax + 0x1c], 1
je 0x100015a8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080210]
lea edx, [rbx + 0x16]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000762b8]
mov r9d, eax
call fcn.10001c06c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100077888]
xor r8d, r8d
mov edx, eax
call fcn.100033384
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x69
mov edx, eax
call fcn.1000334c0
nop
jmp 0x10000a4c5
Function at 0x1000015c0
Capabilities:
Get thread local storage value
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x100080218]
xor rax, rsp
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1000801c0]
xor esi, esi
mov edi, eax
cmp ecx, 0xffffffff
je 0x100015e24
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdx, [rsp + 0x64]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
cmp eax, esi
jne 0x100002c52
cmp dword [rsp + 0x64], 4
jne 0x100015e3f
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 8
lea r9, [rsp + 0x70]
lea r8d, [rdx - 7]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp eax, esi
je 0x100015e61
lea rax, [rsp + 0x68]
xor r9d, r9d
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
lea r8d, [r9 + 2]
mov dl, 1
mov dword [rsp + 0x28], esi
mov byte [rsp + 0x78], sil
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x79], sil
mov byte [rsp + 0x7a], sil
mov byte [rsp + 0x7b], sil
mov byte [rsp + 0x7c], sil
mov byte [rsp + 0x7d], 5
mov qword [rsp + 0x68], rsi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, esi
je 0x100015e55
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
lea r8, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, esi
je 0x100015e49
cmp dword [rsp + 0x60], esi
mov ebx, esi
setne bl
jmp 0x1000016d2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x1000016df
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000016ec
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, esi
jl 0x100015e75
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1000010b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp eax, 0x6bd
jne 0x100015e2c
mov ebx, esi
jmp 0x1000016ec
mov rax, rsi
jmp 0x100001603
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
jmp 0x1000016ec
mov ebx, 1
jmp 0x1000016ec
call fcn.100001130
mov ebx, eax
jmp 0x1000016d2
call fcn.100001130
mov ebx, eax
jmp 0x1000016df
call fcn.100001130
mov ebx, eax
cmp eax, 0x800703f0
cmove ebx, esi
jmp 0x1000016ec
mov rcx, qword [0x100080210]
lea rax, [0x100080210]
cmp rcx, rax
je 0x1000016fc
test byte [rcx + 0x1c], 1
je 0x1000016fc
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079b28]
mov edx, 0xf
mov r9d, ebx
call fcn.10001c06c
nop
jmp 0x1000016fc
Function at 0x1000017e0
Capabilities:
Delete file
Move file

Disassembly:
test rcx, rcx
je 0x10000184e
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1000804b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.100001858
lea rcx, [rbx + 0x18]
cmp qword [rcx], 0
jne 0x100016806
lea rcx, [0x1000804b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
jne 0x100016811
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x10001681d
mov rcx, qword [rbx + 0x48]
call sym.spoolsv.exe_PrvDllFreeSplStr
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplMem
add rsp, 0x20
pop rbx
ret
call fcn.1000127b0
nop
jmp 0x100001810
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x10000182b
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100016837
mov rcx, qword [rbx + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, qword [rbx + 0x40]
call sym.spoolsv.exe_PrvDllFreeSplMem
and qword [rbx + 0x40], 0
jmp 0x100001838
Function at 0x100002310
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov rdi, r8
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rsi
mov qword [r8], rsi
cmp rdx, rsi
je 0x10000394c
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x90]
call fcn.100010a90
cmp eax, esi
je 0x100018ff6
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x88]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryInfoKeyW]
mov ebx, eax
cmp eax, esi
jne 0x1000023b0
mov ecx, dword [rsp + 0x88]
cmp ecx, 0x48
jae 0x100019003
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp ebx, esi
jne 0x1000190a6
mov eax, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
lea ecx, [rsi + 6]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000023cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000023be
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rdi], rax
cmp rax, rsi
jne 0x10001901d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000023b0
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x88]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x90]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov ebp, 2
mov ebx, eax
cmp eax, esi
jne 0x100019091
mov edx, dword [rsp + 0x88]
mov rcx, qword [rdi]
call fcn.100011524
mov ecx, eax
call fcn.10001acd8
mov ebx, eax
cmp eax, esi
je 0x10001909c
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
cmp eax, esi
cmove ebx, ebp
cmp ebx, esi
je 0x10001909c
mov rcx, qword [rdi]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov qword [rdi], rsi
cmp ebx, ebp
cmove ebx, esi
jmp 0x1000023b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x100080210]
lea rcx, [0x100080210]
cmp rax, rcx
je 0x100003955
test byte [rax + 0x1c], 1
je 0x100003955
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080210]
lea r8, [0x100079e50]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xb
call fcn.10001c06c
jmp 0x100003955
Function at 0x100003160
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0xa0
mov rax, qword [0x100080218]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rdi, rdx
mov rsi, rcx
call fcn.1000031d0
mov ebx, eax
cmp eax, 1
je 0x10000ca98
mov eax, ebx
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1000010b0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
call sym.spoolsv.exe_PrvRevertToPrinterSelf
lea rdx, [rsp + 0x30]
xor r12d, r12d
mov rcx, rdi
mov qword [rsp + 0x30], r12
mov rbp, rax
call fcn.10000a654
cmp eax, r12d
je 0x10001a37f
lea rcx, [rsp + 0x48]
call fcn.100002914
lea rcx, [rsp + 0x70]
call fcn.100002914
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x48]
mov rdx, rdi
mov rcx, rsi
mov byte [rsp + 0x20], r12b
call fcn.100004a00
mov ebx, eax
cmp eax, r12d
jne 0x10001a417
lea r8, [rsp + 0x48]
mov rdx, rdi
mov rcx, rsi
call fcn.10000cb3c
mov ebx, eax
jmp 0x10000cb0b
lea rcx, [rsp + 0x70]
call fcn.1000029ec
lea rcx, [rsp + 0x48]
call fcn.1000029ec
mov rcx, rbp
call sym.spoolsv.exe_PrvImpersonatePrinterClient
cmp eax, r12d
jne 0x10000319d
jmp 0x10001a461
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x10001a40d
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], r12
call fcn.100040b08
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
cmp ebx, r12d
jne 0x10001a40d
lea ecx, [r12 + 0x40]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
cmp rax, r12
je 0x10001a3cc
mov rdx, rdi
mov rcx, rax
call fcn.100004bc8
mov rbx, rax
jmp 0x10001a3cf
mov rbx, r12
cmp rbx, r12
je 0x10001a3d9
mov eax, dword [rbx + 0x3c]
jmp 0x10001a3de
mov eax, 0x8007000e
cmp eax, r12d
jl 0x10001a3fb
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
mov rcx, qword [rcx + 0x48]
call fcn.100005058
cmp eax, r12d
cmovge rbx, r12
cmp rbx, r12
je 0x10001a40d
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov ebx, 0x80004005
jmp 0x10000cb1f
cmp ax, 0x2af9
jne 0x10000cb0b
lea rcx, [rsp + 0x38]
call fcn.1000026b4
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1000451c8
mov ebx, eax
cmp eax, r12d
jne 0x10001a451
mov rdx, qword [rsp + 0x40]
mov r8, rdi
mov rcx, rsi
call fcn.100045a18
mov ebx, eax
lea rcx, [rsp + 0x38]
call fcn.1000026d0
nop
jmp 0x10000cb0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000043f0
Capabilities:
Hide thread from debugger

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
test rcx, rcx
je 0x100015f01
call fcn.10000444c
test eax, eax
je 0x10000442f
mov r9d, 8
lea r8, [rsp + 0x30]
mov rcx, 0xfffffffffffffffe
lea edx, [r9 - 3]
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
test eax, eax
js 0x100015f13
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, 1
add rsp, 0x28
ret
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10000443f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x100080210]
lea rcx, [0x100080210]
cmp rax, rcx
je 0x100015f0c
test byte [rax + 0x1c], 1
je 0x100015f0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080210]
lea r8, [0x100079b28]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x11
call fcn.10001c06c
jmp 0x100015f0c

Function at 0x10000444c
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rax, [rsp + 0x50]
lea r9d, [rdi + 3]
lea r8, [rsp + 0x48]
lea edx, [rdi + 7]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x100005615
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x30
pop rdi
ret
xor edi, edi
cmp dword [rsp + 0x48], 2
sete dil
jmp 0x100004492
Function at 0x1000044b4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor esi, esi
cmp dword [0x1000801b4], esi
jne 0x10000d394
mov eax, dword [0x1000801b4]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
lea rax, [rsp + 0x60]
lea r9d, [rsi + 1]
lea rdx, str.SystemSetup
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1000044ca
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea rdx, str.SystemSetupInProgress
mov qword [rsp + 0x28], rax
lea rax, [0x1000801b4]
xor r9d, r9d
xor r8d, r8d
mov dword [0x1000801b4], esi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov ecx, dword [0x1000801b4]
cmp eax, esi
mov edi, eax
cmovne ecx, esi
mov dword [0x1000801b4], ecx
cmp ecx, esi
jne 0x100015d4f
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
nop
jmp 0x1000044ca
mov ebx, esi
mov dword [rsp + 0x58], esi
call fcn.10001bd40
cmp eax, esi
je 0x100015d63
mov edi, esi
lea ebx, [rsi + 1]
cmp edi, esi
jne 0x10000d418
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea rdx, str.MiniSetupInProgress
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, esi
jne 0x10000d418
cmp dword [rsp + 0x58], esi
jne 0x10000d418
mov eax, dword [0x1000801b4]
cmp ebx, esi
cmovne eax, esi
mov dword [0x1000801b4], eax
jmp 0x10000d418
Function at 0x100004e4c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp byte [rcx + 0x60], 0
mov r13, r8
mov rbp, rdx
mov rbx, rcx
je 0x100019fff
mov esi, 0x80070057
test rdx, rdx
je 0x100004efa
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
mov eax, dword [rbx + 0x10]
not rcx
dec rcx
cmp rcx, rax
ja 0x100004efa
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x50]
call fcn.10000266c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
xor r14d, r14d
xor r12d, r12d
mov r15d, eax
cmp dword [rbx + 8], edi
jbe 0x100004f54
xor esi, esi
mov rax, qword [rbx + 0x18]
mov rdx, qword [rsi + rax]
test rdx, rdx
jne 0x100004f19
lea rcx, [rdi + rdi*2]
mov r8, r13
mov rdx, rbp
lea rcx, [rax + rcx*8]
call fcn.100004f90
mov esi, eax
cmp eax, 1
je 0x100004f54
lea rcx, [rsp + 0x50]
call fcn.100002690
mov eax, esi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x10001316e
mov rax, qword [rbx + 0x18]
mov ecx, r15d
sub ecx, dword [rax + rsi + 8]
cmp ecx, dword [rbx + 0xc]
ja 0x100004ed6
cmp ecx, r12d
ja 0x100005135
inc edi
add rsi, 0x18
cmp edi, dword [rbx + 8]
jb 0x100004ec9
jmp 0x100004f54
mov eax, dword [rbx + 8]
mov r8, r13
mov rdx, rbp
cmp eax, dword [rbx + 4]
jae 0x10001a006
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x18]
lea rcx, [rax + rcx*8]
call fcn.100004f90
mov esi, eax
test eax, eax
js 0x100004ef0
inc dword [rbx + 8]
jmp 0x100004ef0
mov r12d, ecx
mov r14d, edi
jmp 0x100004f43
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rbx + 0x18]
lea rdx, [rdi + rdi*2]
mov dword [rcx + rdx*8 + 8], eax
xor esi, esi
jmp 0x100004ef0
xor eax, eax
jmp 0x100004efc
mov eax, r14d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x18]
lea rcx, [rax + rcx*8]
call fcn.100004f90
mov esi, eax
jmp 0x100004ef0

Function at 0x100005748
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
and dword [rsp + 0x40], 0
and dword [rsp + 0x48], 0
mov rbx, rcx
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
mov rcx, qword [rbx]
call fcn.10000723c
test eax, eax
jne 0x1000057dd
lea rdx, [rbx + 8]
xor ecx, ecx
call fcn.100006080
test eax, eax
je 0x10000578d
lea rcx, [rbx + 8]
mov edx, 1
call fcn.100009000
and qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
lea ecx, [rdx + 3]
xor r8d, r8d
call sym.spoolsv.exe_PrvRouterBroadcastMessage
mov rcx, qword [rbx]
mov r9d, 4
lea r11, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea edx, [r9 + 8]
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1000057dd
mov r8d, dword [rsp + 0x40]
mov edx, 1
mov r9, rbx
mov ecx, edx
call fcn.10000328c
mov rcx, qword [rbx]
test rcx, rcx
jne 0x100018980
lea rcx, [rbx + 8]
call fcn.100005f20
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1000057e9
Function at 0x100005924
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ecx, 0x860
xor edi, edi
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
cmp rax, rdi
je 0x10001898c
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov qword [rbx + 8], rax
cmp rax, rdi
je 0x10001899c
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0xe
mov r9, rbx
lea r8d, [rdx - 0xd]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp eax, edi
je 0x100018993
cmp rbx, rdi
je 0x1000059cc
cmp dword [0x1000801ec], edi
jne 0x100012c45
lea rax, [rsp + 0x40]
lea r8, [fcn.100005748]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, rdi
je 0x1000189ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000059cc
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call fcn.100005748
nop
jmp 0x1000059cc
xor eax, eax
jmp 0x1000059ce
lea rcx, [rbx + 8]
call fcn.100005f20
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rbx, rdi
jmp 0x100005985
mov rcx, qword [rbx]
mov edi, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 8]
call fcn.100005f20
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplMem
jmp 0x1000059cc

Function at 0x100005b18
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 - 0x10], 0
mov eax, dword [rcx + 0x14]
and qword [r11 - 0x18], 0
and dword [rcx + 0x10], 0
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]
xor edx, edx
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 0x100005fe0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rax, [r11 + 0x18]
mov rsi, rcx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionPorts
lea r9d, [rbx + 2]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x18], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov edi, eax
cmp eax, ebx
jne 0x100006050
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea r9d, [rbx + 1]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
mov word [rsp + 0x48], bx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
cmp rcx, rbx
je 0x100006060
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
cmp edi, ebx
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x100006af0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x100080218]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, qword [rsp + 0x4b0]
xor r14d, r14d
mov r12, r9
mov r13d, r8d
mov rbp, rdx
mov rbx, rcx
cmp rdx, r14
je 0x1000188c6
lea r9, str.winspool
lea r8, [0x1000758a0]
lea rcx, [rsp + 0x30]
mov edx, 0x208
call fcn.100006d10
xor eax, eax
or rcx, 0xffffffffffffffff
lea r15d, [rax + 1]
lea rdi, [rsp + 0x30]
mov edx, 0x208
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
sub edx, ecx
mov eax, ecx
cmp r12, r14
je 0x1000188cd
jmp 0x100018902
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, r12
mov rdi, rax
call fcn.100005fe0
cmp rdi, r14
je 0x100006ba4
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
jmp 0x100006ba4
xor eax, eax
or rsi, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
mov rcx, rsi
mov r9d, r15d
xor r8d, r8d
repne scasw ax, word [rdi]
mov rdx, rbp
not rcx
sub rcx, r15
lea eax, [rcx + rcx + 2]
mov rcx, qword [rbx + 0x10]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
cmp dword [rbx + 0x24], r14d
je 0x100006c30
lea rdx, [rbx + 0x446]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov ecx, r14d
cmp eax, r14d
sete cl
mov dword [rbx + 0x28], ecx
cmp ecx, r14d
je 0x100006c30
lea rax, [rsp + 0x30]
lea r8, str._s__s
lea rcx, [rbx + 0x446]
mov r9, rbp
mov edx, 0x208
mov qword [rsp + 0x20], rax
call fcn.100006d10
mov dword [rbx + 0x24], r14d
cmp dword [rbx + 0x2c], r14d
je 0x100006cc5
cmp word [rbx + 0x444], r14w
jne 0x100006c49
cmp r13d, r14d
jne 0x100006cc5
lea r8, str._15_45
lea rcx, [rsp + 0x30]
mov edx, 0x208
call fcn.100005b84
xor eax, eax
lea rdi, [rsp + 0x30]
mov rcx, rsi
mov r9d, r15d
xor r8d, r8d
repne scasw ax, word [rdi]
mov rdx, rbp
not rcx
sub rcx, r15
lea eax, [rcx + rcx + 2]
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov eax, r15d
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1000010b0
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [rsp + 0x30]
lea rcx, [rbx + 0x34]
lea r8, str._s__s
mov r9, rbp
mov edx, 0x208
mov qword [rsp + 0x20], rax
call fcn.100006d10
mov dword [rbx + 0x2c], r15d
cmp word [rbx + 0x444], r14w
jne 0x100006c49
cmp r13d, r14d
je 0x100006c49
jmp 0x100018932
xor eax, eax
jmp 0x100006c9a
lea r12, [rsp + rax*2 + 0x30]
mov eax, dword [rsi]
lea r9, [0x100079e60]
lea r8, str._s_.2d:
mov rcx, r12
mov dword [rsp + 0x20], eax
call fcn.100006d10
add dword [rsi], r15d
cmp dword [rsi], 0x63
jbe 0x100006b85
mov dword [rsi], r14d
jmp 0x100006b85
lea rdi, [rsp + rax*2 + 0x30]
mov r8, r12
mov rcx, rdi
call fcn.100002748
mov edx, 0x2c
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
cmp rax, r14
je 0x100006ba4
mov word [rax], r14w
jmp 0x100006ba4
mov word [rbx + 0x444], r15w
jmp 0x100006c49