joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140160b14
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14013bbe4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140160b9e
cmp byte [rbp - 0x21], r15b
je 0x140160b99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140160bd4
call fcn.140156ff4
test eax, eax
jne 0x140160bc0
cmp byte [rbp - 0x21], r15b
je 0x140160bb8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140160bd4
cmp byte [rbp - 0x21], r15b
je 0x140160bd1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1401410cc
test eax, eax
jne 0x140160c74
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14013bbe4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140160c13
cmp byte [rbp - 0x21], r15b
je 0x140160c48
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140160c48
call fcn.140156ff4
test eax, eax
jne 0x140160c34
cmp byte [rbp - 0x21], r15b
je 0x140160c2d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140160c48
cmp byte [rbp - 0x21], r15b
je 0x140160c45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1401410cc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140160c74
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140160c77
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140160c85
mov rcx, rdi
call fcn.14012b0e0
cmp byte [rbp + 0x3f], r15b
je 0x140160c94
mov rcx, qword [rbp + 0x27]
call fcn.14012b0e0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140160d9c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140160de6
call fcn.1401441c8
mov dword [rax], 0xf
call fcn.14012ce10
mov dword [rax], 0xd
call fcn.140158bc4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012f6f0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140160df1
lea eax, [rbx + 1]
jmp 0x140160dd3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140160dd1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140160dd3
Function at 0x140162590
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401625a6
mov al, 1
jmp 0x140162606
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401625b7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140162604
mov ecx, dword [rcx + 0x18]
nop
call fcn.140144a3c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140162604
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140162604
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140162604
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140162606
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140169460
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
movapd xmmword [rsp + 0x10], xmm7
movapd xmmword [rsp], xmm6
mov r11, qword [r8]
mov r10, qword [r8 + 8]
mov rax, r10
sub rax, r11
sar rax, 2
lea r9, [rax - 1]
cmp r9, 2
jb 0x140169538
cvtsi2sd xmm0, ecx
cvtsi2sd xmm1, edx
add rax, 0xfffffffffffffffd
movq xmm2, rax
punpckldq xmm2, xmmword [0x1401f3940]
subpd xmm2, xmmword [0x1401f3950]
haddpd xmm2, xmm2
mov ecx, 1
movdqa xmm3, xmmword [0x1401f3940]
movapd xmm4, xmmword [0x1401f3950]
movsd xmm5, qword [0x1401e1fc0]
mov rdx, qword [r8]
mov r10, qword [r8 + 8]
sub r10, rdx
sar r10, 2
cmp r10, rcx
jbe 0x14016955a
movq xmm6, rax
punpckldq xmm6, xmm3
subpd xmm6, xmm4
haddpd xmm6, xmm6
lea r10, [rcx - 1]
movq xmm7, r10
punpckldq xmm7, xmm3
subpd xmm7, xmm4
haddpd xmm7, xmm7
mulsd xmm6, xmm0
mulsd xmm7, xmm1
addsd xmm7, xmm6
divsd xmm7, xmm2
addsd xmm7, xmm5
cvttsd2si r10d, xmm7
mov dword [rdx + rcx*4], r10d
dec rax
inc rcx
cmp rcx, r9
jne 0x1401694d0
mov r11, qword [r8]
mov r10, qword [r8 + 8]
cmp r10, r11
je 0x14016955d
mov dword [r10 - 4], 0x7fffffff
mov rcx, r8
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
add rsp, 0x28
jmp fcn.14011adc0
int3
int3

Function at 0x14016aa10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test ecx, ecx
js 0x14016aa22
mov rsi, rdx
test rdx, rdx
jne 0x14016aa29
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.14016aa70
test edi, edi
je 0x14016aa22
cmp byte [rsi + rdi - 1], 0xa
je 0x14016aa22
lea rcx, [0x1401f3771]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14016aa70
Function at 0x14016aa70
Capabilities:
Write 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 [0x140219028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14016aabe
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x14016aafc
cmp rdi, rsi
jae 0x14016aafc
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x14016aab7
jmp 0x14016aab4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14012f6f0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14018fab0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14018fb21
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14018fb2b
mov dil, 1
test bl, bl
je 0x14018fb0a
cmp byte [rsi + 8], 0
je 0x14018fb26
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012f6f0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x14018fadd
mov rcx, qword [rsi]
jmp 0x14018faff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x14018fb53
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14018fb58
xor edi, edi
jmp 0x14018fb0a
mov rcx, qword [rsi]
jmp 0x14018fb40
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x14018fb7f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x14018fb0a
mov rcx, qword [rsi]
jmp 0x14018fb6f
Function at 0x140192270
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x140231b68], 0
je 0x1401922b6
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14012f6f0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x140231b58]
test rdi, rdi
je 0x140192357
test byte [0x140228658], 1
je 0x140192299
cmp byte [rdi + 0x17], 0
jns 0x1401922d8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140231b68], rax
inc rax
cmp rax, 1
ja 0x140192299
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140131830
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x140192434
xor esi, esi
jmp 0x140192299
mov ecx, 0x18
call fcn.14012cd5c
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140131830
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1401ee3a0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140168480
movzx ecx, byte [rdi + 0x17]
mov r9d, ecx
and r9d, 0x7f
test cl, cl
mov rax, qword [rdi]
mov rdx, qword [rdi + 8]
cmovs r9, rdx
mov r10, rdi
cmovs r10, rax
test r9, r9
je 0x140192413
add r9, r9
test r9, r9
je 0x140192413
lea r8, [r9 - 2]
cmp word [r10 + r9 - 2], 0x5c
mov r9, r8
jne 0x1401923d4
cmp r8, 0xfffffffffffffffe
je 0x140192413
sar r8, 1
lea r9, [r8 + 1]
test cl, cl
jns 0x14019250a
cmp rdx, r8
jbe 0x14019252f
mov qword [rdi + 8], r9
mov word [rax + r8*2 + 2], 0
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140014560
mov qword [0x140231b58], rdi
jmp 0x1401922c6
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14012d784
mov rcx, qword [0x140231b58]
mov rdx, rdi
mov r8, rax
call fcn.140058530
mov rcx, qword [0x140231b58]
movzx eax, byte [rcx + 0x17]
test al, al
jns 0x14019251f
mov rax, qword [rcx + 8]
test rax, rax
je 0x14019252c
mov rdx, qword [rcx]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x140192497
lea rdx, [0x1401f5e08]
mov r8d, 1
call fcn.140014560
mov rcx, qword [0x140231b58]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140014560
mov rcx, qword [0x140231b58]
cmp byte [rcx + 0x17], 0
jns 0x1401924b9
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140231b68], rax
inc rax
cmp rax, 1
ja 0x140192299
mov qword [0x140231b68], 0
jmp 0x140192350
cmp r8, rcx
jae 0x14019252f
and r9b, 0x7f
mov byte [rdi + 0x17], r9b
mov rax, rdi
jmp 0x14019240b
test rax, rax
je 0x14019252c
mov rdx, rcx
jmp 0x140192476
int3
int3
Function at 0x14019a1f0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x14019a251
test r12, r12
je 0x14019a368
mov rax, qword [rdi]
mov qword [r12], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012f6f0
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x14019a2b6
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x14019a29f
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.140131180
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
mov r12, r14
jmp 0x14019a21e
mov rax, r12
sub rax, r14
sar rax, 2
cmp r12, r14
mov r15d, 1
cmovne r15, rax
lea rax, [rsi + 0x20]
mov qword [rsp + 0x50], rax
mov rax, r15
shr rax, 0x3d
jne 0x14019a394
lea rcx, [r15*8]
call fcn.14012cd5c
mov rdx, r15
and rdx, 0xfffffffffffffffc
mov rcx, r12
sub rcx, rbx
mov r9, r12
lea rdx, [rax + rdx*2]
mov r8, rdx
sub r9, rbx
je 0x14019a333
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x14019a368
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x14019a31b
lea r9, [rax + r15*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x30]
mov qword [rcx], r14
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r12
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r12
call fcn.14019a700
mov r12, qword [rsi + 0x10]
jmp 0x14019a21e
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140167fb0
call fcn.140167fb0
int3
Function at 0x14019a3a0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x14019a3ff
mov r15, rbx
add r15, 0xfffffffffffffff8
je 0x14019a510
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 8], 0xfffffffffffffff8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14012f6f0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi + 0x10]
mov r15, qword [rsi + 0x18]
cmp r14, r15
jae 0x14019a45a
sub r15, r14
sar r15, 3
lea rax, [r15 + 1]
shr rax, 0x3f
lea r12, [r15 + rax]
inc r12
sar r12, 1
lea r15, [r14 + r12*8]
mov rax, r14
sub rax, rbx
sub r15, rax
sub r14, rbx
je 0x14019a449
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.140131180
mov rbx, qword [rsi + 0x10]
mov qword [rsi + 8], r15
lea rax, [rbx + r12*8]
mov qword [rsi + 0x10], rax
jmp 0x14019a3ce
mov rax, r15
sub rax, rbx
sar rax, 2
cmp r15, rbx
mov r12d, 1
cmovne r12, rax
lea rax, [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x3d
jne 0x14019a53c
lea rcx, [r12*8]
call fcn.14012cd5c
lea rdx, [r12*2 + 6]
and rdx, 0xfffffffffffffff8
add rdx, rax
mov rcx, r14
sub rcx, rbx
mov r9, r14
mov r8, rdx
sub r9, rbx
je 0x14019a4db
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x14019a510
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x14019a4c3
lea r9, [rax + r12*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], rbx
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r14
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r15
call fcn.14019a700
mov r15, qword [rsi + 8]
jmp 0x14019a3ce
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140167fb0
call fcn.140167fb0
int3
Function at 0x14019a550
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x14019a5af
mov r15, rbx
add r15, 0xfffffffffffffff8
je 0x14019a6c0
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 8], 0xfffffffffffffff8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14012f6f0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi + 0x10]
mov r15, qword [rsi + 0x18]
cmp r14, r15
jae 0x14019a60a
sub r15, r14
sar r15, 3
lea rax, [r15 + 1]
shr rax, 0x3f
lea r12, [r15 + rax]
inc r12
sar r12, 1
lea r15, [r14 + r12*8]
mov rax, r14
sub rax, rbx
sub r15, rax
sub r14, rbx
je 0x14019a5f9
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.140131180
mov rbx, qword [rsi + 0x10]
mov qword [rsi + 8], r15
lea rax, [rbx + r12*8]
mov qword [rsi + 0x10], rax
jmp 0x14019a57e
mov rax, r15
sub rax, rbx
sar rax, 2
cmp r15, rbx
mov r12d, 1
cmovne r12, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x3d
jne 0x14019a6ec
lea rcx, [r12*8]
call fcn.14012cd5c
lea rdx, [r12*2 + 6]
and rdx, 0xfffffffffffffff8
add rdx, rax
mov rcx, r14
sub rcx, rbx
mov r9, r14
mov r8, rdx
sub r9, rbx
je 0x14019a68b
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x14019a6c0
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x14019a673
lea r9, [rax + r12*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], rbx
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r14
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r15
call fcn.14019a700
mov r15, qword [rsi + 8]
jmp 0x14019a57e
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140167fb0
call fcn.140167fb0
int3

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x38], rax
movdqu xmm0, xmmword [rdx]
movdqa xmmword [rsp + 0x20], xmm0
mov rbx, qword [rcx + 0x50]
mov rax, qword [rcx + 0x58]
mov edi, 1
cmp rbx, rax
je 0x1401a7d54
mov rsi, r8
movdqu xmm0, xmmword [rbx]
pcmpeqb xmm0, xmmword [rsp + 0x20]
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x1401a7d6b
add rbx, 0x70
cmp rbx, rax
jne 0x1401a7d35
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14012f6f0
mov eax, edi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
cmp rbx, rax
je 0x1401a7d54
cmp byte [rbx + 0x27], 0
js 0x1401a7d7c
lea rcx, [rbx + 0x10]
jmp 0x1401a7d80
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov edi, 1
cmovne edi, ecx
test edi, edi
jne 0x1401a7d54
mov qword [rsi], rbx
xor edi, edi
jmp 0x1401a7d54
Function at 0x1401a7f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movdqu xmm0, xmmword [rdx]
movdqa xmmword [rsp + 0x20], xmm0
mov r14, qword [rcx + 0x50]
mov rax, qword [rcx + 0x58]
mov esi, 1
cmp r14, rax
je 0x1401a7f6a
mov rdi, r9
mov rbx, rcx
movdqu xmm0, xmmword [r14]
pcmpeqb xmm0, xmmword [rsp + 0x20]
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x1401a7f83
add r14, 0x70
cmp r14, rax
jne 0x1401a7f4a
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14012f6f0
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp r14, rax
je 0x1401a7f6a
mov eax, dword [r14 + 0x68]
cmp eax, r8d
je 0x1401a7fa0
xor ecx, ecx
cmp eax, 1
sete cl
lea esi, [rcx + rcx*2]
inc esi
jmp 0x1401a7f6a
cmp byte [r14 + 0x27], 0
js 0x1401a7fad
lea rcx, [r14 + 0x10]
jmp 0x1401a7fb1
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401a7f6a
shr eax, 3
and eax, 2
mov esi, eax
jne 0x1401a7f6a
mov byte [rbx + 0x48], 1
mov qword [rdi], r14
xor esi, esi
jmp 0x1401a7f6a

Function at 0x1401aa300
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x1402339f8]
test rax, rax
jne 0x1401aa344
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x1402339f8]
test rax, rax
je 0x1401aa331
cmp eax, 2
jne 0x1401aa38d
cmp dword [0x140231b60], 2
jg 0x1401aa424
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x8f
mov r9d, 2
call fcn.140006710
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
jmp 0x1401aa417
mov eax, 1
lock xadd qword [0x140233a30], rax
inc rax
cmp rax, 2
jl 0x1401aa3b1
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1402339b8], eax
mov qword [0x1402339b0], rsi
mov rcx, qword [0x1402286a0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x140231b60], 2
jg 0x1401aa424
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xbb
mov r9d, 2
call fcn.140006710
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
call fcn.140167a60
mov rcx, rsi
call fcn.140006910
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xffff7001
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14012f6f0
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret
Function at 0x1401b2b70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
xor edx, edx
xor r8d, r8d
call fcn.14005fd60
test rax, rax
jne 0x1401b2bae
mov rcx, rdi
call fcn.140044340
test al, al
je 0x1401b2bae
mov r8d, 0x28
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140042900
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp byte [rcx + 0x17], 0
jns 0x1401b484a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401b4869
mov edi, eax
bt eax, 0xa
jae 0x1401b4861
test bl, bl
je 0x1401b4877
and edi, 0x10
shr edi, 4
jmp 0x1401b4879
mov ecx, 2
call fcn.1400ba0d0
test al, al
jne 0x1401b4896
xor edi, edi
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.14012f6f0
mov eax, edi
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x80
mov r9d, 2
call fcn.140192850
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140167a60
mov rcx, rax
mov rdx, rsi
call fcn.140193560
mov rcx, rdi
call fcn.1401928d0
jmp 0x1401b4877

Function at 0x1401b48f0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp byte [rcx + 0x17], 0
jns 0x1401b491b
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1401b494f
test bl, bl
je 0x1401b493f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1401b49c1
mov ecx, 2
call fcn.1400ba0d0
test al, al
jne 0x1401b496c
xor edi, edi
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.14012f6f0
mov eax, edi
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x61
mov r9d, 2
call fcn.140192850
lea rcx, [rsp + 0x38]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.140167a60
mov rcx, rax
mov rdx, rsi
call fcn.140193560
mov rcx, rdi
call fcn.1401928d0
jmp 0x1401b494d
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.1401b4820
test al, al
jne 0x1401b494f
mov ecx, 2
call fcn.1400ba0d0
test al, al
je 0x1401b494d
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x5c
mov r9d, 2
call fcn.140006710
lea rcx, [rsp + 0x38]
mov rdx, rsi
call fcn.140193560
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.140167a60
mov rcx, rdi
call fcn.140006910
jmp 0x1401b494d