joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034e50
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140034eab
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140034eb4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140034e9b
mov qword [rsi], rdi
call fcn.140047ed0
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.14004a0c0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140047ed0
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.14004a100
mov rcx, qword [rsi]
call fcn.14004a090
mov qword [rsi], 0
jmp 0x140034e76

Function at 0x140038000
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15, rdx
mov r14, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140038062
mov ebx, eax
mov r12d, eax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
cmp eax, 0xa
ja 0x140038076
lea rsi, [rsp + 0x20]
mov byte [rsi + 0x17], bl
mov r13, rsi
mov rbp, rsi
jmp 0x1400380a3
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x140038140
lea rdi, [r12 + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.140089d30
mov rbp, rax
lea rsi, [rsp + 0x20]
mov qword [rsi], rax
bts rdi, 0x3f
mov qword [rsi + 0x10], rdi
mov qword [rsi + 8], r12
mov r13, rsi
lea r8, [r12 + r12]
mov rcx, rbp
xor edx, edx
call fcn.14008d400
mov word [rbp + r12*2], 0
cmp byte [r13 + 0x17], 0
jns 0x1400380c5
mov rsi, qword [rsp + 0x20]
mov rcx, r15
mov rdx, rsi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14003811f
mov edx, eax
movzx eax, byte [r13 + 0x17]
mov rcx, rax
test al, al
jns 0x1400380eb
mov rcx, qword [rsp + 0x28]
cmp rcx, rdx
jbe 0x140038123
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor r8d, r8d
call fcn.140028110
mov rax, qword [rsi + 0x10]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
xorps xmm0, xmm0
movaps xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140038140
mov al, byte [r13 + 0x17]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
test al, al
jns 0x140038140
mov rcx, qword [rsp + 0x20]
call fcn.140089d80
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008a0f0
mov rax, r14
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140038170
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x17], 0
jns 0x14003817d
mov rcx, qword [rcx]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400388a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x1400388c6
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400388f5
test al, 0x10
jne 0x14003894b
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140038a70
xor edi, edi
jmp 0x1400389f3
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx eax, byte [rdi + 0x17]
mov rcx, rdi
test al, al
jns 0x140038918
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
test rax, rax
je 0x1400389ad
lea r9, [rcx + rax*2]
add r9, 0xfffffffffffffffe
add rax, rax
neg rax
movzx edx, word [r9]
cmp dx, 0x5c
je 0x140038969
cmp dx, 0x2f
je 0x140038969
add r9, 0xfffffffffffffffe
add rax, 2
jne 0x14003892f
jmp 0x1400389ad
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140038a70
mov dil, 1
jmp 0x1400389f3
sub r9, rcx
cmp r9, 0xfffffffffffffffe
je 0x1400389ad
sar r9, 1
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140027eb0
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.1400388a0
test al, al
je 0x140038a0b
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1400389e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
je 0x140038a19
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.140038a70
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x1400389f3
mov rcx, qword [rsp + 0x40]
call fcn.140089d80
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008a0f0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140038a70
jmp 0x1400389e0
lea rbp, [rsp + 0x28]
mov rcx, rbp
mov rdx, rsi
call fcn.1400028f0
cmp byte [rbp + 0x17], 0
jns 0x140038a34
mov rbp, qword [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne al
and ebp, 0x10
shr ebp, 4
and bpl, al
cmp byte [rsp + 0x3f], 0
jns 0x140038a5f
mov rcx, qword [rsp + 0x28]
call fcn.140089d80
test bpl, bpl
je 0x1400389ce
jmp 0x1400389e2
Function at 0x140038a70
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.140002db0
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x1400e3d40]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.14008e604
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008a0f0
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140039410
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov r14, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140039492
mov esi, eax
test rsi, rsi
je 0x140039492
mov rbx, rsi
add rsi, 0xffffffffffffffff
cmp word [rsp + rbx*2 + 0x1e], 0x5c
je 0x14003945b
cmp byte [r14 + 0x17], 0
mov rcx, r14
jns 0x14003947c
mov rcx, qword [r14]
lea r8, [rsi + 1]
lea rdx, [rsp + 0x20]
call fcn.14009e044
test eax, eax
je 0x14003957b
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x103
jae 0x1400394f6
mov ebx, eax
inc rbx
cmp rbx, 1
je 0x1400394f6
mov rsi, rbx
add rbx, 0xffffffffffffffff
cmp word [rsp + rsi*2 + 0x1c], 0x5c
je 0x1400394bf
cmp byte [r14 + 0x17], 0
mov rcx, r14
jns 0x1400394e1
mov rcx, qword [r14]
lea rdx, [rsp + 0x20]
mov r8, rbx
call fcn.14009e044
test eax, eax
je 0x1400395ad
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003955a
mov esi, eax
inc rsi
cmp rsi, 1
je 0x14003955a
mov rbx, rsi
add rsi, 0xffffffffffffffff
cmp word [rsp + rbx*2 + 0x1c], 0x5c
je 0x140039523
cmp byte [r14 + 0x17], 0
mov rcx, r14
jns 0x140039545
mov rcx, qword [r14]
lea rdx, [rsp + 0x20]
mov r8, rsi
call fcn.14009e044
test eax, eax
je 0x1400395e0
xor edi, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14008a0f0
mov eax, edi
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [r14 + 0x17]
mov rcx, rax
test al, al
jns 0x14003958b
mov rcx, qword [r14 + 8]
dec rcx
mov dil, 1
cmp rcx, rsi
je 0x14003955c
mov rcx, r14
test al, al
jns 0x1400395a0
mov rcx, qword [r14]
cmp word [rcx + rbx*2], 0x5c
jne 0x140039492
jmp 0x14003955c
movzx eax, byte [r14 + 0x17]
mov rcx, rax
test al, al
jns 0x1400395bd
mov rcx, qword [r14 + 8]
mov dil, 1
cmp rcx, rbx
je 0x14003955c
mov rcx, r14
test al, al
jns 0x1400395cf
mov rcx, qword [r14]
cmp word [rcx + rsi*2 - 2], 0x5c
jne 0x1400394f6
jmp 0x14003955c
movzx eax, byte [r14 + 0x17]
mov rcx, rax
test al, al
jns 0x1400395f0
mov rcx, qword [r14 + 8]
mov dil, 1
cmp rcx, rsi
je 0x14003955c
test al, al
jns 0x140039603
mov r14, qword [r14]
cmp word [r14 + rbx*2 - 2], 0x5c
jne 0x14003955a
jmp 0x14003955c
Function at 0x140039c30
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [0x1400e4540]
test rdx, rdx
je 0x140039cb0
mov rcx, rdi
call fcn.140027fa0
mov dil, 1
test rsi, rsi
je 0x140039c88
mov rdx, qword [0x1400e4548]
mov rcx, rsi
call fcn.140027fa0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14008a0f0
mov eax, edi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 0x18
call fcn.140089d30
mov r14, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
xor ebp, ebp
mov qword [rax + 0x10], rbp
mov qword [0x1400e4540], rax
mov ecx, 0x18
call fcn.140089d30
mov rbx, rax
movups xmmword [rax], xmm6
mov qword [rax + 0x10], rbp
mov qword [0x1400e4548], rax
call fcn.140037710
mov rax, qword [rax + 8]
mov r15, qword [rax + 0x10]
lea rdx, str.user_data_dir
lea r12, [rsp + 0x38]
mov rcx, r12
call fcn.1400028f0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r13, [rsp + 0x20]
mov rcx, r13
mov rdx, rax
call fcn.1400028f0
lea rbp, [rsp + 0x50]
mov rcx, rbp
mov rdx, r13
mov r8, r12
call fcn.140037c00
mov rcx, rbp
mov rdx, r15
mov r8, r14
mov r9, rbx
call fcn.1400397c0
mov ebx, eax
cmp byte [rbp + 0x17], 0
jns 0x140039d58
mov rcx, qword [rsp + 0x50]
call fcn.140089d80
cmp byte [rsp + 0x37], 0
jns 0x140039d69
mov rcx, qword [rsp + 0x20]
call fcn.140089d80
cmp byte [rsp + 0x4f], 0
jns 0x140039d7a
mov rcx, qword [rsp + 0x38]
call fcn.140089d80
test bl, bl
je 0x140039d8a
mov rdx, qword [0x1400e4540]
jmp 0x140039c69
xor edi, edi
jmp 0x140039c88
Function at 0x14003bb50
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x1400e45a0]
test rax, rax
jne 0x14003bb94
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x1400e45a0]
test rax, rax
je 0x14003bb81
cmp eax, 2
jne 0x14003bbe2
mov ecx, 2
call fcn.14004a3e0
test al, al
je 0x14003bc3b
lea rdx, str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0x84
mov r9d, 2
call fcn.14004a490
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
jmp 0x14003bc9d
mov eax, 1
lock xadd qword [0x1400e45d8], rax
test rax, rax
jle 0x14003bc02
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1400e4558], eax
mov qword [0x1400e4550], rsi
mov rcx, qword [0x1400e05a8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.14004a3e0
test al, al
jne 0x14003bc6b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xffff7001
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14008a0f0
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret
lea rdx, str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0xb0
mov r9d, 2
call fcn.14004a490
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
call fcn.1400048d0
mov rcx, rsi
call fcn.14004a920
jmp 0x14003bc3b
Function at 0x140047b30
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x1400e4720]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x140047b64
jnp 0x140047b87
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008a0f0
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebp, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1400e4730]
mov ecx, dword [0x1400e4628]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140047cbf
mov eax, dword [0x1400e4740]
mov ecx, dword [0x1400e4628]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140047cf9
rdtsc
mov r14, rax
mov r15, rdx
xor esi, esi
lea rdi, [rsp + 0x20]
mov qword [rdi], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rdi], rsi
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rbx, qword [0x1400e4738]
movq xmm1, rbx
punpckldq xmm1, xmmword [0x1400b6590]
subpd xmm1, xmmword [0x1400b65a0]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsi]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x1400bb3c8]
ucomisd xmm1, xmm0
ja 0x140047b64
shl r15, 0x20
or r14, r15
sub r14, qword [0x1400e4728]
movq xmm1, r14
punpckldq xmm1, xmmword [0x1400b6590]
subpd xmm1, xmmword [0x1400b65a0]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x1400e4720], xmm6
jmp 0x140047b64
lea rcx, [0x1400e4730]
call fcn.140089ea0
cmp dword [0x1400e4730], 0xffffffff
jne 0x140047bd0
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1400e4728], rdx
lea rcx, [0x1400e4730]
call fcn.140089f38
jmp 0x140047bd0
lea rcx, [0x1400e4740]
call fcn.140089ea0
cmp dword [0x1400e4740], 0xffffffff
jne 0x140047bf5
lea rdi, [rsp + 0x20]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
mov qword [0x1400e4738], rax
lea rcx, [0x1400e4740]
call fcn.140089f38
jmp 0x140047bf5
Function at 0x1400483a0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x88
call fcn.140047eb0
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.140047ee0
test esi, esi
js 0x14004846b
lea rcx, [rsp + 0x30]
call fcn.14003c550
call fcn.14005e0e0
test al, al
jne 0x140048472
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea rdi, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rdi]
lea rcx, [rsp + 0x30]
call fcn.14005e150
lea rcx, [rsp + 0x50]
call fcn.140048000
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14008a0f0
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov esi, 0xffffffff
jmp 0x140048442
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14005e180
jmp 0x14004840f
Function at 0x14004a140
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14b, 1
cmp qword [0x1400e47c0], 0
jne 0x14004a3a6
mov rdi, qword [0x1400e47a0]
test rdi, rdi
jne 0x14004a276
movabs r15, 0x7fffffffffffffef
mov ecx, 0x18
call fcn.140089d30
mov rdi, rax
lea rsi, [rsp + 0x40]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rsi
call fcn.1400a2448
cmp rax, r15
ja 0x14004a3c9
mov rbx, rax
cmp rax, 0xb
jae 0x14004a1e4
mov byte [rdi + 0x17], bl
mov rsi, rdi
test rbx, rbx
jne 0x14004a212
jmp 0x14004a225
lea rbp, [rbx + 8]
and rbp, 0xfffffffffffffff8
js 0x14004a3d1
mov rcx, rbp
add rcx, rbp
call fcn.140089d30
mov rsi, rax
mov qword [rdi], rax
add r15, 0x11
or r15, rbp
mov qword [rdi + 0x10], r15
mov qword [rdi + 8], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14008cff0
mov word [rsi + rbx*2], 0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x14004a239
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.140028eb0
cmp rax, 0xffffffffffffffff
je 0x14004a260
inc rax
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.140028bc0
lea rdx, str.debug.log
mov rcx, rdi
call fcn.140028740
mov qword [0x1400e47a0], rdi
test byte [0x1400e0608], 1
je 0x14004a3a6
cmp byte [rdi + 0x17], 0
jns 0x14004a28c
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400e47c0], rax
inc rax
cmp rax, 1
ja 0x14004a3a6
lea rdx, [rsp + 0x40]
mov word [rdx], 0
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14004a3a3
cmp eax, 0x104
ja 0x14004a3a3
mov rcx, qword [0x1400e47a0]
lea rdx, [rsp + 0x40]
call fcn.1400289c0
mov rcx, qword [0x1400e47a0]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x14004a31d
mov rdx, rcx
jmp 0x14004a324
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x14004a33f
lea rdx, [0x1400ba698]
call fcn.140028740
mov rcx, qword [0x1400e47a0]
lea rdx, str.debug.log
call fcn.140028740
mov rcx, qword [0x1400e47a0]
cmp byte [rcx + 0x17], 0
jns 0x14004a35b
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400e47c0], rax
inc rax
cmp rax, 1
ja 0x14004a3a6
mov qword [0x1400e47c0], 0
xor r14d, r14d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14008a0f0
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
call fcn.1400270d0
call fcn.14009be5c
int3
Function at 0x14004eb20
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.140033370
cmp byte [rbx + 0x17], 0
jns 0x14004eb62
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
cmp byte [rsp + 0x67], 0
jns 0x14004eb83
mov rcx, qword [rsp + 0x50]
call fcn.140089d80
test ebp, ebp
je 0x14004ec54
mov r14b, 1
test rsi, rsi
je 0x14004ec39
mov ecx, ebp
add rcx, rcx
call fcn.140089dbc
mov rbx, rax
movups xmm0, xmmword [rdi]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x50]
mov rcx, rdi
call fcn.140033370
cmp byte [rdi + 0x17], 0
jns 0x14004ebc7
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x67], 0
jns 0x14004ebe7
mov rcx, qword [rsp + 0x50]
call fcn.140089d80
mov qword [rsp + 0x20], rbx
cmp word [rbx], 0
je 0x14004ec59
xor eax, eax
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14004ebf4
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x50]
call fcn.1400333c0
cmp byte [rsi + 0x17], 0
js 0x14004ec5d
xor eax, eax
mov byte [rsi], al
mov byte [rsi + 0x17], al
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.140089dc4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14008a0f0
mov eax, r14d
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor r14d, r14d
jmp 0x14004ec39
xor eax, eax
jmp 0x14004ec00
mov rax, qword [rsi]
mov byte [rax], 0
mov qword [rsi + 8], 0
cmp byte [rsi + 0x17], 0
jns 0x14004ec20
mov rcx, qword [rsi]
call fcn.140089d80
mov qword [rsi + 0x10], 0
jmp 0x14004ec20
Function at 0x14004eea0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x14004eec7
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x14004ef14
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14004ef04
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14008a0f0
mov rcx, rsi
add rsp, 0x1a8
pop rdi
pop rsi
jmp fcn.14004efe0
mov ecx, 2
call fcn.14004a3e0
test al, al
jne 0x14004ef30
xor edi, edi
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14008a0f0
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x244
mov r9d, 2
call fcn.14004b090
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400048d0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.140033340
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14004efaf
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1400048d0
cmp byte [rsp + 0x57], 0
jns 0x14004efcb
mov rcx, qword [rsp + 0x40]
call fcn.140089d80
lea rcx, [rsp + 0x58]
call fcn.14004b180
jmp 0x14004ef12