joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034420
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x40], xmm0
lea rbx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140044570
cmp byte [rsp + 0x67], 0
jns 0x140034465
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
cmp byte [rsp + 0x67], 0
js 0x14003450e
test ebp, ebp
je 0x140034520
mov r14b, 1
test rsi, rsi
je 0x140034587
mov ecx, ebp
add rcx, rcx
call fcn.140163acc
mov rbx, rax
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x30], xmm0
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140044570
cmp byte [rsp + 0x67], 0
jns 0x1400344c7
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x67], 0
jns 0x1400344e7
mov rcx, qword [rsp + 0x50]
call fcn.140163a8c
mov qword [rsp + 0x20], rbx
cmp word [rbx], 0
je 0x140034525
xor eax, eax
nop word cs:[rax + rax]
nop
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140034500
jmp 0x140034527
mov rcx, qword [rsp + 0x50]
call fcn.140163a8c
test ebp, ebp
jne 0x140034488
xor r14d, r14d
jmp 0x140034587
xor eax, eax
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x20]
call fcn.140044ae0
cmp byte [rsi + 0x17], 0
js 0x14003454a
mov byte [rsi], 0
mov byte [rsi + 0x17], 0
jmp 0x14003456e
mov rax, qword [rsi]
mov byte [rax], 0
mov qword [rsi + 8], 0
cmp byte [rsi + 0x17], 0
jns 0x14003456e
mov rcx, qword [rsi]
call fcn.140163a8c
mov qword [rsi + 0x10], 0
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.140163ad4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140163e00
mov eax, r14d
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140038550
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14b, 1
cmp qword [0x1401f13f8], 0
jne 0x1400387df
mov rdi, qword [0x1401f13d8]
test rdi, rdi
je 0x14003864f
test byte [0x1401ed358], 1
je 0x1400387df
cmp byte [rdi + 0x17], 0
jns 0x1400385a8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401f13f8], rax
add rax, 1
cmp rax, 1
ja 0x1400387df
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400387dc
cmp eax, 0x104
ja 0x1400387dc
mov rcx, qword [0x1401f13d8]
lea rdx, [rsp + 0x40]
call fcn.14002ee92
mov rcx, qword [0x1401f13d8]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x140038755
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
jne 0x140038764
jmp 0x140038777
movabs rbp, 0x7fffffffffffffef
mov ecx, 0x18
call fcn.140163a50
mov rdi, rax
lea rsi, [rsp + 0x40]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rsi
call fcn.140184604
cmp rax, rbp
ja 0x140038802
mov rbx, rax
cmp rax, 0xb
jae 0x1400386b1
mov byte [rdi + 0x17], bl
mov r15, rdi
test rbx, rbx
jne 0x1400386dd
jmp 0x1400386f0
lea rsi, [rbx + 8]
and rsi, 0xfffffffffffffff8
js 0x14003880a
lea rcx, [rsi + rsi]
call fcn.140163a50
mov r15, rax
mov qword [rdi], rax
add rbp, 0x11
or rbp, rsi
mov qword [rdi + 0x10], rbp
mov qword [rdi + 8], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1401667e0
mov word [r15 + rbx*2], 0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x140038705
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.14002f33e
cmp rax, 0xffffffffffffffff
je 0x14003872d
add rax, 1
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.14002eff2
lea rdx, [0x14019c3e0]
mov rcx, rdi
call fcn.14002ecc2
mov qword [0x1401f13d8], rdi
test byte [0x1401ed358], 1
jne 0x14003859f
jmp 0x1400387df
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x140038777
lea rdx, [0x14019c3dc]
call fcn.14002ecc2
mov rcx, qword [0x1401f13d8]
lea rdx, [0x14019c3e0]
call fcn.14002ecc2
mov rcx, qword [0x1401f13d8]
cmp byte [rcx + 0x17], 0
jns 0x140038793
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401f13f8], rax
add rax, 1
cmp rax, 1
ja 0x1400387df
mov qword [0x1401f13f8], 0
xor r14d, r14d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140163e00
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
call fcn.14002d5be
call fcn.140177b74
int3
Function at 0x14003ab90
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r8
mov r12, rdx
mov r13, rcx
lea r15, [rcx + 0x18]
mov rcx, r15
call fcn.140051750
mov r8, qword [r13 + 0x28]
test r8, r8
je 0x14003acd8
mov rax, r12
shr rax, 0x20
lea edx, [r12*8]
add rdx, 8
xor rdx, rax
movabs rbx, 0x9ddfea08eb382d69
imul rdx, rbx
mov rcx, rdx
shr rcx, 0x2f
xor rdx, rax
xor rdx, rcx
imul rdx, rbx
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, rbx
mov rax, r8
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r8
sub rax, rdx
movabs rdx, 0x3333333333333333
mov rbx, rax
and rbx, rdx
shr rax, 2
and rax, rdx
add rax, rbx
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs rdi, 0x101010101010101
imul rdi, rax
shr rdi, 0x38
cmp rdi, 1
jbe 0x14003ac7b
mov rbx, rcx
cmp rcx, r8
jb 0x14003ac82
mov rax, rcx
xor edx, edx
div r8
mov rbx, rdx
jmp 0x14003ac82
lea rbx, [r8 - 1]
and rbx, rcx
mov rax, qword [r13 + 0x20]
mov rax, qword [rax + rbx*8]
test rax, rax
je 0x14003acd8
mov rsi, qword [rax]
test rsi, rsi
je 0x14003acd8
lea r9, [r8 - 1]
jmp 0x14003acae
cmp qword [rsi + 0x10], r12
je 0x14003acf1
mov rsi, qword [rsi]
test rsi, rsi
je 0x14003acd8
mov rax, qword [rsi + 8]
cmp rax, rcx
je 0x14003aca0
cmp edi, 1
jbe 0x14003acd0
cmp rax, r8
jb 0x14003acd3
xor edx, edx
div r8
mov rax, rdx
jmp 0x14003acd3
and rax, r9
cmp rax, rbx
je 0x14003aca6
mov rcx, r15
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rdi, qword [0x1401f3af0]
cmp rdi, 1
ja 0x14003ad54
lea rcx, [0x1401f3af0]
call fcn.140038440
test al, al
je 0x14003ad4d
mov qword [0x1401f3af8], 0
lea rbx, [0x1401f3af0]
lea rdi, [0x1401f3af8]
mov rcx, rdi
xor edx, edx
call fcn.140067ac0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400384e0
jmp 0x14003ad54
mov rdi, qword [0x1401f3af0]
mov rcx, rdi
call fcn.140067a30
mov rbx, rax
mov rcx, rdi
mov rdx, r14
call fcn.140067a70
mov rcx, qword [r14 + 0x28]
mov rdx, r12
call qword [rcx + 8]
mov rcx, rdi
mov rdx, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140067a70
Function at 0x140046720
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [0x14019ded0]
mov qword [rcx], rax
add rcx, 8
call fcn.1400457d0
lea rcx, [rsi + 0x10]
call fcn.1400457d0
mov byte [rsi + 0x18], 0
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], 0
call fcn.1400457d0
mov byte [rsi + 0x48], 0
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], 0
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov dword [rsi + 0xd0], 0x3f800000
mov dword [rsi + 0xd8], 0
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], 0x3f800000
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], 0x3f800000
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov qword [rsi + 0x150], 0
mov dword [rsi + 0x158], 0x3f800000
movups xmmword [rsi + 0x160], xmm6
movups xmmword [rsi + 0x170], xmm6
mov dword [rsi + 0x180], 0x3f800000
mov qword [rsi + 0x1a0], 0
movups xmmword [rsi + 0x188], xmm6
mov dword [rsi + 0x198], 0
mov eax, dword [0x1401a26d8]
mov qword [rsi + 0x1a8], rax
lea rcx, [rsi + 0x1b0]
call fcn.140073120
movups xmmword [rsi + 0x2e0], xmm6
mov qword [rsi + 0x2f0], 0
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.140067ac0
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.140067ac0
lea rcx, [rsi + 0x308]
xor edx, edx
call fcn.140067ac0
movups xmmword [rsi + 0x310], xmm6
movups xmmword [rsi + 0x320], xmm6
mov dword [rsi + 0x330], 0x3f800000
movups xmmword [rsi + 0x338], xmm6
movups xmmword [rsi + 0x348], xmm6
movups xmmword [rsi + 0x358], xmm6
movups xmmword [rsi + 0x361], xmm6
movups xmmword [rsi + 0x378], xmm6
movups xmmword [rsi + 0x388], xmm6
call fcn.14000c280
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x198], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x190], rax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.140051230
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140051430
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x130], rax
mov rcx, rdi
call fcn.140051150
mov rcx, rsi
call fcn.1400469c0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
je 0x14004696a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
call fcn.140071180
mov qword [rsp + 0x28], 0
lea r8, str.TraceLog
lea r9, [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.1400712f0
mov qword [0x1401f1890], rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140163e00
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x14004ed80
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
lea rdi, [rcx + 0x28]
mov rcx, rdi
mov dl, 1
call fcn.14004e960
test al, al
jne 0x14000a0f1
mov rcx, rdi
call 0x14004ed80
add rsi, 0x40
mov rcx, rsi
xor edx, edx
call fcn.14004e960
test al, al
je 0x14000a10a
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x14004ed80
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdx, str.DeleteFileAfterReboot
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x187
call fcn.140038520
lea rcx, [rsp + 0x48]
mov rdx, rdi
xor r8d, r8d
call fcn.140045190
cmp byte [rsi + 0x17], 0
jns 0x14004ede0
cmp qword [rsi + 8], 0x103
jbe 0x14004eddd
xor esi, esi
jmp 0x14004edf7
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne sil
lea rcx, [rsp + 0x48]
call fcn.1400452c0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140163e00
mov eax, esi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x14004ee20
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rdx, [0x14019e08d]
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x30]
mov rcx, rbp
mov r9d, 0x193
call fcn.140038520
lea rcx, [rsp + 0x50]
mov rdx, rbp
xor r8d, r8d
call fcn.140045190
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14004ee7f
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14004ee8b
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov bpl, 1
test eax, eax
jne 0x14004eef9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140050830
mov r14d, eax
cmp byte [rdi + 0x17], 0
jns 0x14004eeb1
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x14004eeba
mov rbx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x14004eef9
test rsi, rsi
je 0x14004eef7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140050830
cmp eax, 0xfffffffc
cmovne r14d, eax
mov dword [rsi], r14d
xor ebp, ebp
lea rcx, [rsp + 0x50]
call fcn.1400452c0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140163e00
mov eax, ebp
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14004ef20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1ba
call fcn.140038520
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140045190
cmp byte [rsi + 0x17], 0
jns 0x14004ef76
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.1400452c0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140163e00
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

Function at 0x14004efb0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1cc
call fcn.140038520
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140045190
cmp byte [rsi + 0x17], 0
jns 0x14004f006
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.1400452c0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140163e00
mov eax, esi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

Function at 0x14004f040
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x60]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x102
jbe 0x14004f080
xor esi, esi
jmp 0x14004f0e5
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x60], 0
je 0x14004f09e
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x14004f090
jmp 0x14004f0a0
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140034b10
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.1400370b0
mov rcx, rsi
mov rdx, rbx
call fcn.140034b90
mov rcx, rbx
call fcn.140034b60
mov rcx, rdi
call fcn.140034b60
mov sil, 1
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140163e00
mov eax, esi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
Function at 0x14004f110
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rdi, [rsp + 0x60]
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 0x14004f180
cmp word [rsp + 0x60], 0
je 0x14004f180
mov qword [rsp + 0x50], rdi
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x14004f160
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140034b10
jmp 0x14004f1d4
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.140034ac0
mov rcx, rdi
call fcn.14004f040
test al, al
je 0x14004f1a8
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140034af0
jmp 0x14004f1ca
lea rax, [0x14019e0b6]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 3
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140034b10
lea rcx, [rsp + 0x38]
call fcn.140034b60
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140163e00
mov rax, rsi
add rsp, 0x278
pop rdi
pop rsi
ret
Function at 0x14004f590
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x50]
mov rcx, rbx
mov r9d, 0x265
call fcn.140038520
lea rcx, [rsp + 0x38]
mov rdx, rbx
xor r8d, r8d
call fcn.140045190
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x14004f5f6
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004f62d
mov bl, 1
test al, 0x10
jne 0x14004f762
test r12, r12
je 0x14004f61b
mov dword [r12], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14004f762
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.140035620
movzx ecx, byte [rsp + 0x37]
mov rax, rcx
test cl, cl
jns 0x14004f64e
mov rax, qword [rsp + 0x28]
movzx esi, byte [rdi + 0x17]
mov rdx, rsi
test sil, sil
jns 0x14004f65e
mov rdx, qword [rdi + 8]
cmp rax, rdx
jne 0x14004f6ab
test rax, rax
je 0x14004f694
test cl, cl
jns 0x14004f671
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
test sil, sil
jns 0x14004f67c
mov rcx, qword [rdi]
xor edx, edx
nop
movzx esi, word [rbp + rdx*2]
cmp si, word [rcx + rdx*2]
jne 0x14004f6ab
add rdx, 1
cmp rax, rdx
jne 0x14004f680
test r12, r12
je 0x14004f6a1
mov dword [r12], 0xfffffffc
mov ecx, 2
jmp 0x14004f750
lea rcx, [rsp + 0x20]
mov rdx, r12
call fcn.14004f590
test al, al
je 0x14004f756
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x14004f758
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x14004f73e
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea r15, [rsp + 0x50]
mov rcx, r15
mov r9d, 0x1cc
call fcn.140038520
lea r14, [rsp + 0x70]
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140045190
cmp byte [rdi + 0x17], 0
jns 0x14004f721
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r14
call fcn.1400452c0
cmp edi, 0xffffffff
je 0x14004f73e
and edi, 0x10
jne 0x14004f758
test r12, r12
je 0x14004f74e
mov ecx, ebp
call fcn.140050830
mov dword [r12], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea rcx, [rsp + 0x20]
call fcn.140034b60
lea rcx, [rsp + 0x38]
call fcn.1400452c0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140163e00
mov eax, ebx
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14004f890
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rdx, [0x14019e11d]
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r9d, 0x33d
call fcn.140038520
lea rcx, [rsp + 0x68]
mov rdx, rdi
xor r8d, r8d
call fcn.140045190
cmp byte [rbx + 0x17], 0
jns 0x14004f8f1
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, rbx
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.1400022d0
mov rcx, qword [rsp + 0x48]
mov ebx, 0xffffffff
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14004f97c
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
cmp dword [rsp + 0x44], esi
mov ebx, 0xffffffff
cmove ebx, esi
or ebx, ecx
mov rcx, qword [rsp + 0x48]
add rcx, 1
cmp rcx, 2
jb 0x14004f9b8
call fcn.140038540
mov r8, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x48]
mov r9, rax
call fcn.1400525b0
mov rcx, qword [rsp + 0x48]
call fcn.140052540
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x68]
call fcn.1400452c0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140163e00
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14004f9f0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x290
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x288], rax
lea rdx, [0x14019e127]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r9d, 0x370
call fcn.140038520
lea rcx, [rsp + 0x68]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.140045190
mov word [rsp + 0x80], 0
lea rbx, [rsp + 0x80]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x14004fae8
mov qword [rsp + 0x28], rbx
cmp word [rsp + 0x80], 0
je 0x14004faa1
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax + rax]
cmp word [rsp + rax*2 + 0x82], 0
lea rax, [rax + 1]
jne 0x14004fa90
jmp 0x14004faa3
xor eax, eax
mov qword [rsp + 0x30], rax
lea rdi, [rsp + 0x38]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140034b10
lea rbx, [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
call fcn.1400370b0
mov rcx, rsi
mov rdx, rbx
call fcn.140034b90
mov rcx, rbx
call fcn.140034b60
mov rcx, rdi
call fcn.140034b60
mov dil, 1
lea rcx, [rsp + 0x68]
call fcn.1400452c0
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.140163e00
mov eax, edi
add rsp, 0x290
pop rbx
pop rdi
pop rsi
ret
Function at 0x14004fb10
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, [0x14019e13c]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x380
call fcn.140038520
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140045190
cmp byte [rsi + 0x17], 0
jns 0x14004fb66
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.1400452c0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140163e00
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

Function at 0x14004fba0
Capabilities:
Check if file exists
Copy file

Disassembly:
xor r8d, r8d
jmp 0x14004fbb0
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xaf
call fcn.140038520
lea rcx, [rsp + 0x50]
xor ebp, ebp
mov rdx, rbx
xor r8d, r8d
call fcn.140045190
mov rcx, rdi
call fcn.140037150
test al, al
jne 0x14004fccd
mov rcx, rsi
call fcn.140037150
test al, al
je 0x14004fc28
xor ebp, ebp
jmp 0x14004fccd
cmp byte [rdi + 0x17], 0
jns 0x14004fc38
cmp qword [rdi + 8], 0x103
ja 0x14004fc21
cmp byte [rsi + 0x17], 0
jns 0x14004fc48
cmp qword [rsi + 8], 0x103
ja 0x14004fc21
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xbc
call fcn.140038520
lea rcx, [rsp + 0x28]
mov rdx, rbx
call fcn.140075bb0
cmp byte [rsi + 0x17], 0
jns 0x14004fc7f
mov rsi, qword [rsi]
movzx r8d, r14b
cmp byte [rdi + 0x17], 0
jns 0x14004fc8c
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14004fcc1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004fcc1
mov bpl, 1
test al, 1
je 0x14004fcc3
and eax, 0xfffffffe
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14004fcc3
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.140075e80
lea rcx, [rsp + 0x50]
call fcn.1400452c0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140163e00
mov eax, ebp
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret