joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140061560
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1038
call fcn.14009c2f0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140186028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea r14, [rsp + 0x830]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14009e4a0
lea rax, [rsp + 0x2c]
mov dword [rax], 1
lea r9, [rsp + 0x28]
mov dword [r9], 0x800
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call fcn.1400614a0
test eax, eax
jne 0x14006161d
mov eax, dword [rsp + 0x2c]
cmp eax, 1
jne 0x140061621
lea rcx, [rsp + 0x830]
call fcn.1400b80d4
lea rdx, [rsp + 0x830]
mov rcx, rsi
mov r8, rax
call fcn.140060346
xor edi, edi
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14009c350
mov eax, edi
add rsp, 0x1038
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400615fe
mov edi, 0x3f4
cmp eax, 2
jne 0x1400615fe
lea rdi, [rsp + 0x30]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14009e4a0
lea rcx, [rsp + 0x830]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x28], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x1400615fe
lea rcx, [rsp + 0x30]
call fcn.1400b80d4
lea rdx, [rsp + 0x30]
jmp 0x1400615f1

Function at 0x140061940
Capabilities:
Read 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 [0x140186028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140157be0]
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.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x65
call fcn.140043be0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400498e0
test esi, esi
js 0x140061a49
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.14004bea0
test al, al
jne 0x140061a68
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140061a55
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x140061a50
lea rcx, [rsp + 0x30]
call fcn.14004bf30
lea rcx, [rsp + 0x50]
call fcn.140049940
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14009c350
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x140061a1e
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x140061a14
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140122280
jmp 0x1400619e4
Function at 0x140061a90
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 [0x140186028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140157be0]
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, 0x9d
call fcn.140043be0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400498e0
test esi, esi
js 0x140061b96
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.14004bea0
test al, al
jne 0x140061b9d
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.14004bf30
lea rcx, [rsp + 0x50]
call fcn.140049940
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14009c350
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x140061b6b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140122280
jmp 0x140061b30

Function at 0x140061bc0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x140186028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x140157be0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xb2
call fcn.140043be0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400498e0
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.14004bea0
test al, al
jne 0x140061c9c
lea rdi, [rsp + 0x28]
mov qword [rdi], r14
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.14004bf30
lea rcx, [rsp + 0x50]
call fcn.140049940
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14009c350
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.140122280
jmp 0x140061c49
Function at 0x1400620d0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edx, 1
jmp 0x140061dd0

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov rsi, rcx
mov rax, qword [0x140186028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm6, xmmword [0x140157be0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2bc
call fcn.140043be0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400498e0
call fcn.140079420
test al, al
jne 0x1400621a1
cmp byte [rsi + 0x17], 0
jns 0x140062163
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
lea rcx, [rsp + 0x50]
call fcn.140049940
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14009c350
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x40], 0xaaaaaaaa
cmp byte [rsi + 0x17], 0
jns 0x1400621bc
mov rsi, qword [rsi]
lea r8, [rsp + 0x20]
mov rcx, rsi
xor edx, edx
call fcn.1401224d0
test eax, eax
jmp 0x14006216f

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140186028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x140157be0]
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, 0x2eb
call fcn.140043be0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400498e0
cmp byte [rdi + 0x17], 0
jns 0x140062242
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.140049940
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14009c350
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140062290
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140186028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14009e4a0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14006232f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400b80d4
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140043e10
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140065ad0
mov rcx, rsi
mov rdx, r14
call fcn.1400440f0
mov rcx, r14
call fcn.140043f70
mov rcx, rbx
call fcn.140043f70
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14009c350
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140062360
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140186028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm6, xmmword [0x140157be0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x3ac
call fcn.140043be0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400498e0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x1400623e5
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140062431
mov bl, 1
test al, 0x10
je 0x1400624e8
lea rcx, [rsp + 0x40]
call fcn.140049940
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14009c350
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmmword [rsp + 0x20], xmm6
mov rcx, rdi
mov rdx, r14
call fcn.140044e10
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
js 0x140062463
and r8d, 0x7f
mov rdx, rdi
jmp 0x14006246a
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x98]
call fcn.1400ee55c
movzx r8d, byte [rsp + 0x37]
test r8b, r8b
js 0x140062488
and r8d, 0x7f
jmp 0x140062492
mov r8, qword [rsp + 0x28]
mov r14, qword [rsp + 0x20]
lea r15, [rsp + 0x88]
mov rcx, r15
mov rdx, r14
call fcn.1400ee55c
mov rax, qword [r15 + 8]
cmp rax, qword [rsp + 0xa0]
je 0x140062505
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140062360
test al, al
je 0x140062567
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x140062542
lea rcx, [rsp + 0x20]
call fcn.140043f70
jmp 0x1400623fd
test rsi, rsi
je 0x1400624f3
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400623fd
test rax, rax
je 0x140062531
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x98]
xor r8d, r8d
movzx r9d, word [rcx + r8*2]
cmp r9w, word [rdx + r8*2]
jne 0x1400624b3
inc r8
cmp rax, r8
jne 0x14006251d
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
jne 0x14006255d
jmp 0x14006255f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
je 0x14006256e
test rsi, rsi
je 0x14006255f
mov ecx, ebp
call fcn.140061cc0
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400624d9
mov rcx, rdi
call fcn.1400621d0
test al, al
jne 0x1400624d9
jmp 0x140062551
Function at 0x140062580
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140186028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x140157be0]
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, [0x1401607d3]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x509
call fcn.140043be0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400498e0
cmp byte [rdi + 0x17], 0
jns 0x1400625f2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.140049940
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14009c350
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140062630
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 esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140186028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.14009e4a0
mov qword [rsp + 0x20], rdi
xor ebp, ebp
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9d, 3
call fcn.1400629d0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x140157be0]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.140096fb0
movzx eax, byte [rbx + 0x17]
test al, al
js 0x1400626c6
and eax, 0x7f
jmp 0x1400626cb
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x14006270d
lea rcx, [rsp + 0x30]
call fcn.140043f70
lea rcx, [rsp + 0x298]
call fcn.140062b20
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14009c350
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.14009e4a0
mov rcx, r15
mov rdx, r14
call fcn.140062b90
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x14006277a
test sil, 1
jne 0x140062762
mov rcx, r14
call fcn.14009a980
test al, al
jne 0x14006281d
mov edx, dword [rsp + 0x48]
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x140062771
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, r14
call fcn.14009a980
test al, al
jne 0x1400627c0
test sil, 2
jne 0x140062831
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x14006279f
mov rcx, qword [rsp + 0x30]
call r13
xor ebp, ebp
test eax, eax
jne 0x1400627cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
jmp 0x1400627cc
xor ebp, ebp
test sil, 1
jne 0x14006285b
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.140075ca0
mov rcx, r15
mov rdx, r14
call fcn.140096fb0
mov rcx, rbx
mov rdx, r14
call fcn.1400440f0
mov rcx, r14
call fcn.140043f70
movzx eax, byte [rsp + 0x47]
test al, al
js 0x140062807
and eax, 0x7f
jmp 0x14006280c
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
je 0x1400626d0
jmp 0x140062724
mov rcx, r14
call fcn.14009a980
xor ebp, ebp
test al, al
je 0x140062786
jmp 0x1400627cc
call fcn.14004b4d0
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
mov rcx, rbx
call fcn.140105f30
xor ebp, ebp
test al, al
je 0x1400627a8
jmp 0x1400627cc
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
call fcn.140062630
mov ebp, eax
test eax, eax
jne 0x1400627cc
cmp byte [rsp + 0x47], 0
js 0x140062881
lea rcx, [rsp + 0x30]
jmp 0x140062886
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x1400627cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x1400627cc
Function at 0x140064470
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140064530
mov eax, dword [rsi]
mov dword [0x1401940a8], eax
test al, 1
jne 0x140064491
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x14019e6f8]
test rcx, rcx
jne 0x1400644ab
mov rcx, qword [0x14019e6d0]
test rcx, rcx
je 0x1400644cf
jmp 0x1400644f1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14019e6f8], 0
mov rcx, qword [0x14019e6d0]
test rcx, rcx
jne 0x1400644f1
and byte [0x1401940a8], 0xfe
mov ecx, 0x18
call fcn.14009ae90
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x14019e6d0], rax
mov rdx, qword [rsi + 8]
call fcn.140064ea0
cmp dword [rsi + 0x14], 0
jne 0x140064516
mov rcx, qword [0x14019e6d0]
cmp byte [rcx + 0x17], 0
jns 0x140064510
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400d4cb0
Function at 0x1400667d0
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140186028]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.14006ada0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x1400668d5
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 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 0x1400668f5
lea rdx, [0x140160c92]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400668f1
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1401af008]
mov rbx, rax
movsxd r9, dword [rsp + 0x3c]
lea r8, [rbx + r9*8]
xorps xmm6, xmm6
lea r14, [rsp + 0x20]
movaps xmmword [r14], xmm6
mov qword [r14 + 0x10], 0
mov rcx, r14
mov rdx, rbx
call fcn.1400688e0
mov rcx, rsi
mov rdx, r14
call fcn.1400662c0
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400668c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x50]
mov qword [rcx], r14
call fcn.1400465b0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14009c350
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ebx, ebx
jmp 0x14006687b
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140066878

Function at 0x1400698c3
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x140186028]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14009e4a0
xor ebx, ebx
lea r14, str.PROGRAMFILES
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r14]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call r15
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14006993e
mov edx, eax
mov rcx, rdi
mov r8, rsi
call fcn.140069851
test al, al
jne 0x14006996b
add rbx, 8
cmp rbx, 0x18
jne 0x14006990b
xor esi, esi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14009c350
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov sil, 1
jmp 0x14006994a
Function at 0x140069d1c
Capabilities:
Get common file path
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140186028]
xor rax, rsp
mov qword [rsp + 0x248], rax
lea rsi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.14009e4a0
mov word [rsi], 0
mov rcx, rsi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x20]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140157be0]
movaps xmmword [rdi], xmm0
mov rcx, rsi
call fcn.1400b80d4
mov rcx, rdi
mov rdx, rsi
mov r8, rax
call fcn.14003ef52
lea rdx, str.usp10.dll
mov r8d, 0xa
mov rcx, rdi
call fcn.14003f154
cmp byte [rax + 0x17], 0
jns 0x140069db1
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [rsp + 0x37], 0
jns 0x140069dcd
mov rcx, qword [rsp + 0x20]
call fcn.14009aecc
cmp esi, 0xffffffff
setne bl
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14009c350
mov eax, ebx
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret

Function at 0x14006b6e0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp rdx, r9
mov r10, r9
cmovb r10, rdx
xor eax, eax
test r10, r10
je 0x14006b745
xor r11d, r11d
mov rbx, qword [r8 + r11*8]
mov rsi, qword [rcx + r11*8]
mov rdi, rsi
xor rdi, rbx
mov r14d, eax
lea rax, [rdi - 1]
mov r15, rsi
sub r15, rbx
xor r15, rsi
or r15, rdi
not rdi
and rax, rdi
sar rax, 0x3f
xor r15, rsi
sar r15, 0x3f
or r15, 1
and r14d, eax
not rax
and rax, r15
or rax, r14
inc r11
cmp r10, r11
jne 0x14006b6fb
cmp rdx, r9
jb 0x14006b754
ja 0x14006b778
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
or rcx, qword [r8 + rdx*8]
inc rdx
cmp r9, rdx
jne 0x14006b756
mov rdx, rcx
not rdx
dec rcx
and rcx, rdx
sar rcx, 0x3f
not ecx
or eax, ecx
jmp 0x14006b74c
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x14006b77b
mov rcx, r8
not rcx
dec r8
and r8, rcx
sar r8, 0x3f
xor eax, 1
and eax, r8d
xor eax, 1
jmp 0x14006b74c
Function at 0x14006d3e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movsxd rax, dword [rdx + 8]
test rax, rax
je 0x14006d4db
mov rsi, rcx
mov rcx, qword [rdx]
xor r8d, r8d
xor r9d, r9d
or r9, qword [rcx + r8*8]
inc r8
cmp rax, r8
jne 0x14006d3ff
test r9, r9
je 0x14006d4db
test eax, eax
jle 0x14006d510
mov rcx, qword [rdx]
test byte [rcx], 1
je 0x14006d510
cmp dword [rdx + 0x10], 0
jne 0x14006d530
cmp eax, 0x401
jae 0x14006d570
lea rdi, [rsi + 0x18]
mov rcx, rdi
call fcn.14006b1f0
test rax, rax
je 0x14006d550
mov eax, dword [rsi + 0x20]
lea ecx, [rax + 1]
test eax, eax
jle 0x14006d500
mov rdx, qword [rdi]
dec ecx
cmp qword [rdx + rax*8 - 8], 0
lea rax, [rax - 1]
je 0x14006d458
mov dword [rsi + 0x20], ecx
mov rax, qword [rdi]
mov rax, qword [rax]
mov r9d, 1
mov edx, 0x40
xor ecx, ecx
movabs r8, 0x8000000000000000
mov r10d, r9d
and r10d, 1
neg r10
mov r11, rax
and r11, r10
mov rdi, r11
xor rdi, r9
shr rdi, 1
and r11, r9
add r11, rdi
and r10, r8
shr rcx, 1
or rcx, r10
mov r9, r11
dec rdx
jne 0x14006d491
mov qword [rsi + 0x30], rcx
mov qword [rsi + 0x38], 0
mov esi, 1
mov eax, esi
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rsp + 0x20], 0xaa
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
call fcn.14007cd30
jmp 0x14006d4d2
mov dword [rsi + 0x20], eax
test eax, eax
jne 0x14006d474
jmp 0x14006d5b1
mov dword [rsp + 0x20], 0xae
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x68
jmp 0x14006d4f9
mov dword [rsp + 0x20], 0xb2
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x6d
jmp 0x14006d4f9
mov dword [rsp + 0x20], 0xbc
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x44
jmp 0x14006d4f9
mov r9d, 0x400
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rax, r9
jne 0x14006d579
test r8, r8
je 0x14006d43d
mov dword [rsp + 0x20], 0xb6
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x66
jmp 0x14006d4f9
mov dword [rsi + 0x28], 0
jmp 0x14006d474