joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c5990
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140299ab8]
cmp rsi, 1
jbe 0x1400c59d9
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c59d2
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, [0x140299ab8]
call fcn.14008f690
test al, al
je 0x1400c5a1f
mov qword [0x140299ac0], 0
lea rdi, [0x140299ab8]
lea rsi, [0x140299ac0]
mov rcx, rsi
xor edx, edx
call fcn.1400721e0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14008f670
jmp 0x1400c59a3
mov rsi, qword [0x140299ab8]
jmp 0x1400c59a3

Function at 0x1400c5a30
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14029ba08]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c5af7
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c5a93
movsxd rcx, dword [0x14029ba00]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14029ba04]
movsxd rdx, dword [0x14029ba00]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x14029ba18]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c5b3a
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c5af2
movsxd rcx, dword [0x14029ba10]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14029ba14]
movsxd rdx, dword [0x14029ba10]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
ret
lea rcx, [0x14029ba08]
call fcn.1400c9d58
cmp dword [0x14029ba08], 0xffffffff
jne 0x1400c5a59
mov qword [0x14029ba00], 0
lea rcx, [0x14029ba00]
xor edx, edx
call fcn.1400721e0
lea rcx, [0x14029ba08]
call fcn.1400c9cf8
jmp 0x1400c5a59
lea rcx, [0x14029ba18]
call fcn.1400c9d58
cmp dword [0x14029ba18], 0xffffffff
jne 0x1400c5ab8
mov qword [0x14029ba10], 0
lea rcx, [0x14029ba10]
xor edx, edx
call fcn.1400721e0
lea rcx, [0x14029ba18]
call fcn.1400c9cf8
jmp 0x1400c5ab8

Function at 0x1400c5e90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov edi, dword [0x14029b018]
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 0x1400c5ebd
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400c5eb3
Function at 0x140102a90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, dword [0x14029b018]
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 0x140102ac7
cmp rsi, 2
jb 0x140102ad1
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140072d40
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140102ab3
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140103410
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140297820]
cmp rdi, 1
jbe 0x140103475
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140103456
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.140072110
mov rcx, qword [rsi]
test rcx, rcx
je 0x14010346d
lock dec dword [rcx + 8]
je 0x1401034ca
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140297820]
call fcn.14008f690
test al, al
je 0x1401034be
mov qword [0x140297828], 0
lea rbx, [0x140297820]
lea rdi, [0x140297828]
mov rcx, rdi
xor edx, edx
call fcn.1400721e0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14008f670
jmp 0x140103427
mov rdi, qword [0x140297820]
jmp 0x140103427
add rcx, 8
add rcx, 0xfffffffffffffff8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14009a4a0

Function at 0x1401034e0
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 0x1401034f5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1401052a0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x1401052da
mov rax, qword [rdi]
mov qword [rbx], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r15
jbe 0x140105336
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140105325
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1400cf0a0
mov r14, qword [rsi + 8]
add rbx, r15
mov qword [rsi + 0x10], rbx
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x1401052bf
mov rax, rbx
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x1401053cc
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.1400c9cbc
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rbx, r14
je 0x1401053a0
lea r10, [r9 + rbx]
sar rbx, 3
shl rbx, 3
lea r11, [rax + r12*8]
xor edx, edx
mov rcx, qword [r14 + rdx]
mov qword [r11 + rdx], rcx
add rdx, 8
cmp rbx, rdx
jne 0x14010538f
mov qword [rsi], rax
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], r8
mov rbx, r10
test r15, r15
je 0x1401052bf
mov rcx, r15
call fcn.1400c9cac
mov rbx, qword [rsi + 0x10]
jmp 0x1401052bf
call fcn.1400c9fe0
int3

Function at 0x140108f8d
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140108fb4
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
je 0x140108fdf
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14010900d
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400ccfe0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14010922e
mov ecx, 2
call fcn.1400ac390
test al, al
je 0x1401090c5
call qword [sym.imp.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, 0x266
mov r9d, 2
call fcn.14014efd0
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400a7acb
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.14008ddb0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14010909f
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400a7acb
cmp byte [rsp + 0x4f], 0
jns 0x1401090bb
mov rcx, qword [rsp + 0x38]
call fcn.1400c9cac
lea rcx, [rsp + 0x50]
call fcn.1401412f0
xor edi, edi
jmp 0x140108fc3
Function at 0x14010922e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x140109255
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140109287
mov dil, 1
test al, 0x10
je 0x140109344
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400ac390
test al, al
je 0x140109407
call qword [sym.imp.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, 0x251
mov r9d, 2
call fcn.14014efd0
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400a7acb
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.14008ddb0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140109319
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1400a7acb
cmp byte [rsp + 0x5f], 0
jns 0x140109335
mov rcx, qword [rsp + 0x48]
call fcn.1400c9cac
lea rcx, [rsp + 0x60]
call fcn.1401412f0
jmp 0x140109407
mov ecx, 2
call fcn.1400ac390
test al, al
je 0x140109407
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x255
mov r9d, 2
call fcn.140122230
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400a7acb
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.14008ddb0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1401093cc
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1400a7acb
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1400a7acb
cmp byte [rsp + 0x5f], 0
jns 0x1401093fd
mov rcx, qword [rsp + 0x48]
call fcn.1400c9cac
lea rcx, [rsp + 0x60]
call fcn.140001c60
xor edi, edi
jmp 0x14010926b
Function at 0x14010a5d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x140257270]
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.14007e2d0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14008e970
cmp byte [rdi + 0x17], 0
jns 0x14010a654
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14007d0f0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x14010a690
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 [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x450]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x140257270]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, [0x14025cbfe]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x240]
mov rcx, rsi
mov r9d, 0x242
call fcn.14007e2d0
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.14008e970
lea rbp, [rsp + 0x240]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.1400cf750
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14010a73f
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rbp
call fcn.14007c8f0
mov rcx, rbp
call fcn.140078fa0
lea rbp, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.1400cf750
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x14010a776
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rbp
call fcn.14007c8f0
mov rcx, rbp
call fcn.140078fa0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14010a798
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14010a7a4
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 0x14010a826
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14010ec10
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x14010a7d7
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x14010a7e0
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
jne 0x14010a7f9
test r14, r14
jne 0x14010a82b
lea rcx, [rsp + 0x450]
call fcn.14007d0f0
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, edi
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov dil, 1
jmp 0x14010a7f9
cmp ebp, 0xfffffffc
jne 0x14010a837
call fcn.140182310
mov ebp, eax
mov dword [r14], ebp
xor edi, edi
jmp 0x14010a7f9
Function at 0x14010a840
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 [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rsi, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rsi
mov dl, 0xaa
call fcn.1400cf750
mov qword [rsp + 0x20], r14
xor ebp, ebp
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14010aab0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x140257270]
movaps xmmword [rbx], xmm0
mov rcx, rsi
mov rdx, rbx
call fcn.140004560
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x14010a8d6
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14010a99a
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.1400cf750
mov rcx, r15
mov rdx, rdi
call fcn.14010aae0
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x14010aa17
mov rcx, rdi
call fcn.14010aaa0
test al, al
jne 0x14010a9d7
test r13b, 2
jne 0x14010aa44
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x14010a947
mov rcx, qword [rsp + 0x30]
call rsi
xor ebp, ebp
test eax, eax
je 0x14010aa58
test r12d, r12d
cmovne ebp, r12d
mov rcx, rdi
call fcn.140114440
mov rcx, r15
mov rdx, rdi
call fcn.140004560
mov rcx, rbx
mov rdx, rdi
call fcn.1400b4d80
mov rcx, rdi
call fcn.14007cab0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14010a98e
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x14010a8f6
lea rcx, [rsp + 0x30]
call fcn.14007cab0
lea rcx, [rsp + 0x298]
call fcn.14007c940
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1400ccfe0
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 0x14010a953
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8d, r13d
call fcn.14010a840
test eax, eax
jne 0x14010aa95
cmp byte [rsp + 0x47], 0
lea rcx, [rsp + 0x30]
jns 0x14010aa0c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14010a94b
test r13b, 1
jne 0x14010aa74
lea rcx, [rsp + 0x48]
call fcn.14010aaa0
test al, al
je 0x14010aa70
lea rcx, [rsp + 0x48]
call fcn.14010aaa0
test al, al
je 0x14010a92e
xor ebp, ebp
jmp 0x14010a953
lea rcx, [rsp + 0x30]
call fcn.1401820c0
xor ebp, ebp
test al, al
jne 0x14010a953
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14010a953
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14010aa85
mov rcx, qword [rsp + 0x30]
jmp 0x14010aa8a
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14010a91e
mov ebp, eax
jmp 0x14010a953
Function at 0x14010afe0
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 [0x14028f028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x140257270]
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.14007e2d0
xor ebp, ebp
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14008e970
mov rcx, rsi
call fcn.14007d0e0
test al, al
je 0x14010b16b
test r15d, r15d
jne 0x14010b197
mov ebx, 2
xor edi, edi
mov rcx, rsi
call fcn.14007d0d0
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 0x14010b0f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14010b1c8
mov rax, rdi
inc rax
cmp rax, 2
jb 0x14010b0e5
mov qword [rsi + 0x40], rdi
call fcn.140071760
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
inc rdi
cmp rdi, 2
jb 0x14010b243
mov dword [rsp + 0x3c], 0
lea rdx, [0x140264198]
mov rcx, r14
call fcn.14010b280
test al, al
je 0x14010b1f2
mov rcx, rsi
call fcn.14010b2a0
xor ebp, ebp
test rax, rax
jle 0x14010b16b
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 0x14010b243
movsxd rcx, dword [rsp + 0x3c]
add rax, rcx
mov qword [rsi + 0x30], rax
mov bpl, 1
lea rcx, [rsp + 0x60]
call fcn.14007d0f0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp r15d, 3
jne 0x14010b1a9
mov rcx, rsi
call fcn.14010b450
mov ebp, eax
jmp 0x14010b16b
cmp r15d, 2
jne 0x14010b24a
mov rbp, qword [r14 + 8]
mov rdi, rbp
shr rdi, 0x20
mov ebx, 4
jmp 0x14010b088
call fcn.140071760
mov r15, qword [rsi + 0x40]
mov rcx, qword [0x1402980e0]
test rcx, rcx
je 0x14010b25a
mov rax, qword [rcx]
mov rdx, r15
call qword [rax]
mov qword [rsi + 0x40], 0
jmp 0x14010b0d0
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.14010b3d0
mov rbp, qword [rdi]
test rbp, rbp
js 0x14010b243
mov rcx, qword [r14 + 8]
movsxd rax, dword [rsp + 0x3c]
add rax, rcx
js 0x14010b243
mov r8, rbp
shr r8, 0x20
mov qword [rsi + 0x38], rcx
jmp 0x14010b135
xor ebp, ebp
jmp 0x14010b16b
cmp r15d, 1
jne 0x14010b26b
mov ebx, 4
jmp 0x14010b086
call fcn.140122340
mov rcx, qword [0x1402980e0]
jmp 0x14010b1dd
xor ebx, ebx
jmp 0x14010b086
Function at 0x14010b2a0
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 [0x14028f028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x50], r14
movaps xmm6, xmmword [0x140257270]
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.14007e2d0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14008e970
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 [0x140291180], 0x19
jne 0x14010b384
xor edi, edi
cmp esi, 1
sbb rdi, rdi
or rdi, rbx
lea rcx, [rsp + 0x60]
call fcn.14007d180
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400ccfe0
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, [0x140291180]
lea r9, [0x14025c94b]
mov rcx, rdi
mov dl, 0x45
call fcn.140086650
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14010b347
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14010b347
Function at 0x14010b450
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x140257270]
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.MapImageToMemory
lea r8, str..._.._base_files_memory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1a
call fcn.14007e2d0
xor ebx, ebx
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.14008e970
mov rcx, rsi
call fcn.14007d0e0
test al, al
je 0x14010b5a6
mov rcx, rsi
call fcn.14007d0d0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x14010b54f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14010b5cf
mov rax, rdi
inc rax
cmp rax, 2
jb 0x14010b543
mov qword [rsi + 0x40], rdi
call fcn.140071760
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14010b607
mov qword [rsp + 0x20], 0
xor ebx, ebx
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x14010b5a6
lea rdx, [0x140254bc8]
lea rcx, [rsp + 0x30]
mov qword [rcx], rdx
mov qword [rcx + 8], rax
call fcn.14007d5ee
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov bl, 1
lea rcx, [rsp + 0x50]
call fcn.14007d0f0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140071760
mov r14, qword [rsi + 0x40]
mov rcx, qword [0x1402980e0]
test rcx, rcx
je 0x14010b5f9
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi + 0x40], 0
jmp 0x14010b52e
call fcn.140122340
mov rcx, qword [0x1402980e0]
jmp 0x14010b5e4
xor ebx, ebx
jmp 0x14010b5a6