joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004a2b8
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1400ae768]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
lea rdx, [rbp + 0x27]
mov bl, dil
call qword [sym.imp.RPCRT4.dll_I_RpcBindingIsClientLocal]
nop dword [rax + rax]
test eax, eax
jne 0x14004a3bc
cmp dword [rbp + 0x27], edi
je 0x14004a3bc
lea ebx, [rdi + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
lea r9, [rbp + 0x37]
mov r8d, ebx
mov rcx, rax
lea edx, [rdi + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x14004a3bc
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x3f], edi
mov qword [rsp + 0x50], rax
lea r8d, [rdi + 2]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
mov dl, bl
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rbp + 0x43], 0x500
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14004a3ac
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x2b]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x14004a39c
cmp dword [rbp + 0x2b], edi
cmovne ebx, edi
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140011a20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14004a540
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x1400ae768]
xor rax, rsp
mov qword [rbp + 0x280], rax
xor r12d, r12d
mov r15, r8
cmp qword [0x1400b0340], r12
mov rbx, rcx
jne 0x14004a58e
mov eax, 0x80004005
jmp 0x14004a76e
mov qword [rsp + 0x28], r12
mov byte [rsp + 0x30], r12b
test rbx, rbx
je 0x14004a5f3
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14004a254
mov rcx, rbx
call fcn.14004a2b8
test al, al
je 0x14004a5f3
mov rcx, qword [0x1400ae2f8]
lea rsi, [0x1400ae2f8]
cmp rcx, rsi
je 0x14004a5e9
mov r14d, 2
test byte [rcx + 0x1c], r14b
je 0x14004a5e9
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 8]
lea r8, [0x1400a1f38]
call fcn.14002790c
mov edi, 1
jmp 0x14004a754
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x29c
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], 0x2b0
mov edi, 1
lea rsi, [0x1400ae2f8]
movups xmm0, xmmword [0x1400a1f28]
lea r14d, [rdi + 1]
movdqu xmmword [rsp + 0x44], xmm0
test r15, r15
je 0x14004a642
mov r8, r15
lea rcx, [rbp - 0x18]
mov edx, 0x104
call fcn.14000a660
jmp 0x14004a6a8
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rdx, [rbp - 0x18]
mov ecx, r14d
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
jne 0x14004a6a8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14004a67e
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x1400ae2f8]
cmp rcx, rsi
je 0x14004a6a8
test byte [rcx + 0x1c], dil
je 0x14004a6a8
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400a1f38]
mov edx, 0xb
mov r9d, eax
call fcn.140027938
lea rdx, [rbp + 0x1f0]
mov rcx, rbx
call fcn.14004a050
mov ebx, eax
test eax, eax
js 0x14004a6d4
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1f0]
call fcn.14004a1c4
mov ebx, eax
test eax, eax
jns 0x14004a710
mov rcx, qword [0x1400ae2f8]
cmp rcx, rsi
je 0x14004a6fe
test byte [rcx + 0x1c], r14b
je 0x14004a6fe
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400a1f38]
mov edx, 0xc
mov r9d, ebx
call fcn.140027938
mov word [rsp + 0x68], r14w
mov dword [rsp + 0x6c], r12d
cmp word [rbp - 0x18], r12w
je 0x14004a752
mov rax, qword [0x1400b0340]
lea rcx, [rsp + 0x40]
call qword [0x1400907d0]
mov ebx, eax
test eax, eax
jns 0x14004a752
mov rcx, qword [0x1400ae2f8]
cmp rcx, rsi
je 0x14004a752
test byte [rcx + 0x1c], dil
je 0x14004a752
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400a1f38]
mov edx, 0xd
mov r9d, eax
call fcn.140027938
mov edi, ebx
cmp byte [rsp + 0x30], r12b
je 0x14004a76c
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140011a20
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14004add0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor edx, edx
mov rcx, qword gs:[0x60]
lea r8d, [rdx + 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
xor ecx, ecx
mov rbx, rax
test rax, rax
jne 0x14004ae0d
mov edi, 0xc0000017
jmp 0x14004ae4c
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov rdx, rbx
mov rcx, rdi
call fcn.14004ad40
mov edi, eax
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x14004e180
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
xor ebx, ebx
mov r9d, 0x20019
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400a29f0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14004e214
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.DnsOnWire
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x48], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmove ebx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14004ece4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
lea rdx, str.OpenPrinterW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.ClosePrinter
mov rcx, rbx
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.DocumentPropertiesW
mov rcx, rbx
mov qword [rdi + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.SpoolerDevQueryPrintW
mov rcx, rbx
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.SpoolerPrinterEvent
mov rcx, rbx
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov edx, 0xd4
mov rcx, rbx
mov qword [rdi + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov edx, 0xd5
mov rcx, rbx
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov edx, 0xd6
mov rcx, rbx
mov qword [rdi + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov edx, 0xd7
mov rcx, rbx
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov edx, 0xfb
mov rcx, rbx
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
xor ecx, ecx
mov qword [rdi + 0x48], rax
cmp qword [rdi], rcx
je 0x14004ee24
cmp qword [rdi + 8], rcx
je 0x14004ee24
cmp qword [rdi + 0x20], rcx
je 0x14004ee24
cmp qword [rdi + 0x18], rcx
je 0x14004ee24
cmp qword [rdi + 0x10], rcx
je 0x14004ee24
cmp qword [rdi + 0x28], rcx
je 0x14004ee24
cmp qword [rdi + 0x30], rcx
je 0x14004ee24
cmp qword [rdi + 0x38], rcx
je 0x14004ee24
test rax, rax
je 0x14004ee24
xor eax, eax
jmp 0x14004ee30
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140059670
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x1400ae768]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r15, r9
mov r13, r8
mov r12d, edx
mov rdi, qword [0x1400ae2f8]
lea rax, [0x1400ae2f8]
cmp rdi, rax
je 0x1400596de
test byte [rdi + 0x44], 0x80
je 0x1400596de
mov rcx, qword [rdi + 0x38]
lea r8, [0x1400a2458]
mov edx, 0x1c
call fcn.14002790c
mov rdi, qword [0x1400ae2f8]
or esi, 0xffffffff
mov dword [rsp + 0x40], 0x63726374
xor edx, edx
mov dword [rsp + 0x30], esi
mov r8d, 0x400
lea rcx, [rsp + 0x44]
call sub.msvcrt.dll_memset
xor r11d, r11d
lea r9, [rsp + 0x44]
mov edx, r11d
mov r8d, edx
mov r10d, 8
mov ecx, r8d
mov eax, r8d
shr ecx, 1
mov r8d, ecx
xor r8d, 0xedb88320
and al, 1
cmove r8d, ecx
sub r10, 1
jne 0x140059713
mov dword [r9], r8d
inc edx
add r9, 4
cmp edx, 0x100
jl 0x14005970a
mov rax, r15
mov dword [rbp + 0x344], r11d
neg rax
mov ebx, r11d
mov r14d, r11d
sbb ecx, ecx
not ecx
and ecx, 0x80070057
test r15, r15
cmove ebx, ecx
jmp 0x14005980c
cmp r14d, r12d
jae 0x140059814
test ebx, ebx
js 0x140059809
lea rax, [rsp + 0x30]
mov r9d, 4
mov r8, r13
mov qword [rsp + 0x20], rax
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.140069fc4
mov esi, dword [rsp + 0x30]
xor r11d, r11d
mov ebx, eax
test eax, eax
js 0x140059809
mov r8, qword [r13 + 8]
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], r11w
jne 0x1400597af
lea r9d, [rax*2 + 2]
mov edx, esi
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140069fc4
xor r11d, r11d
mov ebx, eax
test eax, eax
js 0x140059805
mov edx, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
lea r8, [r13 + 0x10]
mov qword [rsp + 0x20], rax
lea r9d, [r11 + 4]
lea rcx, [rsp + 0x40]
call fcn.140069fc4
mov ebx, eax
xor r11d, r11d
mov esi, dword [rsp + 0x30]
inc r14d
test ebx, ebx
jns 0x14005976a
test ebx, ebx
js 0x14005981d
mov dword [r15], esi
jmp 0x140059847
lea rax, [0x1400ae2f8]
cmp rdi, rax
je 0x140059847
test byte [rdi + 0x44], 0x20
je 0x140059847
mov rcx, qword [rdi + 0x38]
lea r8, [0x1400a2458]
mov edx, 0x1d
mov r9d, ebx
call fcn.140027938
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140011a20
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005a284
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400ae768]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
mov r9d, 0x20019
mov word [rsp + 0x40], di
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14005a350
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400a2468]
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14005a350
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [0x1400b0018]
jmp 0x14005a346
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14005a34b
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14005a32a
mov rax, rbx
jmp 0x14005a376
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14005a374
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140011a20
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x14005a86c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r14d, r14d
mov r12, rdx
mov qword [rax + 0x10], r14
mov r13, rcx
mov r15d, r14d
mov edi, r14d
mov rbx, rdx
mov ebp, r14d
test rdx, rdx
je 0x14005a946
cmp word [rbx], r14w
je 0x14005a946
mov rdx, rbx
mov rcx, r13
call fcn.14005a284
mov rsi, rax
test rax, rax
je 0x14005a9e6
lea r14, [rsp + 0x68]
test rdi, rdi
je 0x14005a8f0
mov rcx, rdi
cmp qword [rcx + 8], rsi
je 0x14005a9e6
mov rax, qword [rcx]
mov r14, rcx
mov rcx, rax
test rax, rax
jne 0x14005a8d8
mov ecx, 0x10
call sym.spoolsv.exe_PrvDllAllocSplMem
test rax, rax
je 0x14005a9e6
and qword [rax], r15
mov qword [rax + 8], rsi
mov qword [r14], rax
or rax, 0xffffffffffffffff
xor r14d, r14d
inc rax
cmp word [rbx + rax*2], r14w
jne 0x14005a914
lea ebp, [rbp + rax*2]
add ebp, 2
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r14w
jne 0x14005a929
mov rdi, qword [rsp + 0x68]
lea rbx, [rbx + rax*2]
add rbx, 2
jne 0x14005a8aa
mov rax, qword [0x1400b0018]
add ebp, 2
mov edx, r14d
mov ebx, 1
jmp 0x14005a95f
mov rax, qword [rax]
add edx, ebx
test rax, rax
jne 0x14005a95a
mov ecx, ebx
mov rax, rdi
test rdi, rdi
je 0x14005a978
mov rax, qword [rax]
add ecx, ebx
test rax, rax
jne 0x14005a96e
cmp ecx, edx
jne 0x14005a9d5
mov dword [rsp + 0x28], ebp
lea rdx, str.Order
mov r9d, 7
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14005a9ac
mov ecx, eax
jmp 0x14005a9da
mov rdx, qword [0x1400b0018]
mov rcx, rdi
test rdi, rdi
je 0x14005a9cd
mov rax, qword [rcx + 8]
mov qword [rdx], rax
mov rdx, rax
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14005a9bb
mov qword [rdx], r14
mov r15d, ebx
jmp 0x14005a9e6
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test rdi, rdi
je 0x14005aa0e
mov rcx, qword [0x1400affe8]
mov r8, rdi
mov rbx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rdi, rbx
test rbx, rbx
jne 0x14005a9eb
mov rbx, qword [rsp + 0x60]
mov eax, r15d
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14005e6b4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400ae768]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, qword [rbp + 0x50]
mov rax, rdx
xor r15d, r15d
mov dword [rbp - 0x38], 0x20676572
mov dword [rbp - 0x30], 0x67727473
lea rdx, [0x1400afd34]
mov qword [rbp - 0x28], rdx
mov rsi, r8
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x18], 0x80004005
test rax, rax
jne 0x14005e715
mov ebx, 0x80070057
jmp 0x14005e82a
mov r8, rcx
lea r9, [rbp - 0x38]
mov rcx, rax
mov edx, 6
call fcn.14005da10
mov ebx, eax
test eax, eax
js 0x14005e82a
or rdi, 0xffffffffffffffff
test rsi, rsi
je 0x14005e788
mov rax, rdi
inc rax
cmp word [rsi + rax*2], r15w
jne 0x14005e73f
mov rcx, qword [rbp - 0x20]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.Server
mov r9d, 1
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14005e788
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14005e82a
test r14, r14
je 0x14005e7de
inc rdi
cmp word [r14 + rdi*2], r15w
jne 0x14005e795
mov rcx, qword [rbp - 0x20]
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x140092bb0]
mov r9d, 1
mov qword [rsp + 0x20], r14
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14005e7de
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14005e82a
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x40]
mov r9d, 4
mov dword [rbp - 0x40], 1
mov dword [rsp + 0x28], r9d
lea rdx, str.LocalConnection
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14005e826
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x14005e85b
mov rcx, qword [0x1400ae2f8]
lea rax, [0x1400ae2f8]
cmp rcx, rax
je 0x14005e85b
test byte [rcx + 0x44], 0x20
je 0x14005e85b
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400a24f0]
mov edx, 0x18
mov r9d, ebx
call fcn.140027938
lea rcx, [rbp - 0x38]
call fcn.14000d810
mov rdx, qword [rbp - 0x28]
call fcn.14000d654
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140011a20
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005f9c8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbp, rcx
mov rsi, rdx
mov ecx, 0x208
mov ebx, 1
call sym.spoolsv.exe_PrvDllAllocSplMem
xor r14d, r14d
mov rdi, rax
test rax, rax
je 0x14005fadb
lea rax, [rsp + 0x78]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14005fa4a
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14005fa9e
mov rcx, qword [rsp + 0x78]
mov rdx, rdi
call fcn.14005f9c8
mov ebx, eax
test eax, eax
je 0x14005fa85
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x38], r14
mov r8, rdi
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x70], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14005fa37
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x14005fac1
test eax, eax
je 0x14005faa3
mov ebx, r14d
jmp 0x14005fac1
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
test eax, eax
cmovne ebx, r14d
mov rcx, qword [0x1400affe8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14005faef
mov ecx, 8
mov ebx, r14d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test ebx, ebx
jne 0x14005fb35
mov rax, qword [0x1400ae2f8]
lea rcx, [0x1400ae2f8]
cmp rax, rcx
je 0x14005fb35
test byte [rax + 0x44], 0x20
je 0x14005fb35
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400ae2f8]
lea edx, [rbx + 0x11]
mov r9d, eax
lea r8, [0x140094070]
mov rcx, qword [rcx + 0x38]
call fcn.140027938
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14005fb54
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
mov rdi, r9
mov ebx, 0x57
test rcx, rcx
je 0x14005fbfd
test r9, r9
je 0x14005fbfd
and dword [r9], 0
lea rax, [r11 + 0x10]
and qword [r11 + 0x10], 0
lea rdx, str.LanMan_Print_ServicesServers
mov r9d, 0x20019
mov qword [r11 - 0x18], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14005fbfd
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.AddPrinterDrivers
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov dword [rsp + 0x50], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x14005fc2e
mov rcx, qword [0x1400ae2f8]
lea rax, [0x1400ae2f8]
cmp rcx, rax
je 0x14005fc2e
test byte [rcx + 0x44], 0x20
je 0x14005fc2e
mov rcx, qword [rcx + 0x38]
lea r8, [0x140094070]
mov edx, 0x2f
mov r9d, ebx
call fcn.140027938
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14005fce0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400ae768]
xor rax, rsp
mov qword [rbp - 8], rax
xor edi, edi
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x10], edi
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
lea r8d, [rdi + 0x20]
mov dword [rsp + 0x38], edi
mov dl, 2
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x20], edi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
jne 0x14005fd75
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14005fd71
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14005fdc6
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
jne 0x14005fdae
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14005fdaa
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14005fdb6
cmp dword [rbp - 0x20], edi
mov ebx, edi
sete bl
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140011a20
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14005ffb0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
push rbx
sub rsp, 0x50
mov ebx, 0x57
test rcx, rcx
je 0x140060056
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x18]
and qword [r11 + 0x18], 0
lea rdx, str.LanMan_Print_ServicesServers
mov qword [r11 - 0x20], rax
xor r9d, r9d
and qword [r11 - 0x28], 0
xor r8d, r8d
mov dword [rsp + 0x28], 2
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140060056
mov rcx, qword [rsp + 0x70]
lea r9d, [rax + 4]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AddPrinterDrivers
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x140060087
mov rcx, qword [0x1400ae2f8]
lea rax, [0x1400ae2f8]
cmp rcx, rax
je 0x140060087
test byte [rcx + 0x44], 0x20
je 0x140060087
mov rcx, qword [rcx + 0x38]
lea r8, [0x140094070]
mov edx, 0x30
mov r9d, ebx
call fcn.140027938
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x140060ed0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400b0010]
xor ebx, ebx
cmp ecx, 0xffffffff
jne 0x140060ee7
mov eax, ebx
jmp 0x140060ef3
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
nop dword [rax + rax]
test eax, eax
jne 0x140060f15
cmp dword [rsp + 0x30], 4
je 0x140060f15
lea ebx, [rax + 1]
mov eax, ebx
add rsp, 0x20
pop rbx
ret