joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d1b0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea r14, [0x140000000]
add r8, r14
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x14000d296
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x14000d296
movzx eax, word [r8 + 0x14]
lea rdx, [r8 + 0x18]
mov r10d, dword [r9 + r14 + 0xc]
add rdx, rax
movzx r11d, word [r8 + 6]
xor r9d, r9d
test r11d, r11d
je 0x14000d232
mov ecx, dword [rdx + 0xc]
cmp r10d, ecx
jb 0x14000d226
mov eax, dword [rdx + 8]
add ecx, eax
cmp r10d, ecx
jb 0x14000d289
inc r9d
add rdx, 0x28
cmp r9d, r11d
jb 0x14000d214
mov eax, dword [rsp + 0x50]
xor ebx, ebx
mov edi, dword [rsp + 0x50]
test rbx, rbx
je 0x14000d296
cmp dword [0x1400284a0], 0
mov r14d, 0x19
jne 0x14000d26d
mov dword [0x1400284a0], 1
test eax, eax
js 0x14000d263
mov ecx, r14d
int 0x29
mov edx, edi
mov rcx, rbx
call fcn.14000d110
mov edx, edi
mov r9, rsi
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtect]
test eax, eax
jne 0x14000d29c
mov rcx, r14
int 0x29
jmp 0x14000d29c
mov ebx, dword [rdx + 0xc]
mov edi, eax
mov eax, dword [rdx + 0x24]
add rbx, r14
jmp 0x14000d23c
mov dword [rsi], 4
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14000d770
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140021bb8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, qword [rdx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 1
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x34], esi
mov rcx, rbp
xor ebx, ebx
call qword [sym.imp.api_ms_win_core_localregistry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x14000d837
cmp dword [rsp + 0x30], 2
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x143], bl
jne 0x14000d800
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x14000d837
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x14000d823
mov al, byte [rcx + rdi]
test al, al
je 0x14000d823
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x14000d805
test rsi, rsi
jne 0x14000d830
dec rdi
mov edx, 0x8007007a
test edx, edx
mov byte [rdi], bl
setns bl
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_localregistry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000e6b0
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e4b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140028478], rbx
je 0x14000e4fc
cmp rax, rbx
jne 0x14000e4ef
mov ebx, 1
mov esi, ebx
jmp 0x14000e501
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_misc_l1_1_0.dll_Sleep]
jmp 0x14000e4d4
mov ebx, 1
mov eax, dword [0x140028480]
cmp eax, ebx
jne 0x14000e517
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000e57c
mov eax, dword [0x140028480]
test eax, eax
jne 0x14000e576
mov dword [0x140028480], ebx
lea r15, [0x1400113f0]
lea rdi, [0x1400113d8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x14000e568
test eax, eax
jne 0x14000e56c
cmp qword [rdi], 0
je 0x14000e55d
mov rax, qword [rdi]
mov rcx, qword [0x140011380]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000e53e
test eax, eax
je 0x14000e57c
mov eax, 0xff
jmp 0x14000e658
mov dword [0x140021fb0], ebx
mov eax, dword [0x140028480]
cmp eax, ebx
jne 0x14000e5a3
lea rdx, [0x1400113d0]
lea rcx, [0x140011388]
call sub.msvcrt.dll__initterm
mov dword [0x140028480], 2
test esi, esi
jne 0x14000e5b0
xor eax, eax
xchg qword [0x140028478], rax
cmp qword [0x140028498], 0
je 0x14000e5e4
lea rcx, [0x140028498]
call fcn.14000eca0
test eax, eax
je 0x14000e5e4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140028498]
mov r9, qword [0x140011380]
call r9
mov r8, qword [0x140021fc8]
mov rdx, qword [0x140021fc0]
mov ecx, dword [0x140021fb8]
call fcn.14000a46c
mov dword [0x140021fac], eax
cmp dword [0x140021fd0], 0
jne 0x14000e614
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140021fb0], 0
jne 0x14000e629
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140021fac]
jmp 0x14000e658
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400bc000
add rsp, 0x28
jmp 0x14000e4b0

Function at 0x14000eb9c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000ebe8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000ebe0
cmp dword [rcx + 0x3c], edx
jl 0x14000ebe0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000ebe0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000ebe8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14002b410
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14002b457
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002b471
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002b44f
mov qword [rsi], rdi
call fcn.14007ed10
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14002b487
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14007ed10
mov rcx, qword [rsi]
call fcn.14007b4c0
mov qword [rsi], 0
jmp 0x14002b43d
int3

Function at 0x14002b4c0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14002b4ea
call fcn.14007ed10
cmp qword [rsi], r14
je 0x14002b519
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002b554
cmp r15, 2
jb 0x14002b511
mov qword [rsi], r14
call fcn.14007ed10
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14002b53e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14007ed10
mov rcx, qword [rdi]
call fcn.14007b4c0
mov qword [rdi], 0
jmp 0x14002b52f
call fcn.14007ed10
mov rcx, qword [rsi]
call fcn.14007b4c0
mov qword [rsi], 0
jmp 0x14002b503
Function at 0x14002bfb0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x40], r12
movaps xmm0, xmmword [0x14015fb50]
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.14007ecf0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140086470
test esi, esi
js 0x14002c0ba
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.140088130
test al, al
jne 0x14002c0c1
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.1400881c0
lea rcx, [rsp + 0x50]
call fcn.1400866a0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b4910
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14002c08d
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140107450
jmp 0x14002c052

Function at 0x14002c0e0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x40], r14
movaps xmm0, xmmword [0x14015fb50]
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, 0xac
call fcn.14007ecf0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140086470
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.140088130
test al, al
jne 0x14002c1c0
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.1400881c0
lea rcx, [rsp + 0x50]
call fcn.1400866a0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b4910
mov rax, rsi
add rsp, 0xa8
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.140107450
jmp 0x14002c16d
Function at 0x14002c1e0
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 [0x140187028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x40], r15
movaps xmm0, xmmword [0x14015fb50]
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.14007ecf0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140086470
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.140088130
test al, al
jne 0x14002c308
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 0x14002c2d3
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 0x14002c2d3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14002c324
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.1400881c0
lea rcx, [rsp + 0x50]
call fcn.1400866a0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400b4910
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.140107450
jmp 0x14002c276
xor ebx, ebx
jmp 0x14002c2d3
Function at 0x14002c470
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 [0x140187028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x14015fb50]
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, 0x173
call fcn.14007ecf0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140086470
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 0x14002c6ea
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 0x14002c6bf
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 0x14002c5e1
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 0x14002c63b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002c6d1
mov rax, r14
inc rax
cmp rax, 2
jb 0x14002c630
mov qword [rsi], r14
call fcn.14007ed10
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x14002c692
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x14002c6a4
test bl, 0xa
je 0x14002c661
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x14002c6b5
lea rcx, [rsp + 0x60]
call fcn.1400866a0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400b4910
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002c330
mov dword [rsi + 0x24], eax
jmp 0x14002c667
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x14002c661
mov rcx, rdi
call fcn.14002d3b0
jmp 0x14002c667
bt ebx, 0x15
jb 0x14002c706
or r8d, 0x20000000
jmp 0x14002c55f
call fcn.14007ed10
mov rcx, qword [rsi]
call fcn.14007b4c0
mov qword [rsi], 0
jmp 0x14002c61c
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.140106f30
jmp 0x14002c667
int3
Function at 0x14002cae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x14015fb50]
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, 0x1ff
call fcn.14007ecf0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140086470
cmp byte [rdi + 0x17], 0
jns 0x14002cb60
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.1400866a0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400b4910
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x14015fb50]
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, 0x227
call fcn.14007ecf0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140086470
cmp byte [rdi + 0x17], 0
jns 0x14002cc20
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.1400866a0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400b4910
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002cc60
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400b6a60
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002ccff
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400d2a60
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14007efe0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140032110
mov rcx, rsi
mov rdx, r14
call fcn.14007f180
mov rcx, r14
call fcn.14007f170
mov rcx, rbx
call fcn.14007f170
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400b4910
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14002cd30
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400b6a60
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 0x14002cdc5
cmp word [rsp + 0x70], 0
je 0x14002cdc5
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400d2a60
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14007efe0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400b4910
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14015fb50]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14007eeb0
mov rcx, rdi
call fcn.14002cc60
test al, al
je 0x14002ce05
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14007efc0
jmp 0x14002ce24
lea rax, [0x14016658c]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14007efe0
lea rcx, [rsp + 0x40]
call fcn.14007f170
jmp 0x14002cda7
Function at 0x14002d740
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 [0x140187028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1400b6a60
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14002dbd0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14015fb50]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14002dd90
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14002d7d6
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x14002d818
lea rcx, [rsp + 0x30]
call fcn.14007f170
lea rcx, [rsp + 0x298]
call fcn.14002dcd0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1400b4910
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.1400b6a60
mov rcx, r15
mov rdx, r14
call fcn.14002dd40
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x14002d930
mov rcx, r14
call fcn.14002db00
test al, al
jne 0x14002d8df
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14002d872
mov rcx, qword [rsp + 0x30]
call r13
test eax, eax
jne 0x14002d965
call qword [sym.imp.KERNEL32.dll_GetLastError]
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.14002dd90
mov rcx, rdi
mov rdx, r14
call fcn.14007f180
mov rcx, r14
call fcn.14007f170
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14002d8ce
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
je 0x14002d7db
jmp 0x14002d82f
xor ebp, ebp
test bl, bl
je 0x14002d893
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.14002d740
test eax, eax
jne 0x14002d982
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14002d90a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14002d893
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14002d893
test bl, bl
je 0x14002d945
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14002d96c
mov rcx, qword [rsp + 0x30]
jmp 0x14002d971
lea rcx, [rsp + 0x48]
call fcn.14002db00
test al, al
je 0x14002d97c
lea rcx, [rsp + 0x48]
call fcn.14002db00
test al, al
je 0x14002d863
xor ebp, ebp
jmp 0x14002d893
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14002d857
mov edx, dword [rsp + 0x48]
jmp 0x14002d934
mov ebp, eax
jmp 0x14002d893
Function at 0x14002fd80
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14002fe40
mov eax, dword [rsi]
mov dword [0x140188ff8], eax
test al, 1
jne 0x14002fda1
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x140199630]
test rcx, rcx
jne 0x14002fdbb
mov rcx, qword [0x140199608]
test rcx, rcx
je 0x14002fddf
jmp 0x14002fe01
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140199630], 0
mov rcx, qword [0x140199608]
test rcx, rcx
jne 0x14002fe01
and byte [0x140188ff8], 0xfe
mov ecx, 0x18
call fcn.1400b34d0
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140199608], rax
mov rdx, qword [rsi + 8]
call fcn.1400309f0
cmp dword [rsi + 0x14], 0
jne 0x14002fe26
mov rcx, qword [0x140199608]
cmp byte [rcx + 0x17], 0
jns 0x14002fe20
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.140100130