joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140094340
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401ac6e0]
mov ecx, dword [0x1401a559c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400943a3
movzx ecx, word [0x1401ac6b0]
cmp rcx, 0xc
ja case.0x140094382.1
xor eax, eax
lea rdx, [0x1400943f0]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov eax, 2
jmp case.0x140094382.0
mov eax, 4
jmp case.0x140094382.0
mov eax, 1
jmp case.0x140094382.0
mov eax, 3
add rsp, 0x28
ret
lea rcx, [0x1401ac6e0]
call fcn.140134af0
cmp dword [0x1401ac6e0], 0xffffffff
jne 0x140094365
xorps xmm0, xmm0
movups xmmword [0x1401ac6d0], xmm0
movups xmmword [0x1401ac6c0], xmm0
movups xmmword [0x1401ac6b0], xmm0
lea rcx, [0x1401ac6b0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401ac6e0]
call fcn.140134b88
jmp 0x140094365

Function at 0x140097640
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
mov eax, 0xffffffff
cmovae r8d, eax
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140097691
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
jne 0x140097698
int3
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140135280
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x140097640

Function at 0x1400976af
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov ecx, 0xffffffff
cmp r8, rcx
mov ebx, 0xffffffff
cmovb ebx, r8d
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x140097757
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140097732
mov rcx, rdi
call r12
cmp eax, 3
je 0x1400976f5
mov eax, dword [rsp + 0x2c]
jmp 0x140097737
cmp eax, 0xffffffff
je 0x14009776b
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140135280
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140097739
int3
Function at 0x140097de0
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140097d0f
test rax, rax
jne 0x140097e77
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
jne 0x140097e77
mov ecx, 2
call fcn.14006c840
test al, al
je 0x140097e75
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.14006d900
lea rcx, [rsp + 0x40]
lea rdx, [0x140181fcb]
mov r8d, reloc.WS2_32.dll_inet_ntoa
call fcn.14001df3c
mov rcx, rsi
call fcn.14006d9f0
xor esi, esi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140135280
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret

Function at 0x1400983c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
mov eax, 0xffffffff
cmovae r8d, eax
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140097691
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
jne 0x140097698
int3
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140135280
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x140097640
Function at 0x140098b70
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x1401ac708]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x140098cdf
jp 0x140098cdf
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebp, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1401ac718]
mov ecx, dword [0x1401a559c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140098cfe
mov eax, dword [0x1401ac728]
mov ecx, dword [0x1401a559c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140098d38
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rsi, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rsi, qword [0x1401ac720]
movq xmm1, rsi
punpckldq xmm1, xmmword [0x140173f70]
subpd xmm1, xmmword [0x140173f80]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x20]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x140182050]
ucomisd xmm1, xmm0
ja 0x140098cdf
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x1401ac710]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x140173f70]
subpd xmm1, xmmword [0x140173f80]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x1401ac708], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140135280
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1401ac718]
call fcn.140134af0
cmp dword [0x1401ac718], 0xffffffff
jne 0x140098bf1
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1401ac710], rdx
lea rcx, [0x1401ac718]
call fcn.140134b88
jmp 0x140098bf1
lea rcx, [0x1401ac728]
call fcn.140134af0
cmp dword [0x1401ac728], 0xffffffff
jne 0x140098c16
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x1401ac720], rax
lea rcx, [0x1401ac728]
call fcn.140134b88
jmp 0x140098c16
Function at 0x140099ba0
Capabilities:
Get memory capacity

Disassembly:
push rsi
sub rsp, 0x70
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0x20], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x28]
movabs rdx, 0x7fffffffffffffff
cmp rcx, rdx
cmovb rdx, rcx
xor esi, esi
test eax, eax
cmovne rsi, rdx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140135280
mov rax, rsi
add rsp, 0x70
pop rsi
ret

Function at 0x14009a3e0
Capabilities:
Create thread

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp fcn.14009a210

Function at 0x14009ce90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14019e0ec]
cmp ecx, 0xffffffff
je 0x14009ceb3
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
add eax, 0xffffffff
cmp eax, 2
setb al
jmp 0x14009ceb5
xor eax, eax
add rsp, 0x28
ret

Function at 0x14009cec0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x14019e0ec]
cmp ecx, 0xffffffff
je 0x14009cee6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14009ceeb
call fcn.14009d000
mov eax, dword [0x1401adfc8]
mov ecx, dword [0x1401a559c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009cfb2
mov rbx, qword [0x1401adfc0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14009cfa5
mov rcx, qword [0x1401ac7b0]
add rcx, 1
xor edx, edx
lea rax, [0x1401ac7c0]
nop dword [rax]
lea edi, [rcx + rdx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14009cf60
add rdx, 1
cmp rdx, 0x100
jne 0x14009cf40
jmp 0x14009cf81
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
mov qword [rax + rsi*8 + 8], r14
mov qword [0x1401ac7b0], rdi
mov dword [r15], edi
mov eax, dword [rax + rsi*8 + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x14009cff8
cmp eax, 0x100
jge 0x14009cffb
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
call fcn.140088520
jmp 0x14009cf28
lea rcx, [0x1401adfc8]
call fcn.140134af0
cmp dword [0x1401adfc8], 0xffffffff
jne 0x14009cf10
mov ecx, 8
call fcn.140134998
mov rbx, rax
mov rcx, rax
call fcn.140088510
mov qword [0x1401adfc0], rbx
lea rcx, [0x1401adfc8]
call fcn.140134b88
jmp 0x14009cf10
int3
int3
Function at 0x14009d000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140135220
sub rsp, rax
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14019e0ec]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x14009d09c
lea rcx, [rsp + 0x2c]
call fcn.1400e6020
test al, al
je 0x14009d117
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x14009d07e
lea rcx, [rsp + 0x2c]
call fcn.1400e6020
test al, al
je 0x14009d11a
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14009d11a
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x14019e0ec], ecx
je 0x14009d09c
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14019e0ec]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14009d114
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140138090
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140134a0c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1401379e0
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140135280
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
int3
int3
int3

Function at 0x14009d200
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14019e0ec]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14009d230
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14009d230
mov rax, qword [rax + rcx]
jmp 0x14009d232
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x14009d240
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14019e0ec]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x14009d268
test rdi, rdi
je 0x14009d281
call fcn.14009d000
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14009d380
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401adfd8]
mov ecx, dword [0x1401a559c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009d3b5
lea rcx, [0x1401adfd0]
add rsp, 0x28
jmp fcn.14009d200
lea rcx, [0x1401adfd8]
call fcn.140134af0
cmp dword [0x1401adfd8], 0xffffffff
jne 0x14009d3a5
mov qword [0x1401adfd0], 0
lea rcx, [0x1401adfd0]
xor edx, edx
call fcn.14009d290
lea rcx, [0x1401adfd8]
call fcn.140134b88
jmp 0x14009d3a5
Function at 0x14009e380
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx + 0x30]
lea rdx, [rsi + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x90]
call qword [0x1401bf010]
mov byte [rsi + 0x431], 1
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [0x1401bf010]
test rax, rax
je 0x14009e3f2
mov eax, dword [0x1401adfd8]
mov ecx, dword [0x1401a559c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009e3f9
lea rcx, [0x1401adfd0]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14009d240
nop
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401adfd8]
call fcn.140134af0
cmp dword [0x1401adfd8], 0xffffffff
jne 0x14009e3de
mov qword [0x1401adfd0], 0
lea rcx, [0x1401adfd0]
xor edx, edx
call fcn.14009d290
lea rcx, [0x1401adfd8]
call fcn.140134b88
jmp 0x14009e3de
Function at 0x1400a4190
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r13, rcx
mov rsi, qword [rcx + 0x10]
cmp rsi, qword [rcx + 0x18]
jne 0x1400a42b5
mov r15, qword [r13]
mov rdi, qword [r13 + 8]
mov rax, rdi
sub rax, r15
jbe 0x1400a4214
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
add rax, 1
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, rdi
sub r15, rax
sub rsi, rdi
je 0x1400a4200
mov rcx, r15
mov rdx, rdi
mov r8, rsi
call fcn.1401379e0
mov rdi, qword [r13 + 8]
add rsi, r15
mov qword [r13 + 0x10], rsi
lea rax, [rdi + r12*8]
mov qword [r13 + 8], rax
jmp 0x1400a42b5
mov rax, rsi
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov ebx, 1
cmovne rbx, rcx
mov rax, rbx
shr rax, 0x3d
jne 0x1400a42d0
mov r12, rbx
shr r12, 2
lea rcx, [rbx*8]
call fcn.140134998
lea r9, [rax + r12*8]
lea r8, [rax + rbx*8]
mov r10, r9
sub rsi, rdi
je 0x1400a4291
mov rbx, rsi
sar rbx, 3
and rsi, 0xfffffffffffffff8
mov r10, rsi
add r10, r9
shl rbx, 3
lea rsi, [rax + r12*8]
xor ecx, ecx
nop dword [rax]
mov rdx, qword [rdi + rcx]
mov qword [rsi + rcx], rdx
add rcx, 8
cmp rbx, rcx
jne 0x1400a4280
mov qword [r13], rax
mov qword [r13 + 8], r9
mov qword [r13 + 0x10], r10
mov qword [r13 + 0x18], r8
mov rsi, r10
test r15, r15
je 0x1400a42b5
mov rcx, r15
call fcn.1401349d4
mov rsi, qword [r13 + 0x10]
mov rax, qword [r14]
mov qword [rsi], rax
add qword [r13 + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140149890
int3

Function at 0x1400a42e0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x1400a4307
mov r14, rbx
jmp 0x1400a4404
mov r15, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r15, rax
jae 0x1400a435d
sub rax, r15
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r12, [rax + rcx]
add r12, 1
sar r12, 1
lea r14, [r15 + r12*8]
mov r8, r15
sub r8, rbx
je 0x1400a434c
sub r14, r8
mov rcx, r14
mov rdx, rbx
call fcn.1401379e0
mov r15, qword [rsi + 0x10]
mov qword [rsi + 8], r14
lea rax, [r15 + r12*8]
mov qword [rsi + 0x10], rax
jmp 0x1400a4404
sub rax, rbx
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x1400a4421
lea r12, [r13 + 3]
shr r12, 2
lea rcx, [r13*8]
call fcn.140134998
lea r14, [rax + r12*8]
lea r8, [rax + r13*8]
mov r9, r14
sub r15, rbx
je 0x1400a43e4
mov r10, rdi
mov rcx, r15
sar rcx, 3
and r15, 0xfffffffffffffff8
mov r9, r15
add r9, r14
shl rcx, 3
lea rdx, [rax + r12*8]
xor edi, edi
nop word cs:[rax + rax]
nop
mov rbp, qword [rbx + rdi]
mov qword [rdx + rdi], rbp
add rdi, 8
cmp rcx, rdi
jne 0x1400a43d0
mov rdi, r10
mov qword [rsi], rax
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r9
mov qword [rsi + 0x18], r8
test rbx, rbx
je 0x1400a4404
mov rcx, rbx
call fcn.1401349d4
mov r14, qword [rsi + 8]
mov rax, qword [rdi]
mov qword [r14 - 8], rax
add qword [rsi + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140149890
int3
Function at 0x1400a85e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400a8612
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a863b
mov edi, eax
test bl, bl
jne 0x1400a8630
mov eax, edi
and eax, 0x400
jne 0x1400a86f2
and edi, 0x10
shr edi, 4
jmp 0x1400a86f4
mov ecx, 2
call fcn.14006c840
test al, al
je 0x1400a86f2
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x82
mov r9d, 2
call fcn.14006d900
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14001df3c
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.14004ad60
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400a86cc
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.14001df3c
cmp byte [rsp + 0x57], 0
jns 0x1400a86e8
mov rcx, qword [rsp + 0x40]
call fcn.1401349d4
lea rcx, [rsp + 0x58]
call fcn.14006d9f0
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140135280
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400a8711
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x1400a873c
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1400a890a
test bl, bl
je 0x1400a8842
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400a8842
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.1400a85e8
test al, al
jne 0x1400a890a
mov ecx, 2
call fcn.14006c840
test al, al
je 0x1400a8908
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x5d
mov r9d, 2
call fcn.14006c8f0
lea rdi, [rsp + 0x50]
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x180]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.14004ad60
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400a87fc
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.14001df3c
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.14001df3c
cmp byte [rsp + 0x1a7], 0
jns 0x1400a8833
mov rcx, qword [rsp + 0x190]
call fcn.1401349d4
lea rcx, [rsp + 0x40]
call fcn.14006cd80
jmp 0x1400a8908
mov ecx, 2
call fcn.14006c840
test al, al
je 0x1400a8908
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x62
mov r9d, 2
call fcn.14006d900
lea rcx, [rsp + 0x50]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.14001df3c
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.14004ad60
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400a88dc
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.14001df3c
cmp byte [rsp + 0x1a7], 0
jns 0x1400a88fe
mov rcx, qword [rsp + 0x190]
call fcn.1401349d4
lea rcx, [rsp + 0x40]
call fcn.14006d9f0
xor edi, edi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.140135280
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400a8927
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400a894e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a8967
test eax, 0x410
sete sil
jmp 0x1400a8a20
mov ecx, 2
call fcn.14006c840
test al, al
je 0x1400a8a1e
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x75
mov r9d, 2
call fcn.14006d900
lea rcx, [rsp + 0x60]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14001df3c
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14004ad60
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400a89f8
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.14001df3c
cmp byte [rsp + 0x4f], 0
jns 0x1400a8a14
mov rcx, qword [rsp + 0x38]
call fcn.1401349d4
lea rcx, [rsp + 0x50]
call fcn.14006d9f0
xor esi, esi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140135280
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret

Function at 0x1400a8a3c
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400a8a63
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a8a9b
and eax, 0x410
cmp eax, 0x410
jne 0x1400a8a9b
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140135280
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.1400a8b8d
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400a8aa7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x1400a8b71
mov ecx, 2
call fcn.14006c840
test al, al
je 0x1400a8b6f
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, reloc.OLEAUT32.dll_SysAllocStringByteLen
mov r9d, 2
call fcn.14006d900
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, inet_ntoa
call fcn.14001df3c
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14004ad60
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400a8b49
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.14001df3c
cmp byte [rsp + 0x4f], 0
jns 0x1400a8b65
mov rcx, qword [rsp + 0x38]
call fcn.1401349d4
lea rcx, [rsp + 0x50]
call fcn.14006d9f0
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140135280
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret