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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180056154
xor eax, eax
jmp 0x180056217
mov rbp, rbx
cmp word [rax], si
je 0x180056179
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180056160
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005615c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18005480c
movsxd r14, eax
test eax, eax
jne 0x1800561b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005614d
mov rcx, r14
call fcn.18004f8f4
mov rdi, rax
test rax, rax
jne 0x1800561d0
xor ecx, ecx
call fcn.18004f224
jmp 0x1800561ac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18005480c
test eax, eax
jne 0x180056201
mov rcx, rdi
call fcn.18004f224
jmp 0x18005620b
xor ecx, ecx
call fcn.18004f224
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180058f8c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18004c570
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18005902d
cmp ebx, dword [rsp + 0x30]
je 0x180059026
test esi, esi
je 0x180059026
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180059001
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18005900e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180058feb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180059012
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18005902f
mov eax, 1
jmp 0x18005902f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18005d9c8
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180052dfc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180052dfc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18005db18
cmp rax, 0xffffffffffffffff
je 0x18005db18
xor edi, edi
test rbp, rbp
jle 0x18005dac3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18004e3c4
mov rbx, rax
test rax, rax
jne 0x18005da50
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18005dab9
mov edx, 0x8000
mov ecx, r14d
call fcn.18005d84c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18004ef1c
cmp eax, 0xffffffff
je 0x18005da99
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18005da60
mov edx, r15d
mov ecx, r14d
call fcn.18005d84c
jmp 0x18005dab9
cmp byte [rsi + 0x38], dil
je 0x18005dab0
cmp dword [rsi + 0x34], 5
jne 0x18005dab0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18005dab9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18004f224
jmp 0x18005db2c
jns 0x18005db2c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180052dfc
cmp rax, 0xffffffffffffffff
jne 0x18005dae4
cmp byte [rsi + 0x30], dil
je 0x18005db2c
mov edi, dword [rsi + 0x2c]
jmp 0x18005db2c
mov ecx, r14d
call fcn.1800568e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18005db2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18005db2c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18005db25
mov eax, dword [rsi + 0x2c]
jmp 0x18005db2a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180052dfc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18005e350
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18005e378
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18005e378
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140150928
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r11d, dword [rcx]
mov rsi, r8
mov ebx, dword [rcx + 4]
mov rdi, rdx
movsxd rbp, r9d
mov r10, rcx
test r9d, r9d
jle 0x14015098f
sub rdi, r8
inc r11b
movzx r11d, r11b
mov r8b, byte [r11 + r10 + 8]
add bl, r8b
movzx ebx, bl
mov cl, byte [rbx + r10 + 8]
mov byte [r11 + r10 + 8], cl
add cl, r8b
mov byte [rbx + r10 + 8], r8b
movzx eax, cl
mov cl, byte [rax + r10 + 8]
xor cl, byte [rdi + rsi]
mov byte [rsi], cl
inc rsi
sub rbp, 1
jne 0x140150955
mov rbp, qword [rsp + 0x10]
mov eax, r9d
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [r10 + 4], ebx
mov rbx, qword [rsp + 8]
mov dword [r10], r11d
ret
Function at 0x140005510
Capabilities:
Encode data using xor

Disassembly:
invalid
pop rcx
lodsb al, byte [rsi]
pop rsi
in al, dx
jns 0x1400054e3
movsd dword [rdi], dword [rsi]
stosb byte [rdi], al
call 0x1bf25b2f7
js 0x14000557a
lock sbb dword [rdx - 0x3f], edx
call qword [rax + 0x4a]
popfq
rcr esp, 1
loop sym.loader.exe_public:_unsigned_int___cdecl_asmjit::_abi_1_10::CodeHolder::growBuffer_struct_asmjit::_abi_1_10::CodeBuffer____ptr64__unsigned_long_long_unsigned___int64_____ptr64
in al, 0xa
not byte [rdi + 0x36d10180]
sal byte [rbx], 0xab
or dh, dh
xchg edi, eax
add byte [rcx], 0xd1
sal byte ss:[rbx], 0xab
xor al, 0xa4
xor ebp, ecx
wait
fucompi st(5)
int 7
invalid
jle 0x14000552b
fdiv qword [rsi + rbp*4 + 0x2350c258]
mov byte [rbx - 0x3c], cl
invalid

Function at 0x140010790
Capabilities:
Encode data using xor

Disassembly:
xchg edx, eax
push 0x21
std
invalid
rcr byte [rsi + 0xa3034df], cl
sub al, 0x2a
wait
out 8, al
xchg esi, eax
js 0x140010766
adc eax, 0x69e94e5f
mov eax, 0x8213f089
pop rsi
jmp 0xcc560507

Function at 0x140010fa0
Capabilities:
Encode data using xor

Disassembly:
wait
call 0xcadddb5c
invalid
xor byte [rbp - 0x2b084c81], ch
je 0x140010f96
xor dh, dh
mov esp, dword [rdx - 0x28]
invalid
Function at 0x1411bd058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1411bd1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1411bd089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411bd06f
add dl, dl
jne 0x1411bd096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411bd0f6
xor eax, eax
add dl, dl
jne 0x1411bd0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411bd1ad
add dl, dl
jne 0x1411bd0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411bd0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411bd0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411bd0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411bd0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1411bd07e
mov eax, 1
add dl, dl
jne 0x1411bd106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411bd113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411bd0fb
sub eax, ebx
mov ebx, 1
jne 0x1411bd14c
mov ecx, 1
add dl, dl
jne 0x1411bd12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411bd13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411bd123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411bd07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1411bd168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411bd175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411bd15d
cmp eax, 0x7d00
jae 0x1411bd19b
cmp eax, 0x500
jb 0x1411bd196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411bd07e
cmp eax, 0x7f
ja 0x1411bd19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411bd07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411bd1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1411bd07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14002b370
Capabilities:
Delete file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x14015e028]
xor rax, rsp
mov qword [rsp + 0x70], rax
call fcn.14006d8c0
test al, al
je 0x14002b3c9
call fcn.14006d8b0
mov rdi, rax
lea rbx, [0x140143121]
mov rcx, rax
mov rdx, rbx
call fcn.14006d8d0
test al, al
jne 0x14002b3f8
lea rdx, str.vmodule
mov rcx, rdi
call fcn.14006d8d0
test al, al
jne 0x14002b3f8
mov eax, dword [rsi]
mov dword [0x14015ff78], eax
mov bl, 1
test al, 1
jne 0x14002b4b9
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14009d180
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp qword [0x140165768], 0
jne 0x14002b54a
mov rax, qword [0x140165770]
mov qword [0x140165768], rax
mov ecx, 0x20
call fcn.14009c328
mov r14, rax
lea rcx, str.vmodule
lea r15, [rsp + 0x48]
mov qword [r15], rcx
call fcn.1400b5080
mov qword [r15 + 8], rax
lea r12, [rsp + 0x58]
mov rcx, rdi
mov rdx, r12
mov r8, r15
call fcn.14006d9e0
lea r15, [rsp + 0x20]
mov qword [r15], rbx
mov rcx, rbx
call fcn.1400b5080
mov qword [r15 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call fcn.14006d9e0
lea r9, [0x140165778]
mov rcx, r14
mov rdx, rbx
mov r8, r12
call fcn.1400edd30
mov qword [0x140165770], r14
cmp byte [rbx + 0x17], 0
jns 0x14002b49f
mov rcx, qword [rsp + 0x30]
call fcn.14009c364
cmp byte [rsp + 0x6f], 0
jns 0x14002b3c9
mov rcx, qword [rsp + 0x58]
call fcn.14009c364
jmp 0x14002b3c9
mov rcx, qword [0x1401657a0]
test rcx, rcx
jne 0x14002b4d3
mov rcx, qword [0x140165780]
test rcx, rcx
je 0x14002b4f7
jmp 0x14002b519
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401657a0], 0
mov rcx, qword [0x140165780]
test rcx, rcx
jne 0x14002b519
and byte [0x14015ff78], 0xfe
mov ecx, 0x18
call fcn.14009c328
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140165780], rax
mov rdx, qword [rsi + 8]
call fcn.14006c920
cmp dword [rsi + 0x14], 0
jne 0x14002b53e
mov rcx, qword [0x140165780]
cmp byte [rcx + 0x17], 0
jns 0x14002b538
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400ea830
mov ebx, eax
jmp 0x14002b3db
int3
Function at 0x14002d6c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14015e028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1401399e0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x40], xmm0
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, 0x1ce
call fcn.14006fcc0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400763b0
cmp byte [rdi + 0x17], 0
jns 0x14002d736
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140076540
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14009d180
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14015e028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1401399e0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x40], xmm0
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, 0x1f6
call fcn.14006fcc0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400763b0
cmp byte [rdi + 0x17], 0
jns 0x14002d7e6
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.140076540
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14009d180
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002d830
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x14015e028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14009fa40
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002d8cf
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1400b5818
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14006e220
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.14002afc0
mov rcx, r14
mov rdx, rsi
call fcn.14006e330
mov rcx, rsi
call fcn.14006e320
mov rcx, rbx
call fcn.14006e320
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14009d180
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14002d900
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14015e028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14009fa40
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 0x14002d995
cmp word [rsp + 0x70], 0
je 0x14002d995
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400b5818
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14006e220
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14009d180
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 [0x1401399e0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14006e1a0
mov rcx, rdi
call fcn.14002d830
test al, al
je 0x14002d9d5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14006e200
jmp 0x14002d9f4
lea rax, [0x140140aa2]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14006e220
lea rcx, [rsp + 0x40]
call fcn.14006e320
jmp 0x14002d977
Function at 0x14002da10
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x120
movaps xmmword [rsp + 0x110], xmm6
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x14015e028]
xor rax, rsp
mov qword [rsp + 0x108], rax
movaps xmm6, xmmword [0x1401399e0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x40], xmm6
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 rbp, [rsp + 0xb0]
mov rcx, rbp
mov r9d, 0x283
call fcn.14006fcc0
mov rcx, rbx
mov rdx, rbp
xor r8d, r8d
call fcn.1400763b0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x14002da9e
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002daec
mov bl, 1
test al, 0x10
je 0x14002dc0a
lea rcx, [rsp + 0x40]
call fcn.140076540
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14009d180
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x120
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x10], rax
movaps xmmword [rbp], xmm6
mov rcx, rdi
mov rdx, rbp
call fcn.14006e4e0
movzx ecx, byte [rbp + 0x17]
mov rax, rcx
test cl, cl
jns 0x14002db1e
mov rax, qword [rsp + 0x28]
movzx esi, byte [rdi + 0x17]
mov rdx, rsi
test sil, sil
jns 0x14002db2e
mov rdx, qword [rdi + 8]
cmp rax, rdx
je 0x14002dc29
lea rcx, [rsp + 0x20]
mov rdx, r12
call fcn.14002da10
test al, al
je 0x14002dc73
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x14002db6c
lea rcx, [rsp + 0x20]
call fcn.14006e320
jmp 0x14002dab6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
jne 0x14002dbf4
lea rbp, [rsp + 0xb0]
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea r15, [rsp + 0x90]
mov rcx, r15
mov r9d, 0x1f6
call fcn.14006fcc0
mov rcx, rbp
mov rdx, r15
xor r8d, r8d
call fcn.1400763b0
cmp byte [rdi + 0x17], 0
jns 0x14002dbd3
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbp
call fcn.140076540
cmp edi, 0xffffffff
je 0x14002dbf4
and edi, 0x10
jne 0x14002db5d
test r12, r12
je 0x14002dc05
mov ecx, r14d
call fcn.14002e3a0
mov dword [r12], eax
mov ecx, r14d
jmp 0x14002dc6d
test r12, r12
je 0x14002dc17
mov dword [r12], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14002dab6
test rax, rax
je 0x14002dc5b
test cl, cl
jns 0x14002dc37
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
test sil, sil
jns 0x14002dc42
mov rcx, qword [rdi]
xor edx, edx
movzx esi, word [rbp + rdx*2]
cmp si, word [rcx + rdx*2]
jne 0x14002db37
inc rdx
cmp rax, rdx
jne 0x14002dc44
test r12, r12
je 0x14002dc68
mov dword [r12], 0xfffffffc
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14002db5d
Function at 0x14002ddb0
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 r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14015e028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.14009fa40
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14002f4c0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401399e0]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.14002f790
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14002de46
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14002df15
lea rbx, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
xor r12d, r12d
mov r8d, 0x250
mov rcx, rbx
mov dl, 0xaa
call fcn.14009fa40
mov rcx, r15
mov rdx, rbx
call fcn.14002f700
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x14002df52
mov rcx, rbx
call fcn.14002f400
test al, al
jne 0x14002df73
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14002dead
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002dffe
call r13
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, rbx
call fcn.140019a90
mov rcx, r15
mov rdx, rbx
call fcn.14002f790
mov rcx, rdi
mov rdx, rbx
call fcn.14006e330
mov rcx, rbx
call fcn.14006e320
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14002df09
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x14002de66
lea rcx, [rsp + 0x30]
call fcn.14006e320
lea rcx, [rsp + 0x298]
call fcn.14002f5a0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14009d180
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r14b, r14b
je 0x14002dfde
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14002e005
mov rcx, qword [rsp + 0x30]
jmp 0x14002e00a
xor ebp, ebp
test r14b, r14b
je 0x14002dece
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, rsi
mov r8b, 1
call fcn.14002ddb0
mov ebp, eax
test eax, eax
jne 0x14002dece
cmp byte [rsp + 0x47], 0
jns 0x14002dfae
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14002dece
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14002dece
lea rcx, [rsp + 0x48]
call fcn.14002f400
test al, al
je 0x14002e015
lea rcx, [rsp + 0x48]
call fcn.14002f400
test al, al
je 0x14002de9e
xor ebp, ebp
jmp 0x14002dece
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14002de8e
mov edx, dword [rsp + 0x48]
jmp 0x14002df5b