joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010b494
Capabilities:
Encrypt data using speck

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbx, rdx
mov rsi, qword [rcx]
mov r13d, dword [rcx + 0x34]
movsx edx, byte [rcx + 0x48]
mov eax, dword [rcx + 0x30]
cmp eax, dword [rcx + 0x38]
jle 0x14010b631
cmp dl, 0x1b
jg 0x14010b64d
inc edx
mov qword [rsp + 0x30], rcx
mov r8, rbx
call fcn.1400e9983
cmp dword [rbx], 0
jg 0x14010b641
test r13d, r13d
mov r9, qword [rsp + 0x30]
mov r10, rsi
jg 0x14010b535
jmp 0x14010b5c3
test edi, edi
cmovs edi, r12d
cmp ebp, 0x80000001
jne 0x14010b591
movsxd rax, edi
lea rax, [rax + rax*2]
lea rax, [r11 + rax*8]
mov rcx, qword [r8 + 0x10]
mov qword [rax + 0x10], rcx
mov rcx, qword [r10 + rsi*8 + 8]
mov qword [rax + 8], rcx
mov ecx, dword [r8]
mov dword [rax], ecx
inc dword [r9 + 0x30]
cmp r13, 1
mov r13, r14
jle 0x14010b5c3
lea r14, [r13 - 1]
mov eax, r14d
lea rsi, [rax + rax*2]
mov ebx, dword [r10 + rsi*8]
test ebx, ebx
js 0x14010b528
lea r8, [r10 + rsi*8]
mov rax, qword [r8 + 0x10]
mov qword [rsp + 0x38], rax
mov r11, qword [r9]
mov eax, ebx
xor eax, 0x4000000
mov ecx, dword [r9 + 0x34]
cdq
idiv ecx
mov r12d, edx
mov dword [rsp + 0x2c], 0
mov edi, 0xffffffff
mov dword [rsp + 0x28], edx
movsxd rax, r12d
lea r15, [rax + rax*2]
mov ebp, dword [r11 + r15*8]
cmp ebp, ebx
je 0x14010b5db
test ebp, ebp
js 0x14010b4f1
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x14010b5ab
mov r15, r8
lea r8d, [rcx - 1]
mov eax, ebx
cdq
idiv r8d
mov r8, r15
inc edx
mov dword [rsp + 0x2c], edx
add r12d, edx
mov eax, r12d
cdq
idiv ecx
mov r12d, edx
cmp edx, dword [rsp + 0x28]
jne 0x14010b57a
jmp 0x14010b614
mov rcx, r10
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140184f6a
mov rax, qword [r9 + 0x10]
mov qword [rsp + 0x50], r11
mov rdx, qword [r11 + r15*8 + 0x10]
lea rcx, [0x1402469b0]
cmp rax, rcx
jne 0x14010b65e
cmp dword [rsp + 0x38], edx
sete al
test al, al
mov r11, qword [rsp + 0x50]
jne 0x14010b60b
mov ecx, dword [r9 + 0x34]
jmp 0x14010b591
lea rax, [r11 + r15*8]
jmp 0x14010b50e
test edi, edi
jns 0x14010b503
mov edi, dword [rsp + 0x28]
cmp ebp, 0x80000001
je 0x14010b503
call fcn.140156a20
cmp eax, dword [rcx + 0x3c]
jge 0x14010b64d
test dl, dl
jle 0x14010b64d
dec edx
jmp 0x14010b4c9
mov rax, qword [rsp + 0x30]
mov qword [rax], rsi
mov dword [rax + 0x34], r13d
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x40], r8
call qword [case.0x14017aab5.0]
mov r8, qword [rsp + 0x40]
mov r10, qword [rsp + 0x48]
mov r9, qword [rsp + 0x30]
jmp 0x14010b5fc
Function at 0x14010ba40
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x14010bb3e
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1402e9430]
nop dword [rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x14010bab0
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x1402e9440]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x14010bbcd
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x14010bba3
movdqa xmm1, xmmword [0x1402e9440]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x1402e9450], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x14010ceb0
Capabilities:
Hash data using sha512

Disassembly:
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
movabs rax, 0x4000000000
mov qword [rcx + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x40], xmm0
mov eax, 1
ret
Function at 0x14010eb60
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14033ae60]
mov ecx, dword [0x140337e40]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14010ebc0
mov rsi, qword [0x14033ae58]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14013d520
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14033ae60]
call fcn.14013b388
cmp dword [0x14033ae60], 0xffffffff
jne 0x14010eb9c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14013f660
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.14013a6b4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14033aea8]
mov ecx, dword [0x140337e40]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14010ec80
lea r8, [0x14033ae78]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140056c60
mov qword [0x14033ae58], rsi
lea rcx, [0x14033ae60]
call fcn.14013a7d4
jmp 0x14010eb9c
lea rcx, [0x14033aea8]
call fcn.14013b388
cmp dword [0x14033aea8], 0xffffffff
jne 0x14010ec51
xorps xmm0, xmm0
movups xmmword [0x14033ae98], xmm0
movups xmmword [0x14033ae88], xmm0
movups xmmword [0x14033ae78], xmm0
lea rcx, [0x14033ae78]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14033aea8]
call fcn.14013a7d4
jmp 0x14010ec51
Function at 0x140114cc0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rdx]
mov qword [rdx], 0
lea r12, [r15 + 1]
cmp r12, 2
jb 0x140114cec
call fcn.1400a6030
mov qword [rsi], 0
test r15, r15
je 0x140114d22
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140114d75
cmp r12, 2
jb 0x140114d1a
mov qword [rsi], r15
call fcn.1400a6030
mov ecx, ebx
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]
inc rax
cmp rax, 2
jae 0x140114d49
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400a6030
mov rbx, qword [rdi]
mov rcx, qword [0x14033c3e8]
test rcx, rcx
je 0x140114db2
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [case.0x14017aab5.0]
mov qword [rdi], 0
jmp 0x140114d38
call fcn.1400a6030
mov r14, qword [rsi]
mov rcx, qword [0x14033c3e8]
test rcx, rcx
je 0x140114da4
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x14017aab5.0]
mov qword [rsi], 0
jmp 0x140114d0c
call fcn.1400515d0
mov rcx, qword [0x14033c3e8]
jmp 0x140114d89
call fcn.1400515d0
mov rcx, qword [0x14033c3e8]
jmp 0x140114d5d

Function at 0x1401153b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14033ae60]
mov ecx, dword [0x140337e40]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140115411
mov rax, qword [0x14033ae58]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14013d520
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14033ae60]
call fcn.14013b388
cmp dword [0x14033ae60], 0xffffffff
jne 0x1401153ec
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14013f660
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.14013a6b4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14033aea8]
mov ecx, dword [0x140337e40]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x1401154e8
lea rcx, [0x14033aea8]
call fcn.14013b388
cmp dword [0x14033aea8], 0xffffffff
jne 0x1401154e8
xorps xmm0, xmm0
movups xmmword [0x14033ae98], xmm0
movups xmmword [0x14033ae88], xmm0
movups xmmword [0x14033ae78], xmm0
lea rcx, [0x14033ae78]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14033aea8]
call fcn.14013a7d4
lea r8, [0x14033ae78]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140056c60
mov qword [0x14033ae58], rsi
lea rcx, [0x14033ae60]
call fcn.14013a7d4
jmp 0x1401153ec
Function at 0x140128820
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.140113010
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140128961
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x1402f2cc4]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140128980
lea rdx, [0x1402f2d14]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140128979
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [case.0x14017aab5.0]
mov rbx, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x20]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x1402e6d80]
movaps xmmword [r14], xmm0
movsxd rax, dword [rsp + 0x3c]
lea r8, [rbx + rax*8]
mov rcx, r14
mov rdx, rbx
call fcn.1401289a0
mov rcx, rsi
mov rdx, r14
call fcn.1400505f0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140128920
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x140128961
mov rax, qword [rsp + 0x28]
mov rcx, rsi
cmp rax, rsi
je 0x140128957
lea rdi, [rax - 0x18]
cmp byte [rax - 1], 0
jns 0x14012894a
mov rcx, qword [rax - 0x18]
call fcn.14013a6ac
mov rax, rdi
cmp rdi, rsi
jne 0x140128937
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rsi
call fcn.14013a6ac
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14013d520
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ebx, ebx
jmp 0x1401288c6
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x1401288c3
Function at 0x14012b130
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov ebx, 2
cmp rdx, 1
je 0x14012b15f
lea rax, [rdx - 1]
test rdx, rax
je 0x14012b2bb
mov rcx, rdx
call fcn.1400cd977
mov rbx, rax
mov r14, qword [rsi + 8]
cmp rbx, r14
jbe 0x14012b2cf
mov rdi, rbx
mov rax, rdi
shr rax, 0x3d
jne 0x14012b3ee
lea rcx, [rdi*8]
call fcn.14013a6b4
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
je 0x14012b199
call fcn.14013a6ac
mov qword [rsi + 8], rdi
xor eax, eax
mov rcx, qword [rsi]
mov qword [rcx + rax*8], 0
inc rax
cmp rdi, rax
jne 0x14012b19f
mov r8, qword [rsi + 0x10]
test r8, r8
je 0x14012b2a8
lea r10, [rsi + 0x10]
mov rcx, qword [r8 + 8]
mov rax, rdi
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rdi
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x14012b2c3
cmp rcx, rdi
jb 0x14012b23d
mov rax, rcx
xor edx, edx
div rdi
mov rcx, rdx
mov rax, qword [rsi]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
jmp 0x14012b292
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rsi]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
jmp 0x14012b289
xor edx, edx
div rdi
mov rax, rdx
cmp rax, rcx
je 0x14012b269
mov rdx, qword [rsi]
cmp qword [rdx + rax*8], 0
jne 0x14012b249
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x14012b2a8
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x14012b2b2
cmp rax, rdi
jb 0x14012b276
jmp 0x14012b26e
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, [rdi - 1]
and rax, rdx
jmp 0x14012b276
mov rbx, rdx
jmp 0x14012b15f
lea rax, [rdi - 1]
and rcx, rax
jmp 0x14012b23d
jae 0x14012b2a8
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x14012b2f1
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x14012b2f6
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.14015c3fc
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1402d4098]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp r14, 3
jb 0x14012b3a9
mov rcx, r14
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, r14
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x14012b3a9
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edi, 1
shl rdi, cl
cmp rax, 2
cmovb rdi, rax
jmp 0x14012b3b4
mov rcx, rax
call fcn.1400cd977
mov rdi, rax
cmp rbx, rdi
cmova rdi, rbx
cmp rdi, r14
jae 0x14012b2a8
test rdi, rdi
jne 0x14012b16f
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x14012b3e1
call fcn.14013a6ac
mov qword [rsi + 8], 0
jmp 0x14012b2a8
call fcn.140181600
int3
Function at 0x14012b4e0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14013f660
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 0x14012b575
cmp word [rsp + 0x70], 0
je 0x14012b575
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.14013ad74
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400afe70
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14013d520
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
call fcn.1400e8580
test al, al
jne 0x14012b5b2
lea rax, [0x1402f117e]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400afe70
jmp 0x14012b5bf
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400c6350
cmp byte [rsp + 0x57], 0
jns 0x14012b557
mov rcx, qword [rsp + 0x40]
call fcn.14013a6ac
jmp 0x14012b557

Function at 0x14012ece0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
jne 0x14012ed17
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14012ed81
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14012ed47
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14012ed3d
mov qword [rsi], rdi
call fcn.1400a6030
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14012ecfb
call fcn.1400a6030
mov r14, qword [rsi]
mov rcx, qword [0x14033c3e8]
test rcx, rcx
je 0x14012ed73
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x14017aab5.0]
mov qword [rsi], 0
jmp 0x14012ed2b
call fcn.1400515d0
mov rcx, qword [0x14033c3e8]
jmp 0x14012ed5b
int3
Function at 0x14012fa64
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 [0x140327038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14012fb05
mov r15, qword [sym.imp.KERNEL32.dll_GetFileType]
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14012faf4
cmp eax, 0xffffffff
je 0x14012fb3f
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14013d520
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r15
cmp eax, 3
je 0x14012fb19
mov eax, dword [rsp + 0x2c]
jmp 0x14012fad4
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14012fad6
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r12
test eax, eax
jne 0x14012fac7
jmp 0x14012fb05
int3

Function at 0x14012ff3d
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14012ff9d
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14012ffa6
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14013d520
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14012ff86
int3

Function at 0x1401313c0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x1401313eb
call fcn.1400a6030
cmp qword [rsi], r14
je 0x14013141a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140131439
cmp r15, 2
jb 0x140131412
mov qword [rsi], r14
call fcn.1400a6030
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [rdi + 8]
movups xmm1, xmmword [rdi + 0x18]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400a6030
mov rcx, qword [rsi]
call fcn.1400ccd80
mov qword [rsi], 0
jmp 0x140131404
Function at 0x140132790
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov esi, r8d
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x60]
mov qword [r15 + 0x40], rax
movaps xmm0, xmmword [0x1402e6d80]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, [0x1402f1211]
lea r8, str....._base_files_file_util_win.cc
lea r12, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x4a5
call fcn.1400b5b90
xor ebx, ebx
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.140062770
cmp byte [r14 + 0x17], 0
jns 0x140132824
mov r14, qword [r14]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, r14
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x14013287b
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp r14, 0xffffffffffffffff
je 0x140132910
call fcn.1400a6030
mov rbx, r14
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, 0xffffffff
test esi, esi
js 0x1401328cb
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1401328cb
lea r14, [rsp + 0x40]
mov dword [r14], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [r14]
xor edx, edx
cmp eax, 1
sbb edx, edx
cmp ecx, esi
mov ebp, 0xffffffff
cmove ebp, ecx
or ebp, edx
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1401328e2
call fcn.1400a6030
mov rcx, rbx
call fcn.1400ccd80
lea rcx, [rsp + 0x60]
call fcn.140062a80
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14013d520
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x140132873

Function at 0x14013369d
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140130d82
test rax, rax
jne 0x1401336dc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x1401336f8
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14013d520
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140061360
test al, al
je 0x14013374e
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x102
mov r9d, 2
call fcn.1401fea80
lea rcx, [rsp + 0x40]
lea rdx, [0x1402f578a]
mov r8d, 0xc
call fcn.1401970a4
mov rcx, rsi
call fcn.1401feb00
xor esi, esi
jmp 0x1401336dc