joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400255c0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov r8d, 3
call fcn.140034140
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
cmp qword [rsi + 8], 0
je 0x1400257cc
mov dword [rsp + 0x6c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x14002566e
mov rdi, rax
lea rdx, [0x1400d8742]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140025681
mov rbx, rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x6c]
call rax
mov r15, rax
jmp 0x140025684
mov rcx, qword [rsi]
lea rdx, [rsp + 0x6c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
jmp 0x14002568d
xor r15d, r15d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
movsxd rax, dword [rsp + 0x6c]
test rax, rax
js 0x1400257f7
test eax, eax
je 0x14002576c
lea rdi, [r15 + rax*8]
lea rbx, [rsp + 0x30]
lea r13, [rsp + 0x20]
xorps xmm6, xmm6
lea r12, [rsp + 0x50]
mov rsi, r15
jmp 0x1400256fe
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rax], xmm0
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
add qword [rsp + 0x58], 0x18
add rsi, 8
cmp rsi, rdi
je 0x14002576c
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140025730
cmp word [rax], 0
je 0x140025730
xor ecx, ecx
nop word cs:[rax + rax]
nop dword [rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140025720
jmp 0x140025732
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov rcx, rbx
mov rdx, r13
call fcn.14002f130
mov rax, qword [rsp + 0x58]
cmp rax, qword [rsp + 0x60]
jb 0x1400256d0
mov rcx, r12
mov rdx, rbx
call fcn.140027790
cmp byte [rsp + 0x47], 0
jns 0x1400256f5
mov rcx, qword [rsp + 0x30]
call fcn.1400aab5c
jmp 0x1400256f5
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400252f0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x1400257cc
mov rax, qword [rsp + 0x58]
cmp rax, rsi
jne 0x1400257a8
mov rcx, rsi
jmp 0x1400257c2
mov rax, rdi
cmp rsi, rdi
je 0x1400257bd
lea rdi, [rax - 0x18]
cmp byte [rax - 1], 0
jns 0x1400257a0
mov rcx, qword [rax - 0x18]
call fcn.1400aab5c
jmp 0x1400257a0
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rsi
call fcn.1400aab5c
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400aaed0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
Function at 0x140029f20
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdx, str.DeleteFileAfterReboot
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x187
call fcn.14002b5a0
lea rcx, [rsp + 0x48]
mov rdx, rdi
xor r8d, r8d
call fcn.140035fb0
mov al, byte [rsi + 0x17]
test al, al
jns 0x140029f7e
cmp qword [rsi + 8], 0x103
jbe 0x140029f7e
xor esi, esi
jmp 0x140029f9c
test al, al
jns 0x140029f85
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne sil
lea rcx, [rsp + 0x48]
call fcn.1400360e0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400aaed0
mov eax, esi
add rsp, 0x68
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1ba
call fcn.14002b5a0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140035fb0
cmp byte [rsi + 0x17], 0
jns 0x14002a016
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.1400360e0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400aaed0
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1cc
call fcn.14002b5a0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140035fb0
cmp byte [rsi + 0x17], 0
jns 0x14002a0a6
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
setne al
and esi, 0x10
shr esi, 4
and sil, al
mov rcx, rdi
call fcn.1400360e0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400aaed0
mov eax, esi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002a0e0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x60]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x102
jbe 0x14002a120
xor esi, esi
jmp 0x14002a185
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x60], 0
je 0x14002a13e
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x14002a130
jmp 0x14002a140
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140028350
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.140029580
mov rcx, rsi
mov rdx, rbx
call fcn.1400283d0
mov rcx, rbx
call fcn.1400283a0
mov rcx, rdi
call fcn.1400283a0
mov sil, 1
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400aaed0
mov eax, esi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002a1b0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002a220
cmp word [rsp + 0x60], 0
je 0x14002a220
mov qword [rsp + 0x50], rdi
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x14002a200
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140028350
jmp 0x14002a274
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.140028300
mov rcx, rdi
call fcn.14002a0e0
test al, al
je 0x14002a248
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140028330
jmp 0x14002a26a
lea rax, [0x1400d8818]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 3
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140028350
lea rcx, [rsp + 0x38]
call fcn.1400283a0
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400aaed0
mov rax, rsi
add rsp, 0x278
pop rdi
pop rsi
ret
Function at 0x14002a2a0
Capabilities:
Create directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov r14, r8
mov r15, rdx
mov r12, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea rdx, str.CreateTemporaryDirInDir
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x70]
mov rcx, rsi
mov r9d, 0x242
call fcn.14002b5a0
lea rcx, [rsp + 0x90]
mov rdx, rsi
xor r8d, r8d
call fcn.140035fb0
lea rcx, [rsp + 0x70]
call fcn.140028300
mov ebp, 0x32
xorps xmm6, xmm6
lea rdi, [rsp + 0x50]
lea rbx, [rsp + 0x38]
nop word cs:[rax + rax]
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
mov rcx, rdi
mov rdx, r15
call fcn.140022f88
call sub.KERNEL32.dll_GetCurrentProcessId
mov rcx, rbx
mov edx, eax
call fcn.1400369f0
movzx r8d, byte [rsp + 0x4f]
mov rdx, rbx
test r8b, r8b
jns 0x14002a370
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.1400232fa
cmp byte [rsp + 0x4f], 0
jns 0x14002a389
mov rcx, qword [rsp + 0x38]
call fcn.1400aab5c
mov rcx, rdi
mov dx, 0x5f
call fcn.140023660
xor ecx, ecx
mov edx, 0x7fffffff
call fcn.140037260
mov rcx, rbx
mov edx, eax
call fcn.1400367a0
movzx r8d, byte [rsp + 0x4f]
mov rdx, rbx
test r8b, r8b
jns 0x14002a3c3
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.1400232fa
cmp byte [rsp + 0x4f], 0
jns 0x14002a3dc
mov rcx, qword [rsp + 0x38]
call fcn.1400aab5c
movzx eax, byte [rsp + 0x67]
test al, al
mov rcx, qword [rsp + 0x50]
cmovns rcx, rdi
mov qword [rsp + 0x28], rcx
cmovs rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rcx, r12
mov rdx, rbx
lea r8, [rsp + 0x28]
call fcn.140029030
mov rcx, rsi
mov rdx, rbx
call fcn.1400283d0
mov rcx, rbx
call fcn.1400283a0
cmp byte [rsp + 0x87], 0
mov rcx, rsi
jns 0x14002a431
mov rcx, qword [rsp + 0x70]
xor r13d, r13d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14002a451
mov rcx, r14
mov rdx, rsi
call fcn.1400283b0
mov r13d, 1
cmp byte [rsp + 0x67], 0
jns 0x14002a462
mov rcx, qword [rsp + 0x50]
call fcn.1400aab5c
test r13d, r13d
jne 0x14002a474
add ebp, 0xffffffff
jne 0x14002a330
xor esi, esi
jmp 0x14002a477
mov sil, 1
lea rcx, [rsp + 0x70]
call fcn.1400283a0
lea rcx, [rsp + 0x90]
call fcn.1400360e0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400aaed0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002a4c0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x50]
mov rcx, rbx
mov r9d, 0x267
call fcn.14002b5a0
lea rcx, [rsp + 0x38]
mov rdx, rbx
xor r8d, r8d
call fcn.140035fb0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x14002a526
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002a55d
mov bl, 1
test al, 0x10
jne 0x14002a692
test r12, r12
je 0x14002a54b
mov dword [r12], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14002a692
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.140028d50
movzx ecx, byte [rsp + 0x37]
mov rax, rcx
test cl, cl
jns 0x14002a57e
mov rax, qword [rsp + 0x28]
movzx esi, byte [rdi + 0x17]
mov rdx, rsi
test sil, sil
jns 0x14002a58e
mov rdx, qword [rdi + 8]
cmp rax, rdx
jne 0x14002a5db
test rax, rax
je 0x14002a5c4
test cl, cl
jns 0x14002a5a1
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
test sil, sil
jns 0x14002a5ac
mov rcx, qword [rdi]
xor edx, edx
nop
movzx esi, word [rbp + rdx*2]
cmp si, word [rcx + rdx*2]
jne 0x14002a5db
add rdx, 1
cmp rax, rdx
jne 0x14002a5b0
test r12, r12
je 0x14002a5d1
mov dword [r12], 0xfffffffc
mov ecx, 2
jmp 0x14002a680
lea rcx, [rsp + 0x20]
mov rdx, r12
call fcn.14002a4c0
test al, al
je 0x14002a686
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x14002a688
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x14002a66e
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea r15, [rsp + 0x50]
mov rcx, r15
mov r9d, 0x1cc
call fcn.14002b5a0
lea r14, [rsp + 0x70]
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140035fb0
cmp byte [rdi + 0x17], 0
jns 0x14002a651
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r14
call fcn.1400360e0
cmp edi, 0xffffffff
je 0x14002a66e
and edi, 0x10
jne 0x14002a688
test r12, r12
je 0x14002a67e
mov ecx, ebp
call fcn.14002af10
mov dword [r12], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea rcx, [rsp + 0x20]
call fcn.1400283a0
lea rcx, [rsp + 0x38]
call fcn.1400360e0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400aaed0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14002a6c0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2a8
mov r14, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rdx, [0x1400d8853]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x90]
mov rcx, rbx
mov r9d, 0x376
call fcn.14002b5a0
lea rcx, [rsp + 0x78]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.140035fb0
mov word [rsp + 0x90], 0
lea rdx, [rsp + 0x90]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x14002a85a
movabs rsi, 0x7fffffffffffffef
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x90]
call fcn.1400c2d98
cmp rax, rsi
ja 0x14002a887
mov rdi, rax
cmp rax, 0xb
jae 0x14002a797
lea rsi, [rsp + 0x60]
mov byte [rsp + 0x77], dil
mov r12, rsi
mov r15, rsi
test rdi, rdi
jne 0x14002a7cc
jmp 0x14002a7e5
lea rbx, [rdi + 8]
and rbx, 0xfffffffffffffff8
js 0x14002a891
lea rcx, [rbx + rbx]
call fcn.1400aab00
mov r12, rax
mov qword [rsp + 0x60], rax
add rsi, 0x11
or rsi, rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
lea rsi, [rsp + 0x60]
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x90]
mov rcx, r12
call fcn.1400ad770
mov r15, rsi
mov word [r12 + rdi*2], 0
movzx eax, byte [r15 + 0x17]
test al, al
cmovs rsi, qword [rsp + 0x60]
mov qword [rsp + 0x20], rsi
cmovs rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140028350
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.140029580
mov rcx, r14
mov rdx, rbx
call fcn.1400283d0
mov rcx, rbx
call fcn.1400283a0
mov rcx, rdi
call fcn.1400283a0
cmp byte [r15 + 0x17], 0
jns 0x14002a857
mov rcx, qword [rsp + 0x60]
call fcn.1400aab5c
mov dil, 1
lea rcx, [rsp + 0x78]
call fcn.1400360e0
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400aaed0
mov eax, edi
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x60]
call fcn.1400222ec
call fcn.1400bba84
int3
Function at 0x14002a8a0
Capabilities:
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, 0x558
mov r15d, r8d
mov r14, rdx
mov rdx, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov qword [rsp + 0x20], r14
xor ebp, ebp
lea rsi, [rsp + 0x290]
mov rcx, rsi
xor r8d, r8d
mov r9d, 3
call fcn.140030250
lea rdi, [rsp + 0x28]
mov rcx, rsi
mov rdx, rdi
call fcn.140030380
movzx eax, byte [rsp + 0x3f]
test al, al
jns 0x14002a90c
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14002aa42
lea rsi, [rsp + 0x290]
lea rbx, [rsp + 0x40]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
jmp 0x14002a93c
mov r13d, ebp
test rax, rax
je 0x14002aa42
mov rcx, rsi
mov rdx, rbx
call fcn.1400302f0
mov edx, dword [rsp + 0x40]
test dl, 1
je 0x14002a97d
test r15b, r15b
jne 0x14002a965
mov rcx, rbx
call fcn.140030090
test al, al
jne 0x14002a97d
mov edx, dword [rsp + 0x40]
and edx, 0xfffffffe
cmp byte [rsp + 0x3f], 0
mov rcx, rdi
jns 0x14002a977
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call fcn.140030090
test al, al
je 0x14002a9d0
xor ebp, ebp
test r15b, r15b
je 0x14002a9fe
mov rcx, rdi
mov rdx, r14
mov r8b, 1
call fcn.14002a8a0
mov ebp, eax
test eax, eax
jne 0x14002a9fe
cmp byte [rsp + 0x3f], 0
mov rcx, rdi
jns 0x14002a9b3
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14002a9fe
jmp 0x14002a9e8
cmp byte [rsp + 0x3f], 0
mov rcx, rdi
jns 0x14002a9df
mov rcx, qword [rsp + 0x28]
call r12
xor ebp, ebp
test eax, eax
jne 0x14002a9fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
or eax, 1
cmp eax, 3
mov eax, 0
cmove ebp, eax
test r13d, r13d
cmovne ebp, r13d
mov rcx, rbx
call fcn.140003fe0
mov rcx, rsi
mov rdx, rbx
call fcn.140030380
mov rcx, rdi
mov rdx, rbx
call fcn.1400283d0
mov rcx, rbx
call fcn.1400283a0
movzx eax, byte [rsp + 0x3f]
test al, al
jns 0x14002a930
mov rax, qword [rsp + 0x30]
jmp 0x14002a930
lea rcx, [rsp + 0x28]
call fcn.1400283a0
lea rcx, [rsp + 0x290]
call fcn.140030280
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.1400aaed0
mov eax, ebp
add rsp, 0x558
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002ab90
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rdx, str.ReadAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov r9d, 0x56
call fcn.14002b5a0
lea rcx, [rsp + 0x58]
mov rdx, rdi
xor r8d, r8d
call fcn.140035fb0
test esi, esi
js 0x14002ac37
lea rcx, [rsp + 0x38]
call fcn.140033e30
call fcn.140035870
test al, al
je 0x14002ac10
movsxd r9, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x38]
mov r8, rbx
call fcn.140035910
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002ac3e
mov esi, dword [rsp + 0x34]
jmp 0x14002ac4f
mov esi, 0xffffffff
jmp 0x14002ac59
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x38]
call fcn.1400358e0
lea rcx, [rsp + 0x58]
call fcn.1400360e0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400aaed0
mov eax, esi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14002ac80
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rdx, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov r9d, 0x87
call fcn.14002b5a0
lea rcx, [rsp + 0x58]
mov rdx, rdi
xor r8d, r8d
call fcn.140035fb0
test esi, esi
js 0x14002ad34
lea rcx, [rsp + 0x38]
call fcn.140033e30
call fcn.140035870
test al, al
je 0x14002ad00
movsxd r9, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x38]
mov r8, rbx
call fcn.140035910
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
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 + 0x34]
lea rcx, [rsp + 0x38]
call fcn.1400358e0
jmp 0x14002ad39
mov esi, 0xffffffff
lea rcx, [rsp + 0x58]
call fcn.1400360e0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400aaed0
mov eax, esi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14002ad60
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x9b
call fcn.14002b5a0
lea rcx, [rsp + 0x48]
mov rdx, rdi
xor r8d, r8d
call fcn.140035fb0
lea rcx, [rsp + 0x28]
call fcn.140033e30
call fcn.140035870
test al, al
je 0x14002add3
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x28]
mov r8, rsi
xor r9d, r9d
call fcn.140035910
mov rcx, qword [rsi]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.1400358e0
lea rcx, [rsp + 0x48]
call fcn.1400360e0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400aaed0
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x14002b5d0
Capabilities:
Delete file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
mov r14, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x78], rax
call fcn.140025800
mov rdi, rax
lea rbx, [0x1400db391]
mov rcx, rax
mov rdx, rbx
call fcn.140025ac0
test al, al
jne 0x14002b625
lea rdx, str.vmodule
mov rcx, rdi
call fcn.140025ac0
test al, al
je 0x14002b6ca
cmp qword [0x140105a98], 0
jne 0x14002b7a5
mov rax, qword [0x140105aa0]
mov qword [0x140105a98], rax
mov ecx, 0x20
call fcn.1400aab00
mov rsi, rax
lea rcx, str.vmodule
mov qword [rsp + 0x50], rcx
call fcn.1400c2690
mov qword [rsp + 0x58], rax
lea r15, [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rcx, rdi
mov rdx, r15
call fcn.140025b30
mov qword [rsp + 0x28], rbx
mov rcx, rbx
call fcn.1400c2690
mov qword [rsp + 0x30], rax
lea rbx, [rsp + 0x38]
lea r8, [rsp + 0x28]
mov rcx, rdi
mov rdx, rbx
call fcn.140025b30
lea r9, [0x140105aa8]
mov rcx, rsi
mov rdx, rbx
mov r8, r15
call fcn.140038550
mov qword [0x140105aa0], rsi
cmp byte [rsp + 0x4f], 0
js 0x14002b70f
cmp byte [rsp + 0x77], 0
js 0x14002b720
mov eax, dword [r14]
mov dword [0x140102338], eax
mov bl, 1
test al, 1
je 0x14002b787
mov rcx, qword [0x140105ad0]
test rcx, rcx
je 0x14002b72c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140105ad0], 0
mov rcx, qword [0x140105ab0]
test rcx, rcx
jne 0x14002b75a
and byte [0x140102338], 0xfe
jmp 0x14002b738
mov rcx, qword [rsp + 0x38]
call fcn.1400aab5c
cmp byte [rsp + 0x77], 0
jns 0x14002b6ca
mov rcx, qword [rsp + 0x60]
call fcn.1400aab5c
jmp 0x14002b6ca
mov rcx, qword [0x140105ab0]
test rcx, rcx
jne 0x14002b75a
mov ecx, 0x18
call fcn.1400aab00
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140105ab0], rax
mov rdx, qword [r14 + 8]
call fcn.1400236ea
cmp dword [r14 + 0x14], 0
jne 0x14002b780
mov rcx, qword [0x140105ab0]
cmp byte [rcx + 0x17], 0
jns 0x14002b77a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.14002b7b0
mov ebx, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400aaed0
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
int3