joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012520
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rax, [r11 + 0x18]
mov rsi, rcx
mov qword [r11 + 0x18], rbx
xor r8d, r8d
mov qword [r11 - 0x18], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionPorts
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140012590
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 2
lea r9d, [rbx + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov word [rsp + 0x48], bx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400125a0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400132a4
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 qword [r11 - 0x10], rax
mov ebx, r8d
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov dword [r11 + 0x20], r9d
lea r9, [r11 + 0x18]
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x1400132e9
cmp dword [rsp + 0x50], ebx
lea eax, [rcx + 0x57]
cmovne ecx, eax
mov rdx, qword [rsp + 0x68]
test rdx, rdx
jne 0x1400132ff
test ecx, ecx
jg 0x140013307
mov eax, ecx
add rsp, 0x30
pop rbx
ret
mov eax, dword [rsp + 0x58]
mov dword [rdx], eax
jmp 0x1400132f3
movzx ecx, cx
or ecx, 0x80070000
jmp 0x1400132f7
Function at 0x1400152b4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, qword [0x1400aee58]
xor r12d, r12d
mov r15, r8
mov rbp, rdx
cmp byte [rdi + 0x60], r12b
je 0x1400153ed
mov esi, 0x80070057
test rdx, rdx
je 0x1400153d6
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r12w
jne 0x1400152f9
mov eax, dword [rdi + 0x10]
cmp rcx, rax
ja 0x1400153d6
lea rcx, [rdi + 0x20]
call fcn.140001930
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov r13d, eax
mov r14d, r12d
mov eax, r12d
cmp dword [rdi + 8], eax
jbe 0x1400153a1
mov rdx, qword [rdi + 0x18]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x70], eax
mov eax, r12d
mov dword [rsp + 0x88], r14d
lea rsi, [rax + rax*2]
lea rcx, [rdx + rsi*8]
mov rdx, qword [rcx]
test rdx, rdx
je 0x14002acaf
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14002ac98
mov rdx, qword [rdi + 0x18]
mov eax, r13d
lea rcx, [rdx + rsi*8]
sub eax, dword [rcx + 8]
cmp eax, dword [rdi + 0xc]
ja 0x14002acaf
cmp eax, dword [rsp + 0x70]
mov r14d, r12d
cmovbe r14d, dword [rsp + 0x88]
inc r12d
cmp eax, dword [rsp + 0x20]
cmovbe eax, dword [rsp + 0x20]
cmp r12d, dword [rdi + 8]
jb 0x140015330
mov eax, dword [rdi + 8]
mov r8, qword [rdi + 0x18]
cmp eax, dword [rdi + 4]
jae 0x14002acca
lea rcx, [rax + rax*2]
mov rdx, rbp
lea rcx, [r8 + rcx*8]
mov r8, r15
call fcn.1400153f8
mov esi, eax
test eax, eax
js 0x1400153cd
inc dword [rdi + 8]
lea rcx, [rdi + 0x20]
call fcn.14000195c
mov eax, esi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x1400153d8
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov ecx, eax
mov rax, qword [rdi + 0x18]
mov dword [rax + rsi*8 + 8], ecx
xor esi, esi
jmp 0x1400153cd
mov r8, r15
mov rdx, rbp
call fcn.1400153f8
mov esi, eax
cmp eax, 1
jne 0x1400153cd
jmp 0x1400153a1
mov eax, r14d
lea rdx, [rax + rax*2]
lea rcx, [r8 + rdx*8]
mov r8, r15
mov rdx, rbp
call fcn.1400153f8
mov esi, eax
jmp 0x1400153cd
Function at 0x140015670
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400ad768]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebp, ebp
mov rsi, rdx
mov qword [rdx], rbp
mov rdi, rcx
mov ebx, 0x80070057
test rcx, rcx
je 0x14001571b
cmp word [rcx], bp
je 0x14001571b
lea rcx, [rsp + 0x80]
call fcn.140015748
mov ebx, dword [rsp + 0x220]
test ebx, ebx
js 0x14001570c
xor edx, edx
mov qword [rsp + 0x40], rbp
lea r8d, [rbp + 0x30]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], 4
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
je 0x14002adb8
cmp eax, 0x2af9
jne 0x14002ae25
lea ebx, [rbp + 1]
cmp dword [rsp + 0x220], ebp
jne 0x14001571b
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001aad0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call fcn.14006c0dc
test eax, eax
js 0x14002ae13
mov ecx, 0x804
call fcn.14001a74c
mov rbx, rax
test rax, rax
je 0x14002ae13
mov rcx, qword [rsp + 0x40]
mov r9d, 0x401
mov dword [rsp + 0x30], 2
mov r8, rax
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
mov edx, dword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.WS2_32.dll_GetNameInfoW]
test eax, eax
jne 0x14002ae0b
mov qword [rsi], rbx
jmp 0x14002ae13
mov rcx, rbx
call fcn.14001a78c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov ebx, ebp
jmp 0x14001570c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
test eax, eax
jle 0x14001570c
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14001570c

Function at 0x140015748
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov dword [rcx], 0x54535357
lea rdx, [rcx + 8]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jg 0x14002ae44
mov dword [rbx + 0x1a0], eax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
movzx eax, ax
or eax, 0x80070000
jmp 0x14001576e
Function at 0x140015910
Capabilities:
Get token privileges

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400ad768]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [r11 - 0x38], 0
lea rax, [rbp - 0x18]
and dword [rbp - 0x1c], 0
lea rsi, [rcx + 8]
and dword [rbp - 0x20], 0
lea rdx, str.Printers
and qword [rbp - 0x18], 0
mov rbx, rcx
mov rcx, qword [rsi]
xor r9d, r9d
mov qword [r11 - 0x40], rax
xor r8d, r8d
and qword [r11 - 0x48], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov dword [rbp - 0x20], eax
test eax, eax
jne 0x14002af08
mov rcx, qword [rbp - 0x18]
call fcn.1400185bc
mov dword [rbp - 0x20], eax
test eax, eax
jne 0x14002af08
lea rcx, [rbp - 0x18]
call fcn.14001a430
cmp dword [0x1400aede8], 0
jne 0x1400159c1
mov edx, 0x1d4c0
call fcn.140013d88
test eax, eax
js 0x14002af47
mov rcx, qword [rbx]
call fcn.1400142fc
test eax, eax
jne 0x140015a8b
mov rdx, rsi
xor ecx, ecx
call fcn.140015d28
test eax, eax
je 0x140015a3e
mov edx, 1
mov rcx, rsi
call fcn.1400120f0
mov rcx, qword [rbx]
lea rax, [0x1400af054]
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x18], 0x67727473
call fcn.140018478
test eax, eax
js 0x14002af52
lea rdx, str._Classes
lea rcx, [rbp - 0x18]
call fcn.140011ca0
test eax, eax
js 0x14002af52
mov rdi, qword [rbp - 0x10]
mov rcx, rdi
call fcn.1400183b8
mov rdx, rdi
call fcn.140011f88
and qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 3]
call sym.spoolsv.exe_PrvRouterBroadcastMessage
mov rcx, qword [rbx]
lea rax, [rbp - 0x20]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x1c]
lea edx, [r9 + 8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x140015a8b
mov r8d, dword [rbp - 0x1c]
mov edx, 1
mov ecx, edx
mov r9, rbx
call fcn.140016254
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140015acf
mov rcx, rsi
call fcn.1400161f0
mov rcx, qword [0x1400af198]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14001aad0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140015a93
mov rcx, qword [0x1400ad2f8]
lea rdx, [0x1400ad2f8]
cmp rcx, rdx
je 0x14001599d
test byte [rcx + 0x1c], 0x20
je 0x14001599d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400a21b0]
mov edx, 0xb
mov r9d, eax
call fcn.14002efb8
nop
jmp 0x14001599d
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
nop
jmp 0x1400159c1
mov rdi, qword [rbp - 0x10]
jmp 0x140015a36
Function at 0x1400163a4
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [0x1400af190]
xor r14d, r14d
mov r13, r9
mov qword [rax + 8], r14
mov r12, r8
mov ebp, edx
xor esi, esi
mov rbx, qword [r15 + 0x60]
mov rcx, rbx
call fcn.140001930
mov rax, r12
neg rax
mov eax, 0x80070057
sbb edi, edi
not edi
and edi, eax
test r12, r12
je 0x14001642c
and dword [r12], esi
lea rcx, [r15 + 0x38]
test rcx, rcx
je 0x140016495
xor eax, eax
lea edi, [rsi + 1]
add rcx, 8
je 0x14001641e
mov rax, qword [rcx + 0x10]
test rcx, rcx
je 0x14001642c
cmp rax, rcx
jne 0x14002b09c
test edi, edi
je 0x14002b0be
js 0x140016443
mov edi, 0x80004005
test edi, edi
jns 0x14002b0d7
test rsi, rsi
jne 0x14002b18d
test edi, edi
jns 0x14001646d
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x14001646d
test byte [rcx + 0x1c], 0x20
jne 0x14002b1a7
mov rcx, rbx
call fcn.14000195c
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov edi, eax
jmp 0x14001642c
mov edx, ebp
sub edx, dword [rax + 0x24]
js 0x14001642c
test edx, edx
je 0x14002b0b4
mov rax, qword [rax + 0x10]
jmp 0x14001641e
mov rsi, rax
xor edi, edi
jmp 0x14001642c
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.1400697d0
mov r14, qword [rsp + 0x70]
mov edi, eax
jmp 0x14001643b
mov rbp, qword [r14 + 0x30]
mov rcx, r13
mov rdx, rbp
call fcn.140011eb4
mov edi, eax
test eax, eax
js 0x14002b160
and qword [rsp + 0x70], 0
lea r8, [0x1400a1f88]
mov rax, qword [rsi + 0x38]
lea r9, str.SoftwareMicrosoftWindows_NTCurrentVersionWindowsSessionDefaultDevices
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], r8
call fcn.14001334c
mov edi, eax
test eax, eax
jle 0x14002b130
movzx edi, ax
or edi, 0x80070000
test edi, edi
js 0x14002b160
mov rdx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [0x1400af198]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
cmp dword [r14 + 0x24], 0
jne 0x140016443
dec dword [r15 + 0x30]
mov edx, 1
mov rax, qword [r14]
mov rcx, r14
mov dword [r12], edx
mov rax, qword [rax]
call qword [0x14008f7f0]
nop
jmp 0x140016443
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax]
call qword [0x14008f7f0]
nop
jmp 0x14001644c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400a2218]
mov edx, 0xd
mov r9d, edi
call fcn.14002efb8
nop
jmp 0x14001646d
Function at 0x1400168e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
push rbx
sub rsp, 0x30
mov eax, dword [r9]
lea rdx, str.Order
mov rcx, qword [rcx + 0x18]
mov rbx, r9
mov dword [rsp + 0x48], eax
lea r9, [r11 + 0x18]
lea rax, [r11 + 0x10]
mov dword [rsp + 0x50], 7
mov qword [r11 - 0x10], rax
xor r8d, r8d
and qword [r11 - 0x18], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140016942
cmp dword [rsp + 0x50], 7
lea ecx, [rax + 0x57]
cmovne eax, ecx
mov ecx, dword [rsp + 0x48]
mov dword [rbx], ecx
test eax, eax
jg 0x14002b46c
add rsp, 0x30
pop rbx
ret
movzx eax, ax
or eax, 0x80070000
jmp 0x140016948
Function at 0x140018260
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, [0x140091c80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400182e2
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]
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]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400183b8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400ad768]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.140011c68
lea rdx, str.Local_SettingsPrintersPropertyBags
lea rcx, [rsp + 0x58]
call fcn.140011ca0
test eax, eax
js 0x140018442
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x40]
and qword [rsp + 0x40], 0
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x14002c1fe
lea rcx, [rsp + 0x40]
call fcn.14001a430
mov rdx, qword [rsp + 0x60]
call fcn.140011f88
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14001aad0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor edx, edx
lea rcx, str.localspl.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
mov rbx, rax
call fcn.140066bd0
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x14002c2ab
lea rdx, str.SplIsValidUserPropertyBag
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14002c2ab
xor ebx, ebx
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x48]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
mov edx, ebx
mov rcx, qword [rsp + 0x40]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x14002c2ab
lea rcx, [rsp + 0x70]
mov rax, rdi
call qword [0x14008f7f0]
test al, al
jne 0x14002c2a7
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
inc ebx
jmp 0x14002c24a
lea rcx, [rsp + 0x50]
call fcn.140066bd0
nop
jmp 0x140018438
Function at 0x1400187d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ecx, 0x440
xor edi, edi
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x140018856
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov qword [rbx + 8], rax
test rax, rax
je 0x14002c3bf
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
mov r9, rbx
lea edx, [rdi + 0xe]
mov rcx, rax
lea r8d, [rdi + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
test eax, eax
je 0x14002c3b6
test rbx, rbx
je 0x140018844
cmp dword [0x1400aede8], edi
je 0x14002c3d9
mov rcx, rbx
call fcn.140015910
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
jmp 0x140018846
lea rcx, [rbx + 8]
call fcn.1400161f0
mov rcx, qword [0x1400af198]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rbx, rdi
jmp 0x14001882b
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [fcn.140015910]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x14002c40f
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
jmp 0x140018844
mov rcx, qword [rbx]
mov edi, 1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rcx, [rbx + 8]
call fcn.1400161f0
mov rcx, qword [0x1400af198]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop
jmp 0x140018844
Function at 0x140019b00
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.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
lea rdx, str.ClosePrinter
mov rcx, rbx
mov qword [rdi], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
lea rdx, str.DocumentPropertiesW
mov rcx, rbx
mov qword [rdi + 8], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
lea rdx, str.SpoolerDevQueryPrintW
mov rcx, rbx
mov qword [rdi + 0x20], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
lea rdx, str.SpoolerPrinterEvent
mov rcx, rbx
mov qword [rdi + 0x10], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov edx, 0xd4
mov rcx, rbx
mov qword [rdi + 0x18], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov edx, 0xd5
mov rcx, rbx
mov qword [rdi + 0x28], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov edx, 0xd6
mov rcx, rbx
mov qword [rdi + 0x30], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov edx, 0xd7
mov rcx, rbx
mov qword [rdi + 0x38], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov edx, 0xfb
mov rcx, rbx
mov qword [rdi + 0x40], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
xor ecx, ecx
mov qword [rdi + 0x48], rax
cmp qword [rdi], rcx
je 0x140019c0d
cmp qword [rdi + 8], rcx
je 0x140019c0d
cmp qword [rdi + 0x20], rcx
je 0x140019c0d
cmp qword [rdi + 0x18], rcx
je 0x140019c0d
cmp qword [rdi + 0x10], rcx
je 0x140019c0d
cmp qword [rdi + 0x28], rcx
je 0x140019c0d
cmp qword [rdi + 0x30], rcx
je 0x140019c0d
cmp qword [rdi + 0x38], rcx
je 0x140019c0d
test rax, rax
je 0x140019c0d
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x140019c02

Function at 0x140019fac
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 - 0x10], 0
lea r9, [r11 + 8]
and qword [r11 - 0x18], 0
mov rbx, rcx
mov eax, dword [rcx + 0x14]
xor edx, edx
and dword [rcx + 0x10], 0
mov r8, qword [rcx + 8]
and qword [r11 - 0x20], 0
mov rcx, qword [rcx]
and qword [r11 - 0x28], 0
mov dword [rsp + 0x50], eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jle 0x140019ff5
movzx eax, ax
or eax, 0x80070000
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret
Function at 0x14001a8d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400ae240], rbx
je 0x14001a91c
cmp rax, rbx
jne 0x14001a90f
mov ebx, 1
mov esi, ebx
jmp 0x14001a921
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001a8f4
mov ebx, 1
mov eax, dword [0x1400ae248]
cmp eax, ebx
jne 0x14001a937
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14001a99c
mov eax, dword [0x1400ae248]
test eax, eax
jne 0x14001a996
mov dword [0x1400ae248], ebx
lea r15, [0x14008f880]
lea rdi, [0x14008f868]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x14001a988
test eax, eax
jne 0x14001a98c
cmp qword [rdi], 0
je 0x14001a97d
mov rax, qword [rdi]
mov rcx, qword [0x14008f7f0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14001a95e
test eax, eax
je 0x14001a99c
mov eax, 0xff
jmp 0x14001aa78
mov dword [0x1400adc24], ebx
mov eax, dword [0x1400ae248]
cmp eax, ebx
jne 0x14001a9c3
lea rdx, [0x14008f860]
lea rcx, [0x14008f7f8]
call sub.msvcrt.dll__initterm
mov dword [0x1400ae248], 2
test esi, esi
jne 0x14001a9d0
xor eax, eax
xchg qword [0x1400ae240], rax
cmp qword [0x1400ae260], 0
je 0x14001aa04
lea rcx, [0x1400ae260]
call fcn.14001b120
test eax, eax
je 0x14001aa04
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400ae260]
mov r9, qword [0x14008f7f0]
call r9
mov r8, qword [0x1400adc38]
mov rdx, qword [0x1400adc30]
mov ecx, dword [0x1400adc28]
call fcn.140036134
mov dword [0x1400adc20], eax
cmp dword [0x1400adc40], 0
jne 0x14001aa34
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400adc24], 0
jne 0x14001aa49
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400adc20]
jmp 0x14001aa78
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14001b1b4
add rsp, 0x28
jmp 0x14001a8d0

Function at 0x14001b01c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001b068
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b060
cmp dword [rcx + 0x3c], edx
jl 0x14001b060
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001b060
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 0x14001b068
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14001bbf8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400ad768]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov dword [rbp - 0x40], 4
xor edx, edx
mov edi, ecx
lea rcx, [rbp - 0x28]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetPoliciesMicrosoftFeatureManagementOverrides
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001bcd2
mov r9d, edi
lea r8, [0x140092220]
lea edx, [rax + 0x10]
lea rcx, [rbp - 0x28]
call fcn.14001243c
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x3c]
lea rax, [rbp - 0x38]
xor r8d, r8d
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x30]
mov edi, eax
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14001bcb0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
jne 0x14001bcd2
cmp dword [rbp - 0x3c], 4
jne 0x14001bcd2
cmp dword [rbp - 0x40], 4
jne 0x14001bcd2
mov eax, dword [rbp - 0x38]
neg eax
lea eax, [rdi + 1]
sbb ecx, ecx
neg ecx
add ecx, eax
mov dword [rbx], ecx
jmp 0x14001bcd7
and dword [rbx], 0
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14001aad0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret