joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140094688
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14006f0b4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140094712
cmp byte [rbp - 0x21], r15b
je 0x14009470d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140094748
call fcn.140085614
test eax, eax
jne 0x140094734
cmp byte [rbp - 0x21], r15b
je 0x14009472c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140094748
cmp byte [rbp - 0x21], r15b
je 0x140094745
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400746cc
test eax, eax
jne 0x1400947e8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14006f0b4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140094787
cmp byte [rbp - 0x21], r15b
je 0x1400947bc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400947bc
call fcn.140085614
test eax, eax
jne 0x1400947a8
cmp byte [rbp - 0x21], r15b
je 0x1400947a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400947bc
cmp byte [rbp - 0x21], r15b
je 0x1400947b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400746cc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400947e8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400947eb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400947f9
mov rcx, rdi
call fcn.140051390
cmp byte [rbp + 0x3f], r15b
je 0x140094808
mov rcx, qword [rbp + 0x27]
call fcn.140051390
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400b3000
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x490], rax
movaps xmm0, xmmword [0x1400eef60]
lea r14, [rsp + 0x30]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, [0x1400f1ba6]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x280]
mov rcx, r15
mov r9d, 0x1da
call fcn.140051a40
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14002fc00
lea r14, [rsp + 0x280]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140098660
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400b309f
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, r14
call fcn.1400bf640
mov rcx, r14
call fcn.140045ef0
lea r14, [rsp + 0x70]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140098660
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x1400b30d6
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, r14
call fcn.1400bf640
mov rcx, r14
call fcn.140045ef0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400b30f8
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400b3104
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov r14b, 1
test eax, eax
je 0x1400b314f
lea rcx, [rsp + 0x30]
call fcn.14002fc80
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140062e50
mov eax, r14d
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400301c0
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1400b3167
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1400b3170
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne r14b
test rsi, rsi
je 0x1400b3122
test eax, eax
jne 0x1400b3122
cmp ebp, 0xfffffffc
jne 0x1400b3197
call fcn.1400bf7b0
mov ebp, eax
mov dword [rsi], ebp
xor r14d, r14d
jmp 0x1400b3122
Function at 0x1400b31a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1400eef60]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.PathHasAccess
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x216
call fcn.140051a40
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14002fc00
cmp byte [rdi + 0x17], 0
jns 0x1400b3222
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400b32ae
test al, 0x10
cmove esi, ebp
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx], rax
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, esi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], r14
mov rcx, rbx
mov rdx, rax
call fcn.14004d610
mov rax, qword [rbx]
inc rax
test rax, 0xfffffffffffffffe
setne bl
cmp rax, 2
jb 0x1400b32ae
call fcn.140051a60
mov rcx, qword [rsp + 0x40]
call fcn.140051a70
lea rcx, [rsp + 0x60]
call fcn.14002fc80
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140062e50
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400b32e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400eef60]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x235
call fcn.140051a40
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14002fc00
cmp byte [rdi + 0x17], 0
jns 0x1400b3352
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.14002fc80
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140062e50
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400b3da0
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 ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.140098660
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.1400c28b0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400eef60]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.140031920
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x1400b3e3d
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400b3f95
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov rsi, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12, qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r13d, r13d
jmp 0x1400b3f3e
mov rcx, rdi
mov rdx, qword [rsp + 0x28]
mov r8b, 1
call fcn.1400b3da0
mov ebp, eax
test eax, eax
jne 0x1400b3ef9
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400b3e8e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
jmp 0x1400b3ed3
mov edx, dword [rsp + 0x48]
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400b3eae
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call r12
mov rcx, r14
call fcn.1400c2880
test al, al
jne 0x1400b3eef
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400b3ecf
mov rcx, qword [rsp + 0x30]
call rsi
xor ebp, ebp
test eax, eax
jne 0x1400b3ef9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
jmp 0x1400b3ef9
xor ebp, ebp
test bl, bl
jne 0x1400b3e69
test r13d, r13d
cmovne ebp, r13d
mov rcx, r14
call fcn.140099100
mov rcx, r15
mov rdx, r14
call fcn.140031920
mov rcx, rdi
mov rdx, r14
call fcn.1400287f0
mov rcx, r14
call fcn.140028780
movsx rax, byte [rsp + 0x47]
test rax, rax
jns 0x1400b3f36
mov rax, qword [rsp + 0x38]
mov r13d, ebp
test rax, rax
je 0x1400b3f95
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.140098660
mov rcx, r15
mov rdx, r14
call fcn.1400c2a80
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x1400b3eb4
test bl, bl
jne 0x1400b3e9f
mov rcx, r14
call fcn.1400c2880
test al, al
je 0x1400b3e9b
mov rcx, r14
call fcn.1400c2880
xor ebp, ebp
test al, al
jne 0x1400b3ef9
jmp 0x1400b3ec0
lea rcx, [rsp + 0x30]
call fcn.140028780
lea rcx, [rsp + 0x298]
call fcn.1400c2a10
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140062e50
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400b4520
Capabilities:
Identify system language via api

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx ebp, word [rcx + 0x28]
movzx r12d, word [rcx + 0x2a]
mov r15, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call r15
mov r14d, eax
movzx r13d, word [rdi + 0x2a]
movzx eax, word [rdi + 0x28]
mov dword [rsp + 0x40], eax
call r15
mov word [rsp + 0x3e], ax
lea r15, [rsp + 0x50]
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.140098660
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebp
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r15
call fcn.1400b47d0
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r15
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400b4626
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400b4626
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x1400b4626
dec r8d
mov rcx, rsi
call fcn.14004e110
mov sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140062e50
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r15, [rsp + 0x50]
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.140098660
movzx eax, r14w
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r15
call fcn.1400b47d0
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r15
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400b46a7
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400b46a7
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x1400b45f2
lea r14, [rsp + 0x50]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140098660
mov qword [rsp + 0x30], rbx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r14
call fcn.1400b47d0
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r14
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400b472b
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400b472b
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x1400b45f2
lea r14, [rsp + 0x50]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140098660
movzx eax, word [rsp + 0x3e]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r14
call fcn.1400b47d0
lea rbx, [rsp + 0x48]
mov qword [rbx], 0
lea r15, [rsp + 0x44]
mov dword [r15], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r14
mov r8, rbx
mov r9, r15
call sub.VERSION.dll_VerQueryValueW
test eax, eax
sete al
mov rdx, qword [rbx]
test rdx, rdx
sete cl
mov r8d, dword [r15]
test r8d, r8d
sete r9b
or r9b, cl
or r9b, al
cmp r9b, 1
jne 0x1400b45f2
xor esi, esi
jmp 0x1400b4600
Function at 0x1400b85b0
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 [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [0x14011f8d8]
test rdx, rdx
je 0x1400b8630
mov rcx, rdi
call fcn.14001e600
mov dil, 1
test rsi, rsi
je 0x1400b8608
mov rdx, qword [0x14011f8e0]
mov rcx, rsi
call fcn.14001e600
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140062e50
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.140061abc
mov rbx, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
xor r15d, r15d
mov qword [rax + 0x10], r15
mov qword [0x14011f8d8], rax
mov ecx, 0x18
call fcn.140061abc
mov r14, rax
movups xmmword [rax], xmm6
mov qword [rax + 0x10], r15
mov qword [0x14011f8e0], rax
call fcn.14002e0a0
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.140019af0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r13, [rsp + 0x20]
mov rcx, r13
mov rdx, rax
call fcn.140019af0
lea rbp, [rsp + 0x50]
mov rcx, rbp
mov rdx, r13
mov r8, r12
call fcn.14002cf90
mov rcx, rbp
mov rdx, r15
mov r8, rbx
mov r9, r14
call fcn.1400b8130
mov ebx, eax
cmp byte [rbp + 0x17], 0
jns 0x1400b86d9
mov rcx, qword [rsp + 0x50]
call fcn.140061af8
cmp byte [rsp + 0x37], 0
jns 0x1400b86ea
mov rcx, qword [rsp + 0x20]
call fcn.140061af8
cmp byte [rsp + 0x4f], 0
jns 0x1400b86fb
mov rcx, qword [rsp + 0x38]
call fcn.140061af8
test bl, bl
je 0x1400b870b
mov rdx, qword [0x14011f8d8]
jmp 0x1400b85e9
xor edi, edi
jmp 0x1400b8608
Function at 0x1400b8d00
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14010e040]
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 0x1400b8de6
mov ebx, eax
mov edx, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x20]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x1400eef60]
movaps xmmword [r14], xmm0
mov rcx, r14
xor r8d, r8d
call fcn.140022740
cmp byte [r14 + 0x17], 0
jns 0x1400b8d6d
mov r14, qword [rsp + 0x20]
mov rcx, rdi
mov rdx, r14
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400b8dc5
mov edx, eax
movsx rax, byte [rsp + 0x37]
test rax, rax
jns 0x1400b8d92
mov rax, qword [rsp + 0x28]
cmp rax, rdx
jbe 0x1400b8dc5
lea rdi, [rsp + 0x20]
mov rcx, rdi
xor r8d, r8d
call fcn.140024fa0
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
xorps xmm0, xmm0
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
jmp 0x1400b8dd3
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
cmp byte [rsp + 0x37], 0
jns 0x1400b8df4
mov rcx, qword [rsp + 0x20]
call fcn.140061af8
jmp 0x1400b8df4
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140062e50
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400b8e10
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x17], 0
jns 0x1400b8e1d
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 0x1400b8e90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rdi, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x1400b8eb8
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400b8fc3
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movsx r9, byte [rdi + 0x17]
mov rax, rdi
test r9, r9
jns 0x1400b8eef
mov rax, qword [rdi]
mov r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x1400b8f15
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x1400b8f0b
cmp ecx, 0x2f
jne 0x1400b8ef2
cmp r9, 0xfffffffffffffffe
jne 0x1400b8ffc
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1400b8f82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x1400b8fad
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.140019af0
cmp byte [r14 + 0x17], 0
jns 0x1400b8f52
mov r14, qword [rsp + 0x28]
mov rcx, r14
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 0x1400b8f7d
mov rcx, qword [rsp + 0x28]
call fcn.140061af8
test bpl, bpl
je 0x1400b8fad
cmp byte [rsp + 0x57], 0
jns 0x1400b8f93
mov rcx, qword [rsp + 0x40]
call fcn.140061af8
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140062e50
mov eax, edi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.1400b9050
xor edi, edi
jmp 0x1400b8f82
test al, 0x10
jne 0x1400b8fe1
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.1400b9050
xor edi, edi
jmp 0x1400b8f93
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.1400b9050
mov dil, 1
jmp 0x1400b8f93
sar r9, 1
lea rax, [rsp + 0x67]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140024c20
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.1400b8e90
test al, al
jne 0x1400b8f15
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.1400b9050
jmp 0x1400b8fbf

Function at 0x1400b9050
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 [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.1400462f0
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x14011f8f0]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.1400657d4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140062e50
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x1400bd730
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rsi, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword [0x140120168]
test rax, rax
jne 0x1400bd774
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x140120168]
test rax, rax
je 0x1400bd761
cmp eax, 2
je 0x1400bd812
mov eax, 1
lock xadd qword [0x1401201a0], rax
inc rax
cmp rax, 2
jl 0x1400bd7a1
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x140120128], eax
mov qword [0x140120120], rsi
mov rcx, qword [0x1401100d8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.140030ca0
test al, al
je 0x1400bd85f
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0xbc
mov r9d, 2
call fcn.1400bfd90
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
jmp 0x1400bd852
mov ecx, 2
call fcn.140030ca0
test al, al
je 0x1400bd85f
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0x90
mov r9d, 2
call fcn.1400bfd90
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
call fcn.140045fd0
mov rcx, rsi
call fcn.1400c01c0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xffff7001
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140062e50
xor eax, eax
add rsp, 0x158
pop rdi
pop rsi
ret

Function at 0x1400bf680
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1400eef60]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x97
call fcn.140051a40
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14002fc00
test esi, esi
js 0x1400bf79d
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140040570
test al, al
je 0x1400bf737
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400cfc10
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.1400405f0
lea rcx, [rsp + 0x50]
call fcn.14002fc80
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140062e50
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400bf772