joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004aa60
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14004646c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004aaea
cmp byte [rbp - 0x21], r15b
je 0x14004aae5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004ab20
call fcn.140048b68
test eax, eax
jne 0x14004ab0c
cmp byte [rbp - 0x21], r15b
je 0x14004ab04
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004ab20
cmp byte [rbp - 0x21], r15b
je 0x14004ab1d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140045a4c
test eax, eax
jne 0x14004abc0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14004646c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004ab5f
cmp byte [rbp - 0x21], r15b
je 0x14004ab94
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004ab94
call fcn.140048b68
test eax, eax
jne 0x14004ab80
cmp byte [rbp - 0x21], r15b
je 0x14004ab79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004ab94
cmp byte [rbp - 0x21], r15b
je 0x14004ab91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140045a4c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004abc0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004abc3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004abd1
mov rcx, rdi
call fcn.1400459fc
cmp byte [rbp + 0x3f], r15b
je 0x14004abe0
mov rcx, qword [rbp + 0x27]
call fcn.1400459fc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14074c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14074c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14074c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14074c06f
add dl, dl
jne 0x14074c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14074c0f6
xor eax, eax
add dl, dl
jne 0x14074c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14074c1ad
add dl, dl
jne 0x14074c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14074c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14074c07e
mov eax, 1
add dl, dl
jne 0x14074c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14074c0fb
sub eax, ebx
mov ebx, 1
jne 0x14074c14c
mov ecx, 1
add dl, dl
jne 0x14074c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14074c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14074c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14074c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14074c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14074c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14074c15d
cmp eax, 0x7d00
jae 0x14074c19b
cmp eax, 0x500
jb 0x14074c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14074c07e
cmp eax, 0x7f
ja 0x14074c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14074c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14074c1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14074c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001b70
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, dword [rcx]
mov r10, r8
xor r8d, r8d
mov rbx, rdx
mov r11, rcx
lea eax, [r9*4]
test eax, eax
je 0x140001bad
movzx eax, byte [r8 + rdx]
mov byte [r8 + r10], al
inc r8d
mov r9d, dword [rcx]
lea eax, [r9*4]
cmp r8d, eax
jb 0x140001b91
mov eax, dword [rcx + 4]
lea r9d, [r9*4]
inc eax
shl eax, 4
cmp r9d, eax
jae 0x140001db8
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x48], rsi
lea esi, [r9 + 2]
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x10], r12
lea r12, str.cw
mov qword [rsp + 8], r14
mov qword [rsp], r15
nop
mov edi, dword [r11]
lea eax, [r9 - 4]
movzx r8d, byte [rax + r10]
xor edx, edx
lea eax, [r9 - 3]
movzx ebx, r8b
movzx ebp, byte [rax + r10]
lea eax, [r9 - 2]
movzx r14d, byte [rax + r10]
lea eax, [r9 - 1]
movzx r15d, byte [rax + r10]
mov eax, r9d
shr eax, 2
div edi
test edx, edx
jne 0x140001cba
movzx eax, bpl
xor edx, edx
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, r14b
movzx ebx, byte [rcx + r12]
mov ecx, eax
and rcx, 0xfffffffffffffff0
and eax, 0xf
add rcx, rax
movzx eax, r15b
movzx ebp, byte [rcx + r12]
mov ecx, eax
and rcx, 0xfffffffffffffff0
and eax, 0xf
add rcx, rax
movzx eax, r8b
lea r8d, [rdi*4]
movzx r14d, byte [rcx + r12]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
mov eax, r9d
div r8d
movzx r15d, byte [rcx + r12]
mov cl, 1
sub eax, 1
je 0x140001cb6
mov r8d, eax
nop dword [rax + rax]
movzx eax, cl
add cl, cl
shr al, 7
movzx eax, al
imul edx, eax, 0x1b
xor cl, dl
sub r8, 1
jne 0x140001ca0
xor bl, cl
jmp 0x140001d18
cmp edi, 6
jbe 0x140001d18
cmp edx, 4
jne 0x140001d18
movzx eax, r8b
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, bpl
movzx ebx, byte [rcx + r12]
mov ecx, eax
and rcx, 0xfffffffffffffff0
and eax, 0xf
add rcx, rax
movzx eax, r14b
movzx ebp, byte [rcx + r12]
mov ecx, eax
and rcx, 0xfffffffffffffff0
and eax, 0xf
add rcx, rax
movzx eax, r15b
movzx r14d, byte [rcx + r12]
mov ecx, eax
and rcx, 0xfffffffffffffff0
and eax, 0xf
add rcx, rax
movzx r15d, byte [rcx + r12]
mov ecx, r9d
lea eax, [rdi*4]
sub ecx, eax
movzx ecx, byte [rcx + r10]
xor cl, bl
mov byte [r9 + r10], cl
mov ecx, r9d
mov eax, dword [r11]
shl eax, 2
sub ecx, eax
lea eax, [rsi - 1]
inc ecx
movzx edx, byte [rcx + r10]
mov ecx, r9d
xor dl, bpl
mov byte [rax + r10], dl
mov eax, dword [r11]
shl eax, 2
sub ecx, eax
add ecx, 2
movzx ecx, byte [rcx + r10]
xor cl, r14b
mov byte [rsi + r10], cl
mov ecx, r9d
mov eax, dword [r11]
add r9d, 4
shl eax, 2
sub ecx, eax
lea eax, [rsi + 1]
add ecx, 3
add esi, 4
movzx edx, byte [rcx + r10]
xor dl, r15b
mov byte [rax + r10], dl
mov eax, dword [r11 + 4]
inc eax
shl eax, 4
cmp r9d, eax
jb 0x140001bf0
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x140002890
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14001c048]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14000291d
mov qword [rsp + 0x178], rsi
xor esi, esi
nop word [rax + rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140002905
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400028e0
jmp 0x14000290a
mov esi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rsi, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140002e30
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret
Function at 0x140007cf0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007b1c
Function at 0x1000010b0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100080258]
jne 0x1000139a4
rol rcx, 0x10
test cx, 0xffff
jne 0x1000139a0
ret 0
ror rcx, 0x10
jmp 0x10002f198
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1000805d0]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x1000806c8]
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, [0x1000805d0]
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 [0x1000806c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100080668], rax
mov rax, qword [0x1000806c8]
mov qword [0x100080540], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100080650], rax
mov dword [0x100080530], 0xc0000409
mov dword [0x100080534], 1
mov rax, qword [0x100080258]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100080260]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100079770]
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 0x100001180
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x10008022c], 0
je 0x10000a584
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 0x100015bdd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x10000a5d1
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
je 0x100015c3e
mov rcx, qword [0x100081ae0]
or edx, 0xffffffff
call fcn.10000a5ec
nop
jmp 0x100001197
mov rax, qword [0x100080250]
lea rcx, [0x100080250]
cmp rax, rcx
je 0x100015c19
test byte [rax + 0x1c], 1
je 0x100015c19
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080250]
lea edx, [rbx + 0x16]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100076228]
mov r9d, eax
call fcn.10001c124
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1000777f8]
xor r8d, r8d
mov edx, eax
call fcn.1000333b4
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.1000334f0
nop
jmp 0x10000a5d1
Function at 0x1000015d0
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 [0x100080258]
xor rax, rsp
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x100080200]
xor esi, esi
mov edi, eax
cmp ecx, 0xffffffff
je 0x100015fae
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 0x100002c62
cmp dword [rsp + 0x64], 4
jne 0x100015fc9
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 0x100015feb
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 0x100015fdf
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 0x100015fd3
cmp dword [rsp + 0x60], esi
mov ebx, esi
setne bl
jmp 0x1000016e2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x1000016ef
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000016fc
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, esi
jl 0x100015fff
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 0x100015fb6
mov ebx, esi
jmp 0x1000016fc
mov rax, rsi
jmp 0x100001613
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
jmp 0x1000016fc
mov ebx, 1
jmp 0x1000016fc
call fcn.10000113c
mov ebx, eax
jmp 0x1000016e2
call fcn.10000113c
mov ebx, eax
jmp 0x1000016ef
call fcn.10000113c
mov ebx, eax
cmp eax, 0x800703f0
cmove ebx, esi
jmp 0x1000016fc
mov rcx, qword [0x100080250]
lea rax, [0x100080250]
cmp rcx, rax
je 0x10000170c
test byte [rcx + 0x1c], 1
je 0x10000170c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079a98]
mov edx, 0xf
mov r9d, ebx
call fcn.10001c124
nop
jmp 0x10000170c
Function at 0x1000017e8
Capabilities:
Delete file
Move file

Disassembly:
test rcx, rcx
je 0x100001856
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x100080500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.100001860
lea rcx, [rbx + 0x18]
cmp qword [rcx], 0
jne 0x100016990
lea rcx, [0x100080500]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
jne 0x10001699b
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x1000169a7
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.100012970
nop
jmp 0x100001818
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x100001833
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000169c1
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 0x100001840
Function at 0x100002300
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 0x100003968
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x90]
call fcn.100010c94
cmp eax, esi
je 0x100019160
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 0x1000023a0
mov ecx, dword [rsp + 0x88]
cmp ecx, 0x48
jae 0x10001916d
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp ebx, esi
jne 0x100019210
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 0x1000023bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000023ae
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rdi], rax
cmp rax, rsi
jne 0x100019187
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000023a0
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 0x1000191fb
mov edx, dword [rsp + 0x88]
mov rcx, qword [rdi]
call fcn.100011714
mov ecx, eax
call fcn.100033914
mov ebx, eax
cmp eax, esi
je 0x100019206
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 0x100019206
mov rcx, qword [rdi]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov qword [rdi], rsi
cmp ebx, ebp
cmove ebx, esi
jmp 0x1000023a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x100080250]
lea rcx, [0x100080250]
cmp rax, rcx
je 0x100003971
test byte [rax + 0x1c], 1
je 0x100003971
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080250]
lea r8, [0x100079db0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xb
call fcn.10001c124
jmp 0x100003971
Function at 0x100003170
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 [0x100080258]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rdi, rdx
mov rsi, rcx
call fcn.1000031e0
mov ebx, eax
cmp eax, 1
je 0x10000cc3c
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.10000a770
cmp eax, r12d
je 0x10001a42b
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.100004b6c
mov ebx, eax
cmp eax, r12d
jne 0x10001a4c3
lea r8, [rsp + 0x48]
mov rdx, rdi
mov rcx, rsi
call fcn.10000cce0
mov ebx, eax
jmp 0x10000ccaf
lea rcx, [rsp + 0x70]
call fcn.1000029fc
lea rcx, [rsp + 0x48]
call fcn.1000029fc
mov rcx, rbp
call sym.spoolsv.exe_PrvImpersonatePrinterClient
cmp eax, r12d
jne 0x1000031ad
jmp 0x10001a50d
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x10001a4b9
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], r12
call fcn.100040b58
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
cmp ebx, r12d
jne 0x10001a4b9
lea ecx, [r12 + 0x40]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
cmp rax, r12
je 0x10001a478
mov rdx, rdi
mov rcx, rax
call fcn.100004cf0
mov rbx, rax
jmp 0x10001a47b
mov rbx, r12
cmp rbx, r12
je 0x10001a485
mov eax, dword [rbx + 0x3c]
jmp 0x10001a48a
mov eax, 0x8007000e
cmp eax, r12d
jl 0x10001a4a7
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
mov rcx, qword [rcx + 0x48]
call fcn.1000050a0
cmp eax, r12d
cmovge rbx, r12
cmp rbx, r12
je 0x10001a4b9
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov ebx, 0x80004005
jmp 0x10000ccc3
cmp ax, 0x2af9
jne 0x10000ccaf
lea rcx, [rsp + 0x38]
call fcn.1000026a4
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.100045208
mov ebx, eax
cmp eax, r12d
jne 0x10001a4fd
mov rdx, qword [rsp + 0x40]
mov r8, rdi
mov rcx, rsi
call fcn.100045a50
mov ebx, eax
lea rcx, [rsp + 0x38]
call fcn.1000026c0
nop
jmp 0x10000ccaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100004418
Capabilities:
Hide thread from debugger

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
test rcx, rcx
je 0x10001608b
call fcn.100004480
test eax, eax
je 0x100004457
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 0x10001609d
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 0x100004467
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x100080250]
lea rcx, [0x100080250]
cmp rax, rcx
je 0x100016096
test byte [rax + 0x1c], 1
je 0x100016096
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080250]
lea r8, [0x100079a98]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x11
call fcn.10001c124
jmp 0x100016096

Function at 0x100004480
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 0x100005655
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 0x1000044c6
Function at 0x1000044e8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor esi, esi
cmp dword [0x1000801f4], esi
jne 0x10000d540
mov eax, dword [0x1000801f4]
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 0x1000044fe
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea rdx, str.SystemSetupInProgress
mov qword [rsp + 0x28], rax
lea rax, [0x1000801f4]
xor r9d, r9d
xor r8d, r8d
mov dword [0x1000801f4], 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 [0x1000801f4]
cmp eax, esi
mov edi, eax
cmovne ecx, esi
mov dword [0x1000801f4], ecx
cmp ecx, esi
jne 0x100015ed9
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
nop
jmp 0x1000044fe
mov ebx, esi
mov dword [rsp + 0x58], esi
call fcn.10001bdec
cmp eax, esi
je 0x100015eed
mov edi, esi
lea ebx, [rsi + 1]
cmp edi, esi
jne 0x10000d5c4
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 0x10000d5c4
cmp dword [rsp + 0x58], esi
jne 0x10000d5c4
mov eax, dword [0x1000801f4]
cmp ebx, esi
cmovne eax, esi
mov dword [0x1000801f4], eax
jmp 0x10000d5c4