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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor eax, eax
xor esi, esi
cmp qword [rcx + 0x18], 8
mov rbp, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], esi
jb 0x140144de6
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140144e0c
lea r8, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140144a40
mov ebx, dword [rax]
jmp 0x140144eba
xor eax, eax
mov dword [rsp + 0x48], esi
movsd xmm1, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
movsd qword [rsp + 0x30], xmm1
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsp + 0x20], xmm0
bt ebx, 0xa
jae 0x140144eb1
mov rcx, rdi
call fcn.1401447f0
test al, al
je 0x140144e56
test bl, 0x10
mov eax, 0xb
mov ebx, 4
cmovne ebx, eax
jmp 0x140144eba
mov ebx, 9
test rbp, rbp
je 0x140144e84
xor eax, eax
mov dword [rsp + 0x48], esi
movsd xmm1, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbp], xmm0
movsd qword [rbp + 0x10], xmm1
cmp ebx, 1
jbe 0x140144e99
mov r8, rbp
mov edx, ebx
mov rcx, rdi
call fcn.140144f30
mov rsi, rax
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
test ebx, ebx
jne 0x140144e5b
cmp dword [rsp + 0x30], 1
je 0x140144ecb
mov ecx, dword [rsp + 0x20]
jmp 0x140144f00
mov rcx, qword [rsp + 0x28]
movabs rax, 0x4800144005b3
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 0x14
imul eax, ecx, 0x1ffff7
mov ecx, dword [rsp + 0x28]
sub ecx, eax
imul ecx, ecx, 0x3e8
add ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x140144e5b
lea r9, str.boost::filesystem::remove_all
mov r8, rbp
mov rdx, rdi
call fcn.1401472d0
xor eax, eax
jmp 0x140144e9c
Function at 0x140145100
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, r8
mov rdi, rcx
cmp edx, 1
jne 0x14014514c
test rbx, rbx
je 0x14014513f
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
mov dword [rsp + 0x30], eax
movsd xmm1, qword [rsp + 0x30]
movups xmmword [r8], xmm0
movsd qword [r8 + 0x10], xmm1
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
lea eax, [rdx - 3]
test eax, 0xfffffff7
je 0x140145168
cmp qword [rcx + 0x18], 8
jb 0x140145160
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140145178
cmp qword [rcx + 0x18], 8
jb 0x140145172
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1401451e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movsxd rdx, eax
cmp edx, 0x35
ja 0x14014519a
movabs rax, 0x2000000020800c
bt rax, rdx
jb 0x1401451e7
lea eax, [rdx - 0x43]
cmp eax, 0x38
ja 0x1401451b4
cdqe
movabs rcx, 0x100000000100001
bt rcx, rax
jb 0x1401451e7
cmp edx, 0xa1
je 0x1401451e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401451e7
lea r9, str.boost::filesystem::remove
mov r8, rbx
mov rdx, rdi
mov ecx, eax
call fcn.1401472d0
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
test rbx, rbx
je 0x14014520f
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
mov dword [rsp + 0x30], eax
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov rbx, qword [rsp + 0x50]
mov al, 1
add rsp, 0x40
pop rdi
ret
Function at 0x140145220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14020c050]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov r15, r8
mov rsi, rdx
mov rdi, rcx
xor r12d, r12d
test r8, r8
je 0x140145284
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], r12d
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [r8], xmm0
movsd xmm1, qword [rsp + 0x60]
movsd qword [r8 + 0x10], xmm1
mov rcx, rsi
cmp qword [rdx + 0x18], 8
jb 0x140145291
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1401452b1
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.140144a40
jmp 0x1401453e9
mov edx, ebp
mov rcx, rsi
call fcn.1401448e0
mov r14d, eax
bt ebp, 0xa
jae 0x1401453bf
mov rcx, rsi
call fcn.1401447f0
test al, al
jne 0x1401452df
mov dword [rdi], 9
jmp 0x1401453e5
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401452ec
mov rdx, qword [rsi]
movdqa xmm0, xmmword [0x1401c48e0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r12w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140145310
lea rcx, [rsp + 0x50]
call fcn.140008780
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
call fcn.140008710
nop
cmp rbx, 0xffffffffffffffff
jne 0x140145384
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.140144a40
nop
jmp 0x1401453e9
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1401453b1
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.140144a40
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1401453e9
mov ebp, dword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
and ebp, 0x10
je 0x1401453ca
mov eax, dword [rsp + 0x40]
jmp 0x1401453d2
mov eax, r14d
mov r14d, dword [rsp + 0x40]
test ebp, ebp
setne r12b
add r12d, 2
mov dword [rdi], r12d
test ebp, ebp
cmove r14d, eax
mov dword [rdi + 4], r14d
mov rax, rdi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14014a6d0
add rsp, 0xb0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100075150
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100080558], rdi
je 0x1000751b0
cmp rax, rdi
jne 0x1000751a3
mov r12d, 1
jmp 0x1000751b0
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x100075189
mov eax, dword [0x100080550]
cmp eax, 1
jne 0x1000751c5
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10007522c
mov eax, dword [0x100080550]
cmp eax, ebx
jne 0x100075222
mov dword [0x100080550], 1
lea r13, [0x100001b48]
lea rdi, [0x100001b30]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x100075214
cmp eax, ebx
jne 0x100075214
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x100075209
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1000751f2
cmp eax, ebx
je 0x10007522c
mov eax, 0xff
jmp 0x100075374
mov dword [0x10007f924], 1
mov eax, dword [0x100080550]
cmp eax, 1
jne 0x100075254
lea rdx, [0x100001b28]
lea rcx, [0x100001ab8]
call sub.msvcrt.dll__initterm
mov dword [0x100080550], 2
cmp r12d, ebx
jne 0x100075263
mov rax, rbx
xchg qword [0x100080558], rax
cmp qword [0x100080570], rbx
je 0x10007528b
lea rcx, [0x100080570]
call fcn.1000756ac
cmp eax, ebx
je 0x10007528b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100080570]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1000752a1
mov eax, 0xff
jmp 0x100075374
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x100075326
cmp word [rcx], bx
je 0x1000752bc
cmp edx, ebx
jne 0x100075326
cmp word [rcx], bx
je 0x1000752d2
cmp word [rcx], 0x20
ja 0x1000752d2
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1000752bc
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.1000337b8
mov dword [0x10007f920], eax
cmp dword [0x10007f904], ebx
jne 0x100075310
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x10007f924], ebx
jne 0x100075324
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x10007f920]
jmp 0x100075374
cmp word [rcx], 0x22
jne 0x100075339
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1000752ad
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.1001be000
add rsp, 0x28
jmp 0x100075150
Function at 0x140003680
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
sub rsp, 0x460
mov qword [rax + 0x10], rdi
lea rdx, str._pid
mov rcx, r8
mov qword [rax + 0x18], r14
xor ebx, ebx
call fcn.14000ae30
test rax, rax
je 0x1400036b8
lea rcx, [rax + 5]
call fcn.1400141a8
mov ebx, eax
mov ecx, 0x78
call fcn.140001260
test rax, rax
je 0x1400036d6
mov edx, ebx
mov rcx, rax
call fcn.140001bb0
mov rbp, rax
jmp 0x1400036d8
xor ebp, ebp
test ebx, ebx
jne 0x1400036e5
lea rbx, str.SteamErrorReporter64_Running
jmp 0x14000370b
mov dword [rsp + 0x20], ebx
lea r9, str.SteamErrorReporter64_Running
lea rbx, [0x140051310]
mov edx, 0x40
mov rcx, rbx
lea r8, str._s__d
call fcn.140003910
xor r8d, r8d
mov r9, rbx
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, str.SteamErrorReporter_process_started_n
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbp
call fcn.140002850
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.SteamErrorReporter_process_shutting_down_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, 0x1fffc
call fcn.140001260
cmp qword [rbp + 0x48], 8
lea rcx, [rbp + 0x30]
mov rdi, rax
jb 0x140003766
mov rcx, qword [rcx]
mov r9d, 4
mov r8d, 0x1fffc
mov rdx, rdi
call qword [sym.imp.vstdlib_s64.dll_V_UTF16ToUTF8]
lea r8, [0x14003b860]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140007900
xor ecx, ecx
call fcn.1400141d4
lea rcx, [rsp + 0x30]
mov r14, rax
call fcn.140007c50
test al, al
je 0x14000388c
mov qword [rsp + 0x470], rsi
nop dword [rax]
nop word [rax + rax]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x1400037d0
lea rcx, [rsp + 0x30]
call fcn.140007d30
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400037f0
lea rax, [rbx + 2]
add rax, rcx
mov ecx, eax
mov ebx, eax
call fcn.140001260
lea rcx, [rsp + 0x30]
mov rsi, rax
call fcn.140007d30
mov qword [rsp + 0x28], rax
lea r8, str._s_c_s
mov r9, rdi
mov dword [rsp + 0x20], 0x5c
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.vstdlib_s64.dll_V_snprintf]
lea rcx, [rsp + 0x30]
call fcn.140007b10
test al, al
jne 0x14000386a
mov rcx, rsi
call fcn.140007d40
cmp r14, rax
jle 0x14000386a
mov rcx, r14
sub rcx, rax
cmp rcx, 0x93a80
jle 0x14000386a
mov rcx, rsi
call fcn.140007b20
mov rcx, rsi
call fcn.1400012b0
lea rcx, [rsp + 0x30]
call fcn.140007c50
test al, al
jne 0x1400037c0
mov rsi, qword [rsp + 0x470]
lea rcx, [rsp + 0x30]
call fcn.140007a60
mov rbx, qword [rbp + 0x18]
mov r14, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x478]
test rbx, rbx
je 0x1400038c4
mov rcx, rbx
call fcn.140003cf0
mov edx, 0x170
mov rcx, rbx
call fcn.1400012b0
mov rbx, qword [rbp + 0x20]
mov qword [rbp + 0x18], 0
test rbx, rbx
je 0x1400038ea
mov rcx, rbx
call fcn.140002210
mov edx, 0x30
mov rcx, rbx
call fcn.1400012b0
mov rbx, qword [rsp + 0x488]
xor eax, eax
mov qword [rbp + 0x20], rax
add rsp, 0x460
pop rbp
ret
Function at 0x140004d30
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x90
xor esi, esi
lea r8, [r11 - 0x68]
mov qword [r11 - 0x68], rsi
xorps xmm0, xmm0
mov dword [rsp + 0x38], esi
xor eax, eax
movdqa xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x50], xmm1
mov rdi, rdx
mov qword [r11 - 0x38], rsi
mov rbx, rcx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rsi
movdqa xmmword [r11 - 0x18], xmm0
call fcn.140004c40
test al, al
jne 0x140004d8e
xor al, al
jmp 0x140004ddf
mov rcx, qword [rbx + 0x60]
lea rax, [rbx + 0xe8]
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r8d, 0x60
mov dword [rsp + 0xb0], esi
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
test al, al
jne 0x140004dd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140004d8a
mov rdx, rdi
mov rcx, rbx
call fcn.140003f60
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140004e00
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x40
cmp dword [rcx + 0xe0], 0
mov rbx, rcx
jne 0x140004ef2
xor r8d, r8d
mov dword [rcx + 0xe0], 2
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x140004ef2
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x100], rax
test rax, rax
je 0x140004ef2
lea rcx, [rbx + 0x68]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x140004c30]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x140004ef2
cmp qword [rbx + 0x50], 8
lea rcx, [rbx + 0x38]
jb 0x140004e97
mov rcx, qword [rcx]
mov rax, qword [rbx + 0x58]
mov r9d, 1
mov qword [rsp + 0x38], rax
mov edx, 0x40080003
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40
lea r8d, [r9 + 5]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x140004ef2
mov rcx, qword [rbx + 0x100]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x140004efa
mov dword [rbx + 0xe0], 1
xor al, al
add rsp, 0x40
pop rbx
ret
mov al, 1
add rsp, 0x40
pop rbx
ret
Function at 0x140007a90
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x40
lea rax, vtable.CPathString.0
mov qword [rsp + 0x30], 0
mov rdx, rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.140008080
lea rcx, [rsp + 0x20]
call fcn.140007e40
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140007ae5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140007ae5
xor bl, bl
jmp 0x140007ae7
mov bl, 1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140007af6
call fcn.1400012b0
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140007b05
call fcn.1400012b0
movzx eax, bl
add rsp, 0x40
pop rbx
ret

Function at 0x140007b20
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call 0x140008390
test al, al
jne 0x140007b53
mov rcx, rbx
call fcn.140007b60
test al, al
je 0x140007b53
mov rcx, rbx
call fcn.140008300
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140008390
mov al, 1
add rsp, 0x20
pop rbx
ret
push rbx
sub rsp, 0x40
lea rax, vtable.CPathString.0
mov qword [rsp + 0x30], 0
mov rdx, rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.140008080
lea rcx, [rsp + 0x20]
call fcn.140007e40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x30]
test eax, eax
setne bl
test rcx, rcx
je 0x1400083e2
call fcn.1400012b0
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400083f1
call fcn.1400012b0
movzx eax, bl
add rsp, 0x40
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x40
lea rax, vtable.CPathString.0
mov qword [rsp + 0x30], 0
mov rdx, rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.140008080
lea rcx, [rsp + 0x20]
call fcn.140007e40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x30]
cmp eax, 0xffffffff
setne bl
test rcx, rcx
je 0x140007bb3
call fcn.1400012b0
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140007bc2
call fcn.1400012b0
movzx eax, bl
add rsp, 0x40
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x40
lea rax, vtable.CPathString.0
mov qword [rsp + 0x30], 0
mov rdx, rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.140008080
lea rcx, [rsp + 0x20]
call fcn.140007e40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007c1b
test al, 0x10
je 0x140007c1b
mov bl, 1
jmp 0x140007c1d
xor bl, bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140007c2c
call fcn.1400012b0
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140007c3b
call fcn.1400012b0
movzx eax, bl
add rsp, 0x40
pop rbx
ret
Function at 0x140008300
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x40
lea rax, vtable.CPathString.0
mov qword [rsp + 0x30], 0
mov rdx, rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.140008080
lea rcx, [rsp + 0x20]
call fcn.140007e40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140008366
test bl, 3
je 0x140008362
lea rcx, [rsp + 0x20]
and ebx, 0xfffffffc
call fcn.140007e40
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x140008368
xor bl, bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140008377
call fcn.1400012b0
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140008386
call fcn.1400012b0
movzx eax, bl
add rsp, 0x40
pop rbx
ret

Function at 0x140008390
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call 0x140008390
test al, al
jne 0x140007b53
mov rcx, rbx
call fcn.140007b60
test al, al
je 0x140007b53
mov rcx, rbx
call fcn.140008300
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140008390
mov al, 1
add rsp, 0x20
pop rbx
ret
push rbx
sub rsp, 0x40
lea rax, vtable.CPathString.0
mov qword [rsp + 0x30], 0
mov rdx, rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.140008080
lea rcx, [rsp + 0x20]
call fcn.140007e40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x30]
test eax, eax
setne bl
test rcx, rcx
je 0x1400083e2
call fcn.1400012b0
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400083f1
call fcn.1400012b0
movzx eax, bl
add rsp, 0x40
pop rbx
ret
Function at 0x140032e00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
mov rbp, rsp
sub rsp, 0x68
mov rax, qword [0x1400501c8]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp qword [rcx + 0x68], 0
mov rdi, rcx
je 0x140033013
cmp byte [rcx + 0x71], 0
je 0x140033013
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140032e45
xor al, al
jmp 0x140033000
xor ecx, ecx
mov qword [rsp + 0x90], rsi
mov edx, 0xf
mov byte [rbp - 0x30], 0
cmp rdx, 0x10
mov qword [rsp + 0x60], r14
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], rdx
cmovae rax, rcx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
xor r14d, r14d
mov qword [rsp + 0x88], rbx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x18]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x68]
lea rax, [rbp - 0x38]
cmp r9, 0x10
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x20]
lea rdx, [rbp - 0x30]
cmovae rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
add r9, rdx
mov r10, qword [rcx]
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x140032ee2
sub eax, 1
je 0x140032ee6
mov r9, qword [rbp - 0x18]
sub eax, 2
je 0x140032fcf
xor bl, bl
jmp 0x140032fd1
mov byte [rdi + 0x71], r14b
mov r9, qword [rbp - 0x18]
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
cmp r9, 0x10
mov rbx, qword [rbp - 0x38]
cmovae rax, r10
sub rbx, rax
je 0x140032f2c
cmp r9, 0x10
lea rcx, [rbp - 0x30]
mov r9, qword [rdi + 0x80]
mov r8, rbx
cmovae rcx, r10
mov edx, 1
call fcn.140023194
mov r9, qword [rbp - 0x18]
cmp rbx, rax
jne 0x140032edb
cmp byte [rdi + 0x71], r14b
je 0x140032fcf
test rbx, rbx
jne 0x140032e90
mov r8, qword [rbp - 0x20]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 8
jbe 0x140033024
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x140033017
cmp r9, rbx
jae 0x140032fb1
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140032ce0
mov r9, qword [rbp - 0x18]
test rbx, rbx
je 0x140032e90
mov rax, qword [rbp - 0x20]
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
mov qword [rcx + rax], rdx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
mov qword [rbp - 0x20], rbx
cmovae rax, qword [rbp - 0x30]
mov byte [rax + rbx], dl
jmp 0x140032e87
test rbx, rbx
jne 0x140032f80
cmp r9, 0x10
mov qword [rbp - 0x20], r14
lea rax, [rbp - 0x30]
cmovae rax, qword [rbp - 0x30]
mov byte [rax], r14b
jmp 0x140032e87
mov bl, 1
cmp r9, 0x10
jb 0x140032fe8
mov rdx, qword [rbp - 0x30]
lea r8, [r9 + 1]
lea rcx, [rbp - 0x30]
call fcn.140033f50
mov rsi, qword [rsp + 0x90]
movzx eax, bl
mov rbx, qword [rsp + 0x88]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140008e40
add rsp, 0x68
pop rdi
pop rbp
ret
mov al, 1
jmp 0x140033000
lea rcx, str.string_too_long
call fcn.1400087dc
int3
lea rcx, str.string_too_long
call fcn.1400087dc
int3
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
out dx, eax
invalid
mov esp, 0x7548e96b
loopne 0x1400232f0
adc dword [rdx + 0x4d], edi
cmp bh, byte [0x1035f8abe]
ja 0x140023232
imul esi, eax, 0xfffffffd
jg 0x1400232a2
push rbp
invalid
cmp byte [rdi - 1], bl
invalid