joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400390d0
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
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jae 0x1400390fc
cmp qword [rsi], r14
jne 0x140039106
jmp 0x140039128
call fcn.140054d90
cmp qword [rsi], r14
je 0x140039128
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140039162
cmp r15, 2
jae 0x14003917c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x140039153
call fcn.140054d90
mov rcx, qword [rdi]
call fcn.140035570
mov qword [rdi], 0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140054d90
mov rcx, qword [rsi]
call fcn.140035570
mov qword [rsi], 0
cmp r15, 2
jb 0x140039120
mov qword [rsi], r14
call fcn.140054d90
jmp 0x140039120

Function at 0x140039250
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14003927f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140039282
mov rcx, qword [rsi]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400392a6
mov dil, 1
test bl, bl
je 0x14003930d
cmp byte [rsi + 8], 0
je 0x1400392ec
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400392ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x1400392bd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400392c0
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400392d3
xor edi, edi
jmp 0x14003930d
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x1400392fc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400392ff
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14003930d
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140143c30
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003ac60
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.140074590
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x1401899f0]
mov qword [rsi], 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 0x14003aceb
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jb 0x14003acd0
call fcn.140054d90
mov rcx, qword [rsi + 0x18]
call fcn.140035570
mov qword [rsi + 0x18], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14003ace3
mov qword [rsi + 0x18], rdi
call fcn.140054d90
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003d2a0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.Read
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x42
call fcn.140054d70
lea rcx, [rsp + 0x60]
mov rdx, r15
xor r8d, r8d
call fcn.140043ee0
mov ebp, 0xffffffff
test r14, r14
js 0x14003d3cc
test esi, esi
js 0x14003d3cc
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.1400788b0
test al, al
je 0x14003d36d
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140078970
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003d3b1
mov ebp, dword [rsp + 0x2c]
test ebp, ebp
jns 0x14003d3c2
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0x26
setne bpl
neg ebp
lea rcx, [rsp + 0x30]
call fcn.140078940
lea rcx, [rsp + 0x60]
call fcn.140043f40
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140143c30
mov eax, ebp
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14003d400
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x5f
call fcn.140054d70
lea rcx, [rsp + 0x50]
mov rdx, r14
xor r8d, r8d
call fcn.140043ee0
test esi, esi
js 0x14003d4e8
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.1400788b0
test al, al
je 0x14003d4b2
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140078970
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003d4ef
mov esi, dword [rsp + 0x2c]
test esi, esi
jns 0x14003d500
int3
mov esi, 0xffffffff
jmp 0x14003d50a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.140078940
lea rcx, [rsp + 0x50]
call fcn.140043f40
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140143c30
mov eax, esi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003d540
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.Write
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x7f
call fcn.140054d70
lea rcx, [rsp + 0x60]
mov rdx, r15
xor r8d, r8d
call fcn.140043ee0
mov ebp, 0xffffffff
test r14, r14
js 0x14003d655
test esi, esi
js 0x14003d655
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.1400788b0
test al, al
je 0x14003d60d
mov r9d, esi
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140078970
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ebp, ebp
cmp eax, 1
sbb ebp, ebp
or ebp, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140078940
lea rcx, [rsp + 0x60]
call fcn.140043f40
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140143c30
mov eax, ebp
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14003d690
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x97
call fcn.140054d70
lea rcx, [rsp + 0x50]
mov rdx, r14
xor r8d, r8d
call fcn.140043ee0
test esi, esi
js 0x14003d77e
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.1400788b0
test al, al
je 0x14003d742
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140078970
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140078940
jmp 0x14003d783
mov esi, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.140043f40
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140143c30
mov eax, esi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003d7b0
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0xac
call fcn.140054d70
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.140043ee0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400788b0
test al, al
je 0x14003d856
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.140078970
mov qword [rsp + 0x28], rbx
mov rcx, qword [rsi]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140078940
lea rcx, [rsp + 0x50]
call fcn.140043f40
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140143c30
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003dcc0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14003dd1c
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
jb 0x14003dcfa
call fcn.140054d90
mov rcx, qword [rdi]
call fcn.140035570
mov qword [rdi], 0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14003dd0c
mov qword [rdi], rsi
call fcn.140054d90
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003e0c0
Capabilities:
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x490
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0x488], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [0x140189dd7]
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x280]
mov rcx, r14
mov r9d, 0x1d8
call fcn.140054d70
lea rcx, [rsp + 0x30]
mov rdx, r14
xor r8d, r8d
call fcn.140043ee0
lea r15, [rsp + 0x280]
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.140146ec0
lea r14, [rdi + 2]
test byte [rdi], 1
mov rdx, r14
je 0x14003e163
mov rdx, qword [rdi + 0x10]
mov r8d, 0x104
mov rcx, r15
call fcn.140047130
mov rcx, r15
call fcn.1400029f0
lea r12, [rsp + 0x70]
mov r8d, 0x208
mov rcx, r12
mov dl, 0xaa
call fcn.140146ec0
lea r15, [rbx + 2]
test byte [rbx], 1
mov rdx, r15
je 0x14003e19e
mov rdx, qword [rbx + 0x10]
mov r8d, 0x104
mov rcx, r12
call fcn.140047130
mov rcx, r12
call fcn.1400029f0
test byte [rdi], 1
mov rdx, r14
je 0x14003e1c0
mov rdx, qword [rdi + 0x10]
test byte [rbx], 1
mov rcx, r15
je 0x14003e1cc
mov rcx, qword [rbx + 0x10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov r12b, 1
test eax, eax
jne 0x14003e237
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003d8d0
mov ebp, eax
test byte [rbx], 1
je 0x14003e202
mov r15, qword [rbx + 0x10]
test byte [rdi], 1
je 0x14003e20b
mov r14, qword [rdi + 0x10]
mov rcx, r14
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne r12b
test rsi, rsi
je 0x14003e237
test eax, eax
jne 0x14003e237
cmp ebp, 0xfffffffc
jne 0x14003e232
call fcn.14003d8b0
mov ebp, eax
mov dword [rsi], ebp
xor r12d, r12d
lea rcx, [rsp + 0x30]
call fcn.140043f40
mov rcx, qword [rsp + 0x488]
xor rcx, rsp
call fcn.140143c30
mov eax, r12d
add rsp, 0x490
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x20b
call fcn.140054d70
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140043ee0
test byte [rsi], 1
je 0x14003e2e9
mov rsi, qword [rsi + 0x10]
jmp 0x14003e2ed
add rsi, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.140043f40
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140143c30
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003e330
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.PathHasAccess
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x214
call fcn.140054d70
lea rcx, [rsp + 0x60]
xor ebx, ebx
mov rdx, r14
xor r8d, r8d
call fcn.140043ee0
test byte [rdi], 1
je 0x14003e3b6
mov rdi, qword [rdi + 0x10]
jmp 0x14003e3ba
add rdi, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003e452
test al, 0x10
cmove esi, ebp
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 r14d, r14d
mov rcx, rdi
mov edx, esi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x14003e435
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x14003e42a
call fcn.140054d90
mov r14, rdi
jmp 0x14003e42d
xor r14d, r14d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
setne bl
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003e452
call fcn.140054d90
mov rcx, r14
call fcn.140035570
lea rcx, [rsp + 0x60]
call fcn.140043f40
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140143c30
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x233
call fcn.140054d70
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140043ee0
test byte [rsi], 1
je 0x14003e4f9
mov rsi, qword [rsi + 0x10]
jmp 0x14003e4fd
add rsi, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
setne al
and esi, 0x10
shr esi, 4
and sil, al
mov rcx, rdi
call fcn.140043f40
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140143c30
mov eax, esi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003e540
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140146ec0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14003e5df
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.140169634
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400567f0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140059220
mov rcx, rsi
mov rdx, r14
call fcn.140056920
mov rcx, r14
call fcn.1400568a0
mov rcx, rbx
call fcn.1400568a0
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140143c30
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003e610
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140146ec0
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 0x14003e688
cmp word [rsp + 0x70], 0
je 0x14003e688
mov qword [rsp + 0x60], rdi
mov rcx, rdi
call fcn.140169634
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400567f0
jmp 0x14003e6f7
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x40], xmm0
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.140040d10
mov rcx, rdi
call fcn.14003e540
test al, al
je 0x14003e6cb
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400567d0
jmp 0x14003e6ed
lea rax, [0x140189e00]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400567f0
lea rcx, [rsp + 0x40]
call fcn.1400568a0
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140143c30
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
Function at 0x14003f7d0
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.140146ec0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.1400789c0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140078c30
movzx eax, byte [rsp + 0x30]
test al, 1
je 0x14003f876
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x14003f881
jmp 0x14003f9dd
shr eax, 1
test rax, rax
je 0x14003f9dd
lea r13, [rsp + 0x32]
lea rdi, [rsp + 0x48]
lea r14, [rsp + 0x298]
lea r15, [rsp + 0x30]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
jmp 0x14003f8c0
mov rax, qword [rsp + 0x38]
mov esi, ebp
test rax, rax
je 0x14003f9dd
mov r8d, 0x250
mov rcx, rdi
mov dl, 0xaa
call fcn.140146ec0
mov rcx, r14
mov rdx, rdi
call fcn.140078b90
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x14003f923
test bl, bl
jne 0x14003f90b
mov rcx, rdi
call fcn.1400789b0
test al, al
je 0x14003f907
mov rcx, rdi
call fcn.1400789b0
xor ebp, ebp
test al, al
je 0x14003f970
jmp 0x14003f99e
mov edx, dword [rsp + 0x48]
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x14003f91a
mov rcx, qword [rsp + 0x40]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call fcn.1400789b0
test al, al
je 0x14003f970
xor ebp, ebp
test bl, bl
je 0x14003f99e
mov rcx, r15
mov rdx, qword [rsp + 0x28]
mov r8b, 1
call fcn.14003f7d0
mov ebp, eax
test eax, eax
jne 0x14003f99e
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x14003f95a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14003f99e
jmp 0x14003f988
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x14003f97f
mov rcx, qword [rsp + 0x40]
call r12
xor ebp, ebp
test eax, eax
jne 0x14003f99e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test esi, esi
cmovne ebp, esi
mov rcx, rdi
call fcn.1400029f0
mov rcx, r14
mov rdx, rdi
call fcn.140078c30
mov rcx, r15
mov rdx, rdi
call fcn.140056920
mov rcx, rdi
call fcn.1400568a0
movzx eax, byte [rsp + 0x30]
test al, 1
jne 0x14003f8b0
shr eax, 1
jmp 0x14003f8b5
lea rcx, [rsp + 0x30]
call fcn.1400568a0
lea rcx, [rsp + 0x298]
call fcn.140078b20
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140143c30
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140051a10
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140051ae0
mov eax, dword [rsi]
mov dword [0x1401c2be8], eax
test al, 1
jne 0x140051a31
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1401c6430]
test rcx, rcx
je 0x140051a63
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401c6430], 0
mov rcx, qword [0x1401c6408]
test rcx, rcx
jne 0x140051a91
and byte [0x1401c2be8], 0xfe
jmp 0x140051a6f
mov rcx, qword [0x1401c6408]
test rcx, rcx
jne 0x140051a91
mov ecx, 0x18
call fcn.140143888
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401c6408], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x140051acc
call fcn.14002c028
cmp dword [rsi + 0x14], 0
jne 0x140051ac1
mov rcx, qword [0x1401c6408]
test byte [rcx], 1
je 0x140051ab7
mov rcx, qword [rcx + 0x10]
jmp 0x140051abb
add rcx, 2
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.140051c30
lea rcx, [0x140180113]
lea rdx, str....._third_partylibc_srcinclude_string:2706:_assertion___s___nullptr_failed:_string::assign_received_nullptr_n
call fcn.140005804
int3