joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180176a30
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 esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1801e8860
mov qword [rsp + 0x20], rdi
xor ebp, ebp
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9d, 3
call fcn.180176cc0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x1803467d0]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.1801ce460
movzx eax, byte [rbx + 0x17]
test al, al
js 0x180176ac6
and eax, 0x7f
jmp 0x180176acb
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x180176b0d
lea rcx, [rsp + 0x30]
call fcn.18010ad40
lea rcx, [rsp + 0x298]
call fcn.180176e10
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1801e6610
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1801e8860
mov rcx, r15
mov rdx, r14
call fcn.180176e80
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x180176b7a
test sil, 1
jne 0x180176b62
mov rcx, r14
call fcn.1801e3d50
test al, al
jne 0x180176c1d
mov edx, dword [rsp + 0x48]
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x180176b71
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, r14
call fcn.1801e3d50
test al, al
jne 0x180176bc0
test sil, 2
jne 0x180176c31
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x180176b9f
mov rcx, qword [rsp + 0x30]
call r13
xor ebp, ebp
test eax, eax
jne 0x180176bcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
jmp 0x180176bcc
xor ebp, ebp
test sil, 1
jne 0x180176c5b
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.180141e80
mov rcx, r15
mov rdx, r14
call fcn.1801ce460
mov rcx, rbx
mov rdx, r14
call fcn.18010ae40
mov rcx, r14
call fcn.18010ad40
movzx eax, byte [rsp + 0x47]
test al, al
js 0x180176c07
and eax, 0x7f
jmp 0x180176c0c
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
je 0x180176ad0
jmp 0x180176b24
mov rcx, r14
call fcn.1801e3d50
xor ebp, ebp
test al, al
je 0x180176b86
jmp 0x180176bcc
call fcn.1800fd130
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
mov rcx, rbx
call fcn.1802ccfc0
xor ebp, ebp
test al, al
je 0x180176ba8
jmp 0x180176bcc
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
call fcn.180176a30
mov ebp, eax
test eax, eax
jne 0x180176bcc
cmp byte [rsp + 0x47], 0
js 0x180176c81
lea rcx, [rsp + 0x30]
jmp 0x180176c86
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x180176bcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x180176bcc
Function at 0x1801839d0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x68]
mov rcx, rdi
call fcn.1801021e0
cmp byte [rdi + 0x17], 0
jns 0x180183a17
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x7f], 0
jns 0x180183a38
mov rcx, qword [rsp + 0x68]
call fcn.1801e4f44
test rsi, rsi
je 0x180183adf
test edi, edi
je 0x180183adf
mov ecx, edi
add rcx, rcx
call fcn.1801e4f7c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x68]
mov rcx, r14
call fcn.1801021e0
cmp byte [r14 + 0x17], 0
jns 0x180183a7b
mov r14, qword [rsp + 0x68]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x7f], 0
jns 0x180183a9b
mov rcx, qword [rsp + 0x68]
call fcn.1801e4f44
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x180183b0d
mov rcx, rbx
call fcn.180206ad4
lea rdx, [rsp + 0x30]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x68]
call fcn.180102640
cmp byte [rsi + 0x17], 0
js 0x180183b03
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.1801e4f84
test edi, edi
setne bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1801e6610
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.1801e4f44
jmp 0x180183ac6
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.18027be54
int3
Function at 0x180183e90
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x58], 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.180194860
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x180183f95
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x180183fb5
lea rdx, [0x18035de5a]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180183fb1
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1803f5008]
mov rbx, rax
movsxd r9, dword [rsp + 0x3c]
lea r8, [rbx + r9*8]
xorps xmm6, xmm6
lea r14, [rsp + 0x20]
movaps xmmword [r14], xmm6
mov qword [r14 + 0x10], 0
mov rcx, r14
mov rdx, rbx
call fcn.180185c60
mov rcx, rsi
mov rdx, r14
call fcn.180183d30
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x180183f88
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x50]
mov qword [rcx], r14
call fcn.1800d36ac
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801e6610
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ebx, ebx
jmp 0x180183f3b
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x180183f38

Function at 0x18018b623
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 [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp byte [rcx + 0x17], 0
jns 0x18018b64d
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18018b6dc
mov ecx, 2
call fcn.180109be0
test al, al
je 0x18018b6bd
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.1801815d0
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1800d33a5
mov rcx, rax
mov rdx, rsi
call fcn.180182c20
mov rcx, rdi
call fcn.180181650
xor edi, edi
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1801e6610
mov eax, edi
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret
mov edi, eax
bt eax, 0xa
jae 0x18018b6e8
test bl, bl
je 0x18018b6bd
and edi, 0x10
shr edi, 4
jmp 0x18018b6bf
Function at 0x18018b6f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp byte [rcx + 0x17], 0
jns 0x18018b717
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18018b747
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1801e6610
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.180109be0
test al, al
je 0x18018b7a8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x73
mov r9d, 2
call fcn.1801815d0
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1800d33a5
mov rcx, rax
mov rdx, rsi
call fcn.180182c20
mov rcx, rdi
call fcn.180181650
xor esi, esi
jmp 0x18018b72b

Function at 0x18018be60
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.18018bd64
test rax, rax
jne 0x18018be9f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x18018bebb
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1801e6610
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.180109be0
test al, al
je 0x18018bf11
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, 0x103
mov r9d, 2
call fcn.1801815d0
lea rcx, [rsp + 0x40]
lea rdx, [0x18035e8e0]
mov r8d, 0xc
call fcn.1800d33a5
mov rcx, rsi
call fcn.180181650
xor esi, esi
jmp 0x18018be9f

Function at 0x18018c5a0
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x1801cece9
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1803b6038]
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 0x1801ced49
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1801ced52
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1801e6610
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1801ced32
int3
Function at 0x180191280
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
je 0x1801912af
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
jne 0x1801912b6
mov rbx, qword [rsi + 8]
cmp rdi, rbx
ja 0x1801912d7
jb 0x1801912e9
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov edi, 2
jmp 0x18019129c
mov rcx, rdi
call fcn.1800f5d5b
mov rdi, rax
jmp 0x18019129c
mov rcx, rdx
call fcn.1800f5d5b
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jae 0x1801912a7
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x180290530
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x180191309
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x18019130e
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.180203dd8
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1803507c0]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x1801912c3
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x1801912c3
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1801912cb
Function at 0x180196520
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp r9, 0x30
ja 0x1801965d4
mov rsi, rcx
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
test r9, r9
jne 0x1801965d8
xor eax, eax
lea rcx, [0x18039a970]
mov dl, byte [rax + rcx]
xor byte [rsp + rax + 0x30], dl
inc rax
cmp rax, 0x30
jne 0x18019656a
lea r8, [rsi + 0xf8]
mov qword [rsp + 0x20], 0x20
lea rdi, [rsp + 0x30]
mov rcx, rsi
xor edx, edx
mov r9, rdi
call fcn.180196210
mov qword [rsi + 0x100], rax
movaps xmm0, xmmword [rdi + 0x20]
movups xmmword [rsi + 0x108], xmm0
mov qword [rsi + 0x118], 1
mov esi, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1801e6610
mov eax, esi
add rsp, 0x68
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1801965be
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x30], cl
inc rax
cmp r9, rax
je 0x180196561
jmp 0x1801965da

Function at 0x1801965f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp r8, 0x30
ja 0x180196728
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1803467d0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r13, [rsp + 0x40]
lea rbx, [rcx + 0x108]
lea r12, [rcx + 0xf8]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov r8, rsi
call qword [0x1803f5008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r13
mov r8, rsi
call qword [0x1803f5008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x1803f5008]
test r14, r14
je 0x1801966dc
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x30], cl
inc rax
cmp r14, rax
jne 0x1801966cc
mov qword [rsp + 0x20], 0x20
lea r9, [rsp + 0x30]
mov rcx, rsi
xor edx, edx
mov r8, r12
call fcn.180196210
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1801e6610
mov eax, esi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x180196709
Function at 0x1801996b0
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 [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x180199711
test r12, r12
je 0x180199828
mov rax, qword [rdi]
mov qword [r12], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801e6610
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 0x180199776
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 0x18019975f
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1801e81b0
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 0x1801996de
mov rax, r12
sub rax, r14
sar rax, 2
cmp r12, r14
mov r15d, 1
cmovne r15, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x50], rax
mov rax, r15
shr rax, 0x3d
jne 0x180199854
lea rcx, [r15*8]
call fcn.1801e4f08
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 0x1801997f3
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x180199828
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x1801997db
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.18017e330
mov r12, qword [rsi + 0x10]
jmp 0x1801996de
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.18027be54
call fcn.180267d05
int3

Function at 0x180199ad0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x28
call fcn.18010d5a0
lea rdx, str.enable_low_end_device_mode
mov rcx, rax
call fcn.18010d5b0
test al, al
jne 0x180199afe
cmp byte [0x1803d6180], 0
jne 0x180199b11
add rsp, 0x28
jmp fcn.1801cf040
call fcn.1801cf040
mov ecx, 0x20000000
cmp rax, rcx
cmovae rax, rcx
jmp 0x180199b1c
mov rax, qword [0x1803d6178]
shl rax, 0x14
add rsp, 0x28
ret

Function at 0x18019a710
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1803c7ba4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x18019a74e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x18019a747
call fcn.180251a90
jmp 0x18019a72e
Function at 0x18019bec0
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
je 0x18019bf02
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x18019bee7
mov rcx, rdi
call fcn.1800f5d5b
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x18019bf09
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x18019c010
mov edi, 2
jmp 0x18019bee7
jae 0x18019bfff
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x18019bf2f
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x18019bf34
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.180203dd8
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1803507c0]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x18019bfe7
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x18019bfe7
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x18019bfef
mov rcx, rdx
call fcn.1800f5d5b
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x18019bef0
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1801a086f
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1801a0897
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1801a08d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1801a08f2
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1801e6610
mov rcx, rsi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
jmp fcn.1801a09c2
mov sil, 1
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1801e6610
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.180109be0
test al, al
je 0x1801a09bb
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x276
mov r9d, 2
call fcn.1801815d0
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1800d33a5
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1801a0954
and r8d, 0x7f
jmp 0x1801a095b
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1800d2a50
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.180102640
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1801a098b
and r8d, 0x7f
jmp 0x1801a0995
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1800d33a5
cmp byte [rsp + 0x57], 0
jns 0x1801a09b1
mov rcx, qword [rsp + 0x40]
call fcn.1801e4f44
lea rcx, [rsp + 0x58]
call fcn.180181650
xor esi, esi
jmp 0x1801a08d5

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

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp byte [rcx + 0x17], 0
jns 0x1801a09e9
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1801a0a1b
mov dil, 1
test al, 0x10
je 0x1801a0a83
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1801e6610
mov eax, edi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.180109be0
test al, al
je 0x1801a0a7c
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x262
mov r9d, 2
call fcn.1801815d0
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1800d33a5
mov rcx, rax
mov rdx, rsi
call fcn.180182c20
mov rcx, rdi
call fcn.180181650
xor edi, edi
jmp 0x1801a09ff
mov ecx, 2
call fcn.180109be0
test al, al
je 0x1801a0a7c
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x266
mov r9d, 2
call fcn.180180f60
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1800d33a5
mov rcx, rax
mov rdx, rsi
call fcn.180182c20
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1800d33a5
mov rcx, rdi
call fcn.1801e3530
jmp 0x1801a0a7c
Function at 0x1801a166e
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, qword [rcx + 0x50]
mov r15, qword [rcx + 0x58]
cmp rbx, r15
jne 0x1801a1696
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rsi, r8
mov edi, edx
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], edi
je 0x1801a16b2
add rbx, 0x70
cmp rbx, r15
je 0x1801a1688
jmp 0x1801a16a2
cmp byte [rbx + 0x27], 0
js 0x1801a16be
lea rcx, [rbx + 0x10]
jmp 0x1801a16c2
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
jne 0x1801a16a7
mov r14, qword [rsi + 8]
cmp r14, qword [rsi + 0x10]
jb 0x1801a16e3
mov rcx, rsi
mov rdx, rbx
call fcn.180304082
mov r14, rax
jmp 0x1801a16f2
mov rcx, rsi
mov rdx, rbx
call fcn.18030402c
add r14, 0x68
mov qword [rsi + 8], r14
jmp 0x1801a16a7

Function at 0x1801a1ea0
Capabilities:
Create pipe

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x58], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1803467d0]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
jne 0x1801a1f34
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x1801a1ee8
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801e6610
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
mov cx, 6
xor edx, edx
xor r8d, r8d
call fcn.1801cdbbe
mov edi, 0x80003
test al, al
je 0x1801a1edf
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.180254b45
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x1801a1edf