joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009690
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x300
movaps xmmword [rsp + 0x2f0], xmm6
mov rsi, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x2e8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x290]
mov qword [rbx + 0x50], r15
movaps xmm6, xmmword [0x140114940]
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, [0x14011793a]
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov r9d, 0x3c3
call fcn.140061ec0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call fcn.140070470
test byte [0x14012e040], 0x19
jne 0x14000984d
lea rbx, [rsp + 0x80]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14009a700
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x140009804
lea r14, [rsp + 0x28]
mov qword [r14], rbx
mov rcx, rbx
call fcn.140096858
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov rdx, r14
call fcn.14007ce10
lea r14, [rsp + 0x50]
movaps xmmword [r14], xmm6
mov qword [r14 + 0x10], r15
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
cmovs rcx, qword [rbx + 8]
mov qword [rdx + 8], rcx
mov rcx, r14
call fcn.14007ce10
mov rcx, r14
call fcn.14007cd00
cmp byte [rsi + 0x17], 0
js 0x140009843
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov byte [rsp + 0x67], 0
mov word [rsp + 0x50], 0
cmp byte [rsp + 0x4f], 0
jns 0x140009804
mov rcx, qword [rsp + 0x38]
call fcn.140096334
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x290]
call fcn.140083f80
mov rcx, qword [rsp + 0x2e8]
xor rcx, rsp
call fcn.1400985e0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x2f0]
add rsp, 0x300
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rsi]
call fcn.140096334
jmp 0x1400097d6
lea rdx, [rsp + 0x50]
mov qword [rdx], rdi
lea rcx, str.ScopedBlockingCall
call fcn.1400e4800
jmp 0x14000972d
Function at 0x1400099e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 1
xor eax, eax
lock cmpxchg qword [rsi], rcx
sete bl
jne 0x140009a33
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400985e0
mov eax, ebx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi]
cmp rax, 1
jne 0x140009a13
movabs r15, 0x8637bd05af7
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x20], rax
mov rax, qword [fcn.14008cb20]
lea r12, [0x140095b10]
cmp rax, r12
jne 0x140009b47
lea rdi, [rsp + 0x28]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r15
jge 0x140009b7e
imul rax, rax, 0xf4240
cqo
idiv qword [0x14013e7d0]
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x28]
mov r13, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movabs rbp, 0x7fffffffffffffff
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [fcn.14008cb20]
cmp rax, r12
jne 0x140009b32
mov qword [rsp + 0x28], 0
mov rcx, rdi
call r13
mov rax, qword [rsp + 0x28]
cmp rax, r15
jge 0x140009b57
imul rax, rax, 0xf4240
cqo
idiv qword [0x14013e7d0]
mov rcx, qword [rsp + 0x20]
xor edx, edx
cmp rax, rcx
setns dl
add rdx, rbp
sub rax, rcx
cmovo rax, rdx
cmp rax, 0x3e7
jg 0x140009b26
xor ecx, ecx
call r14
mov rax, qword [rsi]
cmp rax, 1
je 0x140009abf
jmp 0x140009a13
mov ecx, 0x3e8
call fcn.1400c84e0
jmp 0x140009b18
lea rcx, [rsp + 0x28]
call qword [0x140150008]
lea rax, [rsp + 0x28]
mov rax, qword [rax]
jmp 0x140009af4
lea rcx, [rsp + 0x20]
call qword [0x140150008]
jmp 0x140009aa2
mov rcx, qword [0x14013e7d0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140009af4
mov rcx, qword [0x14013e7d0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140009a9d
Function at 0x14000deb0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], r14
movaps xmm0, xmmword [0x140114940]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0xa8
call fcn.140061ec0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call fcn.140070470
test byte [0x14012e040], 0x19
jne 0x14000df9a
lea rdi, [rsp + 0x28]
mov qword [rdi + 8], r14
mov qword [rdi], 0
lea rbx, [rsp + 0x48]
mov qword [rbx], r14
mov rcx, qword [rsi]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rbx]
mov rcx, rdi
call fcn.140083f40
lea rcx, [rsp + 0x50]
call fcn.140083f80
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400985e0
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, [rsp + 0x48]
mov qword [rdx], rdi
lea rcx, str.ScopedBlockingCall
call fcn.1400e4800
jmp 0x14000df39

Function at 0x14000dfb0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x50]
mov qword [r15 + 0x50], r12
movaps xmm0, xmmword [0x140114940]
movaps xmmword [r15 + 0x40], xmm0
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x28]
mov rcx, r14
mov r9d, 0x5b
call fcn.140061ec0
mov rcx, r15
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call fcn.140070470
test byte [0x14012e040], 0x19
jne 0x14000e0bf
test esi, esi
js 0x14000e0d8
mov qword [rsp + 0x30], r12
xor eax, eax
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000e0df
mov esi, dword [rsp + 0x48]
test esi, esi
js 0x14000e0f2
lea rcx, [rsp + 0x28]
call fcn.140083f40
lea rcx, [rsp + 0x50]
call fcn.140083f80
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400985e0
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rdx, [rsp + 0x48]
mov qword [rdx], r14
lea rcx, str.ScopedBlockingCall
call fcn.1400e4800
jmp 0x14000e048
mov esi, 0xffffffff
jmp 0x14000e092
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14000e088
int3
Function at 0x140010a30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140098580
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14009a700
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010af1
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140010af5
lea rdi, [rsp + 0x840]
mov rcx, rdi
call fcn.140096858
mov rcx, rsi
mov rdx, rdi
mov r8, rax
call fcn.140010b50
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400985e0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140010ad2
cmp eax, 2
jne 0x140010b40
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14009a700
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x140010b47
lea rdi, [rsp + 0x40]
jmp 0x140010aba
mov edi, 0x3f4
jmp 0x140010ad2
mov edi, 0xea
jmp 0x140010ad2
Function at 0x140011bc0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.14009633c
mov rsi, rax
mov rax, qword [0x14012dfa0]
and rax, r15
cmp rax, qword [0x14012df88]
je 0x140011c84
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x140001960]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140011c8e
test r14, r14
je 0x140011cd9
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400985e0
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r15
call fcn.140062440
jmp 0x140011c1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x140011ca7
mov ebp, eax
cmp eax, 0x5af
je 0x140011ca7
cmp ebp, 0xe
jne 0x140011ce7
mov rcx, rbx
call fcn.1400e4c30
test rsi, rsi
je 0x140011c60
mov rcx, qword [rsi]
mov rax, qword [0x14012dfa0]
and rax, rcx
cmp rax, qword [0x14012df88]
jne 0x140011ccf
call fcn.14006a8b0
mov rcx, rsi
call fcn.140096334
jmp 0x140011c60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011c60
mov eax, dword [0x14013e708]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140011d5f
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, ebp
call fcn.140054cd0
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
cmovs rcx, qword [rbx + 8]
lea rdx, [rsp + 0x48]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov rcx, qword [0x14013e700]
call fcn.140061fc0
cmp byte [rbx + 0x17], 0
jns 0x140011caf
mov rcx, qword [rsp + 0x30]
call fcn.140096334
jmp 0x140011caf
lea rcx, [0x14013e708]
call fcn.140096578
cmp dword [0x14013e708], 0xffffffff
jne 0x140011d08
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140008530
mov qword [0x14013e700], rax
lea rcx, [0x14013e708]
call fcn.1400966f0
jmp 0x140011d08
Function at 0x14001d390
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140146310]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14001d480
cmp byte [0x140146318], 0
je 0x14001d425
mov rax, qword [0x140146328]
lea rcx, [0x140146310]
mov rdx, qword [0x140146320]
mov qword [0x140146320], rax
mov rsi, rdx
shl rsi, 0x17
xor rsi, rdx
mov rdx, rax
shr rdx, 0x1a
xor rdx, rax
xor rdx, rsi
shr rsi, 0x11
xor rsi, rdx
mov qword [0x140146328], rsi
add rsi, rax
shr rsi, 0x20
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400985e0
mov eax, esi
add rsp, 0x30
pop rsi
ret
movabs rsi, 0xaaaaaaaaaaaaaaaa
xorps xmm0, xmm0
movups xmmword [0x140146320], xmm0
lea rcx, [rsp + 0x20]
mov qword [rcx], rsi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14001d491
lea rcx, [rsp + 0x20]
mov rax, qword [rcx]
mov qword [0x140146320], rax
mov qword [rcx], rsi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14001d494
mov rax, qword [rsp + 0x20]
mov byte [0x140146318], 1
jmp 0x14001d3c9
lea rcx, [0x140146310]
call fcn.140062f20
jmp 0x14001d3b9
int3
int3
Function at 0x14001de80
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x48], rax
test rcx, rcx
je 0x14001df5d
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x40]
mov qword [rbx], 0
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov r14, rax
call r15
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rdi
mov r8, r14
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, eax
test eax, eax
je 0x14001df61
mov r14, qword [rsp + 0x40]
cmp qword [rsi], r14
je 0x14001df27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14001df47
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14001df1f
mov qword [rsi], r14
call fcn.140061fd0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
setne bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400985e0
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140061fd0
mov rcx, qword [rsi]
call fcn.14008d840
mov qword [rsi], 0
jmp 0x14001df0d
mov bl, 1
jmp 0x14001df2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14001df1f
Function at 0x14001fd50
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14001ff06
cmp qword [rsi], 0
jne 0x14001ff06
cmp dword [rsi + 0x14], 0
jne 0x14001ff06
cmp qword [rsi + 8], 0
jne 0x14001ff06
xor eax, eax
mov r15, qword [rdi]
cmp rax, r15
je 0x14001fdc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14001fe14
lea rax, [r15 + 1]
cmp rax, 2
jb 0x14001fdba
mov qword [rsi], r15
call fcn.140061fd0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15, qword [rdi + 8]
cmp qword [rsi + 8], r15
je 0x14001fdfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14001fe48
lea rax, [r15 + 1]
cmp rax, 2
jb 0x14001fdf4
mov qword [rsi + 8], r15
call fcn.140061fd0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140061fd0
mov r14, qword [rsi]
cmp qword [0x140142d48], 0
je 0x14001fe7e
mov rcx, qword [0x140142d48]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x140150008]
mov qword [rsi], 0
jmp 0x14001fda8
call fcn.140061fd0
mov r14, qword [rsi + 8]
cmp qword [0x140142d48], 0
je 0x14001febc
mov rcx, qword [0x140142d48]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x140150008]
mov qword [rsi + 8], 0
jmp 0x14001fde1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14011a090]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001ff16
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14001fefa
call qword [0x140150008]
mov rcx, rax
xor edx, edx
call fcn.140021bd0
jmp 0x14001fe26
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14011a090]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001ff1a
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14001ff00
call qword [0x140150008]
mov rcx, rax
xor edx, edx
call fcn.140021bd0
jmp 0x14001fe5b
xor ecx, ecx
mov dl, 1
jmp 0x14001feb2
xor ecx, ecx
mov dl, 1
jmp 0x14001fef0
mov rcx, rsi
call fcn.1400f2770
mov rax, qword [rsi]
jmp 0x14001fd8c
xor ecx, ecx
jmp 0x14001feb0
xor ecx, ecx
jmp 0x14001feee
Function at 0x140021000
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x6c], 0
jne 0x140021136
mov rdi, rdx
mov rsi, rcx
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
test rdi, rdi
jne 0x14002113d
lea r8, [rsp + 0x38]
mov rcx, rbx
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002116e
mov rdi, qword [rsp + 0x38]
cmp qword [rsi + 0x48], rdi
je 0x1400210a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x48]
inc rax
cmp rax, 2
jae 0x14002111b
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002109b
mov qword [rsi + 0x48], rdi
call fcn.140061fd0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x48]
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x10], r14
movaps xmm0, xmmword [0x140114940]
movaps xmmword [rbx], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.1400211b0
cmp byte [rbx], 0
je 0x140021178
lea rcx, [rsi + 0x58]
cmp byte [rsi + 0x50], 0
lea rbx, [rsp + 0x48]
mov rdx, rbx
jne 0x14002117f
call fcn.1400212b0
mov byte [rsi + 0x50], 1
cmp byte [rsp + 0x40], 0
je 0x1400210fc
mov rcx, rbx
call fcn.140020f70
mov byte [rsi + 0x6c], 1
xor edi, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400985e0
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140061fd0
mov rcx, qword [rsi + 0x48]
call fcn.14008d840
mov qword [rsi + 0x48], 0
jmp 0x140021088
mov edi, 0x4df
jmp 0x140021102
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x38]
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
jmp 0x14002105c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140021102
mov edi, 0x3f0
jmp 0x140021102
call fcn.14005c600
xor edi, edi
cmp byte [rsp + 0x40], 0
mov byte [rsi + 0x6c], 1
je 0x140021102
mov rcx, rbx
call fcn.140020f70
jmp 0x140021102

Function at 0x1400212b0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x1400212d6
call fcn.140061fd0
cmp qword [rsi], rbx
je 0x140021305
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140021312
cmp r14, 2
jb 0x1400212fd
mov qword [rsi], rbx
call fcn.140061fd0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140061fd0
mov rcx, qword [rsi]
call fcn.14008d840
mov qword [rsi], 0
jmp 0x1400212ef
Function at 0x140021a40
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp byte [rcx + 0x6c], 0
je 0x140021b9f
mov rbx, rdx
lea rdx, [rsp + 0x40]
mov qword [rdx], 0
call fcn.140022020
test eax, eax
jne 0x140021ba6
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x38]
mov qword [rcx], rax
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 2
xor esi, esi
mov rcx, rdi
mov edx, 0xf01ff
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140021bb2
mov r14, qword [rsp + 0x38]
cmp qword [rbx], r14
je 0x140021afc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x140021b45
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140021af4
mov qword [rbx], r14
call fcn.140061fd0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140021b2b
call fcn.140061fd0
cmp qword [0x140142d48], 0
je 0x140021b5b
mov rcx, qword [0x140142d48]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rdi
call qword [0x140150008]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400985e0
mov eax, esi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.140061fd0
mov rcx, qword [rbx]
call fcn.14008d840
mov qword [rbx], 0
jmp 0x140021ae2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14011a090]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140021bbf
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140021b99
call qword [0x140150008]
mov rcx, rax
xor edx, edx
call fcn.140021bd0
jmp 0x140021b15
xor ecx, ecx
mov dl, 1
jmp 0x140021b8f
mov esi, 0x3f0
jmp 0x140021b2b
mov esi, eax
mov rdi, qword [rsp + 0x40]
jmp 0x140021afc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140021afc
xor ecx, ecx
jmp 0x140021b8d
Function at 0x140021e00
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x6c], 0
je 0x140022009
mov rdi, rcx
cmp byte [rcx + 0x50], 0
je 0x140022010
mov rsi, rdx
mov rdx, qword [rdi + 0x58]
lea rbx, [rsp + 0x50]
mov rcx, rbx
mov r8d, 2
call fcn.140022cf0
mov r13, qword [rbx]
mov rbp, qword [rbx + 8]
cmp r13, rbp
je 0x140021f6f
lea rbx, [rdi + 0x18]
xorps xmm6, xmm6
mov eax, dword [r13 + 0x18]
cmp eax, 0xbfffffff
ja 0x140021f38
and eax, 0x20
jne 0x140021f38
mov r15, qword [rsi]
mov r12, qword [rsi + 8]
cmp r15, r12
je 0x140021eae
mov rdx, qword [r13]
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140021f38
add r15, 0x18
jmp 0x140021e8e
mov r15, qword [r13]
mov r12, qword [r13 + 8]
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
sub r12, r15
je 0x140021ef8
js 0x140021fd8
mov rcx, r12
call fcn.14009633c
mov qword [rsp + 0x30], rax
lea r14, [rax + r12]
mov qword [rsp + 0x40], r14
mov rcx, rax
mov rdx, r15
mov r8, r12
call fcn.14009a050
mov qword [rsp + 0x38], r14
mov rax, qword [rdi + 0x20]
cmp rax, qword [rdi + 0x28]
jae 0x140021f47
test rax, rax
je 0x140021fdd
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
add rax, 0x18
mov qword [rdi + 0x20], rax
add r13, 0x20
cmp r13, rbp
jne 0x140021e6f
jmp 0x140021f6a
mov rcx, rbx
lea rdx, [rsp + 0x30]
call fcn.140021550
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140021f38
mov qword [rsp + 0x38], rcx
call fcn.140096334
jmp 0x140021f38
mov r13, qword [rsp + 0x50]
test r13, r13
je 0x140021fae
mov rax, qword [rsp + 0x58]
mov rcx, r13
cmp rax, r13
je 0x140021fa4
lea rsi, [rax - 0x20]
mov rcx, qword [rax - 0x20]
test rcx, rcx
je 0x140021f97
mov qword [rax - 0x18], rcx
call fcn.140096334
mov rax, rsi
cmp rsi, r13
jne 0x140021f81
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x58], r13
call fcn.140096334
xor esi, esi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400985e0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400ae5f0
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400c9120
mov esi, 0x3f0
jmp 0x140021fb0
ud2