joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400474f8
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.140134998
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140047560]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.140142a10
mov qword [rbx], rax
test rax, rax
je 0x14004754f
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140060d0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x30], rcx
lea rcx, [0x1401a5b20]
xor edx, edx
call fcn.140135b3c
test rax, rax
je 0x140060e18
mov rbx, rax
mov ecx, dword [rsp + 0x28]
mov eax, ecx
shr eax, 4
inc eax
movzx r13d, ax
mov r14d, ecx
and r14d, 0xf
lea eax, [r14 - 1]
mov dword [rsp + 0x2c], eax
mov ebp, 1
mov r15, qword [sym.imp.KERNEL32.dll_FindResourceExW]
lea r12, [0x1401a5b20]
mov edx, 6
mov rcx, rbx
mov r8, r13
xor r9d, r9d
call r15
test rax, rax
je 0x140060dfd
mov rdi, rax
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140060dfd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140060dfd
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setne cl
test r14d, r14d
je 0x140060dee
test eax, eax
je 0x140060dee
mov ecx, eax
mov rax, rsi
add rax, rcx
mov edx, dword [rsp + 0x2c]
movzx ecx, word [rsi]
lea rsi, [rsi + rcx*2]
add rsi, 2
cmp rsi, rax
setb cl
add edx, 0xffffffff
jae 0x140060dee
cmp rsi, rax
jb 0x140060dd3
test cl, cl
je 0x140060dfd
cmp word [rsi], 0
je 0x140060dfd
test rsi, rsi
jne 0x140060e2b
lea esi, [rbp + 1]
mov rcx, r12
mov edx, ebp
call fcn.140135b3c
mov rbx, rax
mov ebp, esi
test rax, rax
jne 0x140060d72
xor eax, eax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test rbx, rbx
je 0x140060e18
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
mov r8d, dword [rsp + 0x28]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140060e52

Function at 0x140060e52
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebx, r8d
mov rdi, rdx
mov r14, rcx
mov eax, r8d
shr eax, 4
inc eax
movzx edx, ax
mov r8d, 6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r15d, r15d
test rax, rax
je 0x140060f44
mov rbp, rax
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140060f44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140060f44
mov rsi, rax
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setne cl
and ebx, 0xf
je 0x140060ef9
test eax, eax
je 0x140060ef9
mov ecx, eax
mov rax, rsi
add rax, rcx
dec ebx
movzx ecx, word [rsi]
lea rsi, [rsi + rcx*2]
add rsi, 2
cmp rsi, rax
setb cl
add ebx, 0xffffffff
jae 0x140060ef9
cmp rsi, rax
jb 0x140060ede
test cl, cl
je 0x140060f44
movzx edi, word [rsi]
test edi, edi
je 0x140060f44
test rsi, rsi
je 0x140060f44
lea rbx, [rsi + 2]
mov rcx, r14
mov edx, edi
call fcn.140060fe6
movzx r9d, word [rsi]
mov rcx, rax
mov edx, edi
mov r8, rbx
call fcn.140060f60
mov rax, qword [r14]
cmp dword [rax - 0xc], edi
jl 0x140060f54
mov dword [rax - 0x10], edi
mov rax, qword [r14]
mov ecx, edi
mov word [rax + rcx*2], 0
mov r15d, 1
mov eax, r15d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 0x80070057
call fcn.1400607f9
int3
Function at 0x140065312
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140065339
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140065433
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14006537a
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140135280
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14006544f
mov ecx, 2
call fcn.14006c840
test al, al
je 0x140065431
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x265
mov r9d, 2
call fcn.14006d900
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.14001df3c
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14004ad60
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14006540b
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.14001df3c
cmp byte [rsp + 0x4f], 0
jns 0x140065427
mov rcx, qword [rsp + 0x38]
call fcn.1401349d4
lea rcx, [rsp + 0x50]
call fcn.14006d9f0
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140135280
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
Function at 0x14006544f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x140065476
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140065558
mov dil, 1
test al, 0x10
jne 0x140065611
mov ecx, 2
call fcn.14006c840
test al, al
je 0x14006560f
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x254
mov r9d, 2
call fcn.14006c8f0
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14001df3c
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.14004ad60
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140065518
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.14001df3c
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.14001df3c
cmp byte [rsp + 0x5f], 0
jns 0x140065549
mov rcx, qword [rsp + 0x48]
call fcn.1401349d4
lea rcx, [rsp + 0x60]
call fcn.14006cd80
jmp 0x14006560f
mov ecx, 2
call fcn.14006c840
test al, al
je 0x14006560f
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x250
mov r9d, 2
call fcn.14006d900
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14001df3c
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.14004ad60
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400655e9
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.14001df3c
cmp byte [rsp + 0x5f], 0
jns 0x140065605
mov rcx, qword [rsp + 0x48]
call fcn.1401349d4
lea rcx, [rsp + 0x60]
call fcn.14006d9f0
xor edi, edi
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140135280
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
Function at 0x140066e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x50]
mov rbp, qword [rcx + 0x58]
mov r15d, 1
cmp rdi, rbp
je 0x140066e98
mov r14, r8
mov rsi, rcx
lea rbx, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
call fcn.14008ef48
test al, al
jne 0x140066e5c
add rdi, 0x70
cmp rdi, rbp
jne 0x140066e41
mov rdi, rbp
cmp rdi, qword [rsi + 0x58]
je 0x140066e98
cmp byte [rdi + 0x27], 0
jns 0x140066e6e
mov rcx, qword [rdi + 0x10]
jmp 0x140066e72
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov r15d, 1
cmovne r15d, ecx
test r15d, r15d
jne 0x140066e98
mov qword [r14], rdi
xor r15d, r15d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140135280
mov eax, r15d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140066f2e
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, qword [rcx + 0x50]
mov rsi, qword [rcx + 0x58]
cmp rbx, rsi
je 0x140066f99
mov r14, r8
mov edi, edx
mov r15, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], edi
jne 0x140066f90
cmp byte [rbx + 0x27], 0
jns 0x140066f63
mov rcx, qword [rbx + 0x10]
jmp 0x140066f67
lea rcx, [rbx + 0x10]
call r15
test al, 0x10
jne 0x140066f90
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x140066f85
mov rcx, r14
mov rdx, rbx
call fcn.14006817e
jmp 0x140066f90
mov rcx, r14
mov rdx, rbx
call fcn.1400681f6
add rbx, 0x70
cmp rbx, rsi
jne 0x140066f52
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x50]
mov rsi, qword [rcx + 0x58]
mov r12d, 1
cmp rdi, rsi
je 0x14006720e
mov r14, r9
mov r15d, r8d
mov rbx, rcx
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.14008ef48
test al, al
jne 0x1400671bf
add rdi, 0x70
cmp rdi, rsi
jne 0x1400671a4
mov rdi, rsi
cmp rdi, qword [rbx + 0x58]
je 0x14006720e
mov eax, dword [rdi + 0x68]
cmp eax, r15d
jne 0x1400671d9
cmp byte [rdi + 0x27], 0
jns 0x1400671ea
mov rcx, qword [rdi + 0x10]
jmp 0x1400671ee
xor ecx, ecx
cmp eax, 1
sete cl
lea r12d, [rcx + rcx*2]
inc r12d
jmp 0x14006720e
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006720e
shr eax, 3
and eax, 2
mov r12d, eax
jne 0x14006720e
mov byte [rbx + 0x48], 1
mov qword [r14], rdi
xor r12d, r12d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140135280
mov eax, r12d
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140073ee0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x4a0], rax
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0x490], xmm0
movaps xmmword [rsp + 0x480], xmm0
movaps xmmword [rsp + 0x470], xmm0
movaps xmmword [rsp + 0x460], xmm0
movaps xmmword [rsp + 0x450], xmm0
lea rdx, [0x14017fbe4]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x240]
mov rcx, rsi
mov r9d, 0x17c
call fcn.1400651f0
lea rcx, [rsp + 0x450]
mov rdx, rsi
xor r8d, r8d
call fcn.1400bbe30
lea rsi, [rsp + 0x240]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140138090
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140073fa4
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rsi
call fcn.1400805c0
mov rcx, rsi
call fcn.140019ae0
lea rsi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140138090
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x140073fdb
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rsi
int1
call fcn.1400805c0
mov rcx, rsi
call fcn.140019ae0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140073ffd
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140074009
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]
mov sil, 1
test eax, eax
jne 0x140074072
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140076750
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x14007403f
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140074048
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne sil
jne 0x140074072
test r14, r14
je 0x140074072
cmp ebp, 0xfffffffc
jne 0x14007406d
call fcn.140076730
mov ebp, eax
mov dword [r14], ebp
xor esi, esi
lea rcx, [rsp + 0x450]
call fcn.1400bc150
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.140135280
mov eax, esi
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0x80], xmm0
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, 0x1af
call fcn.1400651f0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400bbe30
cmp byte [rsi + 0x17], 0
jns 0x140074131
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.1400bc150
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140135280
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140074170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0x80], xmm0
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, 0x1d7
call fcn.1400651f0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400bbe30
cmp byte [rsi + 0x17], 0
jns 0x140074201
mov rsi, qword [rsi]
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.1400bc150
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140135280
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x140074240
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140138090
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x1400742e3
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.140151168
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400503a0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140052450
mov rcx, r14
mov rdx, rsi
call fcn.1400504f0
mov rcx, rsi
call fcn.140050480
mov rcx, rbx
call fcn.140050480
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140135280
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140074310
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140138090
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 0x140074388
cmp word [rsp + 0x70], 0
je 0x140074388
mov qword [rsp + 0x60], rdi
mov rcx, rdi
call fcn.140151168
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400503a0
jmp 0x1400743f7
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0x40], xmm0
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.140050320
mov rcx, rdi
call fcn.140074240
test al, al
je 0x1400743cb
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140050380
jmp 0x1400743ed
lea rax, [0x14017fc0c]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400503a0
lea rcx, [rsp + 0x40]
call fcn.140050480
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140135280
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
Function at 0x140074420
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], r15
movaps xmm6, xmmword [0x140173f60]
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r9d, 0x264
call fcn.1400651f0
lea rcx, [rsp + 0x40]
mov rdx, rsi
xor r8d, r8d
call fcn.1400bbe30
cmp byte [rdi + 0x17], 0
mov r12, rdi
jns 0x1400744c2
mov r12, qword [rdi]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400744f9
mov sil, 1
test al, 0x10
jne 0x1400745e5
test r14, r14
je 0x1400744e7
mov dword [r14], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1400745e5
mov qword [rsp + 0x30], r15
movaps xmmword [rsp + 0x20], xmm6
lea rsi, [rsp + 0x20]
mov rcx, rdi
mov rdx, rsi
call fcn.140050f80
movzx r8d, byte [rsp + 0x37]
mov rax, r8
test r8b, r8b
jns 0x140074526
mov rax, qword [rsp + 0x28]
movzx ecx, byte [rdi + 0x17]
test cl, cl
js 0x14007453d
mov rdx, rdi
cmp rax, rcx
jne 0x140074584
test rax, rax
jne 0x14007454b
jmp 0x140074573
cmp rax, qword [rdi + 8]
jne 0x140074584
mov rdx, qword [rdi]
test rax, rax
je 0x140074573
test r8b, r8b
jns 0x140074555
mov rsi, qword [rsp + 0x20]
xor ecx, ecx
nop word [rax + rax]
movzx ebx, word [rsi + rcx*2]
cmp bx, word [rdx + rcx*2]
jne 0x140074584
add rcx, 1
cmp rax, rcx
jne 0x140074560
mov eax, 0xfffffffc
mov ebx, 2
test r14, r14
jne 0x1400745ce
jmp 0x1400745d1
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.140074420
test al, al
je 0x1400745d9
mov rcx, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov sil, 1
test eax, eax
jne 0x1400745db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x1400745c2
mov rcx, rdi
call fcn.140074170
test al, al
jne 0x1400745db
test r14, r14
je 0x1400745d1
mov ecx, ebx
call fcn.140076750
mov dword [r14], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea rcx, [rsp + 0x20]
call fcn.140050480
lea rcx, [rsp + 0x40]
call fcn.1400bc150
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140135280
mov eax, esi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140074910
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r15d, r8d
mov r14, rdx
mov rbp, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, [0x14017fc44]
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x359
call fcn.1400651f0
lea rcx, [rsp + 0x60]
xor esi, esi
mov rdx, rdi
xor r8d, r8d
call fcn.1400bbe30
cmp byte [rbp + 0x17], 0
jns 0x1400749b2
mov rbp, qword [rbp]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, rbp
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, 0xffffffff
test rax, rax
je 0x140074a55
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x140074a04
call fcn.140065210
mov rsi, rbx
jmp 0x140074a06
xor esi, esi
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140074a55
mov dword [rsp + 0x40], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, r14
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x40]
xor edx, edx
cmp eax, 1
sbb edx, edx
cmp ecx, r15d
mov ebp, 0xffffffff
cmove ebp, ecx
or ebp, edx
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140074a6c
call fcn.140065210
mov rcx, rsi
call fcn.1400bc7d0
lea rcx, [rsp + 0x60]
call fcn.1400bc150
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140135280
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140074c00
Capabilities:
Check if file exists
Copy file

Disassembly:
xor r8d, r8d
jmp 0x140074c10
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], r15
movaps xmm6, xmmword [0x140173f60]
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x7b
call fcn.1400651f0
lea rcx, [rsp + 0x60]
xor ebp, ebp
mov rdx, rbx
xor r8d, r8d
call fcn.1400bbe30
mov rcx, rdi
call fcn.1400524d0
test al, al
jne 0x140074cea
mov rcx, rsi
call fcn.1400524d0
test al, al
jne 0x140074ce8
cmp byte [rdi + 0x17], 0
jns 0x140074cd8
cmp qword [rdi + 8], 0x103
ja 0x140074ce8
cmp byte [rsi + 0x17], 0
jns 0x140074d1e
cmp qword [rsi + 8], 0x103
jbe 0x140074d1e
xor ebp, ebp
lea rcx, [rsp + 0x60]
call fcn.1400bc150
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140135280
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsp + 0x50], r15
movaps xmmword [rsp + 0x40], xmm6
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x88
call fcn.1400651f0
lea r8, [0x1401aabf8]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400bc600
cmp byte [rsi + 0x17], 0
jns 0x140074d66
mov rsi, qword [rsi]
movzx r8d, r14b
cmp byte [rdi + 0x17], 0
jns 0x140074d73
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140074db1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x140074da8
mov eax, edi
and eax, 1
je 0x140074da8
mov edx, edi
and edx, 0xfffffffe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 0xffffffff
setne bpl
jmp 0x140074db3
xor ebp, ebp
lea rcx, [rsp + 0x40]
call fcn.1400bc6f0
jmp 0x140074cea