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

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140088190
mov eax, dword [rsi]
mov dword [0x14039f864], eax
test al, 1
jne 0x1400880f1
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1403b11b0]
test rcx, rcx
jne 0x14008810b
mov rcx, qword [0x1403b1188]
test rcx, rcx
je 0x14008812f
jmp 0x140088151
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1403b11b0], 0
mov rcx, qword [0x1403b1188]
test rcx, rcx
jne 0x140088151
and byte [0x14039f864], 0xfe
mov ecx, 0x18
call fcn.1401a1068
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.140088ec0
cmp dword [rsi + 0x14], 0
jne 0x140088176
mov rcx, qword [0x1403b1188]
cmp byte [rcx + 0x17], 0
jns 0x140088170
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.140215730
Function at 0x14008ba70
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 0x14008ba9f
call fcn.140151db0
cmp qword [rsi], r14
je 0x14008bace
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14008bb0a
cmp r15, 2
jb 0x14008bac6
mov qword [rsi], r14
call fcn.140151db0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
call fcn.140152600
lea rcx, [rsi + 0x20]
call fcn.140164450
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 0x14008bb20
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140151db0
mov rcx, qword [rsi]
call fcn.14013ea60
mov qword [rsi], 0
jmp 0x14008bab8
call fcn.140151db0
mov rcx, qword [rdi]
call fcn.14013ea60
mov qword [rdi], 0
jmp 0x14008bafa

Function at 0x14008c1b0
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 0x14008c263
mov ecx, 0x50
call fcn.1401a1068
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1401a1068
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14008c288
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 0x14008c285
mov rcx, rax
call fcn.1401ca774
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14008c2c0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401a2850
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.1401e44d0
int3
Function at 0x14008c2c0
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.140075e70
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14008c42c
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 0x14008c481
lea rdx, [0x140338588]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14008c46f
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 0x14008c477
shl r12, 3
movabs rax, 0x5555555555555551
cmp r12, rax
jae 0x14008c4c0
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1401a1068
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 0x14008c494
mov rdx, qword [r14 + r13]
mov rcx, r15
call fcn.1401e2280
add r15, 0x18
add r13, 8
cmp r12, r13
jne 0x14008c3cc
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14008bdc0
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14008c41a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14008c42c
cmp r15, rbx
jne 0x14008c462
mov rcx, rbx
call fcn.1401a10a4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401a2850
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.1401a10a4
mov r15, rsi
cmp rsi, rbx
je 0x14008c424
lea rsi, [r15 - 0x18]
cmp byte [r15 - 1], 0
jns 0x14008c45a
jmp 0x14008c451
xor r14d, r14d
jmp 0x14008c374
xor r15d, r15d
xor ebx, ebx
jmp 0x14008c3f3
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14008c371
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.1401e44d0
lea rcx, [rsp + 0x30]
call fcn.1401e2400
int3
Function at 0x140095700
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 0x14009594a
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14039f940], rax
jne 0x14009594d
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 0x1400958cf
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400958dc
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400958c8
lea rdx, [rsi + 0x48]
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x140095950
mov edx, ecx
and edx, 0x1fc000
je 0x140095950
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.140158f40
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.1401a2850
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140095829
mov rcx, rbx
call fcn.140159b30
jmp 0x1400957d9
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.14016e010
test rax, rax
je 0x140095943
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 0x140095843
xor edi, edi
jmp 0x14009586d
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.140215670
mov rcx, rsi
call fcn.140038260
mov rcx, r14
call fcn.1402199c0
int3
Function at 0x140096d10
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.1401a49a0
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 0x140096e17
movzx eax, byte [rsi + 0x17]
test al, al
js 0x140096dd4
cmp edx, 0xb
jb 0x140096d90
cmp rax, rdx
cmova rdx, rax
or rdx, 7
mov rcx, rsi
call fcn.14005c470
mov edx, 1
mov rcx, rsi
mov r8w, 0x2e
call fcn.14005cbc0
mov r8d, dword [rsp + 0x2c]
dec r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14005c6a0
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1401a2850
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 0x140096d90
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 0x140096d88
jmp 0x140096d90
call fcn.1402186e0
jmp 0x140096db7
Function at 0x14009d040
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 0x14009d083
cmp r8d, 0x922
je 0x14009d09e
cmp r8d, 0xdf0
jne 0x14009d0c3
lea rdi, [0x140339eb0]
jmp 0x14009d0ae
cmp r8d, 0x692
je 0x14009d0a7
cmp r8d, 0x7da
jne 0x14009d0c3
lea rdi, [0x140339e90]
jmp 0x14009d0ae
lea rdi, [0x140339ea0]
jmp 0x14009d0ae
lea rdi, [0x140339e80]
call fcn.140090570
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 0x14009d102
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.1401a2850
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1402186e0
jmp 0x14009d0df
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
movsxd r15, r8d
call fcn.14021dfc0
add r15, qword [rax + 0x30]
mov rax, r15
shr rax, 0x20
jne 0x14009d209
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 0x14009d0fb
mov r14, rax
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14009d0fb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14009d0fb
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 0x14009d1b6
test eax, eax
je 0x14009d1b6
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 0x14009d1b6
cmp rdi, rax
jb 0x14009d19a
test cl, cl
je 0x14009d0fb
movzx r8d, word [rdi]
test r8, r8
je 0x14009d0fb
test rdi, rdi
je 0x14009d0fb
add rdi, 2
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140049b30
cmp byte [rsi + 0x17], 0
jns 0x14009d1f3
mov rcx, qword [rsi]
call fcn.1401a10a4
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
jmp 0x14009d0df
int3
Function at 0x1400a3900
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x1400a391a
test r8d, r8d
jne 0x1400a3913
call fcn.1400edef0
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.1400a30c0
Function at 0x1400b7f30
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 0x1400b80a8
lea rbx, [rsp + 0x40]
mov r8d, 0x110
mov rcx, rbx
xor edx, edx
call fcn.1401a49a0
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 0x1400b80a8
lea rbx, [rsp + 0x40]
mov r8d, 0x110
mov rcx, rbx
xor edx, edx
call fcn.1401a49a0
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 0x1400b80a8
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.1401a2850
mov rax, rsi
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400b9850
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.1400e5f60
cmp byte [rbx + 0x17], 0
jns 0x1400b98c8
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 0x1400b990e
mov rcx, qword [rsp + 0x48]
call fcn.1401a10a4
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a2850
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x1400ba4c0
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 0x1400ba4fc
cmp rax, 0x4000
je 0x1400ba51e
lea r8, [rdx + 0x4000]
mov qword [rsi + 0x168], r8
jmp 0x1400ba523
lea rcx, [rsi + 0x160]
mov edx, 0x4000
sub rdx, rax
call fcn.140137ca0
mov rdx, qword [rsi + 0x160]
mov r8, qword [rsi + 0x168]
cmp rdx, r8
je 0x1400ba549
sub r8d, edx
mov rcx, qword [rsi + 0x40]
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400ba53f
xor eax, eax
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp fcn.1400f03c0
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.1401e44d0
int3
Function at 0x1400bb880
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 0x1400bb975
cmp qword [rsi], 0
jne 0x1400bb975
cmp dword [rsi + 0x14], 0
jne 0x1400bb975
cmp qword [rsi + 8], 0
jne 0x1400bb975
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400bb8f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400bb95c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400bb8ec
mov qword [rsi], r14
call fcn.140151db0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400bb92e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400bb944
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400bb926
mov qword [rsi + 8], r14
call fcn.140151db0
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.140151db0
mov rcx, qword [rsi + 8]
call fcn.14013ea60
mov qword [rsi + 8], 0
jmp 0x1400bb913
call fcn.140151db0
mov rcx, qword [rsi]
call fcn.14013ea60
mov qword [rsi], 0
jmp 0x1400bb8da
mov rcx, rsi
call fcn.140255c80
mov rax, qword [rsi]
jmp 0x1400bb8ba
Function at 0x1400bfef0
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 0x1400bffbc
mov rdx, qword [rsp + 0x60]
lea rdi, [rsp + 0x20]
mov rcx, rdi
call fcn.1401e2280
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.140152730
mov rcx, rsi
mov rdx, rbx
call fcn.140152970
mov rcx, rbx
call fcn.1401528f0
cmp byte [rdi + 0x17], 0
jns 0x1400bff93
mov rcx, qword [rsp + 0x20]
call fcn.1401a10a4
mov bl, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400bffa5
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401a2850
mov eax, ebx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call fcn.140257d90
mov ebx, eax
jmp 0x1400bff95

Function at 0x1400c0080
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 0x1400c00a7
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400c00e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400c0100
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401a2850
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.1400c01d0
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401a2850
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140151cb0
test al, al
jne 0x1400c0112
xor esi, esi
jmp 0x1400c00e4
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.140215ce0
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1401e2460
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.140149030
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400c0192
and r8d, 0x7f
jmp 0x1400c019c
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1401e2460
cmp byte [rsp + 0x4f], 0
jns 0x1400c01b8
mov rcx, qword [rsp + 0x38]
call fcn.1401a10a4
lea rcx, [rsp + 0x50]
call fcn.140215d60
jmp 0x1400c010e
Function at 0x1400c01d0
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 0x1400c01f7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400c0225
mov dil, 1
test al, 0x10
je 0x1400c023b
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1401a2850
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140151cb0
test al, al
jne 0x1400c030a
xor edi, edi
jmp 0x1400c0209
mov ecx, 2
call fcn.140151cb0
test al, al
je 0x1400c0237
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x255
mov r9d, 2
call fcn.1400882f0
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401e2460
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.140149030
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400c02c0
and r8d, 0x7f
jmp 0x1400c02ca
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1401e2460
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1401e2460
cmp byte [rsp + 0x5f], 0
jns 0x1400c02fb
mov rcx, qword [rsp + 0x48]
call fcn.1401a10a4
lea rcx, [rsp + 0x60]
call fcn.1400887d0
jmp 0x1400c0237
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.140215ce0
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401e2460
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.140149030
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400c038a
and r8d, 0x7f
jmp 0x1400c0394
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1401e2460
cmp byte [rsp + 0x5f], 0
jns 0x1400c03b0
mov rcx, qword [rsp + 0x48]
call fcn.1401a10a4
lea rcx, [rsp + 0x60]
call fcn.140215d60
jmp 0x1400c0237