Function at 0x14013b230
Capabilities:
Create directory
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x490]
sub rsp, 0x590
mov rax, qword [0x1403debe8]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov r12, rdx
mov qword [rsp + 0x38], rdx
mov r13, rcx
mov qword [rsp + 0x30], rcx
mov qword [rbp + 0x78], rdx
xor edi, edi
mov qword [rbp + 0xe0], rdi
mov qword [rbp + 0xf0], rdi
mov qword [rbp + 0xf8], 7
mov word [rbp + 0xe0], di
xor edx, edx
mov rcx, qword [str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysis_tmp_]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14013b30e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14013b30e
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], 7
lea r8d, [rdi + 0x1d]
lea rdx, str._s______Path___s__not_exists_n
lea rcx, [rbp - 0x50]
call fcn.1400f8950
mov r8, qword [str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysis_tmp_]
lea rdx, str.DownloadBiosFile
lea rcx, [rbp - 0x50]
call fcn.1401953a0
movups xmm0, xmmword [rbp + 0xe0]
movups xmmword [r13], xmm0
movups xmm1, xmmword [rbp + 0xf0]
movups xmmword [r13 + 0x10], xmm1
jmp 0x14013bdd8
mov rbx, r12
mov r15, qword [r12 + 0x18]
cmp r15, 8
jb 0x14013b320
mov rbx, qword [r12]
mov r14, qword [r12 + 0x10]
mov rsi, 0xffffffffffffffff
test r14, r14
je 0x14013b3f3
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x130]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [0x1402d1ecc]
lea r8, [0x1402d1ece]
mov edx, 0x100
nop dword [rax]
movzx eax, word [rcx]
cmp ax, dx
jae 0x14013b3ad
movzx eax, al
mov byte [rbp + rax + 0x130], 1
add rcx, 2
cmp rcx, r8
jne 0x14013b360
lea rcx, [r14 - 1]
mov rax, rsi
cmp rcx, rsi
cmovb rax, rcx
lea rcx, [rbx + rax*2]
nop
movzx eax, word [rcx]
cmp ax, dx
jae 0x14013b3a2
cmp byte [rbp + rax + 0x130], 0
jne 0x14013b3eb
cmp rcx, rbx
je 0x14013b3f3
sub rcx, 2
jmp 0x14013b390
lea rcx, [r14 - 1]
mov rax, rsi
cmp rcx, rsi
cmovb rax, rcx
lea rcx, [rbx + rax*2]
nop
mov edx, 1
lea rax, [0x1402d1ecc]
movzx r8d, word [rcx]
cmp word [rax], r8w
je 0x14013b3eb
add rax, 2
sub rdx, 1
jne 0x14013b3d0
cmp rcx, rbx
je 0x14013b3f3
sub rcx, 2
jmp 0x14013b3c0
sub rcx, rbx
sar rcx, 1
jmp 0x14013b3f6
mov rcx, rsi
inc rcx
mov qword [rbp + 0xa0], rdi
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xb8], 7
mov word [rbp + 0xa0], di
cmp r14, rcx
jb 0x14013be4a
sub r14, rcx
mov rdi, rsi
cmp r14, 0xffffffffffffffff
cmovb rdi, r14
mov rax, r12
cmp r15, 8
jb 0x14013b43d
mov rax, qword [r12]
lea r14, [rax + rcx*2]
movabs rax, 0x7ffffffffffffffe
movabs rdx, 0x7fffffffffffffff
mov ecx, 0xa
cmp rdi, 7
ja 0x14013b495
lfence
mov qword [rbp + 0xb0], rdi
lea rbx, [rdi + rdi]
mov r8, rbx
mov rdx, r14
lea rcx, [rbp + 0xa0]
call fcn.140244220
xor r9d, r9d
mov word [rbp + rbx + 0xa0], r9w
mov r15, qword [rbp + 0xa0]
jmp 0x14013b4f1
cmp rdi, rax
ja 0x14013be50
mov rbx, rdi
or rbx, 7
cmp rbx, rax
jbe 0x14013b562
mov rbx, rax
mov rcx, rdx
lfence
add rcx, rcx
call fcn.1400e1b00
mov r15, rax
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xb8], rbx
lea rbx, [rdi + rdi]
mov r8, rbx
mov rdx, r14
mov rcx, rax
call fcn.140244220
xor r9d, r9d
mov word [r15 + rbx], r9w
mov qword [rbp + 0xa0], r15
mov r14, qword [str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysis_tmp_]
mov rdi, rsi
nop dword [rax + rax]
inc rdi
cmp word [r14 + rdi*2], 0
jne 0x14013b500
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x14013b5cc
lea rax, [rcx + rdi]
mov qword [rbp + 0xb0], rax
lea r12, [rbp + 0xa0]
cmp rdx, 8
cmovae r12, r15
lea r8, [rcx + rcx]
lea rax, [r14 + rdi*2]
cmp rax, r12
jbe 0x14013b586
lea rax, [r8 + r12]
cmp r14, rax
ja 0x14013b586
cmp r12, r14
ja 0x14013b57b
mov r15, r9
jmp 0x14013b589
cmp rbx, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, rdx
ja 0x14013be38
jmp 0x14013b4b4
mov r15, r12
sub r15, r14
sar r15, 1
jmp 0x14013b589
mov r15, rdi
lea rcx, [r12 + rdi*2]
add r8, 2
mov rdx, r12
call fcn.140244220
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r14
mov rcx, r12
call fcn.140244220
lea rcx, [r12 + rbx]
mov r8, rdi
sub r8, r15
add r8, r8
lea rax, [r15 + rdi]
lea rdx, [r14 + rax*2]
call fcn.140244220
mov r12, qword [rsp + 0x38]
jmp 0x14013b5eb
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.140132ce0
lea rax, [rbp + 0x38]
mov qword [rbp + 0x10], rax
lea rax, [rsp + 0x48]
mov qword [rbp - 0x58], rax
xor r15d, r15d
mov qword [rbp + 0x70], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov r14, qword [rbp + 0xb0]
lea rdi, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 8
cmovae rdi, qword [rbp + 0xa0]
cmp r14, 8
jae 0x14013b644
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x48], xmm0
lea ebx, [r15 + 7]
jmp 0x14013b696
mov rbx, r14
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14013be56
lfence
add rcx, rcx
call fcn.1400e1b00
mov qword [rsp + 0x48], rax
lea r8, [r14*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.140244220
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], rbx
lfence
mov rdx, r12
lea rcx, [rbp + 0x18]
call fcn.1400eabe0
nop
xor r9d, r9d
lea r8, [rbp + 0x38]
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.1401d7490
cmp eax, 6
jne 0x14013bd56
lea rcx, [rbp + 0x120]
call qword [sym.imp.OLE32.dll_CoCreateGuid]
test eax, eax
js 0x14013bd56
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x120]
call qword [sym.imp.OLE32.dll_StringFromCLSID]
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x90], r15
mov qword [rbp + 0x98], 7
mov word [rbp + 0x80], r15w
mov rdx, qword [str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysis_tmp_]
mov r8, rsi
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14013b720
lea rcx, [rbp + 0x80]
call fcn.1400f8950
nop
mov rax, qword [rsp + 0x30]
mov rdx, rsi
inc rdx
cmp word [rax + rdx*2], 0
jne 0x14013b740
mov rcx, qword [rbp + 0x90]
mov rax, qword [rbp + 0x98]
sub rax, rcx
lfence
cmp rdx, rax
ja 0x14013b7a4
mov rdi, qword [rbp + 0x90]
add rdi, rdx
mov qword [rbp + 0x90], rdi
lea rbx, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae rbx, qword [rbp + 0x80]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
mov rdx, qword [rsp + 0x30]
call fcn.140244220
mov word [rbx + rdi*2], r15w
jmp 0x14013b7bd
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x30]
xor r8d, r8d
lea rcx, [rbp + 0x80]
call fcn.140122920
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov r8d, 0x1f
lea rdx, [0x1402d1ed0]
lea rcx, [rbp - 0x30]
call fcn.1400f8950
lea r9, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae r9, qword [rbp + 0x80]
lea r8, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 8
cmovae r8, qword [rbp + 0xa0]
lea rdx, str.DownloadBiosFile
lea rcx, [rbp - 0x30]
call fcn.1401953a0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
mov rdi, qword [rbp + 0x90]
lea r14, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae r14, qword [rbp + 0x80]
cmp rdi, 8
jae 0x14013b86d
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x68], xmm0
mov ebx, 7
jmp 0x14013b8bf
mov rbx, rdi
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14013be5c
lfence
add rcx, rcx
call fcn.1400e1b00
mov qword [rsp + 0x68], rax
lea r8, [rdi*2 + 2]
mov rdx, r14
mov rcx, rax
call fcn.140244220
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r15
mov r14, qword [rbp + 0xb0]
lea rdi, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 8
cmovae rdi, qword [rbp + 0xa0]
cmp r14, 8
jae 0x14013b906
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x78], xmm0
mov ebx, 7
jmp 0x14013b957
mov rbx, r14
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14013be62
lfence
add rcx, rcx
call fcn.1400e1b00
mov qword [rbp - 0x78], rax
lea r8, [r14*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.140244220
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], rbx
mov ecx, dword [0x1403e3290]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1403e2304], ecx
jg 0x14013be68
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x78]
lea rcx, [0x1403e2300]
call fcn.140207590
test al, al
je 0x14013bd04
lea rcx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 8
cmovae rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0x98]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x14013ba0a
lea rcx, [rdx + 1]
mov qword [rbp + 0x90], rcx
lea rax, [rbp + 0x80]
cmp r8, 8
cmovae rax, qword [rbp + 0x80]
mov r8d, 0x5c
mov word [rax + rdx*2], r8w
mov word [rax + rcx*2], r15w
jmp 0x14013ba30
lfence
mov qword [rsp + 0x20], 1
lea r9, [0x1402d1f10]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp + 0x80]
call fcn.140122920
mov r14, qword [rbp + 0x90]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r14
cmp rax, 1
jb 0x14013be9e
lea r12, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae r12, qword [rbp + 0x80]
mov qword [rbp + 0xc0], r15
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xd8], r15
lea r15, [r14 + 1]
mov ebx, 7
lea rdi, [rbp + 0xc0]
cmp r15, rbx
jbe 0x14013bac4
mov rbx, r15
or rbx, 7
cmp rbx, rcx
jbe 0x14013bb45
mov rbx, rcx
movabs rcx, 0x7fffffffffffffff
lfence
add rcx, rcx
call fcn.1400e1b00
mov rdi, rax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xd8], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r12
mov rcx, rdi
call fcn.140244220
mov eax, 0x2a
mov word [rdi + rbx], ax
xor r14d, r14d
mov word [rdi + r15*2], r14w
lea rcx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 8
cmovae rcx, qword [rbp + 0xc0]
lea rdx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
nop dword [rax]
test byte [rbp + 0x230], 0x10
je 0x14013bb6e
lea rdx, [rbp + 0x230]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14013bb20
xor r15d, r15d
jmp 0x14013bcb9
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14013be3e
jmp 0x14013baaf
mov qword [rbp - 0x10], r14
mov qword [rbp], r14
mov qword [rbp + 8], 7
mov r8d, SafeArrayPutElement
lea rdx, str._s______Filename_is___s_
lea rcx, [rbp - 0x10]
call fcn.1400f8950
lea r8, [rbp + 0x25c]
lea rdx, str.DownloadBiosFile
lea rcx, [rbp - 0x10]
call fcn.1401953a0
mov r12, qword [rbp + 0x90]
lea rax, [rbp + 0x25c]
nop dword [rax]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x14013bbc0
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r12
cmp rax, rsi
jb 0x14013bea4
lea r15, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae r15, qword [rbp + 0x80]
mov qword [rbp + 0x100], r14
mov qword [rbp + 0x110], r14
mov qword [rbp + 0x118], r14
lea r14, [rsi + r12]
mov ebx, 7
lea rdi, [rbp + 0x100]
cmp r14, rbx
jbe 0x14013bc56
mov rbx, r14
or rbx, 7
cmp rbx, rcx
jbe 0x14013be0d
mov rbx, rcx
movabs rcx, 0x7fffffffffffffff
lfence
add rcx, rcx
call fcn.1400e1b00
mov rdi, rax
mov qword [rbp + 0x100], rax
mov qword [rbp + 0x110], r14
mov qword [rbp + 0x118], rbx
lea rbx, [r12 + r12]
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call fcn.140244220
lea rcx, [rbx + rdi]
lea r8, [rsi + rsi]
lea rdx, [rbp + 0x25c]
call fcn.140244220
xor r15d, r15d
mov word [rdi + r14*2], r15w
movups xmm0, xmmword [rbp + 0x100]
movups xmmword [rbp + 0xe0], xmm0
movups xmm1, xmmword [rbp + 0x110]
movups xmmword [rbp + 0xf0], xmm1
mov qword [rbp + 0x118], 7
mov rdx, qword [rbp + 0xd8]
cmp rdx, 8
jb 0x14013bcff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013bcfa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013beaa
call fcn.14020be84
mov r12, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLE32.dll_CoTaskMemFree]
nop
mov rdx, qword [rbp + 0x98]
cmp rdx, 8
jb 0x14013bd56
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013bd51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013beb0
call fcn.14020be84
movups xmm0, xmmword [rbp + 0xe0]
movups xmmword [r13], xmm0
movups xmm1, xmmword [rbp + 0xf0]
movups xmmword [r13 + 0x10], xmm1
mov qword [rbp + 0xf8], 7
mov rdx, qword [rbp + 0xb8]
cmp rdx, 8
jb 0x14013bdbb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013bdb6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013be32
call fcn.14020be84
mov qword [rbp + 0xb0], r15
mov qword [rbp + 0xb8], 7
mov word [rbp + 0xa0], r15w
lfence
mov rcx, r12
call fcn.1401156c0
mov rax, r13
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.14020c3e0
mov rbx, qword [rsp + 0x5e0]
add rsp, 0x590
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14013be44
jmp 0x14013bc41
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
call fcn.1400f8240
nop
call fcn.1400f8240
nop
call fcn.1400f8240
nop
call fcn.140142570
int3
call fcn.1400f83d0
nop
call fcn.1400f8240
nop
call fcn.1400f8240
nop
call fcn.1400f8240
int3
lea rcx, [0x1403e2304]
call fcn.14020cae0
cmp dword [0x1403e2304], 0xffffffff
jne 0x14013b986
lea rcx, [0x1402c0cd0]
call fcn.14020c2b8
lea rcx, [0x1403e2304]
call fcn.14020ca74
jmp 0x14013b986
call fcn.1400f83d0
nop
call fcn.1400f83d0
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3