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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x1401341d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140054e53
mov byte [rsp + 0x3c], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x1401341d4]
mov dword [rsp + 0x38], eax
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
shr rbx, 0x20
test bl, bl
je 0x140054e78
mov rcx, qword [0x1401341d8]
mov r8, rdi
xor edx, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
mov cl, 1
call fcn.1400552d0
mov rcx, qword [0x1401341d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400552d0

Function at 0x140054eb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x1401341d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140054ef3
mov byte [rsp + 0x3c], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x1401341d4]
mov dword [rsp + 0x38], eax
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
shr rbx, 0x20
test bl, bl
je 0x140054f18
mov rcx, qword [0x1401341d8]
mov r8, rdi
xor edx, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov cl, 1
call fcn.1400552d0
mov rcx, qword [0x1401341d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov rbx, rax
call fcn.1400552d0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140054f50
Capabilities:
Get thread local storage value
Read file via mapping
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rcx
mov rdi, rdx
mov ecx, dword [0x1401341d4]
mov rbp, r8
shr rdi, 0x20
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140054fa8
mov byte [rsp + 0x5c], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x1401341d4]
mov dword [rsp + 0x58], eax
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
shr rbx, 0x20
test bl, bl
je 0x140054fcb
mov r9d, esi
mov qword [rsp + 0x20], rbp
mov r8d, edi
mov edx, 6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
jmp 0x140054ff8
mov cl, 1
call fcn.1400552d0
mov r9d, esi
mov qword [rsp + 0x20], rbp
mov r8d, edi
mov edx, 6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
mov rbx, rax
call fcn.1400552d0
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140055010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rdi, rdx
mov ecx, dword [0x1401341d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14005505b
mov byte [rsp + 0x44], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x1401341d4]
mov dword [rsp + 0x40], eax
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
shr rbx, 0x20
test bl, bl
je 0x140055096
test rsi, rsi
je 0x140055071
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400550c5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov cl, 1
call fcn.1400552d0
test rsi, rsi
je 0x1400550ab
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400550be
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.1400552d0
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400552d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x20
movzx edi, cl
mov ecx, dword [0x1401341d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14005531d
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x3c], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x1401341d4]
mov dword [rsp + 0x38], eax
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x30]
jmp 0x140055322
mov qword [rsp + 0x38], rax
mov ecx, dword [0x1401341d4]
mov byte [rsp + 0x3c], dil
mov rdx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x140055d70
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rbx, [rdx - 1]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r8d, dword [rsp + 0x34]
cmp r8d, dword [rsp + 0x58]
mov rcx, qword [rdi + 0x18]
cmovb r8d, dword [rsp + 0x58]
mov eax, r8d
add rbx, rax
dec rax
not rax
and rbx, rax
mov rdx, rbx
call fcn.140056a60
test al, al
jne 0x140055dd7
lea rcx, str.Matrix_realloc_ftruncate_failed
call fcn.14004e8d0
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [rdi + 0x38]
xor r9d, r9d
mov qword [rsp + 0x70], rbp
xor edx, edx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x78], rsi
lea r8d, [r9 + 4]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.140054f50
mov rsi, rax
test rax, rax
jne 0x140055e29
lea rcx, str.Matrix_realloc_mmap_failed
call fcn.14004e8d0
xor eax, eax
jmp 0x140055e45
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rax, rsi
mov qword [rdi + 0x20], rbx
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x30], rbp
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140056140
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword gs:[0x58]
mov rbx, rcx
mov r8d, dword [0x140134780]
mov edi, edx
mov ecx, 0x80
mov r8, qword [rax + r8*8]
mov eax, dword [rcx + r8]
cmp dword [0x140134430], eax
jg 0x14005626d
mov r8, qword [rbx + 0x18]
lea eax, [rdi - 1]
mov r9, qword [rbx + 0x10]
xor edx, edx
div r8
mov rdx, qword [0x140134428]
add rdx, 0x800000
mov qword [rsp + 0x70], rbp
mov r14, rax
mov rsi, rax
shl r14, 0x17
add rdx, r14
cmp rdx, r9
ja 0x14005624f
cmp rax, qword [rbx + 0x58]
jne 0x1400561cb
mov rcx, qword [rbx + 0x60]
test rcx, rcx
jne 0x14005623d
mov rcx, qword [rbx + 0x60]
xor ebp, ebp
test rcx, rcx
je 0x1400561eb
mov rdx, qword [rbx + 0x68]
call fcn.140055010
mov r9d, dword [rbx + 0x10]
mov qword [rbx + 0x60], rbp
mov qword [rbx + 0x68], rbp
mov rax, qword [rbx]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r9d
xor r9d, r9d
mov rcx, qword [rax]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, qword [0x140134428]
mov r8d, 0x800000
add rdx, r14
mov rcx, rax
mov rbp, rax
call fcn.140054f50
mov rcx, rax
test rax, rax
je 0x14005624f
mov r8d, dword [rbx + 0x18]
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x68], rbp
mov qword [rbx + 0x58], rsi
imul r8d, esi
sub edi, r8d
mov eax, edi
shl rax, 4
add rax, rcx
jmp 0x140056251
xor eax, eax
mov rbp, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
lea rcx, [0x140134430]
call fcn.1400cefb4
cmp dword [0x140134430], 0xffffffff
jne 0x140056183
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x34]
lea rcx, [0x140134430]
cmp edx, dword [rsp + 0x58]
cmovb edx, dword [rsp + 0x58]
mov eax, edx
dec rdx
not rdx
add rax, 0x6f
and rdx, rax
mov qword [0x140134428], rdx
call fcn.1400cef54
jmp 0x140056183
Function at 0x1400562d0
Capabilities:
Get system information on windows

Disassembly:
push rbx
push r14
sub rsp, 0x68
mov rax, qword gs:[0x58]
mov rbx, rcx
mov edx, dword [0x140134780]
mov ecx, 0x80
mov rdx, qword [rax + rdx*8]
mov eax, dword [rcx + rdx]
cmp dword [0x140134420], eax
jg 0x140056506
mov qword [rsp + 0x80], rbp
lea rdx, str.stack_frames_entry.dat
mov qword [rsp + 0x88], rsi
mov rcx, rbx
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x60], r15
call fcn.1400550e0
mov rbx, rax
mov r14, qword [rax]
cmp r14, 0xffffffffffffffff
jne 0x14005634b
mov dword [0x1401341d0], 0x32
xor eax, eax
jmp 0x140056423
mov rcx, rbx
call fcn.140056a30
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14005636b
mov dword [0x1401341d0], 0x33
jmp 0x1400564ea
mov rdx, qword [0x140134418]
cmp rsi, rdx
jbe 0x140056448
sub rax, rdx
test rax, 0x7fffff
jne 0x140056448
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x28], rbp
mov rcx, r14
mov dword [rsp + 0x20], edx
xor edx, edx
lea r8d, [rbp + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r8, qword [0x140134418]
xor edx, edx
mov rcx, rax
mov r15, rax
call fcn.140054f50
mov rdi, rax
test rax, rax
jne 0x1400563d2
mov dword [0x1401341d0], 0x35
jmp 0x1400564ea
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rax + 8], r15
mov rcx, r14
mov qword [rax], rbx
mov qword [rax + 0x10], rsi
lea r8d, [r9 + 4]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea rdx, [rsi - 0x800000]
mov r8d, 0x800000
mov rcx, rax
mov rbx, rax
call fcn.140054f50
mov qword [rdi + 0x48], rax
mov qword [rdi + 0x50], rbx
mov qword [rdi + 0x60], rbp
mov rax, rdi
mov qword [rdi + 0x58], rbp
mov r15, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
add rsp, 0x68
pop r14
pop rbx
ret
mov rcx, rbx
call fcn.140056a60
test al, al
jne 0x140056463
mov dword [0x1401341d0], 0x34
jmp 0x1400564ea
mov eax, dword [0x140134418]
xor ebp, ebp
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, r14
lea r8d, [rbp + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r8, qword [0x140134418]
xor edx, edx
mov rcx, rax
call fcn.140054f50
xorps xmm0, xmm0
mov rdi, rax
mov rcx, rdi
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
mov qword [rax + 0x18], 0x7ffff
mov qword [rax + 0x20], 0x2b93
mov qword [rax], rbx
mov rax, qword [0x140134418]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x40], rax
call fcn.140056060
test al, al
jne 0x140056418
mov rcx, rbx
call fcn.140056a00
mov edx, 8
mov rcx, rbx
call fcn.1400ceafc
xor eax, eax
jmp 0x140056423
lea rcx, [0x140134420]
call fcn.1400cefb4
cmp dword [0x140134420], 0xffffffff
jne 0x140056302
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x34]
lea rcx, [0x140134420]
cmp edx, dword [rsp + 0x58]
cmovb edx, dword [rsp + 0x58]
mov eax, edx
dec rdx
not rdx
add rax, 0x6f
and rdx, rax
mov qword [0x140134418], rdx
call fcn.1400cef54
jmp 0x140056302
Function at 0x140056740
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x70
mov rbx, rcx
mov r12, r9
mov rcx, qword [rcx]
mov rsi, r8
call fcn.140056140
xor r15d, r15d
mov r11, rax
mov edi, r15d
test rax, rax
je 0x1400568f7
mov r10d, dword [0x140134780]
mov rdx, qword gs:[0x58]
mov qword [rsp + 0x68], r13
mov r13d, dword [rsp + 0xc0]
mov qword [rsp + 0xa8], rbp
lea rdx, [rdx + r10*8]
mov r8d, 0x80
mov qword [rsp + 0xb8], rdx
mov qword [rsp + 0x60], r14
cmp edi, r13d
jae 0x1400568d5
mov rax, qword [r11]
mov ecx, edi
inc edi
mov qword [rsi + rcx*8], rax
mov rsi, qword [r11 + 8]
test rsi, rsi
je 0x1400568d5
mov rax, qword [rdx]
mov rbx, qword [rbx]
mov ecx, r8d
mov eax, dword [rcx + rax]
cmp dword [0x140134430], eax
jg 0x140056907
mov r8, qword [rbx + 0x18]
lea eax, [rsi - 1]
mov r9, qword [rbx + 0x10]
xor edx, edx
div r8
mov rdx, qword [0x140134428]
add rdx, 0x800000
mov r14, rax
shl r14, 0x17
mov rbp, rax
add rdx, r14
cmp rdx, r9
ja 0x1400568d5
cmp rax, qword [rbx + 0x58]
jne 0x140056830
mov rax, qword [rbx + 0x60]
test rax, rax
jne 0x1400568a0
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14005684e
mov rdx, qword [rbx + 0x68]
call fcn.140055010
mov r9d, dword [rbx + 0x10]
mov qword [rbx + 0x60], r15
mov qword [rbx + 0x68], r15
mov rax, qword [rbx]
xor edx, edx
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r9d
xor r9d, r9d
mov rcx, qword [rax]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, qword [0x140134428]
mov r8d, 0x800000
add rdx, r14
mov rcx, rax
mov r15, rax
call fcn.140054f50
test rax, rax
je 0x1400568d5
mov r8d, dword [rbx + 0x18]
mov qword [rbx + 0x68], r15
xor r15d, r15d
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x58], rbp
mov rbx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xb8]
imul r8d, ebp
sub esi, r8d
mov r8d, 0x80
mov r11d, esi
mov rsi, qword [rsp + 0xb0]
shl r11, 4
add r11, rax
jne 0x1400567b4
mov rbp, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov dword [r12], edi
add rsp, 0x70
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov dword [r12], r15d
add rsp, 0x70
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rcx, [0x140134430]
call fcn.1400cefb4
cmp dword [0x140134430], 0xffffffff
jne 0x1400567ed
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x34]
cmp ecx, dword [rsp + 0x58]
cmovb ecx, dword [rsp + 0x58]
mov eax, ecx
dec rcx
not rcx
add rax, 0x6f
and rcx, rax
mov qword [0x140134428], rcx
lea rcx, [0x140134430]
call fcn.1400cef54
jmp 0x1400567ed

Function at 0x140056a30
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x140056a51
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov rax, qword [rsp + 0x30]
jne 0x140056a58
mov rax, 0xffffffffffffffff
add rsp, 0x28
ret
Function at 0x140056a60
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x140056a97
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140056a97
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140056a97
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140059f50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140059f63
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140059f77
mov al, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140059f9c
cmp qword [rbx + 0x18], 8
jb 0x140059f8e
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140059fa4
xor al, al
add rsp, 0x20
pop rbx
ret
shr al, 4
and al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140059fd0
Capabilities:
Delete file

Disassembly:
push rbx
push rbp
push rdi
push r12
push r14
sub rsp, 0x90
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r14, rdx
lea r8, [rdx + 0x10]
lea rdx, [rsp + 0x30]
mov r12, rcx
call fcn.140058da0
xor ebp, ebp
mov rdi, qword [rax]
mov qword [rax], rbp
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14005a084
cmp byte [rbx + 0x28], bpl
je 0x14005a025
mov rcx, rbx
call fcn.14005f890
mov rcx, qword [rbx]
lea rax, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor edx, edx
mov r8d, r9d
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
lea rcx, [rbx + 0x30]
call fcn.140058b10
lea rcx, [rbx + 8]
call fcn.140029580
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14005a077
call fcn.14003d170
mov qword [rbx], 0xffffffffffffffff
mov edx, 0x50
mov rcx, rbx
call fcn.1400ceafc
test rdi, rdi
jne 0x14005a091
lea eax, [rdi + 3]
jmp 0x14005a1c3
mov qword [rsp + 0xd0], rsi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0xd8], r15
call fcn.140029560
movups xmm0, xmmword [r14]
mov rbx, qword [rdi + 0x30]
mov rsi, qword [rdi + 0x38]
movaps xmmword [rsp + 0x30], xmm0
cmp rbx, rsi
je 0x14005a0df
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x30]
call fcn.140031dc0
test al, al
jne 0x14005a0df
add rbx, 0x98
cmp rbx, rsi
jne 0x14005a0c1
mov rsi, qword [rsp + 0xd0]
cmp rbx, qword [rdi + 0x38]
jne 0x14005a0f4
mov ebp, 1
jmp 0x14005a142
lea rdx, [rbx + 0x18]
lea rcx, [rsp + 0x60]
call fcn.140029590
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x30]
call fcn.140060490
mov byte [rdi + 0x28], 1
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14005a137
lea ebp, [rax + 2]
jmp 0x14005a142
mov rdx, r14
mov rcx, r12
call fcn.14005f450
lea rcx, [rsp + 0x60]
call fcn.140029580
cmp byte [rdi + 0x28], 0
je 0x14005a15a
mov rcx, rdi
call fcn.14005f890
mov rcx, qword [rdi]
lea rax, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor edx, edx
mov r8d, r9d
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
lea rcx, [rdi + 0x30]
call fcn.140058b10
lea rcx, [rdi + 8]
call fcn.140029580
mov rcx, qword [rdi]
mov r15, qword [rsp + 0xd8]
cmp rcx, 0xffffffffffffffff
je 0x14005a1b4
call fcn.14003d170
mov qword [rdi], 0xffffffffffffffff
mov edx, 0x50
mov rcx, rdi
call fcn.1400ceafc
mov eax, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400cebd0
add rsp, 0x90
pop r14
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x14005a290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, qword [rcx + 0x38]
mov r14, r8
mov rsi, qword [rcx + 0x30]
mov eax, edx
mov qword [rsp + 0x78], rbx
cmp rsi, rbx
je 0x14005a417
movabs rbp, 0x1ffffffffffffff
nop dword [rax]
cmp dword [rsi + 0x80], eax
jne 0x14005a407
cmp qword [rsi + 0x30], 8
lea rcx, [rsi + 0x18]
jb 0x14005a2ea
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005a403
test al, 0x10
jne 0x14005a403
mov rdi, qword [r14 + 8]
mov rcx, qword [r14 + 0x10]
cmp rdi, rcx
je 0x14005a323
mov rdx, rsi
mov rcx, rdi
call fcn.140015b50
sub qword [r14 + 8], 0xffffffffffffff80
jmp 0x14005a403
mov rax, qword [r14]
mov rbx, rdi
sub rbx, rax
sar rbx, 7
cmp rbx, rbp
je 0x14005a42e
sub rcx, rax
lea r13, [rbx + 1]
sar rcx, 7
mov rax, rbp
mov rdx, rcx
shr rdx, 1
sub rax, rdx
cmp rcx, rax
jbe 0x14005a35a
mov r15, rbp
jmp 0x14005a365
lea r15, [rdx + rcx]
cmp r15, r13
cmovb r15, r13
mov rdx, r15
mov rcx, r14
call fcn.1400603b0
mov r12, rax
shl rbx, 7
add rax, rbx
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x60], rax
call fcn.140015b50
mov rbp, qword [r14 + 8]
mov rbx, qword [r14]
cmp rdi, rbp
jne 0x14005a3ba
mov rdi, r12
cmp rbx, rbp
je 0x14005a3e3
nop
mov rdx, rbx
mov rcx, rdi
call fcn.140015b50
sub rdi, 0xffffffffffffff80
sub rbx, 0xffffffffffffff80
cmp rbx, rbp
jne 0x14005a3a0
jmp 0x14005a3e3
mov r9, r12
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.140060180
mov r9, qword [rsp + 0x60]
mov rdx, rdi
mov r8, qword [r14 + 8]
sub r9, 0xffffffffffffff80
mov rcx, r14
call fcn.140060180
mov r9, r15
mov r8, r13
mov rdx, r12
mov rcx, r14
call fcn.14005ff70
mov rbx, qword [rsp + 0x78]
movabs rbp, 0x1ffffffffffffff
mov eax, dword [rsp + 0x68]
add rsi, 0x98
cmp rsi, rbx
jne 0x14005a2d0
mov rbx, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140008190
int3
Function at 0x14005a9d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
movups xmm0, xmmword [rdx]
mov rbx, qword [rcx + 0x30]
mov r14, r9
mov rdi, qword [rcx + 0x38]
mov ebp, r8d
movaps xmmword [rsp + 0x20], xmm0
mov rsi, rcx
cmp rbx, rdi
je 0x14005aa2e
nop dword [rax + rax]
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x20]
call fcn.140031dc0
test al, al
jne 0x14005aa2e
add rbx, 0x98
cmp rbx, rdi
jne 0x14005aa10
cmp rbx, qword [rsi + 0x38]
jne 0x14005aa3b
mov eax, 1
jmp 0x14005aa8a
mov eax, dword [rbx + 0x80]
cmp eax, ebp
jne 0x14005aa6e
cmp qword [rbx + 0x30], 8
lea rcx, [rbx + 0x18]
jb 0x14005aa53
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov edx, 1
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
cmove ecx, edx
jmp 0x14005aa7d
mov ecx, 1
mov edx, 4
cmp eax, ecx
cmove ecx, edx
test ecx, ecx
jne 0x14005aa88
mov byte [rsi + 0x28], 1
mov qword [r14], rbx
mov eax, ecx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14005dc50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rbp, r8
mov rdi, rdx
xor ebx, ebx
lea r8, [rax + 0x20]
lea rdx, [rax - 0x48]
mov dword [rax + 0x20], ebx
call fcn.140058da0
mov rsi, qword [rax]
mov qword [rax], rbx
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14005dcf3
cmp byte [rbx + 0x28], 0
je 0x14005dc94
mov rcx, rbx
call fcn.14005f890
mov rcx, qword [rbx]
lea rax, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor edx, edx
mov r8d, r9d
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
lea rcx, [rbx + 0x30]
call fcn.140058b10
lea rcx, [rbx + 8]
call fcn.140029580
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14005dce6
call fcn.14003d170
mov qword [rbx], 0xffffffffffffffff
mov edx, 0x50
mov rcx, rbx
call fcn.1400ceafc
test rsi, rsi
jne 0x14005dd0b
lea eax, [rsi + 3]
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
movups xmm0, xmmword [rdi]
mov rdi, qword [rsi + 0x38]
mov rbx, qword [rsi + 0x30]
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x80], r14
cmp rbx, rdi
je 0x14005dd4e
nop dword [rax + rax]
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x30]
call fcn.140031dc0
test al, al
jne 0x14005dd4e
add rbx, 0x98
cmp rbx, rdi
jne 0x14005dd30
cmp rbx, qword [rsi + 0x38]
jne 0x14005dd5b
mov edi, 1
jmp 0x14005dd90
cmp qword [rbx + 0x30], 8
lea rcx, [rbx + 0x18]
jb 0x14005dd69
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14005dd7d
mov edi, 1
jmp 0x14005dd90
shr edi, 3
and edi, 2
jne 0x14005dd90
mov rdx, rbx
mov rcx, rbp
call fcn.140058c80
cmp byte [rsi + 0x28], 0
je 0x14005dd9e
mov rcx, rsi
call fcn.14005f890
mov rcx, qword [rsi]
lea rax, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor edx, edx
mov r8d, r9d
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
lea rcx, [rsi + 0x30]
call fcn.140058b10
lea rcx, [rsi + 8]
call fcn.140029580
mov rcx, qword [rsi]
mov r14, qword [rsp + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x14005ddf8
call fcn.14003d170
mov qword [rsi], 0xffffffffffffffff
mov edx, 0x50
mov rcx, rsi
call fcn.1400ceafc
mov rbx, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret