joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010cc0
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400b57a8]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x1c], 0
lea rsi, [rcx + 8]
and qword [rbp - 0x18], 0
lea rdx, str.Printers
mov rbx, rcx
mov rcx, qword [rsi]
call fcn.1400111a0
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x18]
mov rcx, qword [rsi]
lea rdx, str.Printers
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov dword [rbp - 0x20], eax
test eax, eax
jne 0x14002c8a8
mov rcx, qword [rbp - 0x18]
call fcn.14001158c
mov dword [rbp - 0x20], eax
test eax, eax
jne 0x14002c8a8
lea rcx, [rbp - 0x18]
call fcn.140012a58
cmp dword [0x1400b72e0], 0
je 0x14002c8e7
mov rcx, qword [rbx]
call fcn.14000e324
test eax, eax
jne 0x140010e47
mov rdx, rsi
xor ecx, ecx
call fcn.140010f18
test eax, eax
je 0x140010df4
mov edx, 1
mov rcx, rsi
call fcn.14000daf8
mov rcx, qword [rbx]
lea rax, [0x1400b6fe4]
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x18], 0x67727473
call fcn.14000e7c0
test eax, eax
js 0x14002c904
lea rdx, str._Classes
lea rcx, [rbp - 0x18]
call fcn.14000ebec
test eax, eax
js 0x14002c904
mov rdi, qword [rbp - 0x10]
mov rcx, rdi
call fcn.14000da30
mov rdx, rdi
call fcn.14000edc4
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]
nop dword [rax + rax]
test eax, eax
je 0x140010e47
mov r8d, dword [rbp - 0x1c]
mov edx, 1
mov ecx, edx
mov r9, rbx
call fcn.14000cf7c
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14002c90d
mov rcx, rsi
call fcn.140010e9c
mov rcx, qword [0x1400b72a0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400130f0
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
mov rcx, qword [str._S_v_]
lea rdx, str._S_v_
cmp rcx, rdx
je 0x140010d61
test byte [rcx + 0x44], 0x20
je 0x140010d61
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aa610]
mov edx, 0xd
mov r9d, eax
call fcn.14002e7e0
nop
jmp 0x140010d61
mov edx, 0x1d4c0
call fcn.14004f900
test eax, eax
jns 0x140010d77
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
nop
jmp 0x140010d77
mov rdi, qword [rbp - 0x10]
jmp 0x140010dec
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x140010e53
Function at 0x1400111a0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rbx, rcx
xor edi, edi
lea rcx, [rbp - 0x50]
mov qword [rbp + 0x30], rdi
mov rsi, rdx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rbp - 0x50]
mov dword [rbp - 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r9d, [rdi + 8]
mov qword [rbp - 0x28], rbx
lea r8, [rbp - 0x30]
mov dword [rbp - 0x18], 0x140
mov edx, 0x2000000
lea rcx, [rbp + 0x30]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKeyEx]
nop dword [rax + rax]
test eax, eax
js 0x140011267
lea rdx, str.SymbolicLinkValue
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 2]
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
cmp eax, 0xc0000034
jne 0x14001127d
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xa8]
mov eax, edi
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
cmp dword [rbp + 0x20], edi
jbe 0x140011257
jmp 0x14002c9c2
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
nop dword [rax + rax]
test eax, eax
mov ecx, 1
cmovns edi, ecx
mov rcx, qword [str._S_v_]
lea rax, str._S_v_
cmp rcx, rax
je 0x140011257
test byte [rcx + 0x44], 0x20
je 0x140011257
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aa610]
mov edx, 0xa
mov r9, rsi
call fcn.1400416c0
nop
jmp 0x140011257
Function at 0x1400117d0
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 0x140011863
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov qword [rbx + 8], rax
test rax, rax
je 0x14002d37b
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
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]
nop dword [rax + rax]
test eax, eax
je 0x14002d372
test rbx, rbx
je 0x140011850
cmp dword [0x1400b72e0], edi
je 0x14002d39b
mov rcx, rbx
call fcn.140010cc0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
jmp 0x140011852
lea rcx, [rbx + 8]
call fcn.140010e9c
mov rcx, qword [0x1400b72a0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rbx, rdi
jmp 0x140011837
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [fcn.140010cc0]
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]
nop dword [rax + rax]
test rax, rax
je 0x14002d3dd
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x140011850
mov rcx, qword [rbx]
mov edi, 1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
lea rcx, [rbx + 8]
call fcn.140010e9c
mov rcx, qword [0x1400b72a0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
nop
jmp 0x140011850

Function at 0x14001363c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140013688
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140013680
cmp dword [rcx + 0x3c], edx
jl 0x140013680
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140013680
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 0x140013688
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140019430
Capabilities:
Get token privileges

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
xor ebx, ebx
and qword [rbp + 0x38], rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
lea edi, [rbx + 1]
mov rcx, rax
mov r8d, edi
lea r9, [rbp + 0x38]
lea edx, [rbx + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x140019571
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x28]
and dword [rbp + 0x28], ebx
lea r9d, [rbx + 4]
lea r8, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x12]
mov dword [rbp + 0x20], edi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x140019527
cmp dword [rbp + 0x20], 2
cmove ebx, edi
cmp dword [rbp + 0x20], edi
jne 0x1400195c1
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x28]
lea r9d, [rdi + 3]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x30]
mov dword [rbp + 0x28], 4
lea edx, [rdi + 0x13]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x1400194f3
cmp dword [rbp + 0x30], 0
je 0x1400195c1
mov ebx, edi
jmp 0x1400195c1
mov rcx, qword [str._S_v_]
lea rax, str._S_v_
cmp rcx, rax
je 0x1400195c1
test byte [rcx + 0x44], dil
je 0x1400195c1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xa
jmp 0x140019555
mov rcx, qword [str._S_v_]
lea rax, str._S_v_
cmp rcx, rax
je 0x1400195c1
test byte [rcx + 0x44], dil
je 0x1400195c1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xb
mov rcx, qword [str._S_v_]
lea r8, [0x14009b1c8]
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.14002e7e0
jmp 0x1400195c1
mov rcx, qword [str._S_v_]
lea rax, str._S_v_
cmp rcx, rax
je 0x1400195c1
test byte [rcx + 0x44], dil
je 0x1400195c1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x1400195a2
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [str._S_v_]
lea r8, [0x14009b1c8]
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.14002e7e0
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400195d6
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400195e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x50], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x18], rax
lea r8, str.NoWarningNoElevationOnInstall
lea rax, [r11 + 8]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x20], rax
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrintersPointAndPrint
and qword [r11 - 0x28], 0
mov ebx, 1
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14001964a
cmp dword [rsp + 0x50], eax
je 0x140019684
xor ebx, ebx
jmp 0x140019684
jle 0x140019654
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [str._S_v_]
lea rdx, str._S_v_
cmp rcx, rdx
je 0x140019684
test byte [rcx + 0x44], bl
je 0x140019684
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009b1c8]
mov edx, 0xd
mov r9d, eax
call fcn.14002e7e0
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140019a98
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x50], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x18], rax
lea r8, str.RestrictDriverInstallationToAdministrators
lea rax, [r11 + 8]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x20], rax
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrintersPointAndPrint
and qword [r11 - 0x28], 0
mov ebx, 1
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140019afb
xor ebx, ebx
cmp dword [rsp + 0x50], ebx
setne bl
jmp 0x140019b37
mov rcx, qword [str._S_v_]
lea rdx, str._S_v_
cmp rcx, rdx
je 0x140019b37
test byte [rcx + 0x44], bl
je 0x140019b37
test eax, eax
jle 0x140019b1f
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009b1c8]
mov edx, 0x17
mov r9d, eax
call fcn.14002e7e0
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x140019d7c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
lea rax, [r11 + 0x10]
mov dword [rsp + 0x50], ebx
mov qword [r11 - 0x18], rax
lea r8, str.RpcNamedPipeAuthentication
lea rax, [r11 + 8]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x20], rax
lea r9d, [rbx + 0x18]
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrintersRPC
mov qword [r11 - 0x28], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
lea rdi, str._S_v_
test eax, eax
jne 0x140019dff
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140019e29
sub eax, 1
je 0x140019df8
mov rcx, qword [str._S_v_]
cmp eax, 1
jne 0x140019e30
lea ebx, [rax + 1]
jmp 0x140019e30
mov ebx, 1
jmp 0x140019e29
mov rcx, qword [str._S_v_]
cmp rcx, rdi
je 0x140019e55
test byte [rcx + 0x1c], 1
je 0x140019e30
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009b4a8]
mov edx, 0xb
mov r9d, eax
call fcn.14002e7e0
mov rcx, qword [str._S_v_]
cmp rcx, rdi
je 0x140019e55
test byte [rcx + 0x1c], 4
je 0x140019e55
mov r9d, dword [rsp + 0x50]
lea r8, [0x14009b4a8]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
call fcn.14002e7e0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140019eac
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140055820
mov ebx, eax
test eax, eax
jne 0x140019f1e
and dword [rsp + 0x50], eax
lea r9d, [rbx + 0x10]
and dword [rsp + 0x60], eax
lea r8, str.ContainerInit
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x30], rax
lea rdx, [0x14009b2f0]
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140019f1e
cmp dword [rsp + 0x50], ebx
lea eax, [rbx + 1]
cmovne ebx, eax
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140019f30
Capabilities:
Get domain information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x30], rbx
lea edi, [rbx + 1]
mov edx, edi
call qword [sym.imp.DSROLE.dll_DsRoleGetPrimaryDomainInformation]
nop dword [rax + rax]
test eax, eax
jne 0x140019f77
mov rcx, qword [rsp + 0x30]
test dword [rcx], 0xfffffffd
cmovne ebx, edi
call qword [sym.imp.DSROLE.dll_DsRoleFreeMemory]
nop dword [rax + rax]
mov rcx, qword [str._S_v_]
lea rax, str._S_v_
cmp rcx, rax
je 0x140019fa8
test byte [rcx + 0x1c], 4
je 0x140019fa8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009b4a8]
mov edx, 0xa
mov r9d, ebx
call fcn.14002e7e0
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140019fbc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
sub rsp, 0x40
and dword [rsp + 0x50], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x18], rax
lea r8, [0x14009b450]
lea rax, [r11 + 8]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x20], rax
lea rdx, [0x14009b2f0]
and qword [r11 - 0x28], 0
mov ebx, 1
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov rcx, qword [str._S_v_]
lea rsi, str._S_v_
test eax, eax
jne 0x14001a031
xor ebx, ebx
cmp dword [rsp + 0x50], ebx
setne bl
jmp 0x14001a05a
cmp rcx, rsi
je 0x14001a07f
test byte [rcx + 0x1c], bl
je 0x14001a05a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009b4a8]
mov edx, 0xd
mov r9d, eax
call fcn.14002e7e0
mov rcx, qword [str._S_v_]
cmp rcx, rsi
je 0x14001a07f
test byte [rcx + 0x1c], 4
je 0x14001a07f
mov r9d, dword [rsp + 0x50]
lea r8, [0x14009b4a8]
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
call fcn.14002e7e0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
Function at 0x14003878c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400b57a8]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor r15d, r15d
mov r14, r8
mov qword [r8], r15
mov ebx, 0x104
mov r8, rcx
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14000bcd0
mov ecx, ebx
lea rax, [rsp + 0x50]
cmp word [rax], r15w
je 0x1400387f2
add rax, 2
sub rcx, 1
jne 0x1400387e2
test rcx, rcx
je 0x1400387ff
mov rax, rbx
sub rax, rcx
jmp 0x140038802
mov rax, r15
test rcx, rcx
je 0x140038822
mov rdx, rbx
lea rcx, [rsp + 0x50]
sub rdx, rax
lea rcx, [rcx + rax*2]
lea r9, [0x1400a6868]
call fcn.1400386ac
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
lea r12, [fcn.1400367f0]
mov rdi, rax
test rax, rax
jne 0x140038876
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14003897b
mov edx, 0xc9
mov rcx, qword [rbp + 0x198]
call fcn.140038250
mov esi, eax
jmp 0x14003897e
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov rcx, rdi
mov dword [rsp + 0x38], r15d
call fcn.140037434
mov esi, eax
test eax, eax
jns 0x1400388ac
mov rcx, qword [rbp + 0x198]
mov r9d, eax
mov edx, 0xcf
call fcn.140038270
jmp 0x14003897e
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140017310
test eax, eax
js 0x1400388e2
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
sub rbx, rax
lea r9, [0x1400a6870]
mov rdx, rbx
lea rcx, [rcx + rax*2]
call fcn.1400386ac
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14003890c
mov edx, 0xd5
jmp 0x140038863
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140037434
mov esi, eax
test eax, eax
jns 0x14003894e
mov rcx, qword [rbp + 0x198]
mov r9d, eax
mov edx, 0xd7
call fcn.140038270
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], r12
call fcn.14001450c
jmp 0x14003897e
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], r12
call fcn.14001450c
movsxd rcx, dword [rsp + 0x38]
movsxd rax, dword [rsp + 0x40]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x14003899c
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
call fcn.14001450c
mov eax, esi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400130f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14003eb70
Capabilities:
Create thread

Disassembly:
test rcx, rcx
je 0x14003ebfa
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
cmp word [rcx], di
je 0x14003ebf0
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rbx, rax
test rax, rax
je 0x14003ebf0
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14003cf00]
mov edx, 0x10000
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
test rax, rax
je 0x14003ebd8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14003ebf0
mov rcx, qword [0x1400b72a0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140040b70
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov edi, r9d
mov rbx, r8
mov esi, edx
mov rbp, rcx
test r8, r8
je 0x140040ba5
cmp qword [r8 + 8], 0
jne 0x140040ba5
mov eax, 0x57
jmp 0x140040c6d
mov ecx, dword [rsp + 0x60]
call fcn.140002efc
test eax, eax
je 0x140040c61
mov ecx, dword [0x1400b73a4]
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
test rbx, rbx
je 0x140040bd8
mov r9, qword [rbx + 8]
jmp 0x140040bdb
xor r9d, r9d
test rbx, rbx
je 0x140040be5
mov r8d, dword [rbx]
jmp 0x140040be8
xor r8d, r8d
mov edx, esi
mov dword [rsp + 0x20], edi
mov rcx, rbp
call sym.spoolsv.exe_PrvSetJobW
mov ecx, dword [0x1400b73a4]
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x60]
call fcn.140002d4c
test ebx, ebx
je 0x140040c1d
xor eax, eax
jmp 0x140040c6d
mov rax, qword [str._S_v_]
lea rcx, str._S_v_
cmp rax, rcx
je 0x140040c61
test byte [rax + 0x44], 1
je 0x140040c61
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._S_v_]
lea r8, [0x14009b1c8]
mov r9d, eax
mov edx, 0x1d
mov rcx, qword [rcx + 0x38]
call fcn.14002e7e0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140040c90
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 r14
sub rsp, 0x20
mov r14, rcx
mov esi, r9d
mov rcx, r8
mov rbx, r8
mov rbp, rdx
call fcn.14003cf38
xor edi, edi
test eax, eax
jne 0x140040ccd
mov eax, 0x57
jmp 0x140040d9e
cmp dword [r8], 3
je 0x140040ce6
mov ecx, 0x7c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140040cc3
mov ecx, esi
call fcn.140002efc
test eax, eax
jne 0x140040d02
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140040d9e
mov ecx, dword [0x1400b73a0]
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
mov r9, qword [rbx + 8]
mov rdx, rbp
mov r8d, dword [rbx]
mov rcx, r14
call sym.spoolsv.exe_PrvSetPortW
mov ecx, dword [0x1400b73a0]
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
mov ecx, esi
call fcn.140002d4c
test ebx, ebx
jne 0x140040d9c
mov rax, qword [str._S_v_]
lea rcx, str._S_v_
cmp rax, rcx
je 0x140040d8e
test byte [rax + 0x44], 1
je 0x140040d8e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._S_v_]
lea edx, [rbx + 0x56]
mov r9d, eax
lea r8, [0x14009b1c8]
mov rcx, qword [rcx + 0x38]
call fcn.14002e7e0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140041a24
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14009b2f0]
mov rcx, 0xffffffff80000002
mov ebx, 0x3200000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140041ab8
and dword [rsp + 0x40], eax
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.MaxRpcSize
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
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]
mov rcx, qword [rsp + 0x58]
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