joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100004e8c
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 0x10001a151
mov esi, 0x80070057
test rdx, rdx
je 0x100004f3a
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 0x100004f3a
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x50]
call fcn.10000265c
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 0x100004f94
xor esi, esi
mov rax, qword [rbx + 0x18]
mov rdx, qword [rsi + rax]
test rdx, rdx
jne 0x100004f59
lea rcx, [rdi + rdi*2]
mov r8, r13
mov rdx, rbp
lea rcx, [rax + rcx*8]
call fcn.100004fd0
mov esi, eax
cmp eax, 1
je 0x100004f94
lea rcx, [rsp + 0x50]
call fcn.100002680
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 0x10001334e
mov rax, qword [rbx + 0x18]
mov ecx, r15d
sub ecx, dword [rax + rsi + 8]
cmp ecx, dword [rbx + 0xc]
ja 0x100004f16
cmp ecx, r12d
ja 0x10000517d
inc edi
add rsi, 0x18
cmp edi, dword [rbx + 8]
jb 0x100004f09
jmp 0x100004f94
mov eax, dword [rbx + 8]
mov r8, r13
mov rdx, rbp
cmp eax, dword [rbx + 4]
jae 0x10001a158
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x18]
lea rcx, [rax + rcx*8]
call fcn.100004fd0
mov esi, eax
test eax, eax
js 0x100004f30
inc dword [rbx + 8]
jmp 0x100004f30
mov r12d, ecx
mov r14d, edi
jmp 0x100004f83
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 0x100004f30
xor eax, eax
jmp 0x100004f3c
mov eax, r14d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x18]
lea rcx, [rax + rcx*8]
call fcn.100004fd0
mov esi, eax
jmp 0x100004f30

Function at 0x100005784
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.1000072c8
test eax, eax
jne 0x100005819
lea rdx, [rbx + 8]
xor ecx, ecx
call fcn.100006100
test eax, eax
je 0x1000057c9
lea rcx, [rbx + 8]
mov edx, 1
call fcn.1000090a0
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 0x100005819
mov r8d, dword [rsp + 0x40]
mov edx, 1
mov r9, rbx
mov ecx, edx
call fcn.10000329c
mov rcx, qword [rbx]
test rcx, rcx
jne 0x100018a89
lea rcx, [rbx + 8]
call fcn.100005fa0
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 0x100005825
Function at 0x100005960
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 0x100018a95
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov qword [rbx + 8], rax
cmp rax, rdi
je 0x100018aa5
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 0x100018a9c
cmp rbx, rdi
je 0x100005a08
cmp dword [0x10008022c], edi
jne 0x100012e21
lea rax, [rsp + 0x40]
lea r8, [fcn.100005784]
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 0x100018ab5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100005a08
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call fcn.100005784
nop
jmp 0x100005a08
xor eax, eax
jmp 0x100005a0a
lea rcx, [rbx + 8]
call fcn.100005fa0
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rbx, rdi
jmp 0x1000059c1
mov rcx, qword [rbx]
mov edi, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 8]
call fcn.100005fa0
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplMem
jmp 0x100005a08

Function at 0x100005b50
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 0x100006060
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 0x1000060d0
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 0x1000060e0
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 0x100006d0c
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 [0x100080258]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r13, qword [rsp + 0x4b0]
xor r14d, r14d
mov r12, r9
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
cmp rdx, r14
je 0x100018a0c
lea r9, str.winspool
lea r8, [0x100075830]
lea rcx, [rsp + 0x30]
mov edx, 0x208
call fcn.100006f50
or rcx, 0xffffffffffffffff
xor eax, eax
lea r15d, [rax + 1]
lea rdi, [rsp + 0x30]
mov edx, 0x208
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov eax, ecx
sub edx, ecx
lea rdi, [rsp + rax*2 + 0x30]
mov rcx, rdi
cmp r12, r14
jne 0x100018a13
mov eax, dword [r13]
lea r9, [0x1000758c4]
lea r8, str._s_.2d:
mov dword [rsp + 0x20], eax
call fcn.100006f50
add dword [r13], r15d
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, rdi
mov r12, rax
call fcn.100006060
cmp r12, r14
je 0x100006de2
mov rcx, r12
call sym.spoolsv.exe_PrvImpersonatePrinterClient
jmp 0x100006de2
xor eax, eax
or r12, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
mov rcx, r12
mov r9d, r15d
xor r8d, r8d
repne scasw ax, word [rdi]
mov rdx, rsi
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 0x100006e6e
lea rdx, [rbx + 0x446]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov ecx, r14d
cmp eax, r14d
sete cl
mov dword [rbx + 0x28], ecx
cmp ecx, r14d
je 0x100006e6e
lea rax, [rsp + 0x30]
lea r8, str._s__s
lea rcx, [rbx + 0x446]
mov r9, rsi
mov edx, 0x208
mov qword [rsp + 0x20], rax
call fcn.100006f50
mov dword [rbx + 0x24], r14d
cmp dword [rbx + 0x2c], r14d
je 0x100006f03
cmp word [rbx + 0x444], r14w
jne 0x100006e87
cmp ebp, r14d
jne 0x100006f03
lea r8, str._15_45
lea rcx, [rsp + 0x30]
mov edx, 0x208
call fcn.100005bcc
xor eax, eax
lea rdi, [rsp + 0x30]
mov rcx, r12
mov r9d, r15d
xor r8d, r8d
repne scasw ax, word [rdi]
mov rdx, rsi
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, rsi
mov edx, 0x208
mov qword [rsp + 0x20], rax
call fcn.100006f50
mov dword [rbx + 0x2c], r15d
cmp word [rbx + 0x444], r14w
jne 0x100006e87
cmp ebp, r14d
je 0x100006e87
jmp 0x100018a3b
xor eax, eax
jmp 0x100006ed8
mov r8, r12
call fcn.100002738
mov edx, 0x2c
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
cmp rax, r14
je 0x100006de2
mov word [rax], r14w
jmp 0x100006de2
mov word [rbx + 0x444], r15w
jmp 0x100006e87
Function at 0x10000a05c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x18]
lea rax, [r11 + 0x20]
mov ebx, r8d
mov qword [r11 - 0x10], rax
mov rax, qword [rsp + 0x60]
mov dword [r11 + 0x20], r9d
lea r9, [r11 + 0x18]
xor r8d, r8d
mov dword [rsp + 0x50], ebx
mov qword [r11 - 0x18], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov r11d, eax
test eax, eax
jne 0x10000a0a4
cmp dword [rsp + 0x50], ebx
lea eax, [r11 + 0x57]
cmovne r11d, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x10000aab0
movzx eax, r11w
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
add rsp, 0x30
pop rbx
ret
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
jmp 0x10000a0b2
Function at 0x10000a770
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x100080258]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebp, ebp
mov rsi, rdx
mov rdi, rcx
mov ebx, 0x80070057
mov qword [rdx], rbp
cmp rcx, rbp
je 0x10000a823
cmp word [rcx], bp
je 0x10000a823
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
mov r8d, edx
call fcn.10000a850
mov ebx, dword [rsp + 0x220]
cmp ebx, ebp
jl 0x10000a814
lea r8d, [rbp + 0x2c]
lea rcx, [rsp + 0x4c]
xor edx, edx
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x4c], ebp
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
cmp eax, ebp
je 0x10001a6aa
cmp eax, 0x2af9
jne 0x10001a721
mov ebx, 1
jmp 0x10000a814
cmp dword [rsp + 0x220], ebp
jne 0x10000a823
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1000010b0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call fcn.100046788
cmp eax, ebp
jl 0x10001a70f
mov ecx, 0x804
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
neg rax
sbb ecx, ecx
not ecx
and ecx, 0x8007000e
jl 0x10001a70f
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x30], 2
mov r9d, 0x401
mov edx, dword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
mov r8, rbx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WS2_32.dll_GetNameInfoW]
cmp eax, ebp
jne 0x10001a707
mov qword [rsi], rbx
jmp 0x10001a70f
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov ebx, ebp
jmp 0x10000a814
call fcn.100046760
mov ebx, eax
jmp 0x10000a814

Function at 0x10000a850
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov dword [rcx], 0x54535357
movzx eax, dl
lea rdx, [rcx + 8]
movzx ecx, r8b
shl cx, 8
or cx, ax
call qword [sym.imp.WS2_32.dll_WSAStartup]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
mov rax, rbx
mov dword [rbx + 0x1a0], edx
add rsp, 0x20
pop rbx
ret

Function at 0x10000aa44
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
push rbx
sub rsp, 0x30
mov eax, dword [r9]
mov rcx, qword [rcx + 0x18]
mov rbx, r9
mov dword [rsp + 0x40], eax
lea rax, [r11 + 8]
lea r9, [r11 + 0x18]
mov qword [r11 - 0x10], rax
and qword [r11 - 0x18], 0
xor r8d, r8d
mov dword [rsp + 0x50], 7
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov r11d, eax
test eax, eax
jne 0x10000aa9a
cmp dword [rsp + 0x50], 7
mov ecx, dword [rsp + 0x40]
lea eax, [r11 + 0x57]
cmovne r11d, eax
mov dword [rbx], ecx
movzx eax, r11w
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
add rsp, 0x30
pop rbx
ret
Function at 0x10000c53c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4c0
mov rax, qword [0x100080258]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
call fcn.10000c744
lea rax, [rsp + 0x80]
lea r8, [rsp + 0x64]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x78]
lea rdx, [rsp + 0x2a0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x88]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x6c]
mov rcx, 0xffffffff80000003
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x8c]
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100018ad9
mov ecx, dword [rsp + 0x60]
cmp ecx, 1
jb 0x100018ae8
imul ecx, ecx, 0x858
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x100018ae1
xor ebx, ebx
xor esi, esi
mov rbp, rax
cmp dword [rsp + 0x60], ebx
jbe 0x10000c6ca
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov edx, esi
mov rcx, 0xffffffff80000003
mov dword [rsp + 0x68], 0x104
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x100018af2
lea rdx, str..Default
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x10000c6be
lea rcx, [rsp + 0x90]
mov edx, 0x5f
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x10000c6be
lea rcx, [rsp + 0x90]
mov rdx, rbp
call fcn.100006100
test eax, eax
je 0x10000c6be
add rbp, 0x858
inc ebx
inc esi
cmp esi, dword [rsp + 0x60]
jb 0x10000c625
mov edx, ebx
mov rcx, rdi
call fcn.1000090a0
mov ebp, eax
test ebx, ebx
je 0x10000c6f2
mov rsi, rdi
mov rcx, rsi
call fcn.100005fa0
add rsi, 0x858
sub rbx, 1
jne 0x10000c6dd
and qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
lea ecx, [rdx + 5]
xor r8d, r8d
call sym.spoolsv.exe_PrvRouterBroadcastMessage
mov rcx, rdi
call sym.spoolsv.exe_PrvDllFreeSplMem
mov eax, ebp
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.1000010b0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10000c712
mov eax, 1
jmp 0x10000c712
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10000c6be
Function at 0x10000cebc
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x100080234], 0
mov rbx, rcx
jne 0x100015c68
lea rcx, str.winspool.drv
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x100015c56
mov edx, 0xfe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x100015c56
or edx, 0xffffffff
mov ecx, 1
mov r8d, edx
call rax
lea rdx, str.OpenPrinterW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ClosePrinter
mov rcx, rdi
mov qword [0x100080420], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DocumentPropertiesW
mov rcx, rdi
mov qword [0x100080428], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SpoolerDevQueryPrintW
mov rcx, rdi
mov qword [0x100080440], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SpoolerPrinterEvent
mov rcx, rdi
mov qword [0x100080430], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd4
mov rcx, rdi
mov qword [0x100080438], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd5
mov rcx, rdi
mov qword [0x100080448], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd6
mov rcx, rdi
mov qword [0x100080450], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd7
mov rcx, rdi
mov qword [0x100080458], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xfb
mov rcx, rdi
mov qword [0x100080460], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x100080420]
mov qword [0x100080468], rax
test rcx, rcx
je 0x100015c5d
cmp qword [0x100080428], 0
je 0x100015c5d
cmp qword [0x100080440], 0
je 0x100015c5d
cmp qword [0x100080438], 0
je 0x100015c5d
cmp qword [0x100080430], 0
je 0x100015c5d
cmp qword [0x100080448], 0
je 0x100015c5d
cmp qword [0x100080450], 0
je 0x100015c5d
cmp qword [0x100080458], 0
je 0x100015c5d
test rax, rax
je 0x100015c5d
mov dword [0x100080234], 1
jmp 0x10000d076
mov qword [rbx], rcx
mov rax, qword [0x100080428]
mov qword [rbx + 8], rax
mov rax, qword [0x100080440]
mov qword [rbx + 0x20], rax
mov rcx, qword [0x100080430]
mov eax, 1
mov qword [rbx + 0x10], rcx
mov rcx, qword [0x100080438]
mov qword [rbx + 0x18], rcx
mov rcx, qword [0x100080448]
mov qword [rbx + 0x28], rcx
mov rcx, qword [0x100080450]
mov qword [rbx + 0x30], rcx
mov rcx, qword [0x100080458]
mov qword [rbx + 0x38], rcx
mov rcx, qword [0x100080460]
mov qword [rbx + 0x40], rcx
mov rcx, qword [0x100080468]
mov qword [rbx + 0x48], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x10000d0e1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100015c56
mov rcx, qword [0x100080420]
jmp 0x10000d076
Function at 0x10000d33c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x100080258]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0x40]
xor ebx, ebx
mov dword [rsp + 0x40], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, ebx
je 0x10000d37e
cmp byte [rsp + 0x15a], 3
je 0x100015cd3
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1000010b0
add rsp, 0x170
pop rbx
ret
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftPrintComponents
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100015d6a
mov rcx, qword [rsp + 0x30]
lea rdx, str.Server_Role
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, ebx
je 0x100015d5a
mov rcx, qword [0x100080250]
lea rax, [0x100080250]
cmp rcx, rax
je 0x100015d55
test byte [rcx + 0x1c], 1
je 0x100015d55
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x18]
lea r8, [0x100076228]
call fcn.10001c100
mov ebx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x10000d37e
mov rcx, qword [0x100080250]
lea rax, [0x100080250]
cmp rcx, rax
je 0x100015d98
test byte [rcx + 0x1c], 1
je 0x100015d98
mov rcx, qword [rcx + 0x10]
lea r8, [0x100076228]
mov edx, 0x19
call fcn.10001c100
mov ebx, 1
jmp 0x10000d37e

Function at 0x10000d434
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
lea rdx, [0x1000761c0]
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10000d4b6
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea rdx, str.DnsOnWire
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
cmp eax, ebx
cmove ebx, dword [rsp + 0x40]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x10000e104
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
lea rdx, [0x100076480]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov ebx, 0x3200000
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000e186
and dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x50]
lea rdx, str.MaxRpcSize
xor r8d, r8d
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmove ebx, dword [rsp + 0x40]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x100011be0
Capabilities:
Query or enumerate registry 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, 0x260
mov rax, qword [0x100080258]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12, rcx
xor eax, eax
or r13, 0xffffffffffffffff
and qword [rsp + 0x30], rax
lea rdi, str.PrintersConnections
mov rcx, r13
repne scasw ax, word [rdi]
xor ebx, ebx
not rcx
lea rbp, [rcx + 0x207]
test r12, r12
je 0x100011d06
mov rcx, r13
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
cmp rcx, 0x207
jae 0x100011d06
lea ecx, [rbp + rbp]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rsi, rax
test rax, rax
je 0x100011d06
lea r8, str.PrintersConnections
mov edx, ebp
mov rcx, rax
call fcn.100002738
xor eax, eax
lea rdi, str.PrintersConnections
mov rcx, r13
repne scasw ax, word [rdi]
lea eax, [rbx + 0x5c]
lea rdi, str.PrintersConnections
not rcx
mov word [rsi + rcx*2 - 2], ax
lea rdx, [rsi + rcx*2]
xor eax, eax
mov rcx, r13
repne scasw ax, word [rdi]
not rcx
dec rcx
sub ebp, ecx
mov rcx, r12
lea r8d, [rbp - 1]
call sym.spoolsv.exe_PrvFormatPrinterForRegistryKey
mov ebp, 0x20019
mov ecx, ebp
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rdi, rax
test rax, rax
je 0x100011cfe
lea rax, [rsp + 0x30]
mov r9d, ebp
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x100011d7e
mov rcx, rdi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov rcx, rsi
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1000010b0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea rdx, [0x100077500]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x38], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x100017fc0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
nop
jmp 0x100011cf5
mov rbx, qword [0x1000802f0]
jmp 0x100017fe3
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x100011dba
mov rbx, qword [rbx]
test rbx, rbx
je 0x100011dba
jmp 0x100017fc9