joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400666c0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov esi, r8d
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1402faf80]
lea r15, [rsp + 0x60]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, [0x140315884]
lea r8, str....._base_files_file_util_win.cc
lea r12, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x403
call fcn.140125120
xor ebx, ebx
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.14011a200
cmp byte [r14 + 0x17], 0
jns 0x140066746
mov r14, qword [r14]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, r14
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x14006679d
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp r14, 0xffffffffffffffff
je 0x140066832
call fcn.140125140
mov rbx, r14
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, 0xffffffff
test esi, esi
js 0x1400667ed
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400667ed
lea r14, [rsp + 0x40]
mov dword [r14], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [r14]
xor edx, edx
cmp eax, 1
sbb edx, edx
cmp ecx, esi
mov ebp, 0xffffffff
cmove ebp, ecx
or ebp, edx
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140066804
call fcn.140125140
mov rcx, rbx
call fcn.140113500
lea rcx, [rsp + 0x60]
call fcn.14011a280
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14016c920
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x140066795

Function at 0x140066840
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2b8
mov rsi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
movaps xmm0, xmmword [0x1402faf80]
lea rdi, [rsp + 0x60]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x14031588e]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0xa0]
mov rcx, rbx
mov r9d, 0x43c
call fcn.140125120
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14011a200
lea rbx, [rsp + 0xa0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1401a5320
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x140066934
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14018db74
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140125e00
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400788e0
mov rcx, rsi
mov rdx, r14
call fcn.140076f50
mov rcx, r14
call fcn.140125f40
mov rcx, rbx
call fcn.140125f40
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x60]
call fcn.14011a280
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14016c920
mov eax, ebx
add rsp, 0x2b8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140066970
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1402faf80]
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, [0x1403158a3]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x44c
call fcn.140125120
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14011a200
cmp byte [rdi + 0x17], 0
jns 0x1400669e2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.14011a280
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14016c920
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140066ec0
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, 0x578
mov byte [rsp + 0x37], r8b
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x570], rax
lea r14, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1401a5320
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.1400673b0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1402faf80]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.1400675a0
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x140066f5a
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14006702e
lea r14, [rsp + 0x58]
lea r15, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
xor r13d, r13d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1401a5320
mov rcx, r15
mov rdx, r14
call fcn.140067550
mov edx, dword [rsp + 0x58]
test dl, 1
jne 0x14006706b
mov rcx, r14
call fcn.1400672a0
test al, al
jne 0x1400670c0
cmp byte [rsp + 0x57], 0
mov rcx, rdi
jns 0x140066fc8
mov rcx, qword [rsp + 0x40]
call r12
test eax, eax
jne 0x1400670b9
call rbx
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r13d, r13d
cmovne ebp, r13d
mov rcx, r14
call fcn.140024880
mov rcx, r15
mov rdx, r14
call fcn.1400675a0
mov rcx, rdi
mov rdx, r14
call fcn.140076f50
mov rcx, r14
call fcn.140125f40
movsx rax, byte [rsp + 0x57]
test rax, rax
jns 0x140067022
mov rax, qword [rsp + 0x48]
mov r13d, ebp
test rax, rax
jne 0x140066f81
lea rcx, [rsp + 0x40]
call fcn.140125f40
lea rcx, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
call fcn.1400674e0
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.14016c920
mov eax, ebp
add rsp, 0x578
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsp + 0x37], 0
je 0x140067093
cmp byte [rsp + 0x57], 0
js 0x140067080
lea rcx, [rsp + 0x40]
jmp 0x140067085
mov rcx, qword [rsp + 0x40]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140066fa9
lea rcx, [rsp + 0x58]
call fcn.1400672a0
test al, al
jne 0x1400670a7
mov edx, dword [rsp + 0x58]
jmp 0x140067072
lea rcx, [rsp + 0x58]
call fcn.1400672a0
test al, al
je 0x140066fb9
xor ebp, ebp
jmp 0x140066fe5
xor ebp, ebp
cmp byte [rsp + 0x37], 0
je 0x140066fe5
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov rdx, rsi
mov r8b, 1
call fcn.140066ec0
mov ebp, eax
test eax, eax
jne 0x140066fe5
cmp byte [rsp + 0x57], 0
jns 0x1400670fd
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x140066fe5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x140066fe5
Function at 0x1400696c0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x140069870
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.14018b254
movaps xmm6, xmmword [0x1402faf80]
lea r14, [rsp + 0x80]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x51
call fcn.140125120
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14011a200
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.14018189c
mov ecx, eax
call fcn.14018235c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140069874
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
cmp r14, rdi
cmovae r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [0x14036e550]
xor r12d, r12d
mov rcx, qword [rsp + 0x30]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.14018aedc
test rax, rax
je 0x140069813
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x14006987f
add r15, r12
mov rcx, rbx
call fcn.14018a744
test eax, eax
je 0x140069883
mov r12, r15
mov rcx, rbx
call fcn.14018a770
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x14036e550]
lea rcx, [rsp + 0x80]
call fcn.14011a280
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14016c920
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x140069845
mov r14d, 0xffff
jmp 0x1400697b1
xor ebx, ebx
jmp 0x140069823
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [0x14036e550]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x1400697d6
Function at 0x140073a60
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.140073c20
mov eax, dword [rsi]
mov dword [0x1403809ac], eax
mov bl, 1
test al, 1
jne 0x140073aa7
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14016c920
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x1403923f0]
test rcx, rcx
je 0x140073ad5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1403923f0], 0
cmp qword [0x1403923f8], 0
jne 0x140073ad5
and byte [0x1403809ac], 0xfe
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x140073afe
movsx rcx, byte [rsi + 0x1f]
test rcx, rcx
jns 0x140073aec
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x140073b77
mov qword [0x1403923f0], rax
jmp 0x140073a8e
movsx rax, byte [rsi + 0x1f]
test rax, rax
jns 0x140073b0c
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140073bc6
lea rdi, [rsi + 8]
mov rcx, qword [0x1403923f8]
test rcx, rcx
jne 0x140073b47
mov ecx, 0x18
call fcn.14016b3ac
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1403923f8], rax
mov rdx, rdi
call fcn.14010a4c0
cmp dword [rsi + 0x24], 0
jne 0x140073b6b
mov rcx, qword [0x1403923f8]
cmp byte [rcx + 0x17], 0
jns 0x140073b65
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1401dd050
mov ebx, eax
jmp 0x140073a8e
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x232
call fcn.140125120
lea rdx, str.settings.log_file_path.empty__
lea r14, [rsp + 0x48]
mov rcx, r14
mov r8d, 0x7f
mov r9, rdi
call fcn.1401e02d0
mov rcx, r14
call fcn.1401e04e0
mov rax, qword [rsi + 0x28]
jmp 0x140073af5
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x238
call fcn.140125120
lea rdx, str._settings.log_file_path.empty__
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 0x7f
mov r9, rdi
call fcn.1401e02d0
lea rdx, str.LOG_TO_FILE_set_but_no_log_file_path_
mov rcx, rbx
call fcn.1401dd020
mov rcx, rbx
call fcn.1401e04e0
jmp 0x140073b15
Function at 0x140079030
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14007905f
call fcn.140125140
cmp qword [rsi], r14
je 0x14007908e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400790ca
cmp r15, 2
jb 0x140079086
mov qword [rsi], r14
call fcn.140125140
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
call fcn.140125da0
lea rcx, [rsi + 0x20]
call fcn.140135110
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x28], 0
mov byte [rsi + 0x29], bl
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400790e0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140125140
mov rcx, qword [rsi]
call fcn.140113500
mov qword [rsi], 0
jmp 0x140079078
call fcn.140125140
mov rcx, qword [rdi]
call fcn.140113500
mov qword [rdi], 0
jmp 0x1400790ba

Function at 0x140079990
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140392508]
test rdi, rdi
jne 0x140079a43
mov ecx, 0x50
call fcn.14016b3ac
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.14016b3ac
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140079a65
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 [0x140392508], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140079a65
mov rcx, rax
call fcn.14018db74
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140079a70
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14016c920
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x140083ef0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x140083f0a
test r8d, r8d
jne 0x140083f03
call fcn.1401421c0
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.14012bd60

Function at 0x140085160
Capabilities:
Get session user name

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x258
mov rsi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rdi, [rsp + 0x50]
mov r8d, 0x200
mov rcx, rdi
mov dl, 0xaa
call fcn.1401a5320
lea rbx, [rsp + 0x4c]
mov dword [rbx], 0x100
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
setne al
mov ecx, dword [rbx]
test rcx, rcx
setne bl
and bl, al
je 0x140085384
movabs r14, 0x7fffffffffffffff
movsx r8, byte [rsi + 0x17]
test r8, r8
js 0x140085361
mov rdx, rsi
cmp ecx, 0xa
jbe 0x140085260
mov eax, r8d
mov rdx, r8
cmp rdx, rcx
cmova rcx, rdx
mov r9d, 0xa
mov edx, 0xa
cmp rcx, 0xb
jb 0x14008521e
mov rdx, rcx
and rdx, 0xfffffffffffffffc
add rdx, 4
or rcx, 3
cmp rcx, 0xb
cmove rcx, rdx
mov rdx, rcx
test r8b, r8b
js 0x140085399
cmp rdx, r9
je 0x140085237
mov rcx, rsi
call fcn.1400401b0
mov al, byte [rsi + 0x17]
mov rdx, rsi
test al, al
jns 0x140085260
mov rax, qword [rsi + 0x10]
mov rcx, rax
and rcx, r14
cmp rcx, 1
je 0x1400853af
shr rax, 0x38
mov rdx, rsi
test al, al
jns 0x140085260
mov rdx, qword [rsi]
mov word [rdx], 0x2e
cmp byte [rsi + 0x17], 0
jns 0x14008538e
mov qword [rsi + 8], 1
mov word [rdx + 2], 0
mov r12d, dword [rsp + 0x4c]
dec r12d
movsx rax, byte [rsi + 0x17]
test rax, rax
jns 0x140085318
and r14, qword [rsi + 0x10]
dec r14
mov r15, qword [rsi + 8]
mov rcx, r14
sub rcx, r15
cmp rcx, r12
jb 0x140085326
test r12, r12
je 0x1400852f5
mov r14, rsi
test al, al
jns 0x1400852b8
mov r14, qword [rsi]
lea rcx, [r14 + r15*2]
lea rax, [rcx + r12*2]
cmp rax, rdi
seta al
cmp rcx, rdi
ja 0x1400852d3
test al, al
jne 0x140085397
lea r8, [r12 + r12]
lea rdx, [rsp + 0x50]
call fcn.1401a4c80
add r15, r12
cmp byte [rsi + 0x17], 0
jns 0x140085357
mov qword [rsi + 8], r15
mov word [r14 + r15*2], 0
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14016c920
mov eax, ebx
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14d, 0xa
mov r15, rax
jmp 0x14008529e
mov r8, r12
sub r8, r14
add r8, r15
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], 0
mov rcx, rsi
mov rdx, r14
mov r9, r15
call fcn.140044480
jmp 0x1400852f5
mov eax, r15d
and al, 0x7f
mov byte [rsi + 0x17], al
jmp 0x1400852ee
mov rax, qword [rsi + 0x10]
mov rdx, rax
and rdx, r14
dec rdx
shr rax, 0x38
cmp rdx, rcx
jae 0x140085237
mov rdx, qword [rsi + 8]
jmp 0x1400851ec
call fcn.1401e0610
jmp 0x1400852f5
mov byte [rsi + 0x17], 1
jmp 0x140085277
ud2
mov rax, qword [rsi + 0x10]
mov r9, rax
and r9, r14
dec r9
shr rax, 0x38
jmp 0x140085227
mov r9, qword [rsi + 8]
mov r8d, 2
sub r8, rcx
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r15
mov rcx, rsi
xor edx, edx
call fcn.140101670
mov qword [rsi + 8], r15
mov al, byte [rsi + 0x17]
jmp 0x140085256
Function at 0x14008d700
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov byte [rcx], 0
mov qword [rcx + 8], 0
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x28
mov r8, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14008d801
mov r15, qword [rsp + 0x40]
cmp qword [rsi + 8], r15
je 0x14008d79b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14008d842
lea rax, [r15 + 1]
cmp rax, 2
jb 0x14008d793
mov qword [rsi + 8], r15
call fcn.140125140
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x38]
mov qword [r8], r14
xor ecx, ecx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14008d81d
lea r8, [rsp + 0x48]
mov dword [r8], 1
mov rax, qword [rsp + 0x38]
mov qword [r8 + 4], rax
mov dword [r8 + 0xc], 2
lea rax, [rsp + 0x34]
mov dword [rax], 0xaaaaaaaa
lea rdx, [rsi + 0x10]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
xor edx, edx
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14008d81d
mov byte [rsi], 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14016c920
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x14008d801
call fcn.140125140
mov rcx, qword [rsi + 8]
call fcn.140113500
mov qword [rsi + 8], 0
jmp 0x14008d801
call fcn.140125140
mov rcx, qword [rsi + 8]
call fcn.140113500
mov qword [rsi + 8], 0
jmp 0x14008d780
Function at 0x140093b10
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1403947c8]
mov ecx, dword [0x14038f0a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140093b70
lea rsi, [0x1403947c0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14016c920
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1403947c8]
call fcn.14016b42c
cmp dword [0x1403947c8], 0xffffffff
jne 0x140093b4c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1401a5320
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.14016b3ac
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140394830]
mov ecx, dword [0x14038f0a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140093c30
lea r8, [0x140394800]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140093d30
mov qword [0x1403947c0], rsi
lea rcx, [0x1403947c8]
call fcn.14016b4e0
jmp 0x140093b4c
lea rcx, [0x140394830]
call fcn.14016b42c
cmp dword [0x140394830], 0xffffffff
jne 0x140093c01
xorps xmm0, xmm0
movups xmmword [0x140394820], xmm0
movups xmmword [0x140394810], xmm0
movups xmmword [0x140394800], xmm0
lea rcx, [0x140394800]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140394830]
call fcn.14016b4e0
jmp 0x140093c01

Function at 0x140093c80
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140394830]
mov ecx, dword [0x14038f0a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140093cbb
movzx eax, word [0x140394800]
cmp eax, 9
jne 0x140093d03
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140394830]
call fcn.14016b42c
cmp dword [0x140394830], 0xffffffff
jne 0x140093ca5
xorps xmm0, xmm0
movups xmmword [0x140394820], xmm0
movups xmmword [0x140394810], xmm0
movups xmmword [0x140394800], xmm0
lea rcx, [0x140394800]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140394830]
call fcn.14016b4e0
jmp 0x140093ca5
test eax, eax
je 0x140093cb6
cmp eax, 6
jne 0x140093d13
mov eax, 2
jmp 0x140093cb6
cmp eax, 0xc
jne 0x140093d1f
mov eax, 3
jmp 0x140093cb6
mov eax, 4
jmp 0x140093cb6
Function at 0x140094ea0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea r9, [rsp + 0x68]
mov qword [r9], 0
lea rcx, [0x1402ef0a0]
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140095049
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140095038
movabs r15, 0x7ffffffffffffff7
mov rcx, rdi
call fcn.14018db74
cmp rax, r15
ja 0x14009503f
mov rbx, rax
lea r14, [rsp + 0x28]
cmp rax, 0xa
jbe 0x14009502c
lea rax, [r15 + 5]
and rax, rbx
add rax, 4
mov r12, rbx
or r12, 3
cmp r12, 0xb
cmove r12, rax
inc r12
js 0x14009503a
lea rcx, [r12 + r12]
call fcn.14016b3ac
mov rcx, rax
mov qword [rsp + 0x28], rax
lea rax, [r15 + r12]
add rax, 9
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea r15, [rcx + rbx*2]
cmp rcx, rdi
seta al
cmp r15, rdi
setbe dl
or dl, al
je 0x140095038
test rbx, rbx
je 0x140094f90
add rbx, rbx
mov rdx, rdi
mov r8, rbx
call fcn.1401a4c80
mov word [r15], 0
movsx rax, byte [rsp + 0x3f]
test rax, rax
cmovs rax, qword [rsp + 0x30]
cmovs r14, qword [rsp + 0x28]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rax
test rax, rax
js 0x140095038
sete al
test r14, r14
setne cl
or cl, al
je 0x140095038
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140125e00
mov rcx, rsi
mov rdx, rdi
call fcn.140076f50
mov rcx, rdi
call fcn.140125f40
cmp byte [rsp + 0x3f], 0
jns 0x140094ffd
mov rcx, qword [rsp + 0x28]
call fcn.14016b3e8
mov bl, 1
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009500f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14016c920
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov byte [rsp + 0x3f], bl
mov rcx, r14
jmp 0x140094f65
ud2
call fcn.1401a62b0
lea rcx, [rsp + 0x28]
call fcn.1401a6270
mov rcx, rsi
call fcn.14023c130
mov ebx, eax
jmp 0x140094fff