joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011ee4
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 0x28], 0
lea r9, [rbp - 0x40]
mov eax, 0x40
mov qword [rbp - 0x20], rcx
xorps xmm0, xmm0
mov dword [rsp + 0x28], eax
lea r8, [rbp - 0x30]
mov dword [rsp + 0x20], 7
mov edx, 0x10000
mov dword [rbp - 0x30], 0x30
lea rcx, [rbp + 0x18]
mov dword [rbp - 0x18], eax
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140011f7c
mov eax, 1
lock xadd dword [0x1400245a0], eax
inc eax
lea r8, [0x1400243a0]
cdq
mov ecx, 0x20
idiv ecx
movsxd rax, edx
add rax, rax
and qword [r8 + rax*8 + 8], 0
mov dword [r8 + rax*8], 0x105f
mov dword [r8 + rax*8 + 4], ebx
jmp 0x140012021
mov rcx, qword [rbp + 0x18]
lea r8, [rbp + 0x10]
mov r9d, 1
mov byte [rbp + 0x10], 1
lea rdx, [rbp - 0x40]
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ebx, eax
mov eax, 1
lock xadd dword [0x1400245a0], eax
inc eax
mov ecx, 0x20
cdq
mov r9d, ebx
idiv ecx
mov r10d, 0x1072
mov eax, edx
mov r8d, edx
test ebx, ebx
jns 0x140011fd7
mov r10d, 0x107a
movsxd rdx, edx
lea rcx, [0x1400243a4]
shl rdx, 4
add rdx, rcx
movsxd rcx, eax
shl rcx, 4
lea rax, [0x1400243a8]
add rcx, rax
movsxd rax, r8d
add rax, rax
lea r8, [0x1400243a0]
mov dword [r8 + rax*8], r10d
mov dword [rdx], r9d
and qword [rcx], 0
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret
Function at 0x140013088
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400236e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x30]
mov r9d, 0x18
lea r8, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x1400130d0
mov rcx, qword [rsp + 0x40]
mov qword [rbx], rcx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000e4b0
add rsp, 0x60
pop rbx
ret

Function at 0x1400130ec
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov rax, qword [0x1400236e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x140024378]
lea rax, str.PagefileTooSmall
mov dword [rsp + 0x38], 0x220020
lea r9, [r11 - 0x20]
mov qword [r11 - 0x28], rax
lea rdx, [r11 - 0x30]
lea rax, [r11 - 0x38]
xor ebx, ebx
mov qword [r11 - 0x40], rax
mov dword [rsp + 0x20], 0x10
lea r8d, [rbx + 4]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x14001315d
cmp dword [rsp + 0x48], 0xb
jne 0x14001315d
cmp dword [rsp + 0x4c], 8
cmove rbx, qword [rsp + 0x50]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000e4b0
add rsp, 0x60
pop rbx
ret

Function at 0x14001317c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400236e0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov ecx, 0x210
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rdi, r9
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0x60]
mov rbx, r8
mov dword [rsp + 0x30], ecx
mov rcx, qword [0x140024378]
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x140013252
cmp dword [rsp + 0x64], 2
jne 0x140013241
movzx eax, word [rsp + 0x30]
lea r8, [rsp + 0x38]
sub ax, 0xc
mov dword [rsp + 0x38], 0x2040000
mov word [rsp + 0x48], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x4a], ax
xor r9d, r9d
lea rax, [rsp + 0x6c]
xor ecx, ecx
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x170]
mov qword [rsp + 0x40], rax
call qword [sym.imp.ntdll.dll_RtlExpandEnvironmentStrings_U]
nop dword [rax + rax]
test eax, eax
js 0x140013252
mov rcx, qword [rsp + 0x40]
jmp 0x14001324d
cmp dword [rsp + 0x64], 1
jne 0x140013252
lea rcx, [rsp + 0x6c]
test rcx, rcx
jne 0x14001325a
test rbx, rbx
je 0x14001327a
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
nop dword [rax + rax]
neg al
sbb eax, eax
not eax
and eax, 0xc0000001
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14000e4b0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013724
Capabilities:
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400236e0]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp byte [0x140024382], 0
mov esi, r9d
mov rdi, rdx
mov rbx, rcx
je 0x14001375d
call fcn.14001281c
jmp 0x1400137f8
test r8, r8
je 0x140013772
mov rdx, r8
call fcn.140013af0
test eax, eax
js 0x1400137f8
test sil, 1
jne 0x14001379e
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call fcn.1400132a4
test eax, eax
js 0x1400137f8
cmp byte [rsp + 0x30], 1
je 0x14001379e
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
jmp 0x140013753
movzx esi, word [rdi]
lea rcx, [rsp + 0x64]
mov r8, qword [rdi + 8]
mov edx, 0x1ec
and qword [rsp + 0x58], 0
mov dword [rsp + 0x60], esi
mov byte [rsp + 0x50], 1
call fcn.14000bc80
test eax, eax
js 0x1400137f8
lea r9d, [rsi + 0x18]
mov dword [rsp + 0x20], 0xa
lea r8, [rsp + 0x50]
mov rcx, rbx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x1400137f8
mov rcx, rbx
call fcn.14001381c
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000e4b0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x140013af0
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov qword [rax + 0x10], rdx
lea rdx, [rax - 0x18]
mov dword [rax - 0x28], 0x14
mov r9d, 8
lea r8, [rax + 0x10]
mov rdi, rcx
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x140013b57
mov r9d, 8
mov qword [rsp + 0x60], rbx
lea r8, [rsp + 0x60]
mov dword [rsp + 0x20], 0x13
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140013ee0
Capabilities:
Delete registry value
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1f8]
sub rsp, 0x2f0
mov rax, qword [0x1400236e0]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
and qword [rsp + 0x60], 0
lea rax, [0x140024210]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x4021
xor ebx, ebx
mov qword [rbp - 0x58], rax
and qword [rbp - 0x60], rbx
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x68]
mov dword [rbp - 0x68], 0x30
mov edx, 0x100001
mov dword [rbp - 0x50], 0x40
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], 3
movdqu xmmword [rbp - 0x48], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
js 0x140014082
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, 0x8a8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140014082
lea rdx, str.SMSS_PFRO.tmp
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov byte [rsp + 0x50], 1
jmp 0x140014030
test eax, eax
js 0x140014082
lea rsi, [rbx + 0x8a8]
mov rdi, rbx
cmp rbx, rsi
jae 0x14001402b
mov r9, qword [0x140024218]
lea rax, [rdi + 0xc]
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x20a
lea rcx, [rbp - 0x30]
call fcn.14000202c
test eax, eax
js 0x14001401c
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rcx, [rbp - 0x78]
call fcn.140014564
cmp dword [rdi], 0
je 0x14001402b
mov eax, dword [rdi]
add rdi, rax
cmp rdi, rsi
jb 0x140013fd6
mov byte [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x78]
mov dword [rsp + 0x38], 0xc
xor r8d, r8d
mov dword [rsp + 0x30], 0x8a8
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
nop dword [rax + rax]
cmp eax, 0xc000000f
jne 0x140013fbf
lea r8, str.ClearTempFiles
mov ecx, 2
lea rdx, str.Session_Manager
call qword [sym.imp.ntdll.dll_RtlDeleteRegistryValue]
nop dword [rax + rax]
test rbx, rbx
je 0x1400140c4
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400140da
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14000e4b0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140014388
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
and qword [rbp + 0x18], 0
lea r9, [rbp - 0x50]
and qword [rbp - 0x28], 0
lea r8, [rbp - 0x30]
mov qword [rbp - 0x20], rcx
xorps xmm0, xmm0
lea rcx, [rbp + 0x18]
mov dword [rsp + 0x28], 0x4040
mov edx, 0x10100
mov dword [rbp - 0x30], 0x30
movdqu xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x18], 0x40
mov dword [rsp + 0x20], 7
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14001442f
mov rcx, qword [rbp + 0x18]
mov edx, 0x80
call fcn.140015088
mov ebx, eax
test eax, eax
js 0x14001442f
mov rcx, qword [rbp + 0x18]
lea r8, [rbp + 0x10]
mov r9d, 1
mov byte [rbp + 0x10], 1
lea rdx, [rbp - 0x40]
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140014444
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rbp
ret

Function at 0x140014564
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1400236e0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
and qword [rbp - 0x21], 0
lea r8, [rbp - 0x19]
xorps xmm0, xmm0
mov qword [rbp - 9], rcx
xor eax, eax
mov dword [rbp - 0x19], 0x30
and qword [rbp - 0x11], rax
lea rcx, [rbp - 0x21]
mov edx, 0x110100
mov qword [rbp + 0x47], rax
movups xmmword [rbp + 0x27], xmm0
xor edi, edi
mov dword [rbp - 1], 0x40
movups xmmword [rbp + 0x37], xmm0
movdqu xmmword [rbp + 7], xmm0
call fcn.140014b90
mov ebx, eax
test eax, eax
js 0x140014670
mov rcx, qword [rbp - 0x21]
lea r9d, [rdi + 1]
lea r8, [rbp - 0x29]
mov byte [rbp - 0x29], 1
lea rdx, [rbp + 0x17]
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140014670
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_NtQueryAttributesFile]
nop dword [rax + rax]
test eax, eax
js 0x140014670
mov rax, qword [rbp + 0x47]
test al, 1
je 0x140014674
mov rcx, qword [rbp - 0x21]
and eax, 0xfffffffe
mov edx, eax
call fcn.140015088
mov ebx, eax
test eax, eax
js 0x140014670
mov rcx, qword [rbp - 0x21]
lea r8, [rbp - 0x29]
mov edi, 1
mov dword [rsp + 0x20], 0xd
mov r9d, edi
mov byte [rbp - 0x29], dil
lea rdx, [rbp + 0x17]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140014670
xor edi, edi
xor ebx, ebx
mov rax, qword [rbp + 0x47]
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140014698
test edi, edi
je 0x14001468c
mov edx, eax
call fcn.140015088
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14000e4b0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140014950
Capabilities:
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x1400236e0]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor r12d, r12d
mov r15d, r8d
cmp qword [0x140023db0], r12
mov rsi, rdx
mov r14, rcx
mov ebx, 0x30
jne 0x140014a8e
mov dword [rsp + 0x50], r12d
lea rax, [0x140016c60]
mov qword [rsp + 0x48], r12
lea r9, [rbp - 0x78]
mov dword [rsp + 0x40], 0x64
lea r8, [rbp - 0x68]
mov dword [rsp + 0x38], 3
lea rcx, [0x140023db0]
mov dword [rsp + 0x30], r12d
xorps xmm0, xmm0
mov dword [rsp + 0x28], r12d
mov edx, 0x120002
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], r12
mov dword [rbp - 0x50], 0x40
mov qword [rbp - 0x58], rax
movdqu xmmword [rbp - 0x48], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
nop dword [rax + rax]
test eax, eax
jns 0x140014a15
mov qword [0x140023db0], r12
xor al, al
jmp 0x140014b67
mov rcx, qword [0x140023db0]
lea r8, [rbp - 0x28]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea rdx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov rcx, qword [0x140023db0]
test eax, eax
jns 0x140014a57
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
jmp 0x140014a07
mov rax, qword [rbp - 0x20]
lea r8, [rbp - 0x80]
mov r9d, 8
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x78]
mov dword [rsp + 0x20], 0xe
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
jns 0x140014a8e
mov rcx, qword [0x140023db0]
jmp 0x140014a49
lea rcx, [rbp - 0x38]
call fcn.1400146c4
cmp word [rsi], r12w
lea r11, [0x140016c50]
movsx eax, word [rbp - 0x2e]
lea rdi, [rbp - 0x10]
movsx ecx, word [rbp - 0x30]
cmovne r11, rsi
movsx edx, word [rbp - 0x32]
mov esi, 0x200
movsx r8d, word [rbp - 0x38]
movsx r9d, word [rbp - 0x34]
movsx r10d, word [rbp - 0x36]
mov dword [rsp + 0x70], r15d
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x58], eax
lea rax, str._d__d__d__d:_d:_d___PFRO_Error:__wZ___wZ__0x_x_r_n
mov dword [rsp + 0x50], ecx
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], edx
mov edx, esi
mov dword [rsp + 0x40], r8d
xor r8d, r8d
mov dword [rsp + 0x38], r9d
lea r9, [rbp - 0x80]
mov dword [rsp + 0x30], r10d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call fcn.140013bd0
test eax, eax
jns 0x140014b24
lea rdi, str.Error_logging_PFRO_error
jmp 0x140014b2b
mov rbx, rsi
sub rbx, qword [rbp - 0x80]
mov rcx, qword [0x140023db0]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], r12
xor r9d, r9d
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov dword [rsp + 0x30], ebx
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
test eax, eax
setns al
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14000e4b0
add rsp, 0x300
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140014b90
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov dword [rsp + 0x28], 0x204020
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 3
mov rbx, rcx
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
js 0x140014c19
mov rcx, qword [rbx]
lea r8, [rsp + 0x68]
mov r9d, 8
mov dword [rsp + 0x20], 0x23
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x140014c17
test dword [rsp + 0x68], 0x400
je 0x140014c17
test dword [rsp + 0x6c], 0x20000000
jne 0x140014c17
mov rcx, qword [rbx]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
and qword [rbx], 0
mov eax, 0xc00000d8
jmp 0x140014c19
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x140014c28
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400236e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
and dword [rsp + 0x34], 0
lea r9, [rsp + 0x20]
mov r8d, 0x14
mov dword [rsp + 0x28], 0x41435049
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x2c], 1
mov dword [rsp + 0x30], 0x54504257
lea ecx, [r8 + 0x38]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
cmp eax, 0xc0000023
sete al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000e4b0
add rsp, 0x58
ret

Function at 0x140014c9c
Capabilities:
Access peb ldr_data
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
movzx ebx, word [rcx]
mov rsi, rcx
mov rcx, qword gs:[0x60]
add ebx, 0x1a
mov r14d, r8d
mov ebp, ebx
mov r15, rdx
mov r8d, ebx
mov edx, dword [0x140024a48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140014cf6
mov ebx, 0xc0000017
jmp 0x140014d68
mov r8, rbp
xor edx, edx
mov rcx, rdi
call sub.ntdll.dll_memset
test r14d, r14d
lea rcx, [rdi + 0x14]
setne al
and qword [rdi + 8], 0
mov byte [rdi], al
movzx eax, word [rsi]
mov dword [rdi + 0x10], eax
mov r8d, eax
mov rdx, qword [rsi + 8]
call sub.ntdll.dll_memcpy
mov r9d, ebx
mov dword [rsp + 0x20], 0xa
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140014d8c
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 8], ecx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1400236e0]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor r15d, r15d
mov r14, rdx
test ecx, ecx
mov qword [rsp + 0x58], r15
mov rcx, qword gs:[0x60]
mov rsi, r8
mov rdi, r9
cmovne r14, r15
lea r13d, [r15 + 8]
lea r8d, [r15 + 0x34]
mov edx, r13d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
lea ecx, [r15 + 2]
mov rbx, rax
lea r12d, [r15 + 4]
test rax, rax
je 0x140014ef2
lea rax, [0x140016a60]
mov dword [rsp + 0x28], 0x60
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0x70]
xorps xmm0, xmm0
mov dword [rbp - 0x80], 0x30
lea rcx, [rsp + 0x58]
mov qword [rbp - 0x78], r15
lea r8, [rbp - 0x80]
mov dword [rbp - 0x68], r15d
mov edx, 0x120003
mov qword [rbp - 0x70], rax
movdqu xmmword [rbp - 0x60], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
js 0x140014ef2
mov dword [rsp + 0x48], r15d
lea eax, [r15 + 1]
mov dword [rbx + 0x14], eax
xor r9d, r9d
mov dword [rbx + 0x1c], eax
xor r8d, r8d
mov qword [rsp + 0x40], r15
xor edx, edx
mov dword [rbx], 0x43696541
mov dword [rbx + 4], 0x5342505f
mov dword [rbx + 8], 0x34
mov dword [rbx + 0xc], r12d
mov dword [rbx + 0x10], 0x40000
mov dword [rbx + 0x18], 0x40000
mov dword [rbx + 0x20], 0x40000
mov eax, dword [rbp + 0xa0]
mov dword [rbx + 0x24], eax
lea rax, [rsp + 0x70]
mov dword [rsp + 0x38], 0x34
mov dword [rbx + 0x28], 0x80002
mov qword [rbx + 0x2c], r14
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x32c000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140014f08
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test rbx, rbx
je 0x140014f2b
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [0x140024a50]
test rcx, rcx
je 0x140014f7b
invalid
cmp dword [rbp + 0xa0], r15d

Function at 0x140015088
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400236e0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x20], 4
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x60], edx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea r9d, [rax + 0x28]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
cmovns eax, ecx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000e4b0
add rsp, 0x78
ret
Function at 0x1400155f8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov ebx, r8d
lea r9, [rsp + 0x68]
mov r8b, 1
mov edi, edx
mov rsi, rcx
mov dl, r8b
mov ecx, 0x13
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
nop dword [rax + rax]
cmp eax, 0xc000007c
jne 0x14001564c
xor r8d, r8d
lea r9, [rsp + 0x68]
mov dl, 1
lea ecx, [r8 + 0x13]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
nop dword [rax + rax]
lea rax, [rsp + 0x30]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov r8d, edi
mov edx, ebx
mov dword [rsp + 0x20], 6
mov ecx, 0xc000021a
call qword [sym.imp.ntdll.dll_NtRaiseHardError]
nop dword [rax + rax]
mov edx, eax
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400156a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400236e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword gs:[0x60]
mov rbx, rcx
cmp byte [rax + 2], 1
jne 0x1400156dd
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000e4b0
add rsp, 0x60
pop rbx
ret
lea rdx, str.Unhandled_Exception_in_Session_Manager
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov edx, 1
movsxd rax, dword [rcx]
mov qword [rsp + 0x38], rax
lea r8d, [rdx + 3]
mov rax, qword [rcx + 0x10]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x48], rax
call fcn.1400155f8
int3
Function at 0x140001000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400010d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140001037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000102d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400010cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400010cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400010ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140001081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140001072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140001021