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

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14007c8b0
mov eax, dword [rsi]
mov dword [0x1403909f4], eax
test al, 1
jne 0x14007c811
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x14039e0a0]
test rcx, rcx
jne 0x14007c82b
mov rcx, qword [0x14039e078]
test rcx, rcx
je 0x14007c84f
jmp 0x14007c871
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14039e0a0], 0
mov rcx, qword [0x14039e078]
test rcx, rcx
jne 0x14007c871
and byte [0x1403909f4], 0xfe
mov ecx, 0x18
call fcn.14019a06c
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x14039e078], rax
mov rdx, qword [rsi + 8]
call fcn.14007d4e0
cmp dword [rsi + 0x14], 0
jne 0x14007c896
mov rcx, qword [0x14039e078]
cmp byte [rcx + 0x17], 0
jns 0x14007c890
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.140215be0
Function at 0x1400808a0
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 0x1400808cf
call fcn.14014d860
cmp qword [rsi], r14
je 0x1400808fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14008093a
cmp r15, 2
jb 0x1400808f6
mov qword [rsi], r14
call fcn.14014d860
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
call fcn.14014e080
lea rcx, [rsi + 0x20]
call fcn.14015c050
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 0x140080950
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14014d860
mov rcx, qword [rsi]
call fcn.140137f20
mov qword [rsi], 0
jmp 0x1400808e8
call fcn.14014d860
mov rcx, qword [rdi]
call fcn.140137f20
mov qword [rdi], 0
jmp 0x14008092a

Function at 0x140081130
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x14039e158]
test rdi, rdi
jne 0x1400811e3
mov ecx, 0x50
call fcn.14019a06c
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.14019a06c
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140081205
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 [0x14039e158], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140081231
mov rcx, rax
call fcn.1401c0c44
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140081260
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14019b960
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
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, 0x25
call fcn.1401dac90
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.1401dac90
int3
Function at 0x140081260
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 [0x140381038]
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.14006b550
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x1400813f4
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x14031d638]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14008142b
lea rdx, [0x14031d688]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140081419
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x1403be008]
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 0x140081421
test r12d, r12d
js 0x140081496
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.14019a06c
mov rbx, rax
mov qword [rsp + 0x30], rax
add r15, rax
mov qword [rsp + 0x40], r15
xor r13d, r13d
xor r15d, r15d
mov rcx, rbx
add rcx, r13
je 0x14008143e
mov rdx, qword [r14 + r15]
call fcn.1401d6a20
add r15, 8
add r13, 0x18
cmp r12, r15
jne 0x140081362
mov r15, rbx
add r15, r13
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140080d20
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400813b6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x1400813f4
cmp r15, rbx
je 0x1400813ec
add r15, 0xffffffffffffffe8
jmp 0x1400813da
mov rcx, qword [r15]
call fcn.14019a0bc
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x1400813ec
test r15, r15
je 0x14008146a
cmp byte [r15 + 0x17], 0
jns 0x1400813ce
jmp 0x1400813c6
mov rcx, rbx
call fcn.14019a0bc
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14019b960
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x140081314
xor r15d, r15d
xor ebx, ebx
jmp 0x14008138f
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140081311
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, 0x25
call fcn.1401dac90
lea rax, str.null_pointer_given_to_destroy_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.__loc___nullptr
mov r8d, 0x41
call fcn.1401dac90
lea rcx, [rsp + 0x30]
call fcn.1401d6ba0
int3
Function at 0x14008be50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x14008be6a
test r8d, r8d
jne 0x14008be63
call fcn.1400d4ca0
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.14008b600

Function at 0x14008cd80
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rcx
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rdi, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rdi
mov dl, 0xaa
call fcn.14019dab0
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 0x14008ce87
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14008ce44
cmp edx, 0xb
jb 0x14008ce00
cmp rax, rdx
cmova rdx, rax
or rdx, 7
mov rcx, rsi
call fcn.1400467c0
mov edx, 1
mov rcx, rsi
mov r8w, 0x2e
call fcn.140050a90
mov r8d, dword [rsp + 0x2c]
dec r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140050570
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.14019b960
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 0x14008ce00
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 0x14008cdf8
jmp 0x14008ce00
call fcn.140218ab0
jmp 0x14008ce27
Function at 0x140093ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp edx, 0x921
jle 0x140093d22
cmp ebx, 0x922
je 0x140093d3b
cmp ebx, 0xdf0
jne 0x140093d5f
lea rdi, [0x140320cb0]
jmp 0x140093d4b
cmp ebx, 0x692
je 0x140093d44
cmp ebx, 0x7da
jne 0x140093d5f
lea rdi, [0x140320c90]
jmp 0x140093d4b
lea rdi, [0x140320ca0]
jmp 0x140093d4b
lea rdi, [0x140320c80]
call fcn.140085d70
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x10]
movsxd rax, dword [rax + 8]
mov ebx, dword [rdi + rax*4]
mov dword [rsp + 0x3c], ebx
mov rcx, qword [0x14039e330]
test rcx, rcx
je 0x140093e19
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov rdx, rsi
mov r8d, ebx
call qword [0x1403be008]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14019b960
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x3c]
call fcn.140123e70
lea rcx, [rsp + 0x30]
call fcn.140123e70
lea rcx, [rsp + 0x2c]
call fcn.140123e70
movaps xmm0, xmmword [0x14030e560]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
cmp byte [rdi + 0x2f], 0
js 0x140093ddf
add rdi, 0x18
jmp 0x140093de3
mov rdi, qword [rdi + 0x18]
lea rbx, [rsp + 0x40]
mov r8d, 0x10
mov rcx, rbx
mov rdx, rdi
call fcn.140145420
mov rcx, rbx
call fcn.140123e70
call fcn.140218ab0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140093d86
call fcn.14021dcd0
mov rdi, rax
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x30], rax
movsxd r12, ebx
mov rcx, r12
sar rcx, 0x3f
add r12, rax
adc rcx, 0
mov eax, ecx
and eax, 1
neg rax
xor rcx, rax
jne 0x140093f32
test rax, rax
js 0x140093f32
mov rax, r12
shr rax, 0x20
jne 0x140093f32
mov dword [rsp + 0x2c], r12d
mov r14, qword [0x140392ed8]
mov eax, r12d
shr eax, 4
inc eax
movzx edx, ax
mov r8d, 6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140093da4
mov r15, rax
mov rcx, r14
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140093da4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140093da4
mov rbx, rax
mov rcx, r14
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setne cl
and r12d, 0xf
je 0x140093f00
test eax, eax
je 0x140093f00
mov ecx, eax
mov rax, rbx
add rax, rcx
dec r12d
movzx ecx, word [rbx]
lea rbx, [rbx + rcx*2]
add rbx, 2
cmp rbx, rax
setb cl
add r12d, 0xffffffff
jae 0x140093f00
cmp rbx, rax
jb 0x140093ee4
test cl, cl
je 0x140093da4
movzx r8d, word [rbx]
test r8, r8
je 0x140093da4
test rbx, rbx
je 0x140093da4
add rbx, 2
mov rcx, rsi
mov rdx, rbx
call fcn.14003e0a0
jmp 0x140093d86
int3
Function at 0x1400ac820
Capabilities:
Initialize winhttp library

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x158
mov rsi, rcx
mov rax, qword [0x140381038]
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, [0x140309a68]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov byte [rsi + 0x10], 0
test rdi, rdi
je 0x1400ac998
lea rbx, [rsp + 0x40]
mov r8d, 0x110
mov rcx, rbx
xor edx, edx
call fcn.14019dab0
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 0x1400ac998
lea rbx, [rsp + 0x40]
mov r8d, 0x110
mov rcx, rbx
xor edx, edx
call fcn.14019dab0
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 0x1400ac998
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.14019b960
mov rax, rsi
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400aebd0
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 0x1400aecc5
cmp qword [rsi], 0
jne 0x1400aecc5
cmp dword [rsi + 0x14], 0
jne 0x1400aecc5
cmp qword [rsi + 8], 0
jne 0x1400aecc5
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400aec44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400aecac
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400aec3c
mov qword [rsi], r14
call fcn.14014d860
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400aec7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400aec94
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400aec76
mov qword [rsi + 8], r14
call fcn.14014d860
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.14014d860
mov rcx, qword [rsi + 8]
call fcn.140137f20
mov qword [rsi + 8], 0
jmp 0x1400aec63
call fcn.14014d860
mov rcx, qword [rsi]
call fcn.140137f20
mov qword [rsi], 0
jmp 0x1400aec2a
mov rcx, rsi
call fcn.1402554c0
mov rax, qword [rsi]
jmp 0x1400aec0a
Function at 0x1400b16c0
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 [0x140381038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword [rcx + 0x10]
cmp r14, qword [rcx + 0x18]
je 0x1400b171c
test r14, r14
je 0x1400b181b
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14019b960
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r15, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r15
jbe 0x1400b1766
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r15, [rax + rcx]
inc r15
shr r15, 1
shl r15, 3
mov rcx, rbx
sub rcx, r15
mov r8, r14
sub r8, rbx
mov rdx, rbx
call fcn.14019d400
sub r14, r15
mov qword [rsi + 0x10], r14
sub qword [rsi + 8], r15
jmp 0x1400b16ec
mov rax, r14
sub rax, r15
sar rax, 2
cmp r14, r15
mov r12d, 1
cmovne r12, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x3d
jne 0x1400b1847
lea rcx, [r12*8]
call fcn.14019a06c
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rdx, [rax + rcx*2]
mov r9, r14
mov r8, rdx
sub r9, rbx
je 0x1400b17e6
mov rcx, r9
sar rcx, 3
and r9, 0xfffffffffffffff8
mov r8, r9
add r8, rdx
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x1400b181b
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x1400b17ce
lea r9, [rax + r12*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], r15
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], r14
call fcn.140256fa0
mov r14, qword [rsi + 0x10]
jmp 0x1400b16ec
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, 0x25
call fcn.1401dac90
call fcn.1401d6b80
int3
Function at 0x1400b35d0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rcx
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea r9, [rsp + 0x70]
mov qword [r9], 0
lea rcx, [0x1402f6148]
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400b36b9
mov rdx, qword [rsp + 0x70]
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.1401d6a20
movzx eax, byte [rdi + 0x17]
test al, al
js 0x1400b3630
and eax, 0x7f
jmp 0x1400b363a
mov rax, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rax
test rax, rax
js 0x1400b36c5
test rdi, rdi
jne 0x1400b3657
test rax, rax
jne 0x1400b36f1
lea rdi, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14014e1b0
mov rcx, rsi
mov rdx, rdi
call fcn.14014e380
mov rcx, rdi
call fcn.14014e300
cmp byte [rsp + 0x47], 0
jns 0x1400b368d
mov rcx, qword [rsp + 0x30]
call fcn.14019a0bc
mov bl, 1
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400b369f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14019b960
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call fcn.140257c20
mov ebx, eax
jmp 0x1400b368f
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
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.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.1401dac90
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
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.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.1401dac90
int3
Function at 0x1400b37d0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400b37f8
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400b3833
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400b3853
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14019b960
mov rcx, rsi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
jmp fcn.1400b3930
mov sil, 1
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14019b960
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14014d760
test al, al
jne 0x1400b3865
xor esi, esi
jmp 0x1400b3836
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, 0x266
mov r9d, 2
call fcn.140216190
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1401d6c00
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400b38b5
and r8d, 0x7f
jmp 0x1400b38bc
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1401249b0
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.140143230
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400b38ec
and r8d, 0x7f
jmp 0x1400b38f6
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1401d6c00
cmp byte [rsp + 0x57], 0
jns 0x1400b3912
mov rcx, qword [rsp + 0x40]
call fcn.14019a0bc
lea rcx, [rsp + 0x58]
call fcn.140216210
jmp 0x1400b3861
Function at 0x1400b3930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rsi, rcx
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x1400b3958
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400b3987
mov dil, 1
test al, 0x10
je 0x1400b399d
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14019b960
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14014d760
test al, al
jne 0x1400b3a73
xor edi, edi
jmp 0x1400b396a
mov ecx, 2
call fcn.14014d760
test al, al
je 0x1400b3999
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x68]
mov r8d, 0x255
mov r9d, 2
call fcn.14007ca10
lea rcx, [rsp + 0x78]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401d6c00
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400b39f2
and r8d, 0x7f
jmp 0x1400b39f9
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1401249b0
lea rsi, [rsp + 0x50]
mov rcx, rsi
mov rdx, rbx
call fcn.140143230
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400b3a29
and r8d, 0x7f
jmp 0x1400b3a33
mov r8, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, rsi
call fcn.1401d6c00
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1401d6c00
cmp byte [rsp + 0x67], 0
jns 0x1400b3a64
mov rcx, qword [rsp + 0x50]
call fcn.14019a0bc
lea rcx, [rsp + 0x68]
call fcn.14007cf40
jmp 0x1400b3999
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x68]
mov r8d, 0x251
mov r9d, 2
call fcn.140216190
lea rcx, [rsp + 0x78]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401d6c00
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400b3ac3
and r8d, 0x7f
jmp 0x1400b3aca
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov rdx, rsi
call fcn.1401249b0
lea rsi, [rsp + 0x50]
mov rcx, rsi
mov rdx, rbx
call fcn.140143230
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400b3afa
and r8d, 0x7f
jmp 0x1400b3b04
mov r8, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, rsi
call fcn.1401d6c00
cmp byte [rsp + 0x67], 0
jns 0x1400b3b20
mov rcx, qword [rsp + 0x50]
call fcn.14019a0bc
lea rcx, [rsp + 0x68]
call fcn.140216210
jmp 0x1400b3999