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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x1401051b0
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 0x1401051bb
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14010519e
mov qword [rdi], rsi
call fcn.1400bb620
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400bb620
mov r14, qword [rdi]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x1401051e0
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rdi], 0
jmp 0x14010518c
call fcn.140163330
mov rcx, qword [0x1403198a0]
jmp 0x1401051cf

Function at 0x14010a530
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rdi
mov r9, qword [rcx]
mov r10, qword [rcx + 8]
mov r8, r10
sub r8, r9
je 0x14010a5bf
mov rax, r8
shr rax, 2
mov rdx, r9
not rdx
add rdx, r10
jne 0x14010a557
xor edx, edx
jmp 0x14010a59c
mov r10, r8
and r10, 0xfffffffffffffffe
xor edx, edx
lea r11, [0x1402d0c00]
nop word [rax + rax]
movzx esi, al
movzx edi, byte [r9 + rdx]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
movzx esi, al
movzx edi, byte [r9 + rdx + 1]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
add rdx, 2
cmp r10, rdx
jne 0x14010a570
test r8b, 1
je 0x14010a5b9
movzx edi, al
movzx edx, byte [r9 + rdx]
xor edx, edi
lea rdi, [0x1402d0c00]
shr eax, 8
xor eax, dword [rdi + rdx*4]
mov dword [rcx + 0x18], eax
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x14010a5b9
Function at 0x14010b4d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx], rdx
mov rdi, qword [0x140314cf8]
cmp rdi, 1
jbe 0x14010b520
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010b566
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140314cf8]
call fcn.1400c4120
test al, al
je 0x14010b572
mov qword [0x140314d00], 0
lea rbx, [0x140314cf8]
lea rdi, [0x140314d00]
mov rcx, rdi
xor edx, edx
call fcn.1400bc270
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400c4100
jmp 0x14010b4ea
test rsi, rsi
je 0x14010b515
call fcn.1400086f0
jmp 0x14010b4fc
mov rdi, qword [0x140314cf8]
jmp 0x14010b4ea

Function at 0x14010bd30
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea rbp, [rbx + 1]
cmp rbp, 2
jb 0x14010bd5b
call fcn.1400bb620
mov qword [rsi], 0
test rbx, rbx
je 0x14010bd93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14010bdbd
cmp rbp, 2
jb 0x14010bd8a
mov qword [rsi], rbx
call fcn.1400bb620
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
xor eax, eax
mov byte [rsi + 9], al
mov byte [rdi + 8], al
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14010bdf0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400bb620
mov r14, qword [rsi]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x14010bde2
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x14010bd7c
call fcn.140163330
mov rcx, qword [0x1403198a0]
jmp 0x14010bdd1
call fcn.1400bb620
mov rbx, qword [rdi]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x14010be15
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov qword [rdi], 0
jmp 0x14010bdad
call fcn.140163330
mov rcx, qword [0x1403198a0]
jmp 0x14010be04
Function at 0x14010cecc
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, r8
mov r12, rdx
mov r15, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, pe_nt_image_headers64
call fcn.140112048
mov rsi, rax
lea rax, [0x1402aa1a0]
mov qword [rsi], rax
lea rax, [0x14016aaa0]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x1403152f0]
lea rdx, [0x140162500]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14010d00b
lea rbx, [rsi + 8]
xorps xmm0, xmm0
movups xmmword [rsi + 0x64], xmm0
movups xmmword [rsi + 0x58], xmm0
movups xmmword [rsi + 0x48], xmm0
movups xmmword [rsi + 0x38], xmm0
movups xmmword [rsi + 0x28], xmm0
movaps xmm0, xmmword [0x1402c0e70]
movups xmmword [rsi + 8], xmm0
movaps xmm0, xmmword [0x1402c0e80]
movups xmmword [rsi + 0x18], xmm0
mov dword [rsi + 0x74], 0x20
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
mov rcx, rbx
call fcn.1400c2cf0
lea rdi, [rsp + 0x30]
movaps xmm0, xmmword [0x1402ae190]
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi], xmm0
mov qword [rdi - 0x10], r12
mov qword [rdi - 8], r14
cmp r14, 0x20
cmovb r12, rdi
mov rcx, r12
mov rdx, rbx
call fcn.1400db300
mov r8, qword [rdi - 8]
cmp r8, 0x1f
jbe 0x14010cffc
test rsi, rsi
je 0x14010cfe0
xorps xmm0, xmm0
movups xmmword [rbx + 0x60], xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx], xmm0
mov rcx, rsi
call fcn.140112038
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140115e50
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x20]
mov rdx, rdi
call fcn.1401178b0
jmp 0x14010cfb5
call fcn.140112370
int3
Function at 0x14010ed50
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [0x14031af28]
cmp rbx, 1
jbe 0x14010eda4
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010edea
movsxd rcx, dword [rbx]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rbx + 4]
movsxd rdx, dword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14031af28]
call fcn.1400c4120
test al, al
je 0x14010edf6
mov qword [0x14031af30], 0
lea r14, [0x14031af28]
lea rbx, [0x14031af30]
mov rcx, rbx
xor edx, edx
call fcn.1400bc270
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9, r14
call fcn.1400c4100
jmp 0x14010ed6c
test rdi, rdi
je 0x14010ed97
call fcn.1400086f0
jmp 0x14010ed7e
mov rbx, qword [0x14031af28]
jmp 0x14010ed6c

Function at 0x14010ee10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14031af28]
cmp rsi, 1
jbe 0x14010ee59
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010ee52
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14031af28]
call fcn.1400c4120
test al, al
je 0x14010ee9f
mov qword [0x14031af30], 0
lea rdi, [0x14031af28]
lea rsi, [0x14031af30]
mov rcx, rsi
xor edx, edx
call fcn.1400bc270
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400c4100
jmp 0x14010ee23
mov rsi, qword [0x14031af28]
jmp 0x14010ee23

Function at 0x14010f810
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x14031dea0]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14010f875
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010f8b1
movsxd rcx, dword [0x14031de98]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x14031de9c]
movsxd rdx, dword [0x14031de98]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14031dea0]
call fcn.1401120e4
cmp dword [0x14031dea0], 0xffffffff
jne 0x14010f839
mov qword [0x14031de98], 0
lea rcx, [0x14031de98]
xor edx, edx
call fcn.1400bc270
lea rcx, [0x14031dea0]
call fcn.140112084
jmp 0x14010f839
test rsi, rsi
je 0x14010f86f
call fcn.1400086f0
jmp 0x14010f84b
Function at 0x14010f8e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, 1
lock xadd dword [0x14031de84], eax
mov dword [rcx + 4], eax
mov eax, dword [0x14031de80]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14010f9c9
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010fa4f
movsxd rcx, dword [0x14031de78]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x14031de7c]
movsxd rdx, dword [0x14031de78]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x14031de90]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14010fa0c
lea rdi, [rsi + 4]
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010fa62
movsxd rcx, dword [0x14031de88]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [0x14031de8c]
movsxd rdx, dword [0x14031de88]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14031de80]
call fcn.1401120e4
cmp dword [0x14031de80], 0xffffffff
jne 0x14010f922
mov qword [0x14031de78], 0
lea rcx, [0x14031de78]
xor edx, edx
call fcn.1400bc270
lea rcx, [0x14031de80]
call fcn.140112084
jmp 0x14010f922
lea rcx, [0x14031de90]
call fcn.1401120e4
cmp dword [0x14031de90], 0xffffffff
jne 0x14010f981
mov qword [0x14031de88], 0
lea rcx, [0x14031de88]
xor edx, edx
call fcn.1400bc270
lea rcx, [0x14031de90]
call fcn.140112084
jmp 0x14010f981
test rsi, rsi
je 0x14010f95c
call fcn.1400086f0
jmp 0x14010f938
test rdi, rdi
je 0x14010f9bf
call fcn.1400086f0
jmp 0x14010f99b

Function at 0x14010fa80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx], dl
mov rdi, qword [0x14031b0c0]
cmp rdi, 1
jbe 0x14010facf
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010fb15
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14031b0c0]
call fcn.1400c4120
test al, al
je 0x14010fb21
mov qword [0x14031b0c8], 0
lea rbx, [0x14031b0c0]
lea rdi, [0x14031b0c8]
mov rcx, rdi
xor edx, edx
call fcn.1400bc270
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400c4100
jmp 0x14010fa99
test rsi, rsi
je 0x14010fac4
call fcn.1400086f0
jmp 0x14010faab
mov rdi, qword [0x14031b0c0]
jmp 0x14010fa99
Function at 0x14010fb30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14031b0c0]
cmp rsi, 1
jbe 0x14010fb79
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010fb72
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14031b0c0]
call fcn.1400c4120
test al, al
je 0x14010fbbf
mov qword [0x14031b0c8], 0
lea rdi, [0x14031b0c0]
lea rsi, [0x14031b0c8]
mov rcx, rsi
xor edx, edx
call fcn.1400bc270
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400c4100
jmp 0x14010fb43
mov rsi, qword [0x14031b0c0]
jmp 0x14010fb43

Function at 0x14010fbd0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14031de80]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14010fc97
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010fc33
movsxd rcx, dword [0x14031de78]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14031de7c]
movsxd rdx, dword [0x14031de78]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x14031de90]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14010fcda
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010fc92
movsxd rcx, dword [0x14031de88]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14031de8c]
movsxd rdx, dword [0x14031de88]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
ret
lea rcx, [0x14031de80]
call fcn.1401120e4
cmp dword [0x14031de80], 0xffffffff
jne 0x14010fbf9
mov qword [0x14031de78], 0
lea rcx, [0x14031de78]
xor edx, edx
call fcn.1400bc270
lea rcx, [0x14031de80]
call fcn.140112084
jmp 0x14010fbf9
lea rcx, [0x14031de90]
call fcn.1401120e4
cmp dword [0x14031de90], 0xffffffff
jne 0x14010fc58
mov qword [0x14031de88], 0
lea rcx, [0x14031de88]
xor edx, edx
call fcn.1400bc270
lea rcx, [0x14031de90]
call fcn.140112084
jmp 0x14010fc58

Function at 0x140110030
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov edi, dword [0x14031c6b0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test esi, esi
jne 0x14011005d
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140110053

Function at 0x140121f0c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140122030
Function at 0x1401459e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, dword [0x14031c6b0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test edi, edi
jne 0x140145a17
cmp rsi, 2
jb 0x140145a21
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400bce10
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140145a03
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140146380
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140314d08]
cmp rdi, 1
jbe 0x1401463e5
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401463c6
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
lea rcx, [rsi + 8]
call fcn.1400bc1a0
mov rcx, qword [rsi]
test rcx, rcx
je 0x1401463dd
lock dec dword [rcx + 8]
je 0x14014643a
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140314d08]
call fcn.1400c4120
test al, al
je 0x14014642e
mov qword [0x140314d10], 0
lea rbx, [0x140314d08]
lea rdi, [0x140314d10]
mov rcx, rdi
xor edx, edx
call fcn.1400bc270
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400c4100
jmp 0x140146397
mov rdi, qword [0x140314d08]
jmp 0x140146397
add rcx, 8
add rcx, 0xfffffffffffffff8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400bc0a0

Function at 0x140146450
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140146465
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14014d0c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1402ae190]
movaps xmmword [rsi + 0x40], xmm0
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, 0x281
call fcn.1400c0870
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400c3400
cmp byte [rdi + 0x17], 0
jns 0x14014d144
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.1400c20a0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14014d1f0
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 r13d, r8d
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rsi, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rsi
mov dl, 0xaa
call fcn.140117f60
mov qword [rsp + 0x20], r14
xor ebp, ebp
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14018a2e0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x1402ae190]
movaps xmmword [rbx], xmm0
mov rcx, rsi
mov rdx, rbx
call fcn.140008210
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x14014d286
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14014d34a
xor r12d, r12d
lea rdi, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov rsi, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 0x250
mov rcx, rdi
mov dl, 0xaa
call fcn.140117f60
mov rcx, r15
mov rdx, rdi
call fcn.140158470
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x14014d3c7
mov rcx, rdi
call fcn.14014d450
test al, al
jne 0x14014d387
test r13b, 2
jne 0x14014d3f4
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x14014d2f7
mov rcx, qword [rsp + 0x30]
call rsi
xor ebp, ebp
test eax, eax
je 0x14014d408
test r12d, r12d
cmovne ebp, r12d
mov rcx, rdi
call fcn.140158db0
mov rcx, r15
mov rdx, rdi
call fcn.140008210
mov rcx, rbx
mov rdx, rdi
call fcn.1400f94f0
mov rcx, rdi
call fcn.1400e1350
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14014d33e
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x14014d2a6
lea rcx, [rsp + 0x30]
call fcn.1400e1350
lea rcx, [rsp + 0x298]
call fcn.1400e11e0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140115e50
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
test r13b, 1
je 0x14014d303
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8d, r13d
call fcn.14014d1f0
test eax, eax
jne 0x14014d445
cmp byte [rsp + 0x47], 0
lea rcx, [rsp + 0x30]
jns 0x14014d3bc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14014d2fb
test r13b, 1
jne 0x14014d424
lea rcx, [rsp + 0x48]
call fcn.14014d450
test al, al
je 0x14014d420
lea rcx, [rsp + 0x48]
call fcn.14014d450
test al, al
je 0x14014d2de
xor ebp, ebp
jmp 0x14014d303
lea rcx, [rsp + 0x30]
call fcn.1401cdbf0
xor ebp, ebp
test al, al
jne 0x14014d303
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14014d303
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14014d435
mov rcx, qword [rsp + 0x30]
jmp 0x14014d43a
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14014d2ce
mov ebp, eax
jmp 0x14014d303
Function at 0x14014d8d0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r15d, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x1402ae190]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.MapFileRegionToMemory
lea r8, str..._.._base_files_memory_mapped_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x39
call fcn.1400c0870
xor ebp, ebp
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400c3400
mov rcx, rsi
call fcn.1400c2090
test al, al
je 0x14014da5b
test r15d, r15d
jne 0x14014da87
mov ebx, 2
xor edi, edi
mov rcx, rsi
call fcn.1400c2080
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
mov rcx, rax
xor edx, edx
mov r8d, ebx
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x14014d9e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14014dab8
mov rax, rdi
inc rax
cmp rax, 2
jb 0x14014d9d5
mov qword [rsi + 0x40], rdi
call fcn.1400bb620
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
inc rdi
cmp rdi, 2
jb 0x14014db33
mov dword [rsp + 0x3c], 0
lea rdx, [0x1402bbf48]
mov rcx, r14
call fcn.14014db70
test al, al
je 0x14014dae2
mov rcx, rsi
call fcn.14014db90
xor ebp, ebp
test rax, rax
jle 0x14014da5b
mov qword [rsi + 0x38], rax
xor r8d, r8d
xor eax, eax
and ebx, 2
add ebx, 2
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rax
mov edx, ebx
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x14014db33
movsxd rcx, dword [rsp + 0x3c]
add rax, rcx
mov qword [rsi + 0x30], rax
mov bpl, 1
lea rcx, [rsp + 0x60]
call fcn.1400c20a0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140115e50
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp r15d, 3
jne 0x14014da99
mov rcx, rsi
call fcn.14014dd40
mov ebp, eax
jmp 0x14014da5b
cmp r15d, 2
jne 0x14014db3a
mov rbp, qword [r14 + 8]
mov rdi, rbp
shr rdi, 0x20
mov ebx, 4
jmp 0x14014d978
call fcn.1400bb620
mov r15, qword [rsi + 0x40]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x14014db4a
mov rax, qword [rcx]
mov rdx, r15
call qword [rax]
mov qword [rsi + 0x40], 0
jmp 0x14014d9c0
xor eax, eax
lea rdi, [rsp + 0x40]
mov qword [rdi], rax
lea r9, [rsp + 0x30]
mov qword [r9], rax
mov rcx, qword [r14]
mov rdx, qword [r14 + 8]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r8, rdi
call fcn.14014dcc0
mov rbp, qword [rdi]
test rbp, rbp
js 0x14014db33
mov rcx, qword [r14 + 8]
movsxd rax, dword [rsp + 0x3c]
add rax, rcx
js 0x14014db33
mov r8, rbp
shr r8, 0x20
mov qword [rsi + 0x38], rcx
jmp 0x14014da25
xor ebp, ebp
jmp 0x14014da5b
cmp r15d, 1
jne 0x14014db5b
mov ebx, 4
jmp 0x14014d976
call fcn.140163330
mov rcx, qword [0x1403198a0]
jmp 0x14014dacd
xor ebx, ebx
jmp 0x14014d976
Function at 0x14014db90
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x50], r14
movaps xmm6, xmmword [0x1402ae190]
movaps xmmword [rdi + 0x40], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x9c
call fcn.1400c0870
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400c3400
mov qword [rbx], r14
mov rcx, qword [rsi]
lea rdi, [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, eax
mov rbx, qword [rdi]
test byte [0x14030f3f0], 0x19
jne 0x14014dc74
xor edi, edi
cmp esi, 1
sbb rdi, rdi
or rdi, rbx
lea rcx, [rsp + 0x60]
call fcn.1400c2130
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140115e50
mov rax, rdi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r14
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x14030f3f0]
lea r9, [0x1402bc35a]
mov rcx, rdi
mov dl, 0x45
call fcn.1400c0640
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14014dc37
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14014dc37