joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401017d0
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x40], r15
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.SetLength
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, ILCreateFromPathW
call fcn.140209ca0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1401fe1a0
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.14021c280
test al, al
jne 0x1401018f8
lea r8, [rsp + 0x28]
mov qword [r8], r15
mov rcx, qword [rsi]
xor ebx, ebx
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401018c3
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401018c3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140101914
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea rcx, [rsp + 0x30]
call fcn.14021c310
lea rcx, [rsp + 0x50]
call fcn.1401fe3e0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14025a610
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.140341970
jmp 0x140101866
xor ebx, ebx
jmp 0x1401018c3
Function at 0x140101bb0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x173
call fcn.140209ca0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401fe1a0
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x140101e2a
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jb 0x140101dff
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, ebx
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140101d21
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x140101d7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140101e11
mov rax, r14
inc rax
cmp rax, 2
jb 0x140101d70
mov qword [rsi], r14
call fcn.140209cc0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x140101dd2
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x140101de4
test bl, 0xa
je 0x140101da1
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x140101df5
lea rcx, [rsp + 0x60]
call fcn.1401fe3e0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14025a610
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140101a70
mov dword [rsi + 0x24], eax
jmp 0x140101da7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x140101da1
mov rcx, rdi
call fcn.140103bb0
jmp 0x140101da7
bt ebx, 0x15
jb 0x140101e46
or r8d, 0x20000000
jmp 0x140101c9f
call fcn.140209cc0
mov rcx, qword [rsi]
call fcn.1401f5320
mov qword [rsi], 0
jmp 0x140101d5c
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1402e0680
jmp 0x140101da7
int3
Function at 0x140101f40
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140101f88
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 0x140101f91
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140101f78
mov qword [rdi], rsi
call fcn.140209cc0
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
call fcn.140209cc0
mov rcx, qword [rdi]
call fcn.1401f5320
mov qword [rdi], 0
jmp 0x140101f66
Function at 0x140102380
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x450]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, [0x1403ea969]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x240]
mov rcx, r15
mov r9d, 0x1d6
call fcn.140209ca0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401fe1a0
lea r14, [rsp + 0x240]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.14025c760
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140102430
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, r14
call fcn.140201480
mov rcx, r14
call fcn.1401d3d80
lea r14, [rsp + 0x30]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.14025c760
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x140102467
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, r14
call fcn.140201480
mov rcx, r14
call fcn.1401d3d80
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140102489
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140102495
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x14010251b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140101a70
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1401024c8
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1401024d1
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
test rsi, rsi
je 0x1401024ec
test eax, eax
je 0x140102520
lea rcx, [rsp + 0x450]
call fcn.1401fe3e0
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.14025a610
mov eax, edi
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dil, 1
jmp 0x1401024ec
cmp ebp, 0xfffffffc
jne 0x14010252c
call fcn.1402d7890
mov ebp, eax
mov dword [rsi], ebp
xor edi, edi
jmp 0x1401024ec

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x209
call fcn.140209ca0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401fe1a0
cmp byte [rdi + 0x17], 0
jns 0x1401025c0
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.1401fe3e0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14025a610
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140102600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.PathHasAccess
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x212
call fcn.140209ca0
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401fe1a0
cmp byte [rdi + 0x17], 0
jns 0x140102690
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140102723
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 0x140102706
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x14010274f
call fcn.140209cc0
mov r14, rdi
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
setne bl
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140102723
call fcn.140209cc0
mov rcx, r14
call fcn.1401f5320
lea rcx, [rsp + 0x60]
call fcn.1401fe3e0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14025a610
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x1401026fe

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x231
call fcn.140209ca0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401fe1a0
cmp byte [rdi + 0x17], 0
jns 0x1401027e0
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.1401fe3e0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14025a610
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140102820
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14025c760
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1401028bf
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1402831c4
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14020a650
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140113ec0
mov rcx, rsi
mov rdx, r14
call fcn.14020a880
mov rcx, r14
call fcn.14020a810
mov rcx, rbx
call fcn.14020a810
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14025a610
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1401028f0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14025c760
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 0x140102985
cmp word [rsp + 0x70], 0
je 0x140102985
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1402831c4
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14020a650
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14025a610
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14020a520
mov rcx, rdi
call fcn.140102820
test al, al
je 0x1401029c5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14020a630
jmp 0x1401029e4
lea rax, [0x1403ea976]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14020a650
lea rcx, [rsp + 0x40]
call fcn.14020a810
jmp 0x140102967
Function at 0x140102e40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x120
movaps xmmword [rsp + 0x110], xmm6
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x108], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x70]
mov qword [rdi + 0x40], r15
movaps xmm6, xmmword [0x1403db8a0]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.GetSecureSystemTemp
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0xc0]
mov rcx, rbx
mov r9d, 0x2b2
call fcn.140209ca0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1401fe1a0
test rsi, rsi
je 0x1401030db
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.14020a520
mov ecx, 0x65
mov rdx, rdi
call fcn.140105560
test al, al
je 0x140102fa7
lea rax, str.SystemTemp
lea r8, [rsp + 0x20]
mov qword [r8], rax
mov qword [r8 + 8], 0xa
lea rbx, [rsp + 0xc0]
mov rcx, rdi
mov rdx, rbx
call fcn.140113dc0
mov rcx, rdi
mov rdx, rbx
call fcn.14020a880
mov rcx, rbx
call fcn.14020a810
mov qword [rbx + 0x40], r15
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x50]
mov rcx, r14
mov r9d, 0x209
call fcn.140209ca0
lea rbx, [rsp + 0xc0]
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1401fe1a0
cmp byte [rsp + 0x47], 0
jns 0x140102f8b
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.1401fe3e0
cmp edi, 0xffffffff
jne 0x140103052
lea rcx, [rsp + 0x30]
call fcn.14020a810
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.14020a520
mov ecx, 0x67
mov rdx, rdi
call fcn.140105560
test al, al
je 0x140103044
lea rbx, [rsp + 0xc0]
mov qword [rbx + 0x40], r15
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x50]
mov rcx, r14
mov r9d, 0x209
call fcn.140209ca0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1401fe1a0
cmp byte [rsp + 0x47], 0
jns 0x14010302c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.1401fe3e0
cmp edi, 0xffffffff
jne 0x1401030bd
lea rcx, [rsp + 0x30]
call fcn.14020a810
xor esi, esi
jmp 0x14010308a
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.140102600
test al, al
je 0x140102fa7
lea rdi, [rsp + 0x30]
mov rcx, rsi
mov rdx, rdi
call fcn.14020a820
mov rcx, rdi
call fcn.14020a810
mov sil, 1
lea rcx, [rsp + 0x70]
call fcn.1401fe3e0
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14025a610
mov eax, esi
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x120
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.140102600
test al, al
jne 0x14010306f
jmp 0x140103044
int3
Function at 0x140103820
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov esi, r8d
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x60]
mov qword [r15 + 0x40], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, [0x1403eaa0b]
lea r8, str....._base_files_file_util_win.cc
lea r12, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x3e2
call fcn.140209ca0
xor ebx, ebx
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.1401fe1a0
cmp byte [r14 + 0x17], 0
jns 0x1401038b4
mov r14, qword [r14]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, r14
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x14010390b
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp r14, 0xffffffffffffffff
je 0x1401039a0
call fcn.140209cc0
mov rbx, r14
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, 0xffffffff
test esi, esi
js 0x14010395b
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14010395b
lea r14, [rsp + 0x40]
mov dword [r14], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [r14]
xor edx, edx
cmp eax, 1
sbb edx, edx
cmp ecx, esi
mov ebp, 0xffffffff
cmove ebp, ecx
or ebp, edx
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140103972
call fcn.140209cc0
mov rcx, rbx
call fcn.1401f5320
lea rcx, [rsp + 0x60]
call fcn.1401fe3e0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14025a610
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x140103903
Function at 0x1401039b0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c8
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x40], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x1403eaa15]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x41b
call fcn.140209ca0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1401fe1a0
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14025c760
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x140103aaf
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1402831c4
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14020a650
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140113ec0
mov rcx, rsi
mov rdx, r14
call fcn.14020a880
mov rcx, r14
call fcn.14020a810
mov rcx, rbx
call fcn.14020a810
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x270]
call fcn.1401fe3e0
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14025a610
mov eax, ebx
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140103af0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x1403eaa2a]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x42b
call fcn.140209ca0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401fe1a0
cmp byte [rdi + 0x17], 0
jns 0x140103b70
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.1401fe3e0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14025a610
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401040f0
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 [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.14025c760
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.1401045b0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.140104770
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x140104186
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x1401041c8
lea rcx, [rsp + 0x30]
call fcn.14020a810
lea rcx, [rsp + 0x298]
call fcn.1401046b0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14025a610
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.14025c760
mov rcx, r15
mov rdx, r14
call fcn.140104720
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1401042e0
mov rcx, r14
call fcn.1401044c0
test al, al
jne 0x14010428f
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140104222
mov rcx, qword [rsp + 0x30]
call r13
test eax, eax
jne 0x140104315
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.1400a9980
mov rcx, r15
mov rdx, r14
call fcn.140104770
mov rcx, rdi
mov rdx, r14
call fcn.14020a880
mov rcx, r14
call fcn.14020a810
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14010427e
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
je 0x14010418b
jmp 0x1401041df
xor ebp, ebp
test bl, bl
je 0x140104243
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.1401040f0
test eax, eax
jne 0x140104332
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1401042ba
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140104243
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x140104243
test bl, bl
je 0x1401042f5
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14010431c
mov rcx, qword [rsp + 0x30]
jmp 0x140104321
lea rcx, [rsp + 0x48]
call fcn.1401044c0
test al, al
je 0x14010432c
lea rcx, [rsp + 0x48]
call fcn.1401044c0
test al, al
je 0x140104213
xor ebp, ebp
jmp 0x140104243
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140104207
mov edx, dword [rsp + 0x48]
jmp 0x1401042e4
mov ebp, eax
jmp 0x140104243