joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100009ec0
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 0x100009f08
cmp dword [rsp + 0x50], ebx
lea eax, [r11 + 0x57]
cmovne r11d, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x10000a90c
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 0x100009f16
Function at 0x10000a5c0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x100083218]
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 0x10000a673
cmp word [rcx], bp
je 0x10000a673
lea edx, [rbp + 2]
lea rcx, [rsp + 0x80]
mov r8d, edx
call fcn.10000a6a0
mov ebx, dword [rsp + 0x220]
cmp ebx, ebp
jl 0x10000a664
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 0x10001a996
cmp eax, 0x2af9
jne 0x10001aa0d
mov ebx, 1
jmp 0x10000a664
cmp dword [rsp + 0x220], ebp
jne 0x10000a673
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1000010c0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call fcn.10004927c
cmp eax, ebp
jl 0x10001a9fb
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 0x10001a9fb
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 0x10001a9f3
mov qword [rsi], rbx
jmp 0x10001a9fb
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 0x10000a664
call fcn.100049254
mov ebx, eax
jmp 0x10000a664

Function at 0x10000a6a0
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 0x10000a8a0
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 0x10000a8f6
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 0x10000c308
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 [0x100083218]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
call fcn.10000c510
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 0x100018d5c
mov ecx, dword [rsp + 0x60]
cmp ecx, 1
jb 0x100018d6b
imul ecx, ecx, 0x858
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x100018d64
xor ebx, ebx
xor esi, esi
mov rbp, rax
cmp dword [rsp + 0x60], ebx
jbe 0x10000c496
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 0x100018d75
lea rdx, str..Default
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x10000c48a
lea rcx, [rsp + 0x90]
mov edx, 0x5f
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x10000c48a
lea rcx, [rsp + 0x90]
mov rdx, rbp
call fcn.100006080
test eax, eax
je 0x10000c48a
add rbp, 0x858
inc ebx
inc esi
cmp esi, dword [rsp + 0x60]
jb 0x10000c3f1
mov edx, ebx
mov rcx, rdi
call fcn.100008f6c
mov ebp, eax
test ebx, ebx
je 0x10000c4be
mov rsi, rdi
mov rcx, rsi
call fcn.100005f20
add rsi, 0x858
sub rbx, 1
jne 0x10000c4a9
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.1000010c0
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 0x10000c4de
mov eax, 1
jmp 0x10000c4de
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10000c48a
Function at 0x10000cc70
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1000831f4], 0
mov rbx, rcx
jne 0x100015bed
lea rcx, str.winspool.drv
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x100015bdb
mov edx, 0xfe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x100015bdb
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 [0x1000833e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DocumentPropertiesW
mov rcx, rdi
mov qword [0x1000833e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SpoolerDevQueryPrintW
mov rcx, rdi
mov qword [0x100083400], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SpoolerPrinterEvent
mov rcx, rdi
mov qword [0x1000833f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd4
mov rcx, rdi
mov qword [0x1000833f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd5
mov rcx, rdi
mov qword [0x100083408], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd6
mov rcx, rdi
mov qword [0x100083410], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd7
mov rcx, rdi
mov qword [0x100083418], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xfb
mov rcx, rdi
mov qword [0x100083420], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1000833e0]
mov qword [0x100083428], rax
test rcx, rcx
je 0x100015be2
cmp qword [0x1000833e8], 0
je 0x100015be2
cmp qword [0x100083400], 0
je 0x100015be2
cmp qword [0x1000833f8], 0
je 0x100015be2
cmp qword [0x1000833f0], 0
je 0x100015be2
cmp qword [0x100083408], 0
je 0x100015be2
cmp qword [0x100083410], 0
je 0x100015be2
cmp qword [0x100083418], 0
je 0x100015be2
test rax, rax
je 0x100015be2
mov dword [0x1000831f4], 1
jmp 0x10000ce2a
mov qword [rbx], rcx
mov rax, qword [0x1000833e8]
mov qword [rbx + 8], rax
mov rax, qword [0x100083400]
mov qword [rbx + 0x20], rax
mov rcx, qword [0x1000833f0]
mov eax, 1
mov qword [rbx + 0x10], rcx
mov rcx, qword [0x1000833f8]
mov qword [rbx + 0x18], rcx
mov rcx, qword [0x100083408]
mov qword [rbx + 0x28], rcx
mov rcx, qword [0x100083410]
mov qword [rbx + 0x30], rcx
mov rcx, qword [0x100083418]
mov qword [rbx + 0x38], rcx
mov rcx, qword [0x100083420]
mov qword [rbx + 0x40], rcx
mov rcx, qword [0x100083428]
mov qword [rbx + 0x48], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x10000ce95
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100015bdb
mov rcx, qword [0x1000833e0]
jmp 0x10000ce2a
Function at 0x10000d0e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x100083218]
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 0x10000d122
cmp byte [rsp + 0x15a], 3
je 0x100015c58
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1000010c0
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 0x100015cef
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 0x100015cdf
mov rcx, qword [0x100083210]
lea rax, [0x100083210]
cmp rcx, rax
je 0x100015cda
test byte [rcx + 0x1c], 1
je 0x100015cda
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x18]
lea r8, [0x100079408]
call fcn.10001c468
mov ebx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x10000d122
mov rcx, qword [0x100083210]
lea rax, [0x100083210]
cmp rcx, rax
je 0x100015d1d
test byte [rcx + 0x1c], 1
je 0x100015d1d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079408]
mov edx, 0x19
call fcn.10001c468
mov ebx, 1
jmp 0x10000d122

Function at 0x10000d1d8
Capabilities:
Query or enumerate registry value

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

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
lea rdx, [0x100079660]
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 0x10000def2
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 0x10001196c
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 [0x100083218]
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 0x100011a92
mov rcx, r13
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
cmp rcx, 0x207
jae 0x100011a92
lea ecx, [rbp + rbp]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rsi, rax
test rax, rax
je 0x100011a92
lea r8, str.PrintersConnections
mov edx, ebp
mov rcx, rax
call fcn.100002728
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 0x100011a8a
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 0x100011b0a
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.1000010c0
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, [0x10007a6e0]
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 0x100018206
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
nop
jmp 0x100011a81
mov rbx, qword [0x1000832b0]
jmp 0x100018229
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x100011b46
mov rbx, qword [rbx]
test rbx, rbx
je 0x100011b46
jmp 0x10001820f
Function at 0x1000128a0
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.100002640
and ebx, 0x80070057
js 0x100012910
and dword [r13], esi
lea rcx, [rbp + 0x38]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x98]
call fcn.1000032d4
mov rdi, qword [rsp + 0x90]
mov ebx, eax
test ebx, ebx
jne 0x100019d78
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call fcn.100012a20
mov rsi, qword [rsp + 0xa0]
mov ebx, eax
jmp 0x100012934
test ebx, ebx
js 0x1000129df
mov r12, qword [rsi + 0x30]
mov rcx, r14
mov rdx, r12
call fcn.10000279c
mov ebx, eax
test eax, eax
js 0x1000129c1
and qword [rsp + 0x90], 0
mov rax, qword [rdi + 0x38]
and qword [rsp + 0x30], 0
lea r8, [0x10007a724]
mov qword [rsp + 0x28], rax
lea r9, str.SoftwareMicrosoftWindows_NTCurrentVersionWindowsSessionDefaultDevices
lea rcx, [rsp + 0x90]
mov rdx, r12
mov qword [rsp + 0x20], r8
call fcn.100005328
mov ecx, eax
call fcn.10000123c
mov ebx, eax
test eax, eax
js 0x1000129c1
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 0x1000129df
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 0x1000129f1
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test ebx, ebx
js 0x100019d88
lea rcx, [rsp + 0x40]
call fcn.100002664
mov eax, ebx
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
js 0x1000129df
mov ebx, 0x80004005
jmp 0x100012934
mov rcx, qword [0x100083210]
lea rax, [0x100083210]
cmp rcx, rax
je 0x1000129f9
test byte [rcx + 0x1c], 1
je 0x1000129f9
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007d5c0]
mov edx, 0xd
mov r9d, ebx
call fcn.10001c48c
nop
jmp 0x1000129f9

Function at 0x10001b384
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 0x10001b3c4
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 0x10001b498
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.100008460
mov ebx, eax
cmp eax, ebp
jne 0x10001b491
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 0x10001b481
mov rcx, qword [rsp + 0x88]
mov rdx, rdi
call fcn.10001b3c4
movzx ebx, ax
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
cmp ebx, ebp
je 0x10001b405
mov rbp, qword [rsp + 0x70]
xor edi, edi
mov rcx, qword [rsp + 0x88]
cmp rcx, rdi
je 0x10001b4ab
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp ebx, 0x103
cmove ebx, edi
cmp ebx, edi
jne 0x10001b4cc
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 0x10001b4ec
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 0x10001b770
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov r9d, r8d
test rdx, rdx
je 0x10001b7a6
test r8d, r8d
je 0x10001b7a6
mov eax, dword [rcx + 8]
test eax, eax
js 0x10001b7ab
mov rcx, qword [rcx]
mov r8, rdx
mov edx, r9d
call qword [sym.imp.CRYPTSP.dll_CryptGenRandom]
test eax, eax
je 0x10001b79f
xor eax, eax
jmp 0x10001b7ab
call fcn.10001aff8
jmp 0x10001b7ab
mov eax, 0x80070057
add rsp, 0x28
ret
Function at 0x10001b7b8
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 0x10001b7ff
shr eax, 1
xor eax, 0xedb88320
jmp 0x10001b801
shr eax, 1
sub rcx, 1
jne 0x10001b7f2
inc edx
mov dword [rdi], eax
add rdi, 4
cmp edx, 0x100
jl 0x10001b7eb
and dword [rbx + 0x404], ecx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x10001b850
Capabilities:
Encode data using xor

Disassembly:
mov r11, rcx
test r9d, r9d
je 0x10001b87d
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 0x10001b85b
mov rax, qword [rsp + 0x28]
mov dword [rax], edx
xor eax, eax
ret

Function at 0x10001c160
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 0x10001c1f4
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 0x10001c1e9
cmp dword [rsp + 0x50], 4
jne 0x10001c1e9
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 0x10001c6bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x100083218]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov rbx, rdx
mov edi, ecx
xor esi, esi
lea rdx, str.SystemCurrentControlSetPoliciesMicrosoftFeatureManagementOverrides
mov r9d, 0x20019
mov word [rsp + 0x48], si
mov qword [r11 - 0x2e], rax
mov qword [r11 - 0x26], rax
mov qword [r11 - 0x1e], rax
mov dword [rsp + 0x62], eax
mov word [rsp + 0x66], ax
lea rax, [r11 - 0x38]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x58], rax
mov dword [rsp + 0x30], 4
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10001c7b5
lea r8, [0x10007aaf8]
lea edx, [rsi + 0x10]
lea rcx, [rsp + 0x48]
mov r9d, edi
call fcn.100006c64
mov rcx, qword [rsp + 0x40]
lea r11, [rsp + 0x30]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x10001c78e
cmp rcx, rsi
je 0x10001c78e
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp edi, esi
jne 0x10001c7b5
cmp dword [rsp + 0x38], 4
jne 0x10001c7b5
cmp dword [rsp + 0x30], 4
jne 0x10001c7b5
mov eax, dword [rsp + 0x34]
neg eax
mov eax, 1
sbb ecx, ecx
neg ecx
add ecx, eax
mov dword [rbx], ecx
jmp 0x10001c7b9
mov dword [rbx], esi
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1000010c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret