Function at 0x140029070
Capabilities:
Delete file
Execute command
Query environment variable

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
push r14
lea rbp, [r11 - 0xb68]
sub rsp, 0xc48
mov rax, qword [0x14333b1d8]
xor rax, rsp
mov qword [rbp + 0xb20], rax
mov qword [r11 + 0x18], rdi
mov r14, r8
mov rdi, rdx
mov qword [r11 - 0x28], r12
mov rbx, rcx
mov qword [r11 - 0x38], r15
xor edx, edx
mov byte [rbp + 0x320], 0
mov r8d, 0x3ff
lea rcx, [rbp + 0x321]
call sub.VCRUNTIME140.dll_memset
movzx r15d, byte [0x14332da96]
movabs rax, 0x20676f6c616964
movzx r12d, word [0x14332da94]
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
test rbx, rbx
je 0x140029182
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140029100
test rax, rax
je 0x140029182
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140029116
movsd xmm0, qword [0x14332da88]
movzx eax, word [0x14332da90]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rcx, [rsp + 0x20]
dec rcx
nop
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140029140
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140029150
lea rax, [rsp + 0x20]
dec rax
nop word [rax + rax]
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x140029170
mov word [rax], r12w
mov byte [rax + 2], r15b
mov qword [rsp + 0xc38], r13
test r14, r14
je 0x1400293e9
mov rdx, r14
lea rcx, [0x14332da98]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
xor ebx, ebx
lea r13, [0x14332daa4]
test eax, eax
je 0x1400291db
mov ecx, ebx
movzx eax, byte [rcx + r13]
inc rcx
cmp al, byte [r14 + rcx - 1]
jne 0x1400291c8
cmp rcx, 6
jne 0x1400291b1
jmp 0x1400291db
mov rdx, r14
lea rcx, [0x14332dab0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140029241
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], bl
lea rcx, [rcx + 1]
jne 0x1400291e3
mov eax, dword [0x14332dac8]
movsd xmm0, qword [0x14332dac0]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
movzx eax, word [0x14332dacc]
mov word [rcx + 0xc], ax
lea rax, [rsp + 0x20]
dec rax
cmp byte [rax + 1], bl
lea rax, [rax + 1]
jne 0x140029214
movups xmm0, xmmword [0x14332dad0]
movups xmmword [rax], xmm0
lea rax, [rsp + 0x20]
dec rax
nop
cmp byte [rax + 1], bl
lea rax, [rax + 1]
jne 0x140029230
mov word [rax], r12w
mov byte [rax + 2], r15b
mov rdx, r14
lea rcx, [0x14332da98]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400292f0
cmp dword [rbp + 0xb90], ebx
jne 0x140029298
lea rcx, [rsp + 0x20]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], bl
lea rcx, [rcx + 1]
jne 0x140029270
mov eax, dword [0x14332dae8]
movsd xmm0, qword [0x14332dae0]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
movzx eax, byte [0x14332daec]
mov byte [rcx + 0xc], al
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], bl
lea rcx, [rcx + 1]
jne 0x1400292a0
movups xmm0, xmmword [0x14332daf0]
mov eax, dword [0x14332db18]
movups xmm1, xmmword [0x14332db00]
movups xmmword [rcx], xmm0
movsd xmm0, qword [0x14332db10]
movups xmmword [rcx + 0x10], xmm1
movsd qword [rcx + 0x20], xmm0
mov dword [rcx + 0x28], eax
movzx eax, word [0x14332db1c]
mov word [rcx + 0x2c], ax
jmp 0x140029412
movzx eax, byte [rbx + r13]
inc rbx
cmp al, byte [r14 + rbx - 1]
jne 0x140029375
cmp rbx, 6
jne 0x1400292f0
cmp dword [rbp + 0xb90], 0
jne 0x14002933f
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140029316
mov eax, dword [0x14332dae8]
movsd xmm0, qword [0x14332dae0]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
movzx eax, byte [0x14332daec]
mov byte [rcx + 0xc], al
lea rcx, [rsp + 0x20]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140029350
movsd xmm0, qword [0x14332db20]
movzx eax, byte [0x14332db28]
movsd qword [rcx], xmm0
mov byte [rcx + 8], al
jmp 0x140029412
mov rdx, r14
lea rcx, [0x14332dab0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400293e9
cmp dword [rbp + 0xb90], eax
jne 0x1400293c9
lea rcx, [rsp + 0x20]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400293a0
mov eax, dword [0x14332dae8]
movsd xmm0, qword [0x14332dae0]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
movzx eax, byte [0x14332daec]
mov byte [rcx + 0xc], al
lea rax, [rsp + 0x20]
dec rax
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x1400293d1
movsd xmm0, qword [0x14332db30]
movsd qword [rax], xmm0
jmp 0x140029412
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400293f1
movsd xmm0, qword [0x14332db38]
movzx eax, word [0x14332db40]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
mov r13, qword [rsp + 0xc38]
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140029422
movzx eax, word [0x14332db44]
mov word [rcx], ax
test rdi, rdi
je 0x140029556
mov rax, rsi
inc rax
cmp byte [rdi + rax], 0
jne 0x140029442
test rax, rax
je 0x140029556
lea rdx, [0x14332db4c]
mov byte [rbp + 0x320], 0
mov rcx, rdi
call sub.VCRUNTIME140.dll_strstr
mov rbx, rax
test rax, rax
je 0x1400294d9
nop dword [rax]
nop word [rax + rax]
mov r8, rbx
lea rcx, [rbp + 0x320]
sub r8, rdi
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
lea rcx, [rbp + 0x320]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400294a0
movzx eax, word [0x14332db48]
lea rdi, [rbx + 1]
mov word [rcx], ax
lea rdx, [0x14332db4c]
movzx eax, byte [0x14332db4a]
mov byte [rcx + 2], al
mov rcx, rdi
call sub.VCRUNTIME140.dll_strstr
mov rbx, rax
test rax, rax
jne 0x140029480
lea rcx, [rbp + 0x320]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400294e3
xor edx, edx
nop
movzx eax, byte [rdi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400294f0
lea rcx, [rsp + 0x20]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140029510
lea r8, [rbp + 0x320]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140029530
movzx r15d, byte [0x14332da96]
movzx r12d, word [0x14332da94]
mov byte [rbp + 0x320], al
mov rdi, qword [rsp + 0xc80]
lea rax, [rsp + 0x20]
dec rax
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x140029566
mov word [rax], r12w
mov r12, qword [rsp + 0xc40]
mov byte [rax + 2], r15b
mov r15, qword [rsp + 0xc30]
test r14, r14
je 0x1400295e9
mov rdx, r14
lea rcx, [0x14332dab0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400295e9
lea rcx, [rsp + 0x20]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400295b0
movups xmm0, xmmword [0x14332db50]
mov eax, dword [0x14332db60]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400295d5
mov eax, dword [0x14332db64]
mov dword [rcx], eax
jmp 0x140029640
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400295f1
mov eax, dword [0x14332db68]
mov dword [rcx], eax
movzx eax, word [0x14332db6c]
mov word [rcx + 4], ax
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140029616
mov eax, dword [0x14332db78]
movsd xmm0, qword [0x14332db70]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
movzx eax, word [0x14332db7c]
mov word [rcx + 0xc], ax
lea rcx, [0x14332db80]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rdx, [rbp + 0x720]
sub rdx, rax
nop word [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140029660
lea rcx, [rbp + 0x720]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140029680
movsd xmm0, qword [0x14332db88]
mov eax, dword [0x14332db90]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
lea rcx, [rsp + 0x20]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400296b0
lea r8, [rbp + 0x720]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400296d0
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, [0x14332d958]
lea rcx, [rbp + 0x720]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
jne 0x140029720
lea rcx, [rbp + 0x720]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
xor eax, eax
jmp 0x1400297cd
mov r8, rbx
lea rcx, [rbp + 0x320]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140029720
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rbp + 0x720]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rcx, [rbp + 0x320]
mov rax, rsi
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140029760
cmp byte [rbp + rax + 0x31f], 0xa
jne 0x140029786
dec rax
cmp rax, 0x400
jae 0x1400297e9
mov byte [rbp + rax + 0x320], 0
lea rax, [rbp + 0x320]
nop dword [rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x140029790
test rsi, rsi
je 0x140029714
test r14, r14
je 0x1400297c8
mov rdx, r14
lea rcx, [0x14332dab0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400297c8
cmp byte [rbp + 0x320], 0x59
mov eax, 2
jne 0x1400297cd
mov eax, 1
mov rcx, qword [rbp + 0xb20]
xor rcx, rsp
call fcn.14002ab30
add rsp, 0xc48
pop r14
pop rsi
pop rbx
pop rbp
ret
call fcn.14002a8a4
int3