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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor ebp, ebp
mov rsi, r9
mov r14, r8
mov r12, rdx
mov r13, rcx
test rdx, rdx
jne 0x14000ecfb
xor eax, eax
jmp 0x14000ee92
mov edi, 0x208
lea r9, str.winspool
mov edx, edi
lea r8, [0x14009cc40]
lea rcx, [rsp + 0x30]
call fcn.14000eec4
or rbx, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rcx, rbx
inc rcx
cmp word [rax + rcx*2], bp
jne 0x14000ed26
mov r15d, ecx
lea rbp, [rsp + 0x30]
mov edx, edi
sub edx, ecx
lea rbp, [rbp + r15*2]
mov rcx, rbp
test r14, r14
jne 0x14000edf4
mov eax, dword [rsi]
lea r9, [0x14009cc0c]
lea r8, str._s_.2d:
mov dword [rsp + 0x20], eax
call fcn.14000eec4
inc dword [rsi]
cmp dword [rsi], 0x63
jbe 0x14000ed6f
and dword [rsi], r14d
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, rbp
mov rsi, rax
call fcn.14000efa8
test rsi, rsi
je 0x14000ed8c
mov rcx, rsi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
xor esi, esi
lea rcx, [rsp + 0x30]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], si
jne 0x14000ed96
mov rcx, qword [r13 + 0x10]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, rdi
lea rax, [rsp + 0x30]
cmp word [rax], si
je 0x14000ede7
add rax, 2
sub rcx, 1
jne 0x14000edd8
test rcx, rcx
je 0x14000ee29
mov rax, rdi
sub rax, rcx
jmp 0x14000ee2c
mov r8, r14
call fcn.14000c1d0
lea rcx, [rsp + 0x30]
mov edx, 0x2c
lea rcx, [rcx + r15*2]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
xor esi, esi
test rax, rax
je 0x14000ed8e
mov word [rax], si
jmp 0x14000ed8e
mov rax, rsi
test rcx, rcx
je 0x14000ee4c
sub rdi, rax
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
mov rdx, rdi
lea r9, str._15_45
call fcn.1400168e8
lea rax, [rsp + 0x30]
inc rbx
cmp word [rax + rbx*2], si
jne 0x14000ee51
lea r8d, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], r8d
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [r13 + 0x18]
mov rdx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov eax, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400133c0
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000efa8
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]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000f024
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]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000f03a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
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 0x14000f508
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 [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.140010b30
lea rdx, str.Local_SettingsPrintersPropertyBags
lea rcx, [rsp + 0x58]
call fcn.140010a30
test eax, eax
js 0x14000f598
mov rdx, qword [rsp + 0x58]
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]
nop dword [rax + rax]
test eax, eax
je 0x14002b584
lea rcx, [rsp + 0x40]
call fcn.140012d28
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140010c30
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400133c0
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, [0x1400abd90]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
mov rbx, rax
call fcn.14006b610
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x14002b64d
lea rdx, str.SplIsValidUserPropertyBag
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14002b64d
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]
nop dword [rax + rax]
test eax, eax
jne 0x14002b64d
lea rcx, [rsp + 0x70]
mov rax, rdi
call qword [0x140098d58]
test al, al
jne 0x14002b649
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
nop dword [rax + rax]
inc ebx
jmp 0x14002b5e0
lea rcx, [rsp + 0x50]
call fcn.14006b610
nop
jmp 0x14000f58e
Function at 0x140010318
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 [0x1400b9570]
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.140004608
mov rax, r12
neg rax
mov eax, 0x80070057
sbb edi, edi
not edi
and edi, eax
test r12, r12
je 0x1400103b0
and dword [r12], esi
lea rcx, [r15 + 0x38]
test rcx, rcx
je 0x14002c674
xor eax, eax
lea edi, [rsi + 1]
add rcx, 8
je 0x140010392
mov rax, qword [rcx + 0x10]
test rcx, rcx
je 0x1400103b0
cmp rax, rcx
je 0x1400103b0
mov edx, ebp
sub edx, dword [rax + 0x24]
js 0x1400103b0
test edx, edx
jne 0x14002c67b
mov rsi, rax
xor edi, edi
test edi, edi
jne 0x1400104e9
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14001139c
mov r14, qword [rsp + 0x70]
mov edi, eax
test edi, edi
js 0x140010486
mov rbp, qword [r14 + 0x28]
mov rcx, r13
mov rdx, rbp
call fcn.140010b68
mov edi, eax
test eax, eax
js 0x140010463
and qword [rsp + 0x70], 0
lea r8, [0x14009b2a0]
mov rax, qword [rsi + 0x30]
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.14001101c
mov ecx, eax
call fcn.14001a0bc
mov edi, eax
test eax, eax
js 0x140010463
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]
nop dword [rax + rax]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [0x1400b9518]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp dword [r14 + 0x24], 0
jne 0x140010486
dec dword [r15 + 0x30]
mov edx, 1
mov rax, qword [r14]
mov rcx, r14
mov dword [r12], edx
mov rax, qword [rax]
call qword [0x140098d58]
test rsi, rsi
je 0x14001049f
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax]
call qword [0x140098d58]
test edi, edi
jns 0x1400104c0
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x1400104c0
test byte [rcx + 0x44], 0x20
jne 0x14002c684
mov rcx, rbx
call fcn.14000463c
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
js 0x140010486
mov edi, 0x80004005
jmp 0x1400103cc
mov edi, eax
jmp 0x1400103b0
mov rax, qword [rax + 0x10]
jmp 0x140010392
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ac5e8]
mov edx, 0xd
mov r9d, edi
call fcn.1400305f8
nop
jmp 0x1400104c0
Function at 0x140018ed4
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 0x140019015
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 0x140018fcb
cmp dword [rbp + 0x20], 2
cmove ebx, edi
cmp dword [rbp + 0x20], edi
jne 0x140019065
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 0x140018f97
cmp dword [rbp + 0x30], 0
je 0x140019065
mov ebx, edi
jmp 0x140019065
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140019065
test byte [rcx + 0x44], dil
je 0x140019065
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xa
jmp 0x140018ff9
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140019065
test byte [rcx + 0x44], dil
je 0x140019065
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xb
mov rcx, qword [0x1400b72f8]
lea r8, [0x14009c698]
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.1400305f8
jmp 0x140019065
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140019065
test byte [rcx + 0x44], dil
je 0x140019065
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140019046
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x1400b72f8]
lea r8, [0x14009c698]
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.1400305f8
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14001907a
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 0x14001908c
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 0x1400190ee
cmp dword [rsp + 0x50], eax
je 0x140019128
xor ebx, ebx
jmp 0x140019128
jle 0x1400190f8
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x1400b72f8]
lea rdx, [0x1400b72f8]
cmp rcx, rdx
je 0x140019128
test byte [rcx + 0x44], bl
je 0x140019128
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009c698]
mov edx, 0xd
mov r9d, eax
call fcn.1400305f8
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x14001953c
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 0x14001959f
xor ebx, ebx
cmp dword [rsp + 0x50], ebx
setne bl
jmp 0x1400195db
mov rcx, qword [0x1400b72f8]
lea rdx, [0x1400b72f8]
cmp rcx, rdx
je 0x1400195db
test byte [rcx + 0x44], bl
je 0x1400195db
test eax, eax
jle 0x1400195c3
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009c698]
mov edx, 0x17
mov r9d, eax
call fcn.1400305f8
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x140019c94
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, [0x1400b72f8]
test eax, eax
jne 0x140019d17
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140019d41
sub eax, 1
je 0x140019d10
mov rcx, qword [0x1400b72f8]
cmp eax, 1
jne 0x140019d48
lea ebx, [rax + 1]
jmp 0x140019d48
mov ebx, 1
jmp 0x140019d41
mov rcx, qword [0x1400b72f8]
cmp rcx, rdi
je 0x140019d6d
test byte [rcx + 0x1c], 1
je 0x140019d48
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009c9e8]
mov edx, 0xb
mov r9d, eax
call fcn.1400305f8
mov rcx, qword [0x1400b72f8]
cmp rcx, rdi
je 0x140019d6d
test byte [rcx + 0x1c], 4
je 0x140019d6d
mov r9d, dword [rsp + 0x50]
lea r8, [0x14009c9e8]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
call fcn.1400305f8
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140019dc4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
call fcn.14005478c
mov ebx, eax
test eax, eax
jne 0x140019e36
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, [0x14009c7c0]
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 0x140019e36
cmp dword [rsp + 0x50], ebx
lea eax, [rbx + 1]
cmovne ebx, eax
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140019e48
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 0x140019e8f
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 [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140019ec0
test byte [rcx + 0x1c], 4
je 0x140019ec0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009c9e8]
mov edx, 0xa
mov r9d, ebx
call fcn.1400305f8
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140019ed4
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, [0x14009c990]
lea rax, [r11 + 8]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x20], rax
lea rdx, [0x14009c7c0]
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 [0x1400b72f8]
lea rsi, [0x1400b72f8]
test eax, eax
jne 0x140019f49
xor ebx, ebx
cmp dword [rsp + 0x50], ebx
setne bl
jmp 0x140019f72
cmp rcx, rsi
je 0x140019f97
test byte [rcx + 0x1c], bl
je 0x140019f72
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009c9e8]
mov edx, 0xd
mov r9d, eax
call fcn.1400305f8
mov rcx, qword [0x1400b72f8]
cmp rcx, rsi
je 0x140019f97
test byte [rcx + 0x1c], 4
je 0x140019f97
mov r9d, dword [rsp + 0x50]
lea r8, [0x14009c9e8]
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
call fcn.1400305f8
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
Function at 0x14002fe8c
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 [0x1400b77a8]
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.14000c1d0
mov ecx, ebx
lea rax, [rsp + 0x50]
cmp word [rax], r15w
je 0x14002fef2
add rax, 2
sub rcx, 1
jne 0x14002fee2
test rcx, rcx
je 0x14002feff
mov rax, rbx
sub rax, rcx
jmp 0x14002ff02
mov rax, r15
test rcx, rcx
je 0x14002ff22
mov rdx, rbx
lea rcx, [rsp + 0x50]
sub rdx, rax
lea rcx, [rcx + rax*2]
lea r9, [0x1400a9c60]
call fcn.1400168e8
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.14002dc30]
mov rdi, rax
test rax, rax
jne 0x14002ff76
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14003007b
mov edx, 0xc9
mov rcx, qword [rbp + 0x198]
call fcn.14002f40c
mov esi, eax
jmp 0x14003007e
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov rcx, rdi
mov dword [rsp + 0x38], r15d
call fcn.14002e994
mov esi, eax
test eax, eax
jns 0x14002ffac
mov rcx, qword [rbp + 0x198]
mov r9d, eax
mov edx, 0xcf
call fcn.14002f42c
jmp 0x14003007e
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400169a8
test eax, eax
js 0x14002ffe2
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
sub rbx, rax
lea r9, [0x1400a9c68]
mov rdx, rbx
lea rcx, [rcx + rax*2]
call fcn.1400168e8
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 0x14003000c
mov edx, 0xd5
jmp 0x14002ff63
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14002e994
mov esi, eax
test eax, eax
jns 0x14003004e
mov rcx, qword [rbp + 0x198]
mov r9d, eax
mov edx, 0xd7
call fcn.14002f42c
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], r12
call fcn.14001476c
jmp 0x14003007e
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], r12
call fcn.14001476c
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 0x14003009c
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
call fcn.14001476c
mov eax, esi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400133c0
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 0x14003e170
Capabilities:
Create thread

Disassembly:
test rcx, rcx
je 0x14003e1fa
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
cmp word [rcx], di
je 0x14003e1f0
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rbx, rax
test rax, rax
je 0x14003e1f0
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14003c500]
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 0x14003e1d8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14003e1f0
mov rcx, qword [0x1400b9518]
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 0x140040170
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 0x1400401a5
cmp qword [r8 + 8], 0
jne 0x1400401a5
mov eax, 0x57
jmp 0x14004026d
mov ecx, dword [rsp + 0x60]
call fcn.140003a5c
test eax, eax
je 0x140040261
mov ecx, dword [0x1400b9684]
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 0x1400401d8
mov r9, qword [rbx + 8]
jmp 0x1400401db
xor r9d, r9d
test rbx, rbx
je 0x1400401e5
mov r8d, dword [rbx]
jmp 0x1400401e8
xor r8d, r8d
mov edx, esi
mov dword [rsp + 0x20], edi
mov rcx, rbp
call sym.spoolsv.exe_PrvSetJobW
mov ecx, dword [0x1400b9684]
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.1400038ac
test ebx, ebx
je 0x14004021d
xor eax, eax
jmp 0x14004026d
mov rax, qword [0x1400b72f8]
lea rcx, [0x1400b72f8]
cmp rax, rcx
je 0x140040261
test byte [rax + 0x44], 1
je 0x140040261
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea r8, [0x14009c698]
mov r9d, eax
mov edx, 0x1d
mov rcx, qword [rcx + 0x38]
call fcn.1400305f8
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