joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004e6d0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14004e6f7
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14004e731
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14004e750
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140149190
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14004e830
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140149190
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140144ac0
test al, al
je 0x14004e81b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x265
mov r9d, 2
call fcn.1401a58f0
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.14012f860
mov rdi, rax
movsx rax, byte [rsi + 0x17]
test rax, rax
jns 0x14004e7b3
mov rax, qword [rsi + 8]
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rax
test rax, rax
js 0x14004e822
sete al
test rsi, rsi
setne cl
or cl, al
je 0x14004e822
lea rsi, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140127360
movsx r8, byte [rsi + 0x17]
test r8, r8
jns 0x14004e7f5
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.14012f860
cmp byte [rsp + 0x57], 0
jns 0x14004e811
mov rcx, qword [rsp + 0x40]
call fcn.140146640
lea rcx, [rsp + 0x58]
call fcn.1401a5960
xor esi, esi
jmp 0x14004e734
ud2

Function at 0x14004e830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [rcx + 0x17], 0
jns 0x14004e857
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004e8fd
mov dil, 1
test al, 0x10
je 0x14004e889
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140149190
mov eax, edi
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140144ac0
test al, al
je 0x14004e8f6
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.140030930
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14012f860
mov rcx, rax
mov rdx, rsi
call fcn.1401a67a0
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.14012f860
mov rcx, rdi
call fcn.1400502a0
xor edi, edi
jmp 0x14004e86d
mov ecx, 2
call fcn.140144ac0
test al, al
je 0x14004e8f6
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x251
mov r9d, 2
call fcn.1401a58f0
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14012f860
mov rcx, rax
mov rdx, rsi
call fcn.1401a67a0
mov rcx, rdi
call fcn.1401a5960
jmp 0x14004e8f6
Function at 0x14004f0d0
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
cmp dword [rcx + 0x10], 0
mov rcx, qword [rcx]
je 0x14004f21d
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsi + 0x30]
mov qword [rsi + 0x30], 0
test rdi, rdi
je 0x14004f120
mov rcx, rdi
call fcn.14004f260
mov rcx, rdi
call fcn.140146640
mov rdx, qword [rsi + 0x48]
mov qword [rsi + 0x48], 0
test rdx, rdx
je 0x14004f140
lea rcx, fcn.140002230
xor r8d, r8d
call fcn.140001050
mov rcx, qword [rsi + 0x38]
movabs rax, 0xfffffffc00000000
and rax, rcx
cmp rax, qword [0x140262688]
je 0x14004f213
mov rdi, qword [rsi + 0x30]
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
test rdi, rdi
jne 0x14004f240
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jae 0x14004f19f
lea rcx, [rsi + 0x20]
call fcn.140036280
lea rcx, [rsi + 0x18]
call fcn.140036280
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14003e320
call fcn.1400bbc10
mov rdi, qword [rsi + 0x28]
cmp qword [0x1402723f8], 0
je 0x14004f1d2
mov rcx, qword [0x1402723f8]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rdi
call qword [0x1402529a0]
mov qword [rsi + 0x28], 0
jmp 0x14004f17f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1402437e7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004f255
lea rcx, [sym.GptBrowser.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14004f20d
call qword [0x1402529a0]
mov rcx, rax
xor edx, edx
call fcn.140049fa0
jmp 0x14004f1b2
xor ecx, ecx
mov dl, 1
jmp 0x14004f206
call fcn.140004bf0
jmp 0x14004f15e
test rcx, rcx
jne 0x14004f0e6
cmp dword [rsi + 0x14], 0
jne 0x14004f0e6
cmp qword [rsi + 8], 0
jne 0x14004f0e6
jmp 0x14004f0ff
mov rcx, rdi
call fcn.14004f260
mov rcx, rdi
call fcn.140146640
jmp 0x14004f172
xor ecx, ecx
jmp 0x14004f204
Function at 0x140051ca0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14014b2c0
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140051d35
cmp word [rsp + 0x70], 0
je 0x140051d35
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1401469e0
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140100420
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140149190
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
call fcn.140054910
test al, al
jne 0x140051d83
lea rax, [0x14023d030]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140100420
cmp byte [rsp + 0x57], 0
jns 0x140051d17
mov rcx, qword [rsp + 0x40]
call fcn.140146640
jmp 0x140051d17
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
jmp 0x140051d17
Function at 0x140053cf0
Capabilities:
Get token privileges

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, qword [rcx]
lea r15, [rsp + 0x34]
mov dword [r15], 0
mov qword [rsp + 0x20], r15
mov rcx, r14
mov edx, 3
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140053e17
mov ebx, dword [rsp + 0x34]
test ebx, ebx
je 0x140053e17
mov rcx, rbx
call fcn.140146648
mov rsi, rax
xor eax, eax
mov rcx, rsi
add rcx, rax
je 0x140053e10
mov byte [rcx], 0
inc rax
cmp rbx, rax
jne 0x140053d56
mov qword [rsp + 0x20], r15
mov rcx, r14
mov edx, 3
mov r8, rsi
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140053e12
cmp ebx, 0x10
jb 0x140053e1b
mov ecx, dword [rsi]
lea rax, [rcx*4]
lea rdx, [rax + rax*2]
add rdx, 4
cmp rdx, rbx
ja 0x140053e1b
test ecx, ecx
je 0x140053dc9
lea rax, [rax + rax*2]
xor ecx, ecx
mov dword [rsi + rcx + 0xc], 4
add rcx, 0xc
cmp rax, rcx
jne 0x140053db8
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor edx, edx
mov r8, rsi
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
setne dil
test rsi, rsi
je 0x140053df5
mov rcx, rsi
call fcn.140146640
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140149190
mov eax, edi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
ud2
test rsi, rsi
jne 0x140053e1f
xor edi, edi
jmp 0x140053df5
xor edi, edi
jmp 0x140053de8
mov rcx, rsi
call fcn.140146640
jmp 0x140053e17

Function at 0x140053f90
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [rcx]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdx, [rsp + 0x38]
mov qword [rdx], rax
or r8d, 8
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 1
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14005405f
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x14005405f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14005405b
call fcn.1400bbc10
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsi], 0
mov bpl, 1
test rbx, rbx
je 0x14005403e
cmp rbx, 0xffffffffffffffff
je 0x140054066
call fcn.1400bbc10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsi], rbx
call fcn.1400bbc10
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], bpl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140149190
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
xor ebx, ebx
jmp 0x140054004
mov byte [rsi], 0
xor ebp, ebp
jmp 0x14005403e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140054036
Function at 0x140054910
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14014b2c0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1400549cd
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1401469e0
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140100420
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140054a00
cmp byte [rsi + 0x17], 0
jns 0x14005499f
mov rcx, qword [rsi]
call fcn.140146640
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
mov byte [rsp + 0x5f], 0
mov word [rsp + 0x48], 0
cmp byte [rsp + 0x47], 0
jns 0x1400549cd
mov rcx, qword [rsp + 0x30]
call fcn.140146640
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140149190
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140057dc0
Capabilities:
Clear file content

Disassembly:
push rsi
sub rsp, 0x170
mov rsi, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x168], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r8, [rsp + 0x160]
mov qword [r8], rax
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140057e3b
cmp qword [rsp + 0x160], 0
jne 0x140057ed6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x140057e85
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.140149190
mov eax, esi
add rsp, 0x170
pop rsi
ret
cmp dword [0x1402722f8], 2
jg 0x140057ed6
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xf2
mov r9d, 2
call fcn.1401a58f0
lea rcx, [rsp + 0x38]
lea rdx, [0x14024abde]
mov r8d, 0x10
jmp 0x140057ec9
cmp dword [0x1402722f8], 2
jg 0x140057ed6
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xfc
mov r9d, 2
call fcn.1401a58f0
lea rcx, [rsp + 0x38]
lea rdx, [0x14024abef]
mov r8d, 0xc
call fcn.14012f860
mov rcx, rsi
call fcn.1401a5960
xor esi, esi
jmp 0x140057e20

Function at 0x140059360
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x170
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov sil, 1
test r8, r8
je 0x1400593e6
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov r12d, 0xffffffff
lea r15, [rsp + 0x30]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, r12
mov r8d, 0xffffffff
cmovb r8, rdi
mov dword [rsp + 0x30], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, r14
mov rdx, rbx
mov r9, r15
call r13
test eax, eax
je 0x14005940e
mov eax, dword [rsp + 0x30]
cmp rax, r12
je 0x14005940b
add rbx, rax
sub rdi, rax
jne 0x1400593a7
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.140149190
mov eax, esi
add rsp, 0x170
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
cmp dword [0x1402722f8], 2
jg 0x14005945f
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x8c
mov r9d, 2
call fcn.1401a58f0
lea rcx, [rsp + 0x40]
lea rdx, [0x14024ac58]
mov r8d, 9
call fcn.14012f860
mov rcx, rsi
call fcn.1401a5960
xor esi, esi
jmp 0x1400593e6
Function at 0x14005c480
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.14005ce10
mov rax, qword [rsi]
test rax, rax
je 0x14005c4f7
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x14005c4fe
lea rcx, [rsp + 0x28]
call fcn.14005c560
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140149190
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x14005c4d0
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 0
jne 0x14005c522
cmp byte [rbx + 0x27], 0
js 0x14005c517
lea rcx, [rbx + 0x10]
jmp 0x14005c51b
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
je 0x14005c52d
add rbx, 0x70
cmp rbx, r15
je 0x14005c4d0
jmp 0x14005c505
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jae 0x14005c54c
mov rcx, r14
mov rdx, rbx
call fcn.1401bc830
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x14005c522
mov rcx, rdi
mov rdx, rbx
call fcn.1401bc6e0
mov r14, rax
jmp 0x14005c546
Function at 0x1400645b0
Capabilities:
Get token privileges

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [rcx]
lea r15, [rsp + 0x2c]
mov dword [r15], 0
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov edx, 3
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400647d8
mov r14d, dword [rsp + 0x2c]
test r14d, r14d
je 0x1400647d8
mov rcx, r14
call fcn.140146648
mov rdi, rax
xor eax, eax
mov rcx, rdi
add rcx, rax
je 0x1400646f1
mov byte [rcx], 0
inc rax
cmp r14, rax
jne 0x14006461d
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov edx, 3
mov r8, rdi
mov r9d, r14d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400647d3
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov eax, dword [rdi]
test rax, rax
je 0x1400646c3
shl rax, 2
lea r14, [rax + rax*2]
mov rcx, r14
call fcn.140146648
mov rbx, rax
add r14, rax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], r14
lea r15, [rdi + 0xc]
xor r12d, r12d
mov r13, qword [r15 - 8]
mov rcx, qword [rsi + 0x10]
cmp rbx, rcx
jae 0x1400646f7
test rbx, rbx
je 0x1400646f1
mov eax, dword [r15]
mov qword [rbx], r13
mov dword [rbx + 8], eax
add rbx, 0xc
mov qword [rsi + 8], rbx
inc r12
mov eax, dword [rdi]
add r15, 0xc
cmp r12, rax
jb 0x140064692
test rdi, rdi
je 0x1400646d0
mov rcx, rdi
call fcn.140146640
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140149190
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
xor eax, eax
jmp 0x140064769
movabs rax, 0x1555555555555555
mov r8, qword [rsi]
sub rbx, r8
sar rbx, 2
movabs r9, 0xaaaaaaaaaaaaaaab
imul rbx, r9
lea rdx, [rbx + 1]
cmp rdx, rax
ja 0x1400647c9
sub rcx, r8
sar rcx, 2
imul rcx, r9
lea rbp, [rcx + rcx]
cmp rbp, rdx
ja 0x14006473d
mov rbp, rdx
movabs rdx, 0xaaaaaaaaaaaaaaa
cmp rcx, rdx
cmovae rbp, rax
test rbp, rbp
je 0x1400646f3
cmp rbp, rax
ja 0x1400647ce
lea rax, [rbp*4]
lea rcx, [rax + rax*2]
call fcn.140146648
lea r14, [rbx + rbx*2]
shl r14, 2
add r14, rax
je 0x1400646f1
lea rcx, [rbp*2]
add rcx, rbp
lea rbp, [rax + rcx*4]
mov eax, dword [r15]
mov qword [r14], r13
mov dword [r14 + 8], eax
lea rbx, [r14 + 0xc]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
sub r14, r8
mov rcx, r14
call fcn.14014ac10
mov rcx, qword [rsi]
mov qword [rsi], r14
mov qword [rsi + 0x10], rbp
test rcx, rcx
je 0x1400646b1
call fcn.140146640
jmp 0x1400646b1
call fcn.140187c70
call fcn.140187a10
test rdi, rdi
jne 0x1400647eb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x1400646d0
mov rcx, rdi
call fcn.140146640
jmp 0x1400647d8
Function at 0x140067220
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
mov edi, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x14022cb50]
lea r15, [rsp + 0x50]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r12, [rsp + 0x30]
mov rcx, r12
mov r9d, 0x97
call fcn.1400d3160
xor esi, esi
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.14010c930
test edi, edi
js 0x1400672fb
lea r15, [rsp + 0x30]
mov dword [r15], 0xaaaaaaaa
mov rcx, qword [r14]
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8d, edi
mov r9, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [r15]
lea rcx, [rsp + 0x50]
call fcn.14010c450
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140149190
mov eax, esi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400672ce
Function at 0x1400675b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x14022cb50]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0x20d
call fcn.1400d3160
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call fcn.1400bc840
mov qword [rsp + 0x80], 0xb
mov al, byte [0x140271fcb]
test al, al
jne 0x14006766d
cmp byte [rsi + 0x17], 0
jns 0x140067637
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
lea rcx, [rsp + 0x40]
call fcn.14010c450
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140149190
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
movzx ecx, al
lea r9, [rsp + 0x90]
mov qword [r9], rdi
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0x88]
mov qword [r8], rax
lea rdx, [rsp + 0x80]
call fcn.1401a2ec0
jmp 0x14006762e
Function at 0x1400676a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rdi, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movaps xmm0, xmmword [0x14022cb50]
lea rbx, [rsp + 0x60]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.PathHasAccess
lea r8, str....._base_files_file_util_win.cc
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov r9d, 0x216
call fcn.1400d3160
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call fcn.1400bc840
mov qword [rsp + 0xa0], 0xb
mov al, byte [0x140271fcb]
test al, al
jne 0x14006784e
cmp byte [rdi + 0x17], 0
jns 0x14006772b
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006784a
test al, 0x10
mov eax, 0x40000000
mov edx, 2
cmove edx, eax
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 3
xor esi, esi
mov rcx, rdi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x1400677a8
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x140067805
call fcn.1400bbc10
mov rsi, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
setne dil
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400677de
call fcn.1400bbc10
cmp qword [0x1402723f8], 0
je 0x140067809
mov rcx, qword [0x1402723f8]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rsi
call qword [0x1402529a0]
lea rcx, [rsp + 0x60]
call fcn.14010c450
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140149190
mov eax, edi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400677a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1402437e7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140067880
lea rcx, [sym.GptBrowser.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140067844
call qword [0x1402529a0]
mov rcx, rax
xor edx, edx
call fcn.140049fa0
jmp 0x1400677c8
xor ecx, ecx
mov dl, 1
jmp 0x14006783d
xor edi, edi
jmp 0x1400677de
movzx ecx, al
lea r9, [rsp + 0xb0]
mov qword [r9], rsi
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0xa8]
mov qword [r8], rax
lea rdx, [rsp + 0xa0]
call fcn.1401a2ec0
jmp 0x140067722
xor ecx, ecx
jmp 0x14006783b