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

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140087dc0
mov eax, dword [rsi]
mov dword [0x14039f864], eax
test al, 1
jne 0x140087d21
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1403b11b0]
test rcx, rcx
jne 0x140087d3b
mov rcx, qword [0x1403b1188]
test rcx, rcx
je 0x140087d5f
jmp 0x140087d81
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1403b11b0], 0
mov rcx, qword [0x1403b1188]
test rcx, rcx
jne 0x140087d81
and byte [0x14039f864], 0xfe
mov ecx, 0x18
call fcn.1401a0f68
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1403b1188], rax
mov rdx, qword [rsi + 8]
call fcn.140088af0
cmp dword [rsi + 0x14], 0
jne 0x140087da6
mov rcx, qword [0x1403b1188]
cmp byte [rcx + 0x17], 0
jns 0x140087da0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1402157a0
Function at 0x14008b6a0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebx, r8d
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 0x14008b6cf
call fcn.140151950
cmp qword [rsi], r14
je 0x14008b6fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14008b73a
cmp r15, 2
jb 0x14008b6f6
mov qword [rsi], r14
call fcn.140151950
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
call fcn.1401521a0
lea rcx, [rsi + 0x20]
call fcn.140164440
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x28], 0
mov byte [rsi + 0x29], bl
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14008b750
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140151950
mov rcx, qword [rsi]
call fcn.14013e480
mov qword [rsi], 0
jmp 0x14008b6e8
call fcn.140151950
mov rcx, qword [rdi]
call fcn.14013e480
mov qword [rdi], 0
jmp 0x14008b72a

Function at 0x14008bde0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1403b1268]
test rdi, rdi
jne 0x14008be93
mov ecx, 0x50
call fcn.1401a0f68
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1401a0f68
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14008beb8
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x1403b1268], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14008beb5
mov rcx, rax
call fcn.1401ca674
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14008bef0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401a2750
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
int3
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1401e43d0
int3
Function at 0x14008bef0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.140075d80
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14008c05c
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x140338538]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14008c0b1
lea rdx, [0x140338588]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14008c09f
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x1403d6008]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x14008c0a7
shl r12, 3
movabs rax, 0x5555555555555551
cmp r12, rax
jae 0x14008c0f0
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1401a0f68
mov rbx, rax
mov qword [rsp + 0x30], rax
add rax, r15
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r15, rbx
test r15, r15
je 0x14008c0c4
mov rdx, qword [r14 + r13]
mov rcx, r15
call fcn.1401e2180
add r15, 0x18
add r13, 8
cmp r12, r13
jne 0x14008bffc
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14008b9f0
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14008c04a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14008c05c
cmp r15, rbx
jne 0x14008c092
mov rcx, rbx
call fcn.1401a0fa4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401a2750
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r15 - 0x18]
call fcn.1401a0fa4
mov r15, rsi
cmp rsi, rbx
je 0x14008c054
lea rsi, [r15 - 0x18]
cmp byte [r15 - 1], 0
jns 0x14008c08a
jmp 0x14008c081
xor r14d, r14d
jmp 0x14008bfa4
xor r15d, r15d
xor ebx, ebx
jmp 0x14008c023
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14008bfa1
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1401e43d0
lea rcx, [rsp + 0x30]
call fcn.1401e2300
int3
Function at 0x140095380
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400955ca
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14039f940], rax
jne 0x1400955cd
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x140338060]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x1403380b0]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x140338d50]
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14009554f
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x14009555c
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140095548
lea rdx, [rsi + 0x48]
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x1400955d0
mov edx, ecx
and edx, 0x1fc000
je 0x1400955d0
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.140158af0
mov ecx, dword [0x1403b12e4]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1403adeec]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x158], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401a2750
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x1400954a9
mov rcx, rbx
call fcn.1401596e0
jmp 0x140095459
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.14016df60
test rax, rax
je 0x1400955c3
mov rdi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x1400954c3
xor edi, edi
jmp 0x1400954ed
int3
int3
movaps xmm0, xmmword [0x14032ae20]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1402156e0
mov rcx, rsi
call fcn.140038260
mov rcx, r14
call fcn.140219970
int3
Function at 0x140096990
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rdi, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rdi
mov dl, 0xaa
call fcn.1401a48a0
lea rbx, [rsp + 0x2c]
mov dword [rbx], 0x100
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
setne al
mov edx, dword [rbx]
test rdx, rdx
setne bl
and bl, al
je 0x140096a97
movzx eax, byte [rsi + 0x17]
test al, al
js 0x140096a54
cmp edx, 0xb
jb 0x140096a10
cmp rax, rdx
cmova rdx, rax
or rdx, 7
mov rcx, rsi
call fcn.14005c3b0
mov edx, 1
mov rcx, rsi
mov r8w, 0x2e
call fcn.14005cb00
mov r8d, dword [rsp + 0x2c]
dec r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14005c5e0
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1401a2750
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0x7fffffffffffffff
and rax, qword [rsi + 0x10]
dec rax
cmp rax, rdx
jae 0x140096a10
mov rcx, qword [rsi + 8]
cmp rcx, rdx
cmova rdx, rcx
mov rcx, rdx
or rcx, 7
cmp rdx, 0xb
mov edx, 0xa
cmovae rdx, rcx
cmp rdx, rax
jne 0x140096a08
jmp 0x140096a10
call fcn.140218750
jmp 0x140096a37
Function at 0x14009ccc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8d, edx
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp edx, 0x921
jle 0x14009cd03
cmp r8d, 0x922
je 0x14009cd1e
cmp r8d, 0xdf0
jne 0x14009cd43
lea rdi, [0x140339eb0]
jmp 0x14009cd2e
cmp r8d, 0x692
je 0x14009cd27
cmp r8d, 0x7da
jne 0x14009cd43
lea rdi, [0x140339e90]
jmp 0x14009cd2e
lea rdi, [0x140339ea0]
jmp 0x14009cd2e
lea rdi, [0x140339e80]
call fcn.140090130
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x10]
movsxd rax, dword [rax + 8]
mov r8d, dword [rdi + rax*4]
mov rcx, qword [0x1403b1490]
test rcx, rcx
je 0x14009cd82
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov rdx, rsi
call qword [0x1403d6008]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401a2750
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140218750
jmp 0x14009cd5f
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
movsxd r15, r8d
call fcn.14021df70
add r15, qword [rax + 0x30]
mov rax, r15
shr rax, 0x20
jne 0x14009ce89
mov rbx, qword [0x1403adf38]
mov eax, r15d
shr eax, 4
inc eax
movzx edx, ax
mov r8d, 6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14009cd7b
mov r14, rax
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14009cd7b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14009cd7b
mov rdi, rax
mov rcx, rbx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setne cl
and r15d, 0xf
je 0x14009ce36
test eax, eax
je 0x14009ce36
mov ecx, eax
mov rax, rdi
add rax, rcx
dec r15d
movzx ecx, word [rdi]
lea rdi, [rdi + rcx*2]
add rdi, 2
cmp rdi, rax
setb cl
add r15d, 0xffffffff
jae 0x14009ce36
cmp rdi, rax
jb 0x14009ce1a
test cl, cl
je 0x14009cd7b
movzx r8d, word [rdi]
test r8, r8
je 0x14009cd7b
test rdi, rdi
je 0x14009cd7b
add rdi, 2
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140049a80
cmp byte [rsi + 0x17], 0
jns 0x14009ce73
mov rcx, qword [rsi]
call fcn.1401a0fa4
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
jmp 0x14009cd5f
int3
Function at 0x1400a3580
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x1400a359a
test r8d, r8d
jne 0x1400a3593
call fcn.1400ed810
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.1400a2d40
Function at 0x1400b7bb0
Capabilities:
Initialize winhttp library

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x158
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x150], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rcx + 0x10], rax
mov dword [rsp + 0x20], 0x10000000
mov rcx, rdx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
lea rax, [0x140326378]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov byte [rsi + 0x10], 0
test rdi, rdi
je 0x1400b7d28
lea rbx, [rsp + 0x40]
mov r8d, 0x110
mov rcx, rbx
xor edx, edx
call fcn.1401a48a0
mov dword [rbx - 0xc], 0x11c
mov r14, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
movabs rcx, 0x100000006
mov qword [rbx - 8], rcx
mov word [rbx + 0x108], 0
lea rcx, [rsp + 0x34]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1400b7d28
lea rbx, [rsp + 0x40]
mov r8d, 0x110
mov rcx, rbx
xor edx, edx
call fcn.1401a48a0
mov dword [rbx - 0xc], 0x11c
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
movabs rcx, 0x300000006
mov qword [rbx - 8], rcx
mov word [rbx + 0x108], 0
lea rcx, [rsp + 0x34]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x1400b7d28
lea r8, [rsp + 0x34]
mov dword [r8], 0xa80
mov rcx, rdi
mov edx, 0x54
mov r9d, 4
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401a2750
mov rax, rsi
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400b94d0
Capabilities:
Prepare http request

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx ebp, byte [rcx + 0xd0]
shl ebp, 0x17
or ebp, 0x100
lea rax, [rcx + 0xf8]
movzx ecx, byte [rcx + 0x10f]
mov r8d, ecx
and r8d, 0x7f
test cl, cl
cmovs rax, qword [rdi + 0xf8]
mov rsi, rdx
lea rdx, [rsp + 0x38]
mov qword [rdx], rax
cmovs r8, qword [rdi + 0x100]
mov qword [rdx + 8], r8
lea rbx, [rsp + 0x48]
mov rcx, rbx
call fcn.1400e5890
cmp byte [rbx + 0x17], 0
jns 0x1400b9548
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x110]
mov dword [rsp + 0x30], ebp
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov r8, rbx
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea rcx, [0x140326378]
mov qword [rsi], rcx
mov qword [rsi + 8], rax
mov byte [rsi + 0x10], 0
cmp byte [rsp + 0x5f], 0
jns 0x1400b958e
mov rcx, qword [rsp + 0x48]
call fcn.1401a0fa4
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a2750
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x1400ba140
Capabilities:
Receive http response

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov rdx, qword [rcx + 0x160]
mov r8, qword [rcx + 0x168]
mov rax, r8
sub rax, rdx
cmp rax, 0x3fff
jbe 0x1400ba17c
cmp rax, 0x4000
je 0x1400ba19e
lea r8, [rdx + 0x4000]
mov qword [rsi + 0x168], r8
jmp 0x1400ba1a3
lea rcx, [rsi + 0x160]
mov edx, 0x4000
sub rdx, rax
call fcn.1401376c0
mov rdx, qword [rsi + 0x160]
mov r8, qword [rsi + 0x168]
cmp rdx, r8
je 0x1400ba1c9
sub r8d, edx
mov rcx, qword [rsi + 0x40]
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400ba1bf
xor eax, eax
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp fcn.1400efce0
lea rax, str.front___called_on_an_empty_vector
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_vector
lea r9, str._empty__
mov r8d, 0x236
call fcn.1401e43d0
int3
Function at 0x1400bb500
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x1400bb5f5
cmp qword [rsi], 0
jne 0x1400bb5f5
cmp dword [rsi + 0x14], 0
jne 0x1400bb5f5
cmp qword [rsi + 8], 0
jne 0x1400bb5f5
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400bb574
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400bb5dc
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400bb56c
mov qword [rsi], r14
call fcn.140151950
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400bb5ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400bb5c4
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400bb5a6
mov qword [rsi + 8], r14
call fcn.140151950
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140151950
mov rcx, qword [rsi + 8]
call fcn.14013e480
mov qword [rsi + 8], 0
jmp 0x1400bb593
call fcn.140151950
mov rcx, qword [rsi]
call fcn.14013e480
mov qword [rsi], 0
jmp 0x1400bb55a
mov rcx, rsi
call fcn.140255c30
mov rax, qword [rsi]
jmp 0x1400bb53a
Function at 0x1400bfb70
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x60]
mov qword [r9], 0
lea rcx, [0x1402f8148]
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400bfc3c
mov rdx, qword [rsp + 0x60]
lea rdi, [rsp + 0x20]
mov rcx, rdi
call fcn.1401e2180
movzx eax, byte [rdi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rdi]
cmovns rax, rdi
lea rdx, [rsp + 0x38]
mov qword [rdx], rax
cmovs rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
lea rbx, [rsp + 0x48]
mov rcx, rbx
call fcn.1401522d0
mov rcx, rsi
mov rdx, rbx
call fcn.140152510
mov rcx, rbx
call fcn.140152490
cmp byte [rdi + 0x17], 0
jns 0x1400bfc13
mov rcx, qword [rsp + 0x20]
call fcn.1401a0fa4
mov bl, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400bfc25
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401a2750
mov eax, ebx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call fcn.140257d40
mov ebx, eax
jmp 0x1400bfc15

Function at 0x1400bfd00
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400bfd27
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400bfd61
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400bfd80
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401a2750
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.1400bfe50
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401a2750
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140151850
test al, al
jne 0x1400bfd92
xor esi, esi
jmp 0x1400bfd64
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x266
mov r9d, 2
call fcn.140215d50
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1401e2360
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140148ac0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400bfe12
and r8d, 0x7f
jmp 0x1400bfe1c
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1401e2360
cmp byte [rsp + 0x4f], 0
jns 0x1400bfe38
mov rcx, qword [rsp + 0x38]
call fcn.1401a0fa4
lea rcx, [rsp + 0x50]
call fcn.140215dd0
jmp 0x1400bfd8e
Function at 0x1400bfe50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x1400bfe77
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400bfea5
mov dil, 1
test al, 0x10
je 0x1400bfebb
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1401a2750
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140151850
test al, al
jne 0x1400bff8a
xor edi, edi
jmp 0x1400bfe89
mov ecx, 2
call fcn.140151850
test al, al
je 0x1400bfeb7
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x255
mov r9d, 2
call fcn.140087f20
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401e2360
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.140148ac0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400bff40
and r8d, 0x7f
jmp 0x1400bff4a
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1401e2360
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1401e2360
cmp byte [rsp + 0x5f], 0
jns 0x1400bff7b
mov rcx, qword [rsp + 0x48]
call fcn.1401a0fa4
lea rcx, [rsp + 0x60]
call fcn.140088400
jmp 0x1400bfeb7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x251
mov r9d, 2
call fcn.140215d50
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401e2360
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x38]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.140148ac0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400c000a
and r8d, 0x7f
jmp 0x1400c0014
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1401e2360
cmp byte [rsp + 0x5f], 0
jns 0x1400c0030
mov rcx, qword [rsp + 0x48]
call fcn.1401a0fa4
lea rcx, [rsp + 0x60]
call fcn.140215dd0
jmp 0x1400bfeb7