joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bca90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x1400bcbe0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 1
je 0x1400bcc47
cmp byte [rsi + 0x61], 1
jne 0x1400bcc79
mov rcx, qword [rsi + 0x40]
call fcn.14009e6c8
cmp eax, 0xffffffff
je 0x1400bcc40
test bl, bl
jne 0x1400bcc38
mov rdx, qword [rsi + 0x40]
movzx edi, al
mov ecx, edi
call fcn.14009fbe4
cmp eax, 0xffffffff
cmove edi, eax
jmp 0x1400bcc59
movzx edi, al
mov dword [rsi + 0x5c], edi
jmp 0x1400bcc59
mov edi, 0xffffffff
jmp 0x1400bcc59
mov edi, dword [rsi + 0x5c]
test bl, bl
je 0x1400bcc59
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140084ac0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r15d, 1
cmovge r15d, eax
xor r14d, r14d
mov rcx, qword [rsi + 0x40]
call fcn.14009e6c8
cmp eax, 0xffffffff
je 0x1400bcc40
mov byte [rsp + r14 + 0x58], al
inc r14
cmp r15, r14
jne 0x1400bcc9b
lea rax, [rsp + 0x58]
mov byte [rax - 1], 0xaa
lea rax, [rsp + 0x48]
mov qword [rax], rdi
lea rbp, [rsp + 0x40]
mov qword [rbp], rdi
mov edi, 0xffffffff
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r14d, dword [rdx]
movzx r12d, word [rdx + 4]
movzx r13d, word [rdx + 6]
lea r9, [rsp + r15 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x57]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x58]
call qword [0x1401689f8]
cmp eax, 1
jne 0x1400bcd63
mov rax, qword [rsi + 0x50]
mov dword [rax], r14d
mov word [rax + 4], r12w
mov word [rax + 6], r13w
cmp r15d, 8
je 0x1400bcc59
mov rcx, qword [rsi + 0x40]
call fcn.14009e6c8
cmp eax, 0xffffffff
je 0x1400bcc59
mov byte [rsp + r15 + 0x58], al
inc r15
jmp 0x1400bccd5
cmp eax, 2
je 0x1400bcc59
cmp eax, 3
jne 0x1400bcd79
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test bl, bl
je 0x1400bcd91
movzx edi, byte [rsp + 0x57]
jmp 0x1400bcc3b
movzx edi, byte [rsp + 0x57]
jmp 0x1400bcc59
test r15, r15
jle 0x1400bcd87
mov rdx, qword [rsi + 0x40]
movzx ecx, byte [rsp + r15 + 0x57]
dec r15
call fcn.14009fbe4
cmp eax, 0xffffffff
jne 0x1400bcd91
jmp 0x1400bcc59

Function at 0x1400bd690
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400bd6c7
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x1400bd6a1
ret

Function at 0x1400bd740
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400bd778
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x1400bd751
ret
Function at 0x1400c3b90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x1400c3bfd
movzx edx, word [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov word [rsp + 0x20], dx
mov rdx, rsi
mov r8, rdi
call qword [0x1401689f8]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rsi], rdi
test al, al
jns 0x1400c3bdf
call fcn.1400837d0
jmp 0x1400c3bdf
lea rbx, [rbp - 0x20]
mov rcx, r9
mov rdx, rbx
call fcn.14006a990
lea rdx, [0x1401858a8]
mov rcx, rbx
call fcn.14006b3c0
mov r14, rax
mov rcx, qword [rbp - 0x20]
lea rax, [0x1401856c0]
cmp rcx, rax
je 0x1400c3c49
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x1400c3c49
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1401689f8]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x14014c6c0]
movaps xmmword [rbx], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [0x1401689f8]
movsx rax, byte [rbx + 0x17]
test rax, rax
mov rcx, qword [rbx]
mov rdx, qword [rbx + 8]
mov r8, rax
cmovs r8, rdx
test r8, r8
je 0x1400c3bef
test al, al
mov r14, rbx
cmovs r14, rcx
jmp 0x1400c3ceb
xor edi, edi
jmp 0x1400c3cc9
lea rdx, [rcx + 2]
mov qword [rdi + 0x30], rdx
mov word [rcx], ax
cmp ax, 0xffff
jne 0x1400c3cbe
xor edi, edi
mov al, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add r14, 2
test al, al
mov r8, rbx
cmovs r8, rcx
movzx r9d, al
cmovs r9, rdx
lea r8, [r8 + r9*2]
cmp r14, r8
je 0x1400c3bef
test rdi, rdi
je 0x1400c3ca7
movzx eax, word [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
jne 0x1400c3cab
mov rcx, qword [rdi]
mov r8, qword [rcx + 0x60]
mov rcx, rdi
mov edx, eax
mov rax, r8
call qword [0x1401689f8]
jmp 0x1400c3cb6
Function at 0x1400d4210
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 1
je 0x1400d4239
mov rcx, qword [rsi]
jmp 0x1400d4242
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400d428b
mov dil, 1
test bl, bl
je 0x1400d4274
cmp byte [rsi + 8], 1
je 0x1400d4260
mov rcx, qword [rsi]
jmp 0x1400d4269
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140084ac0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 1
jne 0x1400d42a2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400d42a5
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400d42b8
xor edi, edi
jmp 0x1400d4274
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 1
jne 0x1400d42d1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400d42d4
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1400d4274
Function at 0x1400d43a0
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
movaps xmmword [rsp + 0x130], xmm6
mov ebx, r9d
mov edi, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x40], 0xb
mov rax, qword [0x140158e68]
mov al, byte [rax + 0xb]
test al, al
jne 0x1400d464d
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x120], r13
movaps xmm6, xmmword [0x14014c6c0]
movaps xmmword [rsp + 0x110], xmm6
lea r15, [rsp + 0x80]
mov rcx, r14
mov rdx, r15
call fcn.14003ba50
cmp byte [r15 + 0x17], 0
js 0x1400d44d1
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x120], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x110], xmm0
lea r12, [rsp + 0x80]
mov rcx, r12
call fcn.140039e60
lea r15, [rsp + 0xf0]
mov qword [r15 + 0x10], r13
movaps xmmword [r15], xmm6
mov rcx, r14
mov rdx, r15
call fcn.1400db2c0
xorps xmm0, xmm0
movups xmmword [r12 + 0x60], xmm0
movups xmmword [r12 + 0x50], xmm0
movups xmmword [r12 + 0x40], xmm0
movups xmmword [r12 + 0x30], xmm0
movabs rax, 0x4000000070
mov qword [r12], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [r12 + 8], rax
lea rax, str.runas
mov qword [r12 + 0x10], rax
cmp byte [rsp + 0x127], 0
js 0x1400d44f3
lea rax, [rsp + 0x110]
jmp 0x1400d44fb
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
lea rcx, [rsp + 0x110]
call fcn.140035920
jmp 0x1400d4452
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x98], rax
cmp byte [rsp + 0x107], 0
jns 0x1400d4515
mov r15, qword [rsp + 0xf0]
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x20], r15
xor r14d, r14d
mov qword [rcx + 0x28], r14
xor dil, 1
movzx eax, dil
mov dword [rcx + 0x30], eax
mov qword [rcx + 0x38], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400d45ab
test bl, bl
je 0x1400d45a3
lea rdi, [rsp + 0x40]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.LaunchElevatedProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x9e
call fcn.14006ea50
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400428c0
mov rcx, qword [rsp + 0xe8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.140042940
mov r14, qword [rsp + 0xe8]
mov rcx, rsi
mov rdx, r14
call fcn.1400365c0
cmp byte [rsp + 0x107], 0
jns 0x1400d45cd
mov rcx, qword [rsp + 0xf0]
call fcn.1400837d0
cmp byte [rsp + 0x127], 0
jns 0x1400d45e4
mov rcx, qword [rsp + 0x110]
call fcn.1400837d0
mov qword [rsp + 0x40], 0xb
mov rax, qword [0x140158e68]
mov al, byte [rax + 0xb]
test al, al
jne 0x1400d4629
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.140084ac0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, al
lea r8, [rsp + 0x80]
mov qword [r8], 0
lea rdx, [rsp + 0x40]
mov r9d, 2
call fcn.14006c5a0
jmp 0x1400d45fb
movzx ecx, al
lea rax, str.LaunchElevatedProcess
lea r8, [rsp + 0x80]
mov qword [r8], rax
lea rdx, [rsp + 0x40]
mov r9d, 1
call fcn.14006c5a0
jmp 0x1400d43f3
Function at 0x1400d4f00
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 [0x140175040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x14014c6c0]
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, 0x5f
call fcn.14006ea50
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400428c0
test esi, esi
js 0x1400d501c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140042ab0
test al, al
je 0x1400d4fb7
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400e3040
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 0x1400d5023
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x1400d5036
lea rcx, [rsp + 0x30]
call fcn.140042b30
lea rcx, [rsp + 0x50]
call fcn.140042940
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140084ac0
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400d4ff1
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x1400d4fe7
int3

Function at 0x1400d5040
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 [0x140175040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x14014c6c0]
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.14006ea50
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400428c0
test esi, esi
js 0x1400d515d
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140042ab0
test al, al
je 0x1400d50f7
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400e3040
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.140042b30
lea rcx, [rsp + 0x50]
call fcn.140042940
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140084ac0
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400d5132
Function at 0x1400d5170
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14014c6c0]
lea rbx, [rsp + 0x50]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.SetLength
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0xb9
call fcn.14006ea50
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400428c0
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.140042ab0
test al, al
je 0x1400d5215
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.1400e3040
lea r8, [rsp + 0x28]
mov qword [r8], r15
mov rcx, qword [rsi]
xor ebx, ebx
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400d5272
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400d5272
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400d52a7
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea rcx, [rsp + 0x30]
call fcn.140042b30
lea rcx, [rsp + 0x50]
call fcn.140042940
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140084ac0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400d5272
Function at 0x1400d5780
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x14014c6c0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x1ce
call fcn.14006ea50
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400428c0
mov al, byte [rsi + 0x17]
test al, al
jns 0x1400d57fe
cmp qword [rsi + 8], 0x103
ja 0x1400d581c
test al, al
jns 0x1400d5805
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x40]
call fcn.140042940
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140084ac0
mov eax, edi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400d5850
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 [0x140175040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14014c6c0]
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.14006ea50
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400428c0
cmp byte [rdi + 0x17], 0
jns 0x1400d58d2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d595e
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.14006c510
mov rax, qword [rbx]
inc rax
test rax, 0xfffffffffffffffe
setne bl
cmp rax, 2
jb 0x1400d595e
call fcn.14006ea70
mov rcx, qword [rsp + 0x40]
call fcn.14006c130
lea rcx, [rsp + 0x60]
call fcn.140042940
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140084ac0
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400d5990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14014c6c0]
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.14006ea50
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400428c0
cmp byte [rdi + 0x17], 0
jns 0x1400d5a02
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.140042940
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140084ac0
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400d5a50
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400b71c0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1400d5aef
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400a0488
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14006ea80
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400daad0
mov rcx, rsi
mov rdx, r14
call fcn.140039ed0
mov rcx, r14
call fcn.140039e60
mov rcx, rbx
call fcn.140039e60
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140084ac0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400d6400
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 [0x140175040]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1400b71c0
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.1400d6880
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14014c6c0]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.140037960
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x1400d649d
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400d65f5
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 0x1400d659e
mov rcx, rdi
mov rdx, qword [rsp + 0x28]
mov r8b, 1
call fcn.1400d6400
mov ebp, eax
test eax, eax
jne 0x1400d6559
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400d64ee
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
jmp 0x1400d6533
mov edx, dword [rsp + 0x48]
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400d650e
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call r12
mov rcx, r14
call fcn.1400d6810
test al, al
jne 0x1400d654f
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400d652f
mov rcx, qword [rsp + 0x30]
call rsi
xor ebp, ebp
test eax, eax
jne 0x1400d6559
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
jmp 0x1400d6559
xor ebp, ebp
test bl, bl
jne 0x1400d64c9
test r13d, r13d
cmovne ebp, r13d
mov rcx, r14
call fcn.1400b7ea0
mov rcx, r15
mov rdx, r14
call fcn.140037960
mov rcx, rdi
mov rdx, r14
call fcn.140039ed0
mov rcx, r14
call fcn.140039e60
movsx rax, byte [rsp + 0x47]
test rax, rax
jns 0x1400d6596
mov rax, qword [rsp + 0x38]
mov r13d, ebp
test rax, rax
je 0x1400d65f5
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1400b71c0
mov rcx, r15
mov rdx, r14
call fcn.1400d6a50
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x1400d6514
test bl, bl
jne 0x1400d64ff
mov rcx, r14
call fcn.1400d6810
test al, al
je 0x1400d64fb
mov rcx, r14
call fcn.1400d6810
xor ebp, ebp
test al, al
jne 0x1400d6559
jmp 0x1400d6520
lea rcx, [rsp + 0x30]
call fcn.140039e60
lea rcx, [rsp + 0x298]
call fcn.1400d69e0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140084ac0
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 0x1400d72f0
Capabilities:
Access the windows event log
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x860
mov rsi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x858], rax
mov rdx, qword [0x140186400]
test rdx, rdx
setne al
and al, byte [0x140177040]
cmp al, 1
jne 0x1400d74a9
cmp byte [rdx + 0x17], 0
jns 0x1400d733a
mov rdx, qword [rdx]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
test rax, rax
je 0x1400d74d4
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14006ea70
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 0x18]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x14014c6c0]
movaps xmmword [r14], xmm0
lea rbx, [rsp + 0x80]
mov rdx, rbx
call fcn.14002bd60
lea r15, [rsp + 0x48]
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.140061b90
mov eax, dword [rsi + 8]
mov bp, 1
lea ecx, [rax - 2]
cmp ecx, 2
jb 0x1400d74ec
cmp eax, 1
je 0x1400d73ca
test eax, eax
jne 0x1400d73ce
mov bp, 4
jmp 0x1400d73ce
mov bp, 2
cmp byte [rsp + 0x77], 0
jns 0x1400d73da
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x48], 0
mov rcx, qword [0x140186410]
cmp byte [rcx + 0x17], 0
jns 0x1400d73fb
mov rcx, qword [rcx]
lea rdx, [rsp + 0x48]
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
jne 0x1400d741f
lea rcx, [rsi + 0x10]
lea rdx, str.___ERROR_GETTING_USER_SID__
mov r8d, 0x1b
call fcn.140061560
mov rax, qword [rsp + 0x48]
mov r9d, dword [0x14018640c]
movzx r8d, word [0x140186408]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, rdi
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x1400d747a
lea rcx, [rsi + 0x10]
lea rdx, str.___NOT_ADDED_TO_EVENTLOG__
mov r8d, 0x1a
call fcn.140061560
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400d748a
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [rsp + 0x77], 0
jns 0x1400d749b
mov rcx, qword [rsp + 0x60]
call fcn.1400837d0
call fcn.14006ea70
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rsi
call fcn.1400d8590
mov rcx, qword [rsp + 0x858]
xor rcx, rsp
call fcn.140084ac0
nop
add rsp, 0x860
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsi + 0x10]
lea rdx, str.___NOT_ADDED_TO_EVENTLOG__
mov r8d, 0x1a
call fcn.140061560
jmp 0x1400d74a9
lea r12, [rsp + 0x80]
mov r8d, 0x7d8
mov rcx, r12
mov dl, 0xaa
call fcn.1400b71c0
mov rcx, r12
call fcn.140044450
mov rcx, r12
mov rdx, r15
call fcn.1400e4df0
movsx r8, byte [rsp + 0x5f]
test r8, r8
jns 0x1400d752c
mov r8, qword [rsp + 0x50]
mov r15, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
mov rdx, r15
call fcn.14006b990
cmp byte [rsp + 0x5f], 0
jns 0x1400d73ce
mov rcx, qword [rsp + 0x48]
call fcn.1400837d0
jmp 0x1400d73ce