joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000ce60
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x10007f234], 0
mov rbx, rcx
jne 0x100015bc8
lea rcx, str.winspool.drv
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x100015bb6
mov edx, 0xfe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x100015bb6
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 [0x10007f420], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DocumentPropertiesW
mov rcx, rdi
mov qword [0x10007f428], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SpoolerDevQueryPrintW
mov rcx, rdi
mov qword [0x10007f440], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SpoolerPrinterEvent
mov rcx, rdi
mov qword [0x10007f430], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd4
mov rcx, rdi
mov qword [0x10007f438], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd5
mov rcx, rdi
mov qword [0x10007f448], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd6
mov rcx, rdi
mov qword [0x10007f450], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd7
mov rcx, rdi
mov qword [0x10007f458], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xfb
mov rcx, rdi
mov qword [0x10007f460], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x10007f420]
mov qword [0x10007f468], rax
test rcx, rcx
je 0x100015bbd
cmp qword [0x10007f428], 0
je 0x100015bbd
cmp qword [0x10007f440], 0
je 0x100015bbd
cmp qword [0x10007f438], 0
je 0x100015bbd
cmp qword [0x10007f430], 0
je 0x100015bbd
cmp qword [0x10007f448], 0
je 0x100015bbd
cmp qword [0x10007f450], 0
je 0x100015bbd
cmp qword [0x10007f458], 0
je 0x100015bbd
test rax, rax
je 0x100015bbd
mov dword [0x10007f234], 1
jmp 0x10000d01a
mov qword [rbx], rcx
mov rax, qword [0x10007f428]
mov qword [rbx + 8], rax
mov rax, qword [0x10007f440]
mov qword [rbx + 0x20], rax
mov rcx, qword [0x10007f430]
mov eax, 1
mov qword [rbx + 0x10], rcx
mov rcx, qword [0x10007f438]
mov qword [rbx + 0x18], rcx
mov rcx, qword [0x10007f448]
mov qword [rbx + 0x28], rcx
mov rcx, qword [0x10007f450]
mov qword [rbx + 0x30], rcx
mov rcx, qword [0x10007f458]
mov qword [rbx + 0x38], rcx
mov rcx, qword [0x10007f460]
mov qword [rbx + 0x40], rcx
mov rcx, qword [0x10007f468]
mov qword [rbx + 0x48], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x10000d085
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100015bb6
mov rcx, qword [0x10007f420]
jmp 0x10000d01a
Function at 0x10000d2cc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x10007f258]
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 0x10000d30e
cmp byte [rsp + 0x15a], 3
je 0x100015c33
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 0x100015cca
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 0x100015cba
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x100015cb5
test byte [rcx + 0x1c], 1
je 0x100015cb5
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x18]
lea r8, [0x100076218]
call fcn.10001c090
mov ebx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x10000d30e
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x100015cf8
test byte [rcx + 0x1c], 1
je 0x100015cf8
mov rcx, qword [rcx + 0x10]
lea r8, [0x100076218]
mov edx, 0x19
call fcn.10001c090
mov ebx, 1
jmp 0x10000d30e

Function at 0x10000d3c4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
lea rdx, [0x1000761b0]
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 0x10000d446
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 0x10000e094
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
lea rdx, [0x100076470]
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 0x10000e116
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 0x1000105f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10001063b
cmp rcx, 0xffffffffffffffff
je 0x10001063b
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100010639
cmp dword [rcx + 0x3c], edx
jl 0x100010639
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100010639
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10001063b
mov rax, rdx
add rsp, 0x18
ret
Function at 0x100011b6c
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 [0x10007f258]
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 0x100011c92
mov rcx, r13
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
cmp rcx, 0x207
jae 0x100011c92
lea ecx, [rbp + rbp]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rsi, rax
test rax, rax
je 0x100011c92
lea r8, str.PrintersConnections
mov edx, ebp
mov rcx, rax
call fcn.100002758
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 0x100011c8a
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 0x100011d0a
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, [0x1000774f0]
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 0x100017f4d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
nop
jmp 0x100011c81
mov rbx, qword [0x10007f2f0]
jmp 0x100017f70
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x100011d46
mov rbx, qword [rbx]
test rbx, rbx
je 0x100011d46
jmp 0x100017f56
Function at 0x100012a8c
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rdx, qword [rcx + 0x60]
xor edi, edi
xor esi, esi
mov qword [rax + 8], rdi
mov qword [rax + 0x18], rsi
mov rax, r8
neg rax
mov rbp, rcx
lea rcx, [rsp + 0x40]
sbb ebx, ebx
mov r14, r9
mov r13, r8
not ebx
call fcn.10000267c
and ebx, 0x80070057
js 0x100012afc
and dword [r13], esi
lea rcx, [rbp + 0x38]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x98]
call fcn.1000033bc
mov rdi, qword [rsp + 0x90]
mov ebx, eax
test ebx, ebx
jne 0x100019ab5
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call fcn.100012c08
mov rsi, qword [rsp + 0xa0]
mov ebx, eax
jmp 0x100012b20
test ebx, ebx
js 0x100012bcb
mov r12, qword [rsi + 0x30]
mov rcx, r14
mov rdx, r12
call fcn.1000027cc
mov ebx, eax
test eax, eax
js 0x100012bad
and qword [rsp + 0x90], 0
mov rax, qword [rdi + 0x38]
and qword [rsp + 0x30], 0
lea r8, [0x100077534]
mov qword [rsp + 0x28], rax
lea r9, str.SoftwareMicrosoftWindows_NTCurrentVersionWindowsSessionDefaultDevices
lea rcx, [rsp + 0x90]
mov rdx, r12
mov qword [rsp + 0x20], r8
call fcn.100005420
mov ecx, eax
call fcn.100001230
mov ebx, eax
test eax, eax
js 0x100012bad
mov rdx, qword [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
mov rcx, qword [rsp + 0x90]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp dword [rsi + 0x24], 0
jne 0x100012bcb
mov dword [r13], 1
dec dword [rbp + 0x30]
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
test rdi, rdi
je 0x100012bdd
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test ebx, ebx
js 0x100019ac5
lea rcx, [rsp + 0x40]
call fcn.1000026a0
mov eax, ebx
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
js 0x100012bcb
mov ebx, 0x80004005
jmp 0x100012b20
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x100012be5
test byte [rcx + 0x1c], 1
je 0x100012be5
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007a040]
mov edx, 0xd
mov r9d, ebx
call fcn.10001c0b4
nop
jmp 0x100012be5

Function at 0x10001afb0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x18]
mov dword [rsp + 0x28], r9d
mov r9d, r8d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
add rsp, 0x38
ret
Function at 0x10001aff0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x50
lea rax, [r11 + 0x20]
xor edi, edi
mov r9d, 0xf003f
xor r8d, r8d
mov rsi, rdx
mov rbp, rcx
mov qword [r11 - 0x48], rax
mov qword [r11 + 0x20], rdi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, edi
jne 0x10001b0c4
xor ebp, ebp
mov rcx, qword [rsp + 0x88]
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x80], ebp
call fcn.100008540
mov ebx, eax
cmp eax, ebp
jne 0x10001b0bd
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x80]
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
mov ebx, eax
cmp eax, ebp
jne 0x10001b0ad
mov rcx, qword [rsp + 0x88]
mov rdx, rdi
call fcn.10001aff0
movzx ebx, ax
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
cmp ebx, ebp
je 0x10001b031
mov rbp, qword [rsp + 0x70]
xor edi, edi
mov rcx, qword [rsp + 0x88]
cmp rcx, rdi
je 0x10001b0d7
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp ebx, 0x103
cmove ebx, edi
cmp ebx, edi
jne 0x10001b0f8
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
mov ebx, eax
movzx eax, bx
or eax, 0x80070000
cmp ebx, edi
cmovle eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x10001b118
Capabilities:
Query or enumerate registry key

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

Function at 0x10001b394
Capabilities:
Generate random numbers via winapi

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

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

Function at 0x10001b46c
Capabilities:
Encode data using xor

Disassembly:
mov r11, rcx
test r9d, r9d
je 0x10001b499
mov r10d, r9d
movzx r9d, byte [r8]
mov eax, edx
mov ecx, edx
xor r9, rax
shr ecx, 8
inc r8
movzx eax, r9b
mov edx, dword [r11 + rax*4 + 4]
xor edx, ecx
sub r10, 1
jne 0x10001b477
mov rax, qword [rsp + 0x28]
mov dword [rax], edx
xor eax, eax
ret

Function at 0x10001bd7c
Capabilities:
Query or enumerate registry value

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

Function at 0x10001c6b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
mov dword [rax + 0x10], 4
lea rax, [rax + 0x20]
mov dword [rax - 0x18], ebx
mov dword [rax - 8], ebx
mov qword [rax], rbx
lea rdx, str.SYSTEMCurrentControlSetControlPrint
mov r9d, 0x20019
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]
mov edi, eax
cmp eax, ebx
jne 0x10001c727
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.DisableRpcTcp
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x68]
cmp rcx, rbx
je 0x10001c737
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ecx, dword [rsp + 0x50]
cmp edi, ebx
cmovne ecx, ebx
cmp ecx, 1
setne bl
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x1000206e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
cmp rcx, rdi
je 0x100020740
cmp word [rcx], di
je 0x100020740
call sym.spoolsv.exe_PrvAllocSplStr
mov rbx, rax
cmp rax, rdi
je 0x100020740
lea rax, [rsp + 0x40]
lea r8, [0x1000206b8]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, rdi
je 0x100020738
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100020740
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x10002077c
Capabilities:
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
xor edi, edi
mov esi, r9d
mov rbx, r8
mov rbp, rdx
mov r12, rcx
cmp r8, rdi
je 0x1000207bd
cmp qword [r8 + 8], rdi
je 0x1000207bd
cmp dword [r8], 3
je 0x1000207dd
lea ecx, [rdi + 0x7c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x57
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov ecx, r9d
call fcn.100001930
cmp eax, edi
jne 0x1000207f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000207c2
mov ecx, dword [0x10007f1fc]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov r9, qword [rbx + 8]
mov r8d, dword [rbx]
mov rdx, rbp
mov rcx, r12
call sym.spoolsv.exe_PrvSetPortW
mov ecx, dword [0x10007f1fc]
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call fcn.1000018e8
cmp ebx, edi
jne 0x100020875
mov rax, qword [0x10007f250]
lea rcx, [0x10007f250]
cmp rax, rcx
je 0x10002086d
test byte [rax + 0x1c], 1
je 0x10002086d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10007f250]
lea r8, [0x1000794e0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x4a
call fcn.10001c0b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
jmp 0x1000207c2
Function at 0x100033450
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x50
mov ebx, edx
mov edi, ecx
test edx, edx
jne 0x10003346f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100033471
mov eax, edx
and dword [rsp + 0x3c], 0
and dword [rsp + 0x4c], 0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [0x1000777a8]
xor r9d, r9d
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x48], 4
call fcn.100013010
mov rcx, qword [0x10007f250]
lea rbp, [0x10007f250]
cmp rcx, rbp
je 0x1000334e1
test byte [rcx + 0x1c], 4
je 0x1000334e1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079938]
mov edx, 0x1f
mov r9d, edi
mov dword [rsp + 0x20], ebx
call fcn.1000349f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x10003355d
mov rcx, qword [0x10007f250]
cmp rcx, rbp
je 0x100033554
test byte [rcx + 0x1c], 4
je 0x100033534
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10007f250]
lea r8, [0x100079938]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x20
call fcn.10001c0b4
mov rcx, qword [0x10007f250]
cmp rcx, rbp
je 0x100033554
test byte [rcx + 0x1c], 4
je 0x100033554
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079938]
mov edx, 0x21
call fcn.10001c090
xor eax, eax
mov byte [0], al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x100034a94
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
mov ecx, 0x208
mov rsi, rdx
mov ebx, 1
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
xor eax, eax
cmp rdi, rax
je 0x100034bbc
lea rax, [rsp + 0x78]
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
je 0x100034afc
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x100034bb2
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x70], 0x104
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x100034b80
xor esi, esi
mov rcx, qword [rsp + 0x78]
mov rdx, rdi
call fcn.100034a94
mov ebx, eax
cmp eax, esi
je 0x100034b7b
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x70]
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x70], 0x104
mov qword [rsp + 0x20], rsi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
cmp eax, esi
je 0x100034b33
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
xor ecx, ecx
cmp ebx, ecx
je 0x100034bb2
cmp eax, ecx
je 0x100034b99
mov ebx, ecx
jmp 0x100034bb2
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
xor ecx, ecx
cmp eax, ecx
cmovne ebx, ecx
mov rcx, rdi
call sym.spoolsv.exe_PrvDllFreeSplMem
jmp 0x100034bc9
mov ecx, 8
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp ebx, eax
jne 0x100034c0d
mov rax, qword [0x10007f250]
lea rcx, [0x10007f250]
cmp rax, rcx
je 0x100034c0d
test byte [rax + 0x1c], 1
je 0x100034c0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10007f250]
lea r8, [0x100079a88]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xe
call fcn.10001c0b4
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x100034c24
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x10007f200]
xor ebx, ebx
cmp ecx, 0xffffffff
jne 0x100034c3c
mov rax, rbx
jmp 0x100034c42
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
cmp eax, ebx
jne 0x100034c60
cmp dword [rsp + 0x30], 4
je 0x100034c60
mov ebx, 1
mov eax, ebx
add rsp, 0x20
pop rbx
ret