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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x1db
call fcn.14004af20
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14004af50
cmp byte [rsi + 0x17], 0
jns 0x140035a0c
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
setne al
and esi, 0x10
shr esi, 4
and sil, al
mov rcx, rdi
call fcn.14004b070
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14008db90
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x140035a50
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
dec esi
cmp esi, 0x102
ja 0x140035aef
mov qword [rsp + 0x20], rbx
cmp word [rsp + 0x60], 0
je 0x140035b17
xor ecx, ecx
lea rax, [rcx + 1]
cmp word [rsp + rcx*2 + 0x62], 0
mov rcx, rax
jne 0x140035a9f
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.14002e570
lea rdi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rdi
call fcn.1400306d0
mov rcx, r14
mov rdx, rdi
call fcn.14002e6a0
mov rcx, rdi
call fcn.14002e670
mov rcx, rbx
call fcn.14002e670
cmp esi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14008db90
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x140035aae

Function at 0x140035b20
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140035ba8
cmp word [rsp + 0x60], 0
je 0x140035ba8
mov qword [rsp + 0x50], rdi
xor eax, eax
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x140035b6e
lea rdx, [rsp + 0x50]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14002e570
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14008db90
mov rax, rsi
add rsp, 0x278
pop rdi
pop rsi
ret
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.14002e520
mov rcx, rdi
call fcn.140035a50
test al, al
je 0x140035bd0
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.14002e550
jmp 0x140035bef
lea rax, [0x1400be256]
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14002e570
lea rcx, [rsp + 0x38]
call fcn.14002e670
jmp 0x140035b8b
Function at 0x140035eb0
Capabilities:
Check if file exists
Create directory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x100
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0xf8], rax
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xa8]
mov rcx, rbx
mov r9d, 0x265
call fcn.14004af20
lea rcx, [rsp + 0x38]
mov rdx, rbx
xor r8d, r8d
call fcn.14004af50
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140035f19
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140035f5f
mov bl, 1
test al, 0x10
je 0x140036053
lea rcx, [rsp + 0x38]
call fcn.14004b070
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.14008db90
mov eax, ebx
add rsp, 0x100
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.14002f110
movzx ecx, byte [rbp + 0x17]
mov rax, rcx
test cl, cl
jns 0x140035f7f
mov rax, qword [rsp + 0x28]
movzx esi, byte [rdi + 0x17]
mov rdx, rsi
test sil, sil
jns 0x140035f8f
mov rdx, qword [rdi + 8]
cmp rax, rdx
je 0x140036072
lea rcx, [rsp + 0x20]
mov rdx, r12
call fcn.140035eb0
test al, al
je 0x1400360bc
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x140035fcd
lea rcx, [rsp + 0x20]
call fcn.14002e670
jmp 0x140035f31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
jne 0x14003603d
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x88]
mov rcx, rbp
mov r9d, 0x1db
call fcn.14004af20
lea r15, [rsp + 0xa8]
mov rcx, r15
mov rdx, rbp
xor r8d, r8d
call fcn.14004af50
cmp byte [rdi + 0x17], 0
jns 0x140036020
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r15
call fcn.14004b070
cmp edi, 0xffffffff
je 0x14003603d
and edi, 0x10
jne 0x140035fbe
test r12, r12
je 0x14003604e
mov ecx, r14d
call fcn.14004b540
mov dword [r12], eax
mov ecx, r14d
jmp 0x1400360b6
test r12, r12
je 0x140036060
mov dword [r12], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140035f31
test rax, rax
je 0x1400360a4
test cl, cl
jns 0x140036080
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
test sil, sil
jns 0x14003608b
mov rcx, qword [rdi]
xor edx, edx
movzx esi, word [rbp + rdx*2]
cmp si, word [rcx + rdx*2]
jne 0x140035f98
inc rdx
cmp rax, rdx
jne 0x14003608d
test r12, r12
je 0x1400360b1
mov dword [r12], 0xfffffffc
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140035fbe
Function at 0x1400361f0
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 r14d, r8d
mov rsi, rdx
mov rdx, rcx
mov rax, qword [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov qword [rsp + 0x20], rsi
xor ebx, ebx
lea rbp, [rsp + 0x298]
mov rcx, rbp
xor r8d, r8d
mov r9d, 3
call fcn.14004bab0
lea rdi, [rsp + 0x30]
mov rcx, rbp
mov rdx, rdi
call fcn.14004bc90
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14003625b
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14003631a
lea r15, [rsp + 0x298]
lea rbp, [rsp + 0x48]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
mov rcx, r15
mov rdx, rbp
call fcn.14004bc00
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x140036357
mov rcx, rbp
call fcn.14004b990
test al, al
jne 0x140036379
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400362b2
mov rcx, qword [rsp + 0x30]
call r12
test eax, eax
jne 0x1400363df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebx, eax
test r13d, r13d
cmovne ebx, r13d
mov rcx, rbp
call fcn.1400030a0
mov rcx, r15
mov rdx, rbp
call fcn.14004bc90
mov rcx, rdi
mov rdx, rbp
call fcn.14002e6a0
mov rcx, rbp
call fcn.14002e670
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14003630e
mov rax, qword [rsp + 0x38]
mov r13d, ebx
test rax, rax
jne 0x14003627b
lea rcx, [rsp + 0x30]
call fcn.14002e670
lea rcx, [rsp + 0x298]
call fcn.14004bb90
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14008db90
mov eax, ebx
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r14b, r14b
je 0x1400363c3
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14003636e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140036293
xor ebx, ebx
test r14b, r14b
je 0x1400362d3
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.1400361f0
mov ebx, eax
test eax, eax
jne 0x1400362d3
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400363ab
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, 0
test eax, eax
jne 0x1400362d3
jmp 0x1400362bd
mov rcx, rbp
call fcn.14004b990
test al, al
je 0x1400363e6
mov rcx, rbp
call fcn.14004b990
test al, al
je 0x1400362a3
xor ebx, ebx
jmp 0x1400362d3
mov edx, dword [rsp + 0x48]
jmp 0x14003635c

Function at 0x140036480
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
jne 0x1400364b3
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x1400364f7
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x1400364db
call fcn.14004af40
mov rcx, qword [rsi]
call fcn.14004d080
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400364ed
mov qword [rsi], rdi
call fcn.14004af40
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140036499
int3
Function at 0x140036610
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x1400366a5
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140036670
call fcn.14004af40
mov rcx, qword [rsi]
call fcn.14004d080
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140036682
mov qword [rsi], rdi
call fcn.14004af40
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x1400366a9
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 8], 1
int3

Function at 0x1400395a0
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 [0x1400e45d8]
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 0x140039602
mov ebx, eax
mov r12d, eax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
cmp eax, 0xa
ja 0x140039616
lea rsi, [rsp + 0x20]
mov byte [rsi + 0x17], bl
mov r13, rsi
mov rbp, rsi
jmp 0x140039643
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x1400396e0
lea rdi, [r12 + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.14008d7cc
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.140090f50
mov word [rbp + r12*2], 0
cmp byte [r13 + 0x17], 0
jns 0x140039665
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 0x1400396bf
mov edx, eax
movzx eax, byte [r13 + 0x17]
mov rcx, rax
test al, al
jns 0x14003968b
mov rcx, qword [rsp + 0x28]
cmp rcx, rdx
jbe 0x1400396c3
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor r8d, r8d
call fcn.1400285a0
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 0x1400396e0
mov al, byte [r13 + 0x17]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
test al, al
jns 0x1400396e0
mov rcx, qword [rsp + 0x20]
call fcn.14008d81c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008db90
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 0x140039710
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x17], 0
jns 0x14003971d
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 0x140039e40
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 [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x140039e66
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140039e95
test al, 0x10
jne 0x140039eeb
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.14003a010
xor edi, edi
jmp 0x140039f93
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 0x140039eb8
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
test rax, rax
je 0x140039f4d
lea r9, [rcx + rax*2]
add r9, 0xfffffffffffffffe
add rax, rax
neg rax
movzx edx, word [r9]
cmp dx, 0x5c
je 0x140039f09
cmp dx, 0x2f
je 0x140039f09
add r9, 0xfffffffffffffffe
add rax, 2
jne 0x140039ecf
jmp 0x140039f4d
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.14003a010
mov dil, 1
jmp 0x140039f93
sub r9, rcx
cmp r9, 0xfffffffffffffffe
je 0x140039f4d
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.140028340
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.140039e40
test al, al
je 0x140039fab
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140039f82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
je 0x140039fb9
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.14003a010
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x140039f93
mov rcx, qword [rsp + 0x40]
call fcn.14008d81c
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008db90
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.14003a010
jmp 0x140039f80
lea rbp, [rsp + 0x28]
mov rcx, rbp
mov rdx, rsi
call fcn.140024700
cmp byte [rbp + 0x17], 0
jns 0x140039fd4
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 0x140039fff
mov rcx, qword [rsp + 0x28]
call fcn.14008d81c
test bpl, bpl
je 0x140039f6e
jmp 0x140039f82
Function at 0x14003a010
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 [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.140003090
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x1400e7d40]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.140092268
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008db90
nop
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x14003ab90
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov r14, rcx
mov rax, qword [0x1400e45d8]
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 0x14003ac11
mov esi, eax
test rsi, rsi
je 0x14003ac11
mov rbx, rsi
dec rsi
cmp word [rsp + rbx*2 + 0x1e], 0x5c
je 0x14003abdb
cmp byte [r14 + 0x17], 0
mov rcx, r14
jns 0x14003abfb
mov rcx, qword [r14]
lea r8, [rsi + 1]
lea rdx, [rsp + 0x20]
call fcn.1400a1f94
test eax, eax
je 0x14003acf8
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 0x14003ac74
mov ebx, eax
inc rbx
cmp rbx, 1
je 0x14003ac74
mov rsi, rbx
dec rbx
cmp word [rsp + rsi*2 + 0x1c], 0x5c
je 0x14003ac3e
cmp byte [r14 + 0x17], 0
mov rcx, r14
jns 0x14003ac5f
mov rcx, qword [r14]
lea rdx, [rsp + 0x20]
mov r8, rbx
call fcn.1400a1f94
test eax, eax
je 0x14003ad2a
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 0x14003acd7
mov esi, eax
inc rsi
cmp rsi, 1
je 0x14003acd7
mov rbx, rsi
dec rsi
cmp word [rsp + rbx*2 + 0x1c], 0x5c
je 0x14003aca1
cmp byte [r14 + 0x17], 0
mov rcx, r14
jns 0x14003acc2
mov rcx, qword [r14]
lea rdx, [rsp + 0x20]
mov r8, rsi
call fcn.1400a1f94
test eax, eax
je 0x14003ad5d
xor edi, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14008db90
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 0x14003ad08
mov rcx, qword [r14 + 8]
dec rcx
mov dil, 1
cmp rcx, rsi
je 0x14003acd9
mov rcx, r14
test al, al
jns 0x14003ad1d
mov rcx, qword [r14]
cmp word [rcx + rbx*2], 0x5c
jne 0x14003ac11
jmp 0x14003acd9
movzx eax, byte [r14 + 0x17]
mov rcx, rax
test al, al
jns 0x14003ad3a
mov rcx, qword [r14 + 8]
mov dil, 1
cmp rcx, rbx
je 0x14003acd9
mov rcx, r14
test al, al
jns 0x14003ad4c
mov rcx, qword [r14]
cmp word [rcx + rsi*2 - 2], 0x5c
jne 0x14003ac74
jmp 0x14003acd9
movzx eax, byte [r14 + 0x17]
mov rcx, rax
test al, al
jns 0x14003ad6d
mov rcx, qword [r14 + 8]
mov dil, 1
cmp rcx, rsi
je 0x14003acd9
test al, al
jns 0x14003ad80
mov r14, qword [r14]
cmp word [r14 + rbx*2 - 2], 0x5c
jne 0x14003acd7
jmp 0x14003acd9
Function at 0x14003b3c0
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 [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [0x1400e8540]
test rdx, rdx
je 0x14003b440
mov rcx, rdi
call fcn.140028430
mov dil, 1
test rsi, rsi
je 0x14003b418
mov rdx, qword [0x1400e8548]
mov rcx, rsi
call fcn.140028430
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14008db90
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.14008d7cc
mov r14, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
xor ebp, ebp
mov qword [rax + 0x10], rbp
mov qword [0x1400e8540], rax
mov ecx, 0x18
call fcn.14008d7cc
mov rbx, rax
movups xmmword [rax], xmm6
mov qword [rax + 0x10], rbp
mov qword [0x1400e8548], rax
call fcn.140038cb0
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.140024700
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r13, [rsp + 0x20]
mov rcx, r13
mov rdx, rax
call fcn.140024700
lea rbp, [rsp + 0x50]
mov rcx, rbp
mov rdx, r13
mov r8, r12
call fcn.1400391a0
mov rcx, rbp
mov rdx, r15
mov r8, r14
mov r9, rbx
call fcn.14003af50
mov ebx, eax
cmp byte [rbp + 0x17], 0
jns 0x14003b4e8
mov rcx, qword [rsp + 0x50]
call fcn.14008d81c
cmp byte [rsp + 0x37], 0
jns 0x14003b4f9
mov rcx, qword [rsp + 0x20]
call fcn.14008d81c
cmp byte [rsp + 0x4f], 0
jns 0x14003b50a
mov rcx, qword [rsp + 0x38]
call fcn.14008d81c
test bl, bl
je 0x14003b51a
mov rdx, qword [0x1400e8540]
jmp 0x14003b3f9
xor edi, edi
jmp 0x14003b418
Function at 0x14003d480
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x1400e85a0]
test rax, rax
jne 0x14003d4c4
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x1400e85a0]
test rax, rax
je 0x14003d4b1
cmp eax, 2
jne 0x14003d512
mov ecx, 2
call fcn.1400485b0
test al, al
je 0x14003d56b
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.140048660
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
jmp 0x14003d5cd
mov eax, 1
lock xadd qword [0x1400e85d8], rax
test rax, rax
jle 0x14003d532
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1400e8558], eax
mov qword [0x1400e8550], rsi
mov rcx, qword [0x1400e45a8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.1400485b0
test al, al
jne 0x14003d59b
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.14008db90
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.140048660
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
call fcn.140002b20
mov rcx, rsi
call fcn.140048af0
jmp 0x14003d56b
Function at 0x140048300
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14b, 1
cmp qword [0x1400e8738], 0
je 0x140048351
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14008db90
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [0x1400e8718]
test rdi, rdi
je 0x1400483e3
test byte [0x1400e45f8], 1
je 0x14004832e
cmp byte [rdi + 0x17], 0
jns 0x140048373
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 [0x1400e8738], rax
inc rax
cmp rax, 1
ja 0x14004832e
lea rdx, [rsp + 0x40]
mov word [rdx], 0
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400483db
cmp eax, 0x104
jbe 0x1400484dc
xor r14d, r14d
jmp 0x14004832e
movabs r15, 0x7fffffffffffffef
mov ecx, 0x18
call fcn.14008d7cc
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.1400a6370
cmp rax, r15
ja 0x140048597
mov rbx, rax
cmp rax, 0xb
jae 0x140048445
mov byte [rdi + 0x17], bl
mov rsi, rdi
test rbx, rbx
jne 0x140048473
jmp 0x140048486
lea rbp, [rbx + 8]
and rbp, 0xfffffffffffffff8
js 0x14004859f
mov rcx, rbp
add rcx, rbp
call fcn.14008d7cc
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.140090b40
mov word [rsi + rbx*2], 0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x14004849a
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.140029330
cmp rax, 0xffffffffffffffff
je 0x1400484c1
inc rax
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.140029040
lea rdx, str.debug.log
mov rcx, rdi
call fcn.140028bc0
mov qword [0x1400e8718], rdi
jmp 0x140048361
mov rcx, qword [0x1400e8718]
lea rdx, [rsp + 0x40]
call fcn.140028e40
mov rcx, qword [0x1400e8718]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x14004858b
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
je 0x14004851e
lea rdx, [0x1400be7f8]
call fcn.140028bc0
mov rcx, qword [0x1400e8718]
lea rdx, str.debug.log
call fcn.140028bc0
mov rcx, qword [0x1400e8718]
cmp byte [rcx + 0x17], 0
jns 0x14004853a
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 [0x1400e8738], rax
inc rax
cmp rax, 1
ja 0x14004832e
mov qword [0x1400e8738], 0
jmp 0x1400483db
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
jmp 0x140048503
mov rcx, rdi
call fcn.140027560
call fcn.14009fdac
int3