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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c8
mov r14, rcx
mov rax, qword [0x1401b46a8]
xor rax, rsp
mov qword [rsp + 0x2c0], 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, [0x14016bb1a]
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r9d, 0x38c
call fcn.14002d9e0
lea rcx, [rsp + 0x60]
mov rdx, rdi
xor r8d, r8d
call fcn.14003abb0
lea rbx, [rsp + 0xb0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140135a50
mov word [rsp + 0xb0], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xffffffff
cmp edi, 0x103
ja 0x14003ff88
mov qword [rsp + 0x20], rbx
cmp word [rsp + 0xb0], 0
je 0x14003ff44
xor ecx, ecx
nop dword [rax]
lea rax, [rcx + 1]
cmp word [rsp + rcx*2 + 0xb2], 0
mov rcx, rax
jne 0x14003ff30
jmp 0x14003ff46
xor eax, eax
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14002a900
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.14002c6a0
mov rcx, r14
mov rdx, rsi
call fcn.14002aa10
mov rcx, rsi
call fcn.14002a9e0
mov rcx, rbx
call fcn.14002a9e0
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x60]
call fcn.14003acf0
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140132550
mov eax, ebx
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003ffc0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1401b46a8]
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, [0x14016bb2f]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x39c
call fcn.14002d9e0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14003abb0
test byte [rsi], 1
je 0x140040041
mov rsi, qword [rsi + 0x10]
jmp 0x140040045
add rsi, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14003acf0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140132550
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140040250
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 [0x1401b46a8]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rdi, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rdi
mov dl, 0xaa
call fcn.140135a50
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.1400431f0
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.140043460
movzx eax, byte [rsp + 0x30]
test al, 1
je 0x1400402f6
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140040302
jmp 0x140040460
shr rax, 1
test rax, rax
je 0x140040460
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 0x140040341
mov rax, qword [rsp + 0x38]
mov r14d, ebp
test rax, rax
je 0x140040460
mov r8d, 0x250
mov rcx, rdi
mov dl, 0xaa
call fcn.140135a50
mov rcx, rsi
mov rdx, rdi
call fcn.1400433d0
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x1400403a4
test bl, bl
jne 0x14004038c
mov rcx, rdi
call fcn.140043170
test al, al
je 0x140040388
mov rcx, rdi
call fcn.140043170
xor ebp, ebp
test al, al
je 0x1400403f0
jmp 0x14004041e
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x14004039e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call fcn.140043170
test al, al
je 0x1400403f0
xor ebp, ebp
test bl, bl
je 0x14004041e
mov rcx, r15
mov rdx, qword [rsp + 0x28]
mov r8b, 1
call fcn.140040250
mov ebp, eax
test eax, eax
jne 0x14004041e
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x1400403db
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14004041e
jmp 0x140040408
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x1400403ff
mov rcx, qword [rsp + 0x40]
call r12
xor ebp, ebp
test eax, eax
jne 0x14004041e
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.140002830
mov rcx, rsi
mov rdx, rdi
call fcn.140043460
mov rcx, r15
mov rdx, rdi
call fcn.14002aa10
mov rcx, rdi
call fcn.14002a9e0
movzx eax, byte [rsp + 0x30]
test al, 1
jne 0x140040330
shr rax, 1
jmp 0x140040335
lea rcx, [rsp + 0x30]
call fcn.14002a9e0
lea rcx, [rsp + 0x298]
call fcn.140043360
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140132550
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 0x140040730
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 [0x1401b46a8]
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.14002d9e0
lea rcx, [rsp + 0x60]
mov rdx, rbx
xor r8d, r8d
call fcn.14003abb0
test esi, esi
js 0x140040838
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003b6f0
call fcn.140057ad0
test al, al
je 0x1400407f1
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.140057b70
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 0x14004083f
mov esi, dword [rsp + 0x2c]
jmp 0x140040850
mov esi, 0xffffffff
jmp 0x14004085a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.140057b40
lea rcx, [rsp + 0x60]
call fcn.14003acf0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140132550
mov eax, esi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140040890
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 [0x1401b46a8]
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.14002d9e0
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14003abb0
test esi, esi
js 0x140040978
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003b6f0
call fcn.140057ad0
test al, al
je 0x140040949
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140057b70
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 0x14004097f
mov esi, dword [rsp + 0x2c]
jmp 0x140040990
mov esi, 0xffffffff
jmp 0x14004099a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.140057b40
lea rcx, [rsp + 0x50]
call fcn.14003acf0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140132550
mov eax, esi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400409d0
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 [0x1401b46a8]
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.14002d9e0
lea rcx, [rsp + 0x60]
xor edi, edi
mov rdx, rbp
xor r8d, r8d
call fcn.14003abb0
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003b6f0
call fcn.140057ad0
test al, al
je 0x140040a90
movsxd r9, r15d
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140057b70
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.140057b40
lea rcx, [rsp + 0x60]
call fcn.14003acf0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140132550
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 0x140040b20
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 [0x1401b46a8]
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.14002d9e0
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14003abb0
test esi, esi
js 0x140040c15
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003b6f0
call fcn.140057ad0
test al, al
je 0x140040bd9
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140057b70
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.140057b40
jmp 0x140040c1a
mov esi, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.14003acf0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140132550
mov eax, esi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140040c50
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rcx
mov rax, qword [0x1401b46a8]
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.14002d9e0
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14003abb0
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003b6f0
call fcn.140057ad0
test al, al
je 0x140040cfc
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.140057b70
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.140057b40
lea rcx, [rsp + 0x50]
call fcn.14003acf0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140132550
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x140040ff0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov r12d, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x1401b46a8]
xor rax, rsp
mov qword [rsp + 0xb8], 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, str.DoInitialize
lea r8, str..._.._base_files_file_win.cc
lea rbp, [rsp + 0x40]
mov rcx, rbp
mov r9d, 0x15a
call fcn.14002d9e0
lea rcx, [rsp + 0x60]
mov rdx, rbp
xor r8d, r8d
call fcn.14003abb0
mov eax, r12d
and eax, 1
neg eax
and eax, 3
test r12b, 2
mov edx, 1
cmove edx, eax
test r12b, 4
mov ecx, 4
cmovne edx, ecx
test r12b, 8
mov ebp, 2
cmove ebp, edx
test r12b, 0x10
mov eax, 5
cmove eax, ebp
test eax, eax
je 0x140041166
mov edx, r12d
and edx, 0x40
shl edx, 0x18
test r12b, r12b
cmovns ecx, edx
mov edx, r12d
rol edx, 0x1a
mov edi, r12d
shl edi, 0xb
and edi, 0x20000000
mov esi, r12d
shr esi, 4
and esi, 0x10000
and edx, 0x80000100
or edx, edi
or edx, esi
or edx, ecx
mov ecx, r12d
shr ecx, 8
and ecx, 3
mov r8d, r12d
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov ebp, r12d
and ebp, 0x400
mov ecx, ebp
shl ecx, 0x14
mov ebx, r12d
shr ebx, 3
and ebx, 0x100
or ebx, ecx
mov ecx, r12d
shr ecx, 0xb
and ecx, 2
or ecx, ebx
mov ebx, r12d
shl ebx, 0xd
and ebx, 0x4000000
or ebx, ecx
mov edi, r12d
shl edi, 8
mov ecx, edi
and ecx, 0x2000000
or ecx, ebx
and edi, 0x8000000
or edi, ecx
test byte [r14], 1
je 0x14004117e
mov r14, qword [r14 + 0x10]
jmp 0x140041182
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r15 + 0x24], 0xffffffff
jmp 0x14004120d
add r14, 2
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x30], 0
mov rcx, r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov rax, qword [r15]
cmp rax, rsi
je 0x1400411f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [r15]
add rax, 1
cmp rax, 2
jb 0x1400411d4
call fcn.14002da00
mov rcx, qword [r15]
call fcn.140042990
mov qword [r15], 0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400411e6
mov qword [r15], rsi
call fcn.14002da00
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [r15]
add rax, 1
cmp rax, 2
jae 0x14004123a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140040d80
mov dword [r15 + 0x24], eax
lea rcx, [rsp + 0x60]
call fcn.14003acf0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140132550
nop
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
shr ebp, 0xa
mov dword [r15 + 0x24], 0
mov byte [r15 + 0x29], bpl
test r12b, 4
jne 0x14004125c
test r12b, 0xa
je 0x14004120d
mov byte [r15 + 0x28], 1
jmp 0x14004120d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r15 + 0x28]
jmp 0x14004120d
Function at 0x140041270
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400412cd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
add rax, 1
cmp rax, 2
jb 0x1400412ab
call fcn.14002da00
mov rcx, qword [rdi]
call fcn.140042990
mov qword [rdi], 0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400412bd
mov qword [rdi], rsi
call fcn.14002da00
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140041370
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401b46a8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rcx], 0
test rdx, rdx
je 0x1400413e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x1400413c6
call fcn.14002da00
mov rcx, qword [rsi]
call fcn.140042990
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400413d8
mov qword [rsi], rdi
call fcn.14002da00
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], rax
cmp rax, rdi
je 0x14004140e
mov qword [rsp + 0x28], 0
jmp 0x140041480
lea rdi, [0x140007140]
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140025d90
mov rbx, rax
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.140025d90
lea rdx, str.handle___::GetCurrentProcess__
lea rcx, [rsp + 0x28]
mov r8, rax
mov r9, rbx
call fcn.140025fc0
cmp qword [rsp + 0x28], 0
je 0x140041480
lea rdx, str..._.._base_process_process_win.cc
lea rdi, [rsp + 0x20]
lea r9, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x1f
call fcn.140025a30
mov rcx, rdi
call fcn.140025a00
mov rcx, rdi
call fcn.140025a10
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140132550
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400414a0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea rbp, [rbx + 1]
cmp rbp, 2
jb 0x1400414c9
call fcn.14002da00
mov qword [rsi], 0
test rbx, rbx
je 0x1400414fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jae 0x140041533
cmp rbp, 2
jae 0x14004154d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
add rax, 1
cmp rax, 2
jb 0x140041525
call fcn.14002da00
mov rcx, qword [rdi]
call fcn.140042990
mov qword [rdi], 0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.14002da00
mov rcx, qword [rsi]
call fcn.140042990
mov qword [rsi], 0
cmp rbp, 2
jb 0x1400414f1
mov qword [rsi], rbx
call fcn.14002da00
jmp 0x1400414f1
Function at 0x140041590
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea rbp, [rbx + 1]
cmp rbp, 2
jae 0x1400415bb
cmp qword [rsi], rbx
jne 0x1400415c5
jmp 0x1400415ea
call fcn.14002da00
cmp qword [rsi], rbx
je 0x1400415ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jae 0x140041623
cmp rbp, 2
jae 0x14004163d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
add rax, 1
cmp rax, 2
jb 0x140041615
call fcn.14002da00
mov rcx, qword [rdi]
call fcn.140042990
mov qword [rdi], 0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.14002da00
mov rcx, qword [rsi]
call fcn.140042990
mov qword [rsi], 0
cmp rbp, 2
jb 0x1400415e1
mov qword [rsi], rbx
call fcn.14002da00
jmp 0x1400415e1

Function at 0x1400417c0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1401b46a8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400417ef
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400417f2
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140041813
test bl, bl
je 0x14004186a
cmp byte [rdi + 8], 0
je 0x14004185c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004185f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x14004182a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004182d
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140041843
xor edi, edi
jmp 0x1400418e6
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x14004189e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400418a1
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
je 0x14004187b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004187e
mov rcx, qword [rdi]
call fcn.14005c6d0
mov rcx, qword [0x1401b7798]
mov dil, 1
test rcx, rcx
je 0x1400418e6
mov edx, eax
mov r8d, esi
call fcn.140059ff0
jmp 0x1400418e6
mov rcx, qword [rdi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400418b4
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
je 0x1400418c5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400418c8
mov rcx, qword [rdi]
call fcn.14005c6d0
mov rcx, qword [0x1401b7798]
test rcx, rcx
je 0x1400418e3
mov edx, eax
mov r8d, esi
call fcn.140059ff0
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140132550
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret