joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001650
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rdi, qword [rbp + 0x7f]
mov r14, rdx
lea rdx, [rbp - 0x29]
mov esi, r9d
mov r15, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x1400016a4
lfence
lea rcx, [0x140003050]
call fcn.140001180
jmp 0x140001754
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rcx, [0x140003070]
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x31], r14
call fcn.140001180
mov rdx, qword [rbp - 0x39]
lea rcx, [0x1400030a0]
call fcn.140001180
mov rdx, qword [rbp - 0x31]
lea rcx, [0x1400030b0]
call fcn.140001180
mov edx, esi
lea rcx, [0x1400030c0]
call fcn.140001180
mov ebx, dword [rbp + 0x77]
lea rcx, [0x1400030e0]
mov edx, ebx
call fcn.140001180
lea r9, [rbp - 0x31]
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea rdx, [rbp - 0x39]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
test eax, eax
jns 0x140001739
lfence
mov edx, eax
lea rcx, [0x1400030f0]
call fcn.140001180
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x39]
mov qword [rdi], rcx
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400029a0
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140001c10
Capabilities:
Attach user process memory
Create thread
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rdx
mov rsi, r8
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x140001c58
lfence
lea rcx, [0x140003010]
call fcn.140001180
jmp 0x140001ce2
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov qword [rsp + 0x30], rdi
xor edx, edx
and qword [rsp + 0x28], 0
or rcx, 0xffffffffffffffff
and qword [rsp + 0x20], 0
call sub.ntoskrnl.exe_RtlCreateUserThread
mov ebx, eax
lfence
test eax, eax
jns 0x140001cc1
lea rcx, [0x140003030]
call fcn.140001180
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001ce2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400029a0
add rsp, 0xa0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001d00
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x140001d28
lfence
lea rcx, [0x140003120]
call fcn.140001180
jmp 0x140001d62
lea rdx, [rsp + 0x38]
mov ecx, 4
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
lfence
test eax, eax
jns 0x140001d4a
lea rcx, [0x140003140]
jmp 0x140001d21
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x4b8]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x4b8], rcx
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140001d6c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x140001da3
lfence
lea rcx, [0x140002ff0]
call fcn.140001180
jmp 0x140001dd7
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
xor edx, edx
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwTerminateProcess]
lea rcx, [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400029a0
add rsp, 0x60
pop rbx
ret

Function at 0x140001dec
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, qword [rsp + 0xc0]
mov edi, r9d
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x38], r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x140001e3d
lfence
lea rcx, [0x140003170]
call fcn.140001180
jmp 0x140001e90
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9d, edi
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x38]
or rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
call sub.ntoskrnl.exe_ZwProtectVirtualMemory
mov ebx, eax
test eax, eax
jns 0x140001e7a
lea rcx, [0x140003190]
call fcn.140001180
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400029a0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001ef4
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rdx
mov rdi, r9
lea rdx, [rsp + 0x40]
mov rsi, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001f20
lfence
jmp 0x140001f85
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001f1b
mov r9, qword [rsp + 0x90]
lea rax, [rsp + 0x50]
mov r8, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
call fcn.140002327
mov ebx, eax
test eax, eax
jns 0x140001f6a
xor eax, eax
jmp 0x140001f85
lfence
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14000c090
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14000c10d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14000c0dc
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14000c0ca
mov qword [rdi], rsi
call fcn.140119350
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140119350
mov r14, qword [rdi]
cmp qword [0x1402c6cc0], 0
je 0x14000c117
mov rcx, qword [0x1402c6cc0]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x1402a4f40]
mov qword [rdi], 0
jmp 0x14000c0b8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140289f9f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c158
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14000c152
call qword [0x1402a4f40]
mov rcx, rax
xor edx, edx
call fcn.1400445d0
jmp 0x14000c0ee
xor ecx, ecx
mov dl, 1
jmp 0x14000c14b
xor ecx, ecx
jmp 0x14000c149

Function at 0x14000c6a0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1402c36f0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 0x120], 0
je 0x14000c75d
mov eax, dword [0x1402c36f0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x188], 1
je 0x14000c759
mov ecx, dword [rsi + 0x1928]
test ecx, ecx
jne 0x14000c759
mov ecx, 1
lock xadd dword [rsi + 0x1928], ecx
cmp ecx, 0x7fffffff
je 0x14000c767
test rsi, rsi
je 0x14000c76a
lea rbx, [rax + 0x188]
call fcn.1400181b0
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.140018270
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140144a30
mov ecx, dword [0x1402c7010]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [rbx], rdi
lock dec dword [rsi + 0x1928]
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor edi, edi
jmp 0x14000c74e
call fcn.140191c18
jmp 0x14000c6ca
int3
int3
Function at 0x14000e630
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402c6a50]
mov ecx, dword [0x1402c36f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000e690
lea rsi, [0x1402c6a48]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140192360
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402c6a50]
call fcn.14018fd10
cmp dword [0x1402c6a50], 0xffffffff
jne 0x14000e66c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1401ce350
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.14018fb98
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1402c6a98]
mov ecx, dword [0x1402c36f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000e750
lea r8, [0x1402c6a68]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002d680
mov qword [0x1402c6a48], rsi
lea rcx, [0x1402c6a50]
call fcn.14018fca4
jmp 0x14000e66c
lea rcx, [0x1402c6a98]
call fcn.14018fd10
cmp dword [0x1402c6a98], 0xffffffff
jne 0x14000e721
xorps xmm0, xmm0
movups xmmword [0x1402c6a88], xmm0
movups xmmword [0x1402c6a78], xmm0
movups xmmword [0x1402c6a68], xmm0
lea rcx, [0x1402c6a68]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402c6a98]
call fcn.14018fca4
jmp 0x14000e721
Function at 0x140013450
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, rcx
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x140270080]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.GetLength
lea r8, [0x140282aa8]
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0xac
call fcn.14012d160
xor edi, edi
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.140159f70
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r14], rax
mov rcx, qword [rbx]
lea rbx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb rdi, rdi
or rdi, qword [rbx]
mov rcx, rsi
call fcn.140159a80
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140192360
mov rax, rdi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400136a0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.140192300
sub rsp, rax
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x1402c28d8]
cmp esi, 0xffffffff
je 0x140013753
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140013785
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.1401ce350
lea rdx, [rsp + 0x23]
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call r14
mov ecx, 0x1000
call fcn.14018fd88
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call fcn.1401cdcb0
mov rdx, rbx
or rdx, 3
mov ecx, esi
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140192360
mov rax, rbx
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140013788
mov esi, eax
mov eax, 0xffffffff
lock cmpxchg dword [0x1402c28d8], esi
je 0x1400136d3
mov ecx, esi
call sub.KERNEL32.dll_TlsFree
mov esi, dword [0x1402c28d8]
jmp 0x1400136d3
int3
int3
Function at 0x140014a60
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x140014aa6
mov r15, rbx
test r15, r15
je 0x140014ba1
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x140014b02
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140014af1
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1401cdcb0
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x140014a82
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x140014bc7
lea rcx, [r13*8]
call fcn.14018fb98
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x140014b67
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x140014ba1
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x140014b4c
add r15, rcx
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x140014b87
add rbx, 0xfffffffffffffff8
jne 0x140014b7a
jmp 0x140014bb4
test r12, r12
je 0x140014a82
mov rcx, r12
call fcn.14018fb90
mov r15, qword [rsi + 0x10]
jmp 0x140014a82
lea rcx, [0x140275393]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1401cf0c0
lea rcx, [0x140275393]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1401cf0c0
call fcn.1401cf0c0
int3
Function at 0x14001a7b0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xfffffffc00000000
shl ebp, 0x10
mov ecx, Ordinal_26
call fcn.14018fb98
mov rsi, rax
mov rax, r15
and rax, r12
cmp rax, qword [0x1402b6788]
jne 0x14001a81d
mov rcx, r15
call fcn.1400fda20
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14001f1c0]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14001a891
test r14, r14
je 0x14001a886
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140192360
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001a860
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0x27a
jle 0x14001a8db
cmp ebp, 0x5af
je 0x14001a8b0
cmp ebp, 0x27b
jne 0x14001a8e5
mov rcx, rbx
call fcn.1401fcbd0
test rsi, rsi
je 0x14001a860
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x1402b6788]
jne 0x14001a8d1
call fcn.1400fdce0
mov rcx, rsi
call fcn.14018fb90
jmp 0x14001a860
cmp ebp, 8
je 0x14001a8b0
cmp ebp, 0xe
je 0x14001a8b0
mov eax, dword [0x1402c6ab8]
mov ecx, dword [0x1402c36f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001a99a
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.14009e460
movsx rax, byte [rbx + 0x17]
test rax, rax
jns 0x14001a92d
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
test rax, rax
js 0x14001a974
sete al
test rbx, rbx
setne cl
or cl, al
je 0x14001a987
mov rcx, qword [0x1402c6ab0]
lea rdx, [rsp + 0x50]
call fcn.140007930
cmp byte [rsp + 0x4f], 0
jns 0x14001a8b8
mov rcx, qword [rsp + 0x38]
call fcn.14018fb90
jmp 0x14001a8b8
lea rcx, [0x140275393]
lea rdx, str....._third_partylibc_srcinclude_string_view:318:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
call fcn.1401cf0c0
lea rcx, [0x140275393]
lea rdx, str....._third_partylibc_srcinclude_string_view:320:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.1401cf0c0
lea rcx, [0x1402c6ab8]
call fcn.14018fd10
cmp dword [0x1402c6ab8], 0xffffffff
jne 0x14001a90a
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14000be50
mov qword [0x1402c6ab0], rax
lea rcx, [0x1402c6ab8]
call fcn.14018fca4
jmp 0x14001a90a
Function at 0x1400218c0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov byte [rcx + 8], 0
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
lea rax, [0x1402729e8]
mov qword [rcx], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x140021932
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x14002193f
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002192a
mov qword [rsi + 0x18], rdi
call fcn.140119350
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140119350
mov r14, qword [rsi + 0x18]
cmp qword [0x1402c6cc0], 0
je 0x140021972
mov rcx, qword [0x1402c6cc0]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x1402a4f40]
mov qword [rsi + 0x18], 0
jmp 0x140021917
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140289f9f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400219b3
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x1400219ad
call qword [0x1402a4f40]
mov rcx, rax
xor edx, edx
call fcn.1400445d0
jmp 0x140021952
xor ecx, ecx
mov dl, 1
jmp 0x1400219a6
xor ecx, ecx
jmp 0x1400219a4
Function at 0x140024280
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov eax, dword [0x1402cd968]
mov ecx, dword [0x1402c36f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400243b5
mov ecx, dword [0x1402c28d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400242e1
mov rcx, qword [0x1402cd958]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402cd960]
jne 0x1400242e1
add rax, rcx
cmp qword [rax], 0
jne 0x140024374
mov ecx, 4
call fcn.14018fb98
mov rsi, rax
mov dword [rax], 0
mov ecx, dword [0x1402c28d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400243ae
mov rcx, qword [0x1402cd958]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402cd960]
jne 0x1400243ae
add rax, rcx
mov rdi, qword [rax]
mov ecx, dword [0x1402c28d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x140024347
test rsi, rsi
je 0x14002436b
call fcn.1400136a0
mov rcx, qword [0x1402cd958]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1402cd960]
mov rdx, qword [0x1402cd958]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test rdi, rdi
jne 0x140024408
mov ecx, dword [0x1402c28d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400243aa
mov rcx, qword [0x1402cd958]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402cd960]
jne 0x1400243aa
add rax, rcx
mov rax, qword [rax]
add rsp, 0x28
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x1400243a3
xor edi, edi
jmp 0x14002432b
lea rcx, [0x1402cd968]
call fcn.14018fd10
cmp dword [0x1402cd968], 0xffffffff
jne 0x1400242ab
mov qword [0x1402cd960], 0
lea rcx, [0x1402cd958]
mov qword [0x1402cd958], 0xffffffffffffffff
lea rdx, [0x140066b50]
call fcn.14002d530
lea rcx, [0x1402cd968]
call fcn.14018fca4
jmp 0x1400242ab
mov rcx, rdi
call fcn.14018fb90
jmp 0x140024374
Function at 0x140029030
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x338
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x330], rax
lea rbx, [rsp + 0x68]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.1401ce350
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rsi
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14002ef00
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [0x140270080]
movaps xmmword [rsi], xmm0
mov rcx, rbx
mov rdx, rsi
call fcn.1400293b0
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x1400290cd
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140029194
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x68]
lea rbx, [rsp + 0x38]
xor r13d, r13d
cmp byte [rsp + 0x68], 0
je 0x1400291d9
mov edx, dword [rsp + 0x6c]
test dl, 1
jne 0x1400291e3
test dl, 0x10
jne 0x1400291d2
cmp byte [rsp + 0x67], 0
mov rcx, rsi
jns 0x140029124
mov rcx, qword [rsp + 0x50]
call r15
test eax, eax
jne 0x1400291d2
call r12
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
cmove ebp, r14d
test r13d, r13d
cmovne ebp, r13d
mov rcx, rdi
mov rdx, rbx
call fcn.1400293b0
cmp byte [rsp + 0x67], 0
jns 0x140029161
mov rcx, qword [rsp + 0x50]
call fcn.14018fb90
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x50], xmm0
movsx rax, byte [rsp + 0x67]
mov rcx, rax
test rax, rax
jns 0x140029188
mov rcx, qword [rsp + 0x58]
mov r13d, ebp
test rcx, rcx
jne 0x1400290f4
test al, al
jns 0x1400291a2
mov rcx, qword [rsp + 0x50]
call fcn.14018fb90
lea rcx, [rsp + 0x68]
call fcn.140029210
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.140192360
mov eax, ebp
add rsp, 0x338
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x14002913e
call fcn.1401d1710
jmp 0x140029115
xor ebp, ebp
test dl, 0x10
jne 0x14002913e
test al, al
jns 0x1400291f9
mov rcx, qword [rsp + 0x50]
jmp 0x1400291fe
lea rcx, [rsp + 0x50]
and edx, 0xffffffee
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140029115