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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x14016f5d0]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x171
call fcn.140086370
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14008af90
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x140033f7a
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jb 0x140033f4f
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, ebx
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140033e71
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x140033ecb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140033f61
mov rax, r14
inc rax
cmp rax, 2
jb 0x140033ec0
mov qword [rsi], r14
call fcn.140086390
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x140033f33
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x140033f22
test bl, 0xa
je 0x140033ef1
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x140033f45
lea rcx, [rsp + 0x60]
call fcn.14008b1d0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400bdd30
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x140033ef1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140033c00
mov dword [rsi + 0x24], eax
jmp 0x140033ef7
mov rcx, rdi
call fcn.1400350c0
jmp 0x140033ef7
bt ebx, 0x15
jb 0x140033f96
or r8d, 0x20000000
jmp 0x140033def
call fcn.140086390
mov rcx, qword [rsi]
call fcn.140082310
mov qword [rsi], 0
jmp 0x140033eac
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.14011ba90
jmp 0x140033ef7
int3
Function at 0x140034370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x14016f5d0]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x209
call fcn.140086370
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14008af90
cmp byte [rdi + 0x17], 0
jns 0x1400343f0
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14008b1d0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400bdd30
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x14016f5d0]
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, 0x212
call fcn.140086370
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14008af90
cmp byte [rdi + 0x17], 0
jns 0x1400344c0
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140034553
test al, 0x10
cmove esi, ebp
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 3
xor r14d, r14d
mov rcx, rdi
mov edx, esi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x140034536
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x14003457f
call fcn.140086390
mov r14, rdi
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
setne bl
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140034553
call fcn.140086390
mov rcx, r14
call fcn.140082310
lea rcx, [rsp + 0x60]
call fcn.14008b1d0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400bdd30
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x14003452e
Function at 0x140034590
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x14016f5d0]
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, 0x231
call fcn.140086370
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14008af90
cmp byte [rdi + 0x17], 0
jns 0x140034610
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.14008b1d0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400bdd30
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140034650
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400bfe80
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1400346ef
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400dcab8
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140086660
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140039430
mov rcx, rsi
mov rdx, r14
call fcn.140086830
mov rcx, r14
call fcn.1400867b0
mov rcx, rbx
call fcn.1400867b0
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400bdd30
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140034720
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bfe80
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 0x1400347ce
cmp word [rsp + 0x70], 0
je 0x1400347ce
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400dcab8
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140086660
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400bdd30
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140086640
lea rcx, [rsp + 0x40]
call fcn.1400867b0
jmp 0x140034797
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14016f5d0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140086530
mov rcx, rdi
call fcn.140034650
test al, al
jne 0x1400347b5
lea rax, [0x1401755d8]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140086660
jmp 0x1400347c2
Function at 0x140034820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x120
movaps xmmword [rsp + 0x110], xmm6
mov rsi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x108], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x70]
mov qword [rdi + 0x40], r15
movaps xmm6, xmmword [0x14016f5d0]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.GetSecureSystemTemp
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0xc0]
mov rcx, rbx
mov r9d, 0x2b3
call fcn.140086370
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14008af90
test rsi, rsi
je 0x140034aba
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.140086530
mov ecx, 0x65
mov rdx, rdi
call fcn.140036740
test al, al
je 0x140034987
lea rax, str.SystemTemp
lea r8, [rsp + 0x20]
mov qword [r8], rax
mov qword [r8 + 8], 0xa
lea rbx, [rsp + 0xc0]
mov rcx, rdi
mov rdx, rbx
call fcn.140039330
mov rcx, rdi
mov rdx, rbx
call fcn.140086830
mov rcx, rbx
call fcn.1400867b0
mov qword [rbx + 0x40], r15
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x50]
mov rcx, r14
mov r9d, 0x209
call fcn.140086370
lea rbx, [rsp + 0xc0]
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14008af90
cmp byte [rsp + 0x47], 0
jns 0x14003496b
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.14008b1d0
cmp edi, 0xffffffff
jne 0x140034a4f
lea rcx, [rsp + 0x30]
call fcn.1400867b0
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.140086530
mov ecx, 0x67
mov rdx, rdi
call fcn.140036740
test al, al
je 0x140034a41
lea rbx, [rsp + 0xc0]
mov qword [rbx + 0x40], r15
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x50]
mov rcx, r14
mov r9d, 0x209
call fcn.140086370
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14008af90
cmp byte [rsp + 0x47], 0
jns 0x140034a10
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.14008b1d0
cmp edi, 0xffffffff
je 0x140034a41
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.140034430
test al, al
jne 0x140034a6c
lea rcx, [rsp + 0x30]
call fcn.1400867b0
xor esi, esi
jmp 0x140034a87
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.140034430
test al, al
je 0x140034987
lea rdi, [rsp + 0x30]
mov rcx, rsi
mov rdx, rdi
call fcn.1400867c0
mov rcx, rdi
call fcn.1400867b0
mov sil, 1
lea rcx, [rsp + 0x70]
call fcn.14008b1d0
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1400bdd30
mov eax, esi
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x120
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
int3
Function at 0x140035660
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 [0x140196028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1400bfe80
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140035b50
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14016f5d0]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.140035d60
movzx eax, byte [rdi + 0x17]
test al, al
js 0x1400356f6
and eax, 0x7f
jmp 0x1400356fb
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400357cf
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
xor r12d, r12d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1400bfe80
mov rcx, r15
mov rdx, r14
call fcn.140035d10
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x140035813
mov rcx, r14
call fcn.140035a80
test al, al
jne 0x140035860
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140035762
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003580c
call r13
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.1400189d0
mov rcx, r15
mov rdx, r14
call fcn.140035d60
mov rcx, rdi
mov rdx, r14
call fcn.140086830
mov rcx, r14
call fcn.1400867b0
movzx eax, byte [rsp + 0x47]
test al, al
js 0x1400357be
and eax, 0x7f
jmp 0x1400357c3
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x14003571b
lea rcx, [rsp + 0x30]
call fcn.1400867b0
lea rcx, [rsp + 0x298]
call fcn.140035ca0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1400bdd30
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x140035783
test bl, bl
je 0x140035838
cmp byte [rsp + 0x47], 0
js 0x140035825
lea rcx, [rsp + 0x30]
jmp 0x14003582a
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140035743
lea rcx, [rsp + 0x48]
call fcn.140035a80
test al, al
jne 0x14003584c
mov edx, dword [rsp + 0x48]
jmp 0x140035817
lea rcx, [rsp + 0x48]
call fcn.140035a80
test al, al
je 0x140035753
jmp 0x14003580c
xor ebp, ebp
test bl, bl
je 0x140035783
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, rsi
mov r8b, 1
call fcn.140035660
mov ebp, eax
test eax, eax
jne 0x140035783
cmp byte [rsp + 0x47], 0
jns 0x14003589a
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x140035783
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x140035783
Function at 0x1400379c0
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140037a80
mov eax, dword [rsi]
mov dword [0x1401a4058], eax
test al, 1
jne 0x1400379e1
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1401b04f8]
test rcx, rcx
jne 0x1400379fb
mov rcx, qword [0x1401b04d0]
test rcx, rcx
je 0x140037a1f
jmp 0x140037a41
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401b04f8], 0
mov rcx, qword [0x1401b04d0]
test rcx, rcx
jne 0x140037a41
and byte [0x1401a4058], 0xfe
mov ecx, 0x18
call fcn.1400bc7dc
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401b04d0], rax
mov rdx, qword [rsi + 8]
call fcn.140038690
cmp dword [rsi + 0x14], 0
jne 0x140037a66
mov rcx, qword [0x1401b04d0]
cmp byte [rcx + 0x17], 0
jns 0x140037a60
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1401155b0
Function at 0x140039f90
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1401b0540]
test rdi, rdi
jne 0x14003a043
mov ecx, 0x50
call fcn.1400bc7dc
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400bc7dc
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14003a065
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 [0x1401b0540], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14003a091
mov rcx, rax
call fcn.1400dcab8
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14003a0c0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400bdd30
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.1400f3d40
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.1400f3d40
int3
Function at 0x14003a0c0
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 [0x140196028]
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.140044d40
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14003a254
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14003a28b
lea rdx, [0x140175abe]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003a279
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x1401c0008]
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 0x14003a281
test r12d, r12d
js 0x14003a2f6
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1400bc7dc
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 0x14003a29e
mov rdx, qword [r14 + r15]
call fcn.1400f0d90
add r15, 8
add r13, 0x18
cmp r12, r15
jne 0x14003a1c2
mov r15, rbx
add r15, r13
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140039cc0
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14003a216
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14003a254
cmp r15, rbx
je 0x14003a24c
add r15, 0xffffffffffffffe8
jmp 0x14003a23a
mov rcx, qword [r15]
call fcn.1400bc818
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x14003a24c
test r15, r15
je 0x14003a2ca
cmp byte [r15 + 0x17], 0
jns 0x14003a22e
jmp 0x14003a226
mov rcx, rbx
call fcn.1400bc818
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400bdd30
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 0x14003a174
xor r15d, r15d
xor ebx, ebx
jmp 0x14003a1ef
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14003a171
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.1400f3d40
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.1400f3d40
lea rcx, [rsp + 0x30]
call fcn.1400f0d00
int3
Function at 0x14003d720
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bfe80
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003d7b5
mov eax, eax
inc rax
cmp rax, 1
je 0x14003d7b5
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x14003d781
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003d7a2
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400d5864
test eax, eax
je 0x14003d8ee
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, 0x102
ja 0x14003d816
mov eax, eax
inc rax
cmp rax, 1
je 0x14003d816
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x14003d7e2
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003d803
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400d5864
test eax, eax
je 0x14003d8bf
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 0x14003d873
mov eax, eax
inc rax
cmp rax, 1
je 0x14003d873
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x14003d843
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003d864
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400d5864
test eax, eax
je 0x14003d894
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400bdd30
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14003d8a1
and eax, 0x7f
jmp 0x14003d8a5
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x14003d875
mov rcx, rsi
mov rdx, r14
call fcn.1400fe2c0
cmp word [rax], 0x5c
jne 0x14003d873
jmp 0x14003d875
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14003d8cc
and eax, 0x7f
jmp 0x14003d8d0
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x14003d875
mov rcx, rsi
mov rdx, r14
call fcn.1400fe2c0
cmp word [rax], 0x5c
jne 0x14003d816
jmp 0x14003d875
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14003d8fb
and eax, 0x7f
jmp 0x14003d8ff
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x14003d875
mov rcx, rsi
mov rdx, r14
call fcn.1400fe2c0
cmp word [rax], 0x5c
jne 0x14003d7b5
jmp 0x14003d875
Function at 0x140040920
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401b0628]
mov ecx, dword [0x1401a5788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004095b
movzx eax, word [0x1401b05f8]
cmp eax, 9
jne 0x1400409a3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1401b0628]
call fcn.1400bc930
cmp dword [0x1401b0628], 0xffffffff
jne 0x140040945
xorps xmm0, xmm0
movups xmmword [0x1401b0618], xmm0
movups xmmword [0x1401b0608], xmm0
movups xmmword [0x1401b05f8], xmm0
lea rcx, [0x1401b05f8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401b0628]
call fcn.1400bc9c8
jmp 0x140040945
test eax, eax
je 0x140040956
cmp eax, 6
jne 0x1400409b3
mov eax, 2
jmp 0x140040956
cmp eax, 0xc
jne 0x1400409bf
mov eax, 3
jmp 0x140040956
mov eax, 4
jmp 0x140040956