joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001e74
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140018018]
xor rax, rsp
mov qword [rbp - 8], rax
xor edi, edi
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], edi
mov qword [r11 - 0x38], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], edi
xor r9d, r9d
mov dword [rsp + 0x40], edi
lea esi, [rdi + 1]
mov dword [rsp + 0x38], edi
lea r8d, [rdi + 0x12]
mov dword [rsp + 0x30], edi
mov dl, sil
mov dword [rsp + 0x28], edi
mov ebx, edi
mov dword [rsp + 0x20], edi
mov dword [rbp - 0x10], edi
mov qword [rbp - 0x18], rdi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x140001f11
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x140001f11
cmp dword [rbp - 0x20], edi
cmovne ebx, esi
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140001f26
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001580
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140002040
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140018018]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x200
call sub.msvcrt.dll_memset
lea rdx, str.RunAs
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov r9d, 0x100
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, 0x3e9
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
xor edx, edx
test eax, eax
jle 0x140002101
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x1400020c2
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x140013cd0]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
jmp 0x14000210d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140001580
add rsp, 0x240
pop rbx
ret
Function at 0x140002130
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x140018018]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r14, rdx
mov dword [rsp + 0x70], 0x40
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x218
call sub.msvcrt.dll_memset
mov r12d, 0x10e
lea rcx, [rsp + 0x70]
mov edx, r12d
mov r8, r14
call fcn.1400025a0
xor r15d, r15d
mov ebx, eax
test eax, eax
jne 0x140002355
lea r8, str.__1001
mov edx, r12d
lea rcx, [rsp + 0x70]
call fcn.1400025a0
mov ebx, eax
test eax, eax
jne 0x140002355
or rdi, 0xffffffffffffffff
lea rcx, [rsp + 0x70]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1400021cf
lea eax, [rax*2 + 2]
mov r9d, 2
mov dword [rsp + 0x28], eax
lea rdx, str.LocalizedString
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140002355
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea r9, str.REG_SZ
lea rax, [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x38], rax
lea rdx, str.Elevation
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140002355
mov rcx, qword [rsp + 0x58]
lea r9d, [rax + 4]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Enabled
mov dword [rsp + 0x50], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140002344
xor edx, edx
mov dword [rbp + 0x190], 0x40
mov r8d, 0x218
lea rcx, [rbp + 0x194]
call sub.msvcrt.dll_memset
mov r8, r14
lea rcx, [rbp + 0x190]
mov rdx, r12
call fcn.1400025a0
mov ebx, eax
test eax, eax
jne 0x140002344
lea r8, str.__1002
mov rdx, r12
lea rcx, [rbp + 0x190]
call fcn.1400025a0
mov ebx, eax
test eax, eax
jne 0x140002344
lea rax, [rbp + 0x190]
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x140002300
mov rcx, qword [rsp + 0x58]
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.IconReference
lea rax, [rbp + 0x190]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140001580
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140002858
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rbp, rdx
mov rdi, rcx
cmp dword [rcx], ebx
je 0x1400028e0
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0x30], 4
jge 0x140002895
mov ebx, 0x8007139f
jmp 0x1400028e5
test rbp, rbp
jne 0x1400028a1
mov ebx, 0x80070057
jmp 0x1400028e5
mov rdx, qword [rdi + 0x80]
mov rcx, rbp
call fcn.140008b04
test eax, eax
jne 0x1400028bb
mov ebx, 0x80070005
jmp 0x1400028e5
mov edx, 0x80
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
jmp 0x1400028e5
mov ebx, 0x8007000e
cmp dword [rdi], 0
je 0x1400028fa
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400042a8
Capabilities:
Create thread

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, 0x40
mov r14, rcx
mov dword [rax - 0x18], 0x8007000e
mov ecx, Ordinal_35
mov ebp, r9d
mov rsi, r8
mov rdi, rdx
call fcn.140001ba8
mov rbx, rax
test rax, rax
je 0x1400043f9
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rbx + 8], rax
test rax, rax
je 0x1400043f1
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400043e1
mov eax, dword [rsp + 0x70]
lea r8, [0x140003980]
and qword [rsp + 0x28], 0
mov r9, rbx
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
mov dword [rbx + 0x1c], eax
mov qword [rbx], r14
mov dword [rbx + 0x18], ebp
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1400043b5
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x140004390
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000438a
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x30], eax
jmp 0x1400043a4
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x1400043d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x1400043cd
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x30], eax
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, rbx
call fcn.140001c24
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140004510
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
xor esi, esi
and qword [rax + 8], rbx
mov r14, r9
mov r15d, r8d
mov r12, rdx
lea ebp, [rbx + 1]
test r8d, r8d
je 0x1400045e1
mov rdi, r9
test ebp, ebp
je 0x140004570
lea r8, [rsp + 0x60]
mov rcx, r12
lea rdx, str.Distribution_Units
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x1400045bc
xor ebp, ebp
test r14, r14
je 0x1400045af
mov rdx, qword [rdi]
test rdx, rdx
je 0x1400045af
mov rcx, qword [rsp + 0x60]
lea rax, [0x140013cd0]
mov dword [rsp + 0x28], 1
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400045bc
inc esi
add rdi, 8
cmp esi, r15d
jae 0x1400045cb
jmp 0x14000454b
jg 0x1400045c2
mov ebx, eax
jmp 0x1400045cb
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400045e1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400051ac
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r9
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
mov r14, r8
and qword [rbp - 8], rbx
mov rdi, rdx
and qword [rbp - 0x10], rbx
mov rsi, rcx
and qword [rbp + 0x20], rbx
cmp dword [rcx], ebx
je 0x140005331
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rsi + 0x30], 7
jge 0x140005205
mov ebx, 0x8007139f
jmp 0x140005336
test rdi, rdi
je 0x14000532a
test r14, r14
je 0x14000532a
mov rdx, qword [rsi + 0x40]
sub rdx, rdi
movzx eax, word [rdi]
movzx ecx, word [rdi + rdx]
sub eax, ecx
jne 0x140005231
add rdi, 2
test ecx, ecx
jne 0x14000521e
test eax, eax
je 0x14000523f
mov ebx, 0x80070005
jmp 0x140005336
lea rax, [rbp - 8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CLSID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140005319
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov edi, 0x2001f
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140005319
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x20]
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.LanguageCheckPeriod
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1400052e7
mov rcx, qword [rbp - 0x10]
lea r8, [rbp + 0x20]
lea rdx, str.LanguageCheckPeriod
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x140005319
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x3c]
mov r9d, 4
lea rdx, str.LastCheckedHi
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140005336
jg 0x14000531f
mov ebx, eax
jmp 0x140005336
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140005336
mov ebx, 0x80070057
jmp 0x140005336
mov ebx, 0x8007000e
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14000534b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140005360
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140005375
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
cmp dword [rsi], 0
je 0x14000538a
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140005724
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 8], 0
lea rcx, [rbp - 8]
and qword [rbp - 0x10], 0
mov rdi, rdx
and dword [rbp + 0x38], 0
and dword [rbp + 0x20], 0
mov dword [rbp + 0x30], 4
call fcn.14000b970
mov ebx, eax
test eax, eax
jne 0x14000582d
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDlls
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1400057ae
mov rcx, qword [rbp - 8]
lea r8, [rbp - 0x10]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDlls
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14000581e
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x20]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x1400057e5
mov eax, dword [rbp + 0x20]
inc eax
jmp 0x1400057ea
mov eax, 1
mov rcx, qword [rbp - 0x10]
mov r9d, 4
mov dword [rbp + 0x20], eax
xor r8d, r8d
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], 4
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop dword [rax + rax]
test eax, eax
je 0x14000582d
jg 0x140005824
mov ebx, eax
jmp 0x14000582d
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140005842
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400079f0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x140018018]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbp, rcx
mov r14d, 1
mov rcx, qword [rdx]
mov ebx, r14d
mov rdi, rdx
call fcn.14000827c
mov rsi, rax
cmp rax, qword [rdi]
je 0x140007b7c
lea rax, [rsp + 0x240]
mov dword [rsp + 0x28], 0x104
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbp
lea edx, [r14 + 7]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
jne 0x140007ab4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x140007a95
jg 0x140007a95
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
cmove eax, r14d
jmp 0x140007b81
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
cmove eax, r14d
movzx eax, ax
or eax, 0x80070000
jmp 0x140007b81
cmp ebx, 0x1f4
jg 0x140007b7c
mov eax, ebx
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x240]
mov dword [rsp + 0x20], eax
lea r8, str._s__d__s
mov edx, 0x104
lea rcx, [rsp + 0x30]
add ebx, r14d
call fcn.140004494
test eax, eax
js 0x140007b06
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140007ab4
lea rcx, [rsp + 0x30]
call fcn.1400107e4
mov ebx, eax
test eax, eax
js 0x140007b78
lea rcx, [rsp + 0x30]
call fcn.140006e44
mov ebx, eax
test eax, eax
js 0x140007b78
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
je 0x140007a6c
lea rcx, [rsp + 0x30]
call fcn.140009814
mov ebx, eax
test eax, eax
js 0x140007b78
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rdi], rax
mov eax, ebx
jmp 0x140007b81
mov eax, 0x80004005
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140001580
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140007d14
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140018018]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor edi, edi
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x140007dba
cmp dword [rbx + 0x10], 0
jne 0x140007db1
cmp qword [rbx], 0
je 0x140007db1
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_memset
mov rdx, qword [rbx]
lea r9, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rsi
call fcn.140006eec
test eax, eax
je 0x140007dac
mov edx, 0x80
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
test eax, eax
je 0x140007dac
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
test eax, eax
jne 0x140007db1
mov edi, 1
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140007d45
mov eax, edi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140001580
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140007de8
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
and qword [rax - 0x18], rbx
xor r8d, r8d
mov dword [rax - 0x20], 0x2000000
mov edx, 0x20000
mov dword [rax - 0x28], 3
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140007ed6
and qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x60]
lea rcx, [0x14001450c]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
nop dword [rax + rax]
test eax, eax
je 0x140007ec7
and qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.14000936c
test eax, eax
js 0x140007e87
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
sete bl
jmp 0x140007ea0
cmp eax, 0x8007053c
jne 0x140007ea0
mov rcx, rsi
call fcn.140010640
test eax, eax
mov ecx, 1
cmovne ebx, ecx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140007eb6
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400089ec
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
and dword [rax - 0x20], 0
xor r8d, r8d
mov edx, 0x20000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140008ad4
and qword [rsp + 0x68], 0
lea rdx, [rsp + 0x68]
lea rcx, [0x140014388]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
nop dword [rax + rax]
test eax, eax
je 0x140008aa8
and qword [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14000936c
mov ebx, eax
test eax, eax
js 0x140008a95
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
xor ebx, ebx
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
jmp 0x140008ac3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140008ac3
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140008aef
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140008aef
movzx ebx, ax
or ebx, 0x80070000
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140008be0
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax + 0x20], 0
mov rbp, rcx
lea rcx, [rax + 0x20]
mov rsi, rdx
mov edi, 0x80004005
call fcn.140007c34
test eax, eax
js 0x140008ca9
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x30]
and qword [rsp + 0x30], 0
call fcn.14000a288
test eax, eax
js 0x140008c98
mov rbx, qword [rsp + 0x30]
lea r8, str._s_s
mov r9, rbp
mov qword [rsp + 0x20], rbx
mov edx, 0x104
mov rcx, rsi
call fcn.140009ffc
mov rcx, rbx
mov edi, eax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test edi, edi
js 0x140008c98
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
nop dword [rax + rax]
test eax, eax
jne 0x140008c98
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140008c98
movzx edi, ax
or edi, 0x80070000
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140008cc8
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x140018018]
xor rax, rsp
mov qword [rbp + 0xf0], rax
cmp dword [0x1400187c8], 0
mov rdi, rdx
mov r14, rcx
mov esi, 1
mov ebx, 0x80004005
je 0x140008d22
lea rcx, [0x1400187d0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp esi, 0x1f4
jg 0x140008d75
mov eax, esi
lea r8, str._s_s_d.tmp
mov dword [rsp + 0x28], eax
mov r9, r14
lea rax, [0x14001439c]
mov edx, 0x104
mov rcx, rdi
mov qword [rsp + 0x20], rax
inc esi
call fcn.140009ffc
mov ebx, eax
test eax, eax
js 0x140008eae
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140008d7d
jmp 0x140008d22
test ebx, ebx
js 0x140008eae
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x48]
and qword [rsp + 0x48], 0
lea r9, [rbp + 0x50]
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0xa0]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x70]
lea rax, [rbp]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140009984
mov ebx, eax
test eax, eax
js 0x140008eae
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
nop dword [rax + rax]
mov esi, 0x80070000
test eax, eax
jne 0x140008e05
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140008e01
movzx ebx, ax
or ebx, esi
test ebx, ebx
js 0x140008e82
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
xor r8d, r8d
mov edx, 0x1f0000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140008e6b
mov edx, 0x1240
mov r8d, 0x1200a9
mov rcx, rax
call qword [sym.imp.iertutil.dll_Ordinal_134]
nop dword [rax + rax]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140008e82
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140008e82
movzx ebx, ax
or ebx, esi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140008e98
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140008eae
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
cmp dword [0x1400187c8], 0
je 0x140008eca
lea rcx, [0x1400187d0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140001580
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret