joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c290
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x250
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov r14b, 1
cmp qword [0x1401b2068], 0
jne 0x14002c542
mov rdi, qword [0x1401b2048]
test rdi, rdi
je 0x14002c2de
test byte [0x1401ae358], 1
jne 0x14002c3f8
jmp 0x14002c542
mov ecx, 0x18
call fcn.14012d2c8
mov rdi, rax
lea rsi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140130ac0
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.14014bef4
mov rbx, rax
movabs rax, 0x7ffffffffffffff0
cmp rbx, rax
jae 0x14002c563
cmp rbx, 0xb
jae 0x14002c356
lea eax, [rbx + rbx]
mov byte [rdi], al
mov rsi, rdi
add rsi, 2
test rbx, rbx
jne 0x14002c381
jmp 0x14002c394
lea rbp, [rbx + 8]
and rbp, 0xfffffffffffffff8
js 0x14002c56b
mov rcx, rbp
add rcx, rbp
call fcn.14012d2c8
mov rsi, rax
mov qword [rdi + 0x10], rax
or rbp, 1
mov qword [rdi], rbp
mov qword [rdi + 8], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1401306b0
mov word [rsi + rbx*2], 0
movzx r8d, byte [rdi]
test r8b, 1
je 0x14002c3aa
mov r8, qword [rdi + 8]
jmp 0x14002c3ad
shr r8, 1
mov rcx, rdi
mov dx, 0x5c
call fcn.140023074
cmp rax, 0xffffffffffffffff
je 0x14002c3d5
add rax, 1
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.140022cf4
lea rdx, [0x140165e64]
mov rcx, rdi
call fcn.1400229c0
mov qword [0x1401b2048], rdi
test byte [0x1401ae358], 1
je 0x14002c542
test byte [rdi], 1
jne 0x14002c403
add rdi, 2
jmp 0x14002c407
mov rdi, qword [rdi + 0x10]
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 [0x1401b2068], rax
add rax, 1
cmp rax, 1
ja 0x14002c542
lea rsi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140130ac0
mov word [rsp + 0x40], 0
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14002c53f
cmp eax, 0x104
ja 0x14002c53f
mov rcx, qword [0x1401b2048]
lea rdx, [rsp + 0x40]
call fcn.140022b94
mov rcx, qword [0x1401b2048]
movzx eax, byte [rcx]
test al, 1
jne 0x14002c4b1
lea rdx, [rcx + 2]
shr rax, 1
jmp 0x14002c4b9
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x14002c4d4
lea rdx, [0x140165e60]
call fcn.1400229c0
mov rcx, qword [0x1401b2048]
lea rdx, [0x140165e64]
call fcn.1400229c0
mov rcx, qword [0x1401b2048]
test byte [rcx], 1
jne 0x14002c4f2
add rcx, 2
jmp 0x14002c4f6
mov rcx, qword [rcx + 0x10]
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 [0x1401b2068], rax
add rax, 1
cmp rax, 1
ja 0x14002c542
mov qword [0x1401b2068], 0
xor r14d, r14d
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14012d670
mov eax, r14d
add rsp, 0x250
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, rdi
call fcn.1400215c4
call fcn.1401405b4
int3
Function at 0x14002e710
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.140040a20
mov r8, qword [r13 + 0x28]
test r8, r8
je 0x14002e873
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 0x14002e7fb
mov rbx, rcx
cmp rcx, r8
jb 0x14002e802
mov rax, rcx
xor edx, edx
div r8
mov rbx, rdx
jmp 0x14002e802
lea rbx, [r8 - 1]
and rbx, rcx
mov rax, qword [r13 + 0x20]
mov rax, qword [rax + rbx*8]
test rax, rax
je 0x14002e873
mov rsi, qword [rax]
test rsi, rsi
je 0x14002e873
lea r9, [r8 - 1]
jmp 0x14002e82e
cmp qword [rsi + 0x10], r12
je 0x14002e88c
mov rsi, qword [rsi]
test rsi, rsi
je 0x14002e873
mov rax, qword [rsi + 8]
cmp rax, rcx
je 0x14002e820
cmp edi, 1
jbe 0x14002e860
cmp rax, r8
jb 0x14002e863
mov rdx, rax
or rdx, r8
shr rdx, 0x20
je 0x14002e86a
xor edx, edx
div r8
mov rax, rdx
jmp 0x14002e863
and rax, r9
cmp rax, rbx
je 0x14002e826
jmp 0x14002e873
xor edx, edx
div r8d
mov eax, edx
jmp 0x14002e863
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 [0x1401b27c0]
cmp rdi, 1
ja 0x14002e8ef
lea rcx, [0x1401b27c0]
call fcn.14002bee0
test al, al
je 0x14002e8e8
mov qword [0x1401b27c8], 0
lea rbx, [0x1401b27c0]
lea rdi, [0x1401b27c8]
mov rcx, rdi
xor edx, edx
call fcn.14005be80
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14002bf90
jmp 0x14002e8ef
mov rdi, qword [0x1401b27c0]
mov rcx, rdi
call fcn.14005bdf0
mov rbx, rax
mov rcx, rdi
mov rdx, r14
call fcn.14005be30
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.14005be30
Function at 0x14003e7b0
Capabilities:
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a0
mov r14, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x498], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [0x140166b40]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x290]
mov rcx, rsi
mov r9d, 0x19a
call fcn.14002c260
lea rcx, [rsp + 0x30]
mov rdx, rsi
xor r8d, r8d
call fcn.14003a130
lea rsi, [rsp + 0x290]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140130ac0
lea r15, [rdi + 2]
test byte [rdi], 1
mov rdx, r15
je 0x14003e858
mov rdx, qword [rdi + 0x10]
mov r8d, 0x104
mov rcx, rsi
call fcn.1400389f0
mov rcx, rsi
call fcn.1400027b0
lea rbp, [rsp + 0x80]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.140130ac0
lea rsi, [rbx + 2]
test byte [rbx], 1
mov rdx, rsi
je 0x14003e896
mov rdx, qword [rbx + 0x10]
mov r8d, 0x104
mov rcx, rbp
call fcn.1400389f0
mov rcx, rbp
call fcn.1400027b0
test byte [rdi], 1
mov rdx, r15
je 0x14003e8b8
mov rdx, qword [rdi + 0x10]
test byte [rbx], 1
mov rcx, rsi
je 0x14003e8c4
mov rcx, qword [rbx + 0x10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov bpl, 1
test eax, eax
jne 0x14003e92c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003fe70
mov r12d, eax
test byte [rbx], 1
je 0x14003e8fb
mov rsi, qword [rbx + 0x10]
test byte [rdi], 1
je 0x14003e904
mov r15, qword [rdi + 0x10]
mov rcx, r15
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14003e92c
test r14, r14
je 0x14003e92a
cmp r12d, 0xfffffffc
jne 0x14003e927
call fcn.14003fe50
mov r12d, eax
mov dword [r14], r12d
xor ebp, ebp
lea rcx, [rsp + 0x30]
call fcn.14003a270
mov rcx, qword [rsp + 0x498]
xor rcx, rsp
call fcn.14012d670
mov eax, ebp
add rsp, 0x4a0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1cd
call fcn.14002c260
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14003a130
test byte [rsi], 1
je 0x14003e9e1
mov rsi, qword [rsi + 0x10]
jmp 0x14003e9e5
add rsi, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.14003a270
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14012d670
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003ea20
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rdi
mov dl, 0xaa
call fcn.140130ac0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x102
jbe 0x14003ea70
xor esi, esi
jmp 0x14003ead5
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x60], 0
je 0x14003ea8e
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x14003ea80
jmp 0x14003ea90
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400294e0
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.14002af30
mov rcx, rsi
mov rdx, rbx
call fcn.1400295f0
mov rcx, rbx
call fcn.1400295c0
mov rcx, rdi
call fcn.1400295c0
mov sil, 1
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14012d670
mov eax, esi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003eb00
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140130ac0
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 0x14003eb80
cmp word [rsp + 0x70], 0
je 0x14003eb80
mov qword [rsp + 0x60], rdi
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x72], 0
lea rax, [rax + 1]
jne 0x14003eb60
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400294e0
jmp 0x14003ebef
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x40], xmm0
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.140029490
mov rcx, rdi
call fcn.14003ea20
test al, al
je 0x14003ebc3
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400294c0
jmp 0x14003ebe5
lea rax, [0x140166b58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400294e0
lea rcx, [rsp + 0x40]
call fcn.1400295c0
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14012d670
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
Function at 0x14003efa0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x2c0
mov rsi, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x2b8], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, [0x140166b8a]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r9d, 0x390
call fcn.14002c260
lea rcx, [rsp + 0x60]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.14003a130
lea rbx, [rsp + 0xb0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140130ac0
mov word [rsp + 0xb0], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x14003f0c8
mov qword [rsp + 0x20], rbx
cmp word [rsp + 0xb0], 0
je 0x14003f081
xor eax, eax
nop word [rax + rax]
cmp word [rsp + rax*2 + 0xb2], 0
lea rax, [rax + 1]
jne 0x14003f070
jmp 0x14003f083
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400294e0
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.14002af30
mov rcx, rsi
mov rdx, rbx
call fcn.1400295f0
mov rcx, rbx
call fcn.1400295c0
mov rcx, rdi
call fcn.1400295c0
mov dil, 1
lea rcx, [rsp + 0x60]
call fcn.14003a270
mov rcx, qword [rsp + 0x2b8]
xor rcx, rsp
call fcn.14012d670
mov eax, edi
add rsp, 0x2c0
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003f0f0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [0x140166b9f]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3a0
call fcn.14002c260
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14003a130
test byte [rsi], 1
je 0x14003f171
mov rsi, qword [rsi + 0x10]
jmp 0x14003f175
add rsi, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14003a270
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14012d670
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003f360
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 ebx, r8d
mov rbp, rdx
mov rsi, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rdi, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rdi
mov dl, 0xaa
call fcn.140130ac0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
xor ebp, ebp
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9d, 3
call fcn.1400421d0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140042440
movzx eax, byte [rsp + 0x30]
test al, 1
je 0x14003f406
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x14003f412
jmp 0x14003f570
shr rax, 1
test rax, rax
je 0x14003f570
lea r13, [rsp + 0x32]
lea rdi, [rsp + 0x48]
lea rsi, [rsp + 0x298]
lea r15, [rsp + 0x30]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r14d, r14d
jmp 0x14003f451
mov rax, qword [rsp + 0x38]
mov r14d, ebp
test rax, rax
je 0x14003f570
mov r8d, 0x250
mov rcx, rdi
mov dl, 0xaa
call fcn.140130ac0
mov rcx, rsi
mov rdx, rdi
call fcn.1400423b0
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x14003f4b4
test bl, bl
jne 0x14003f49c
mov rcx, rdi
call fcn.140042150
test al, al
je 0x14003f498
mov rcx, rdi
call fcn.140042150
xor ebp, ebp
test al, al
je 0x14003f500
jmp 0x14003f52e
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x14003f4ae
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call fcn.140042150
test al, al
je 0x14003f500
xor ebp, ebp
test bl, bl
je 0x14003f52e
mov rcx, r15
mov rdx, qword [rsp + 0x28]
mov r8b, 1
call fcn.14003f360
mov ebp, eax
test eax, eax
jne 0x14003f52e
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x14003f4eb
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14003f52e
jmp 0x14003f518
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x14003f50f
mov rcx, qword [rsp + 0x40]
call r12
xor ebp, ebp
test eax, eax
jne 0x14003f52e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r14d, r14d
cmovne ebp, r14d
mov rcx, rdi
call fcn.1400027b0
mov rcx, rsi
mov rdx, rdi
call fcn.140042440
mov rcx, r15
mov rdx, rdi
call fcn.1400295f0
mov rcx, rdi
call fcn.1400295c0
movzx eax, byte [rsp + 0x30]
test al, 1
jne 0x14003f440
shr rax, 1
jmp 0x14003f445
lea rcx, [rsp + 0x30]
call fcn.1400295c0
lea rcx, [rsp + 0x298]
call fcn.140042340
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14012d670
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14003f820
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
movaps xmmword [rsp + 0xc0], xmm6
mov esi, r9d
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea rdx, str.Read
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x3e
call fcn.14002c260
lea rcx, [rsp + 0x60]
mov rdx, rbx
xor r8d, r8d
call fcn.14003a130
test esi, esi
js 0x14003f928
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003ad30
call fcn.140056f60
test al, al
je 0x14003f8e1
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.140057000
mov rax, rdi
shr rax, 0x20
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003f92f
mov esi, dword [rsp + 0x2c]
jmp 0x14003f940
mov esi, 0xffffffff
jmp 0x14003f94a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.140056fd0
lea rcx, [rsp + 0x60]
call fcn.14003a270
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14012d670
mov eax, esi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14003f980
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
lea rdx, str.ReadAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x57
call fcn.14002c260
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14003a130
test esi, esi
js 0x14003fa68
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003ad30
call fcn.140056f60
test al, al
je 0x14003fa39
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140057000
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003fa6f
mov esi, dword [rsp + 0x2c]
jmp 0x14003fa80
mov esi, 0xffffffff
jmp 0x14003fa8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.140056fd0
lea rcx, [rsp + 0x50]
call fcn.14003a270
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14012d670
mov eax, esi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003fac0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r15d, r9d
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea rdx, str.Write
lea r8, str..._.._base_files_file_win.cc
lea rbp, [rsp + 0x40]
mov rcx, rbp
mov r9d, 0x73
call fcn.14002c260
lea rcx, [rsp + 0x60]
xor edi, edi
mov rdx, rbp
xor r8d, r8d
call fcn.14003a130
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003ad30
call fcn.140056f60
test al, al
je 0x14003fb80
movsxd r9, r15d
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140057000
mov rax, rsi
shr rax, 0x20
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb edi, edi
or edi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140056fd0
lea rcx, [rsp + 0x60]
call fcn.14003a270
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14012d670
mov eax, edi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14003fc10
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
lea rdx, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x88
call fcn.14002c260
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14003a130
test esi, esi
js 0x14003fd05
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003ad30
call fcn.140056f60
test al, al
je 0x14003fcc9
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140057000
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140056fd0
jmp 0x14003fd0a
mov esi, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.14003a270
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14012d670
mov eax, esi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003fd40
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x9c
call fcn.14002c260
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14003a130
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003ad30
call fcn.140056f60
test al, al
je 0x14003fdec
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.140057000
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140056fd0
lea rcx, [rsp + 0x50]
call fcn.14003a270
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14012d670
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rdi
pop rsi
ret