Function at 0x408930
Capabilities:
Create process on windows
Get common file path

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 0x4464e4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [0x45e068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
xorps xmm0, xmm0
push 0xd
movups xmmword [ecx], xmm0
push str.where_cmd.exe
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.004030e0
lea ecx, [ebp - 0x74]
call fcn.00408500
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
mov edi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x64]
cmovae ecx, edi
test eax, eax
jne 0x408a2e
mov esi, eax
mov edx, 0x45508b
sub esi, 4
jb 0x4089e1
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4089e6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4089d0
cmp esi, 0xfffffffc
je 0x408a1a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x408a13
cmp esi, 0xfffffffd
je 0x408a1a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x408a13
cmp esi, 0xfffffffe
je 0x408a1a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x408a13
cmp esi, 0xffffffff
je 0x408a1a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x408a1a
sbb eax, eax
or eax, 1
jmp 0x408a1c
xor eax, eax
test eax, eax
jne 0x408a2b
mov byte [ebp - 0x11d], al
jmp 0x409415
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x74]
cmovae eax, edi
add eax, dword [ebp - 0x64]
cmp edx, 0x10
cmovae ecx, edi
push ecx
push eax
push ecx
lea ecx, [ebp - 0xa4]
call fcn.0040a0f0
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x90], 8
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0xa4]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x124], eax
push 0xd
movups xmmword [ecx], xmm0
push str.where_tar.exe
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.004030e0
lea ecx, [ebp - 0x5c]
call fcn.00408500
add esp, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
mov edi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x4c]
cmovae ecx, edi
test eax, eax
jne 0x408b23
mov esi, eax
mov edx, 0x45508b
sub esi, 4
jb 0x408ad6
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x408adb
add ecx, 4
add edx, 4
sub esi, 4
jae 0x408ac5
cmp esi, 0xfffffffc
je 0x408b0f
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x408b08
cmp esi, 0xfffffffd
je 0x408b0f
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x408b08
cmp esi, 0xfffffffe
je 0x408b0f
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x408b08
cmp esi, 0xffffffff
je 0x408b0f
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x408b0f
sbb eax, eax
or eax, 1
jmp 0x408b11
xor eax, eax
test eax, eax
jne 0x408b20
mov byte [ebp - 0x11d], al
jmp 0x409370
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
cmovae eax, edi
add eax, dword [ebp - 0x4c]
cmp edx, 0x10
cmovae ecx, edi
push ecx
push eax
push ecx
lea ecx, [ebp - 0xbc]
call fcn.0040a0f0
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 5
push eax
push 0
push 0
push 0x449300
mov dword [ebp - 0x10c], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov esi, dword [ebp - 0x10c]
test esi, esi
jne 0x408b80
mov byte [ebp - 0x11d], 0
jmp 0x40932d
mov ecx, esi
mov dword [ebp - 0x144], 0
xorps xmm0, xmm0
mov dword [ebp - 0x140], 0
movups xmmword [ebp - 0x154], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408ba3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x154]
call fcn.004030e0
mov byte [ebp - 4], 6
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 8
lea ecx, [ebp - 0x154]
push dword [ebx + 0x18]
cmovae eax, dword [ebx + 8]
push eax
call fcn.00402ed0
mov dword [ebp - 0x15c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x16c], xmm0
mov dword [ebp - 0x158], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x16c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x15c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 7
lea eax, [ebx + 0x20]
cmp dword [ebx + 0x34], 8
lea ecx, [ebp - 0x16c]
push dword [ebx + 0x30]
cmovae eax, dword [ebx + 0x20]
push eax
call fcn.00402ed0
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x158]
cmp ecx, 8
jb 0x408cc0
mov edx, dword [ebp - 0x16c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408cb6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409502
push ecx
push edx
call fcn.004264a3
add esp, 8
xor eax, eax
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 7
mov word [ebp - 0x16c], ax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x140]
cmp ecx, 8
jb 0x408d21
mov edx, dword [ebp - 0x154]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408d17
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409502
push ecx
push edx
call fcn.004264a3
add esp, 8
mov ecx, esi
mov dword [ebp - 0x144], 0
xor eax, eax
mov dword [ebp - 0x140], 7
xorps xmm0, xmm0
mov word [ebp - 0x154], ax
movups xmmword [ebp - 0x13c], xmm0
mov dword [ebp - 0x12c], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x128], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408d60
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x13c]
call fcn.004030e0
mov byte [ebp - 4], 0xb
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 8
lea ecx, [ebp - 0x13c]
push dword [ebx + 0x18]
cmovae eax, dword [ebx + 8]
push eax
call fcn.00402ed0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x7c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x128]
cmp ecx, 8
jb 0x408e05
mov edx, dword [ebp - 0x13c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408dfb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409507
push ecx
push edx
call fcn.004264a3
add esp, 8
xor eax, eax
mov dword [ebp - 0x12c], 0
mov word [ebp - 0x13c], ax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x128], 7
lea ecx, [eax - 1]
cmp eax, ecx
jb 0x40950c
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x7c], ecx
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x8c]
xor edx, edx
push 3
push 0x4552f8
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x44]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
call fcn.004030e0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0xbc]
cmp dword [ebp - 0xa8], 8
lea ecx, [ebp - 0x44]
push dword [ebp - 0xac]
cmovae eax, dword [ebp - 0xbc]
push eax
call fcn.00402ed0
push 5
push str.__xf
lea ecx, [ebp - 0x44]
call fcn.00402ed0
mov ecx, dword [ebp - 0x1c]
mov esi, 0x7ffffffe
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x409511
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
push 1
push 0x450eb0
push ecx
push dword [ebp - 0x124]
lea ecx, [ebp - 0x154]
call fcn.0040a6d0
push 1
push 0x450eb0
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 0xf
call fcn.00402ed0
xor ecx, ecx
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
movups xmmword [ebp - 0x13c], xmm1
mov dword [eax + 0x10], 0
movq qword [ebp - 0x12c], xmm0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x13c]
cmp dword [ebp - 0x128], 8
push dword [ebp - 0x12c]
movd eax, xmm1
cmovae ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.00402ed0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x128]
cmp ecx, 8
jb 0x408f82
mov edx, dword [ebp - 0x13c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408f78
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409516
push ecx
push edx
call fcn.004264a3
add esp, 8
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x140]
cmp ecx, 8
jb 0x408fc6
mov edx, dword [ebp - 0x154]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408fbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409516
push ecx
push edx
call fcn.004264a3
add esp, 8
push 4
push str.__C
lea ecx, [ebp - 0x44]
call fcn.00402ed0
mov ecx, dword [ebp - 0x7c]
sub esi, ecx
cmp esi, 1
jb 0x40951b
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
push ecx
cmovae eax, dword [ebp - 0x8c]
push eax
push 1
push 0x450eb0
push ecx
push dword [ebp - 0x124]
lea ecx, [ebp - 0x154]
call fcn.0040a6d0
push 1
push 0x450eb0
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 0x11
call fcn.00402ed0
xor ecx, ecx
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
movups xmmword [ebp - 0x13c], xmm1
mov dword [eax + 0x10], 0
movq qword [ebp - 0x12c], xmm0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x13c]
cmp dword [ebp - 0x128], 8
push dword [ebp - 0x12c]
movd eax, xmm1
cmovae ecx, eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.00402ed0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x128]
cmp ecx, 8
jb 0x4090ba
mov edx, dword [ebp - 0x13c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4090b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409520
push ecx
push edx
call fcn.004264a3
add esp, 8
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x140]
cmp ecx, 8
jb 0x4090fe
mov edx, dword [ebp - 0x154]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4090f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409520
push ecx
push edx
call fcn.004264a3
add esp, 8
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], 0x44
push ecx
push 0
push 0
push 0x8000000
push 0
xorps xmm0, xmm0
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 0
push 0
push eax
push dword [ebp - 0x124]
movlpd qword [ebp - 0x104], xmm0
movlpd qword [ebp - 0xfc], xmm0
movlpd qword [ebp - 0xf4], xmm0
movlpd qword [ebp - 0xec], xmm0
movlpd qword [ebp - 0xe4], xmm0
movlpd qword [ebp - 0xdc], xmm0
movlpd qword [ebp - 0xd4], xmm0
movlpd qword [ebp - 0xcc], xmm0
movups xmmword [ebp - 0x11c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40924d
push 0xffffffffffffffff
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x11c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x118]
call esi
mov byte [ebp - 0x124], 0
lea edx, [ebp - 0x2c]
push dword [ebp - 0x124]
lea ecx, [ebp - 0x13c]
call fcn.0040a810
add esp, 4
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0x13
call fcn.00404d80
mov ecx, dword [ebp - 0x128]
mov byte [ebp - 0x11d], al
cmp ecx, 8
jb 0x40922c
mov edx, dword [ebp - 0x13c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40921c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409525
push ecx
push edx
call fcn.004264a3
mov al, byte [ebp - 0x11d]
add esp, 8
test al, al
je 0x409244
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0042b4a9
add esp, 4
mov byte [ebp - 0x11d], 1
jmp 0x409254
mov byte [ebp - 0x11d], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x40928e
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409284
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40952a
push ecx
push edx
call fcn.004264a3
add esp, 8
mov ecx, dword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 8
jb 0x4092df
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4092d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40952a
push ecx
push edx
call fcn.004264a3
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x409319
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40930f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40952a
push ecx
push edx
call fcn.004264a3
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0xa8]
cmp ecx, 8
jb 0x40936d
mov edx, dword [ebp - 0xbc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409363
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40952a
push ecx
push edx
call fcn.004264a3
add esp, 8
mov edi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x4093a3
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x409399
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40952a
push ecx
push edi
call fcn.004264a3
add esp, 8
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp ecx, 8
jb 0x4093f5
mov edx, dword [ebp - 0xa4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4093eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40952a
push ecx
push edx
call fcn.004264a3
add esp, 8
mov edi, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x409448
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40943e
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40952a
push ecx
push edi
call fcn.004264a3
add esp, 8
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 8
jb 0x409494
mov edx, dword [ebx + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40948a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40952a
push ecx
push edx
call fcn.004264a3
add esp, 8
mov ecx, dword [ebx + 0x34]
xor eax, eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 7
mov word [ebx + 8], ax
cmp ecx, 8
jb 0x4094de
mov edx, dword [ebx + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4094d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40952a
push ecx
push edx
call fcn.004264a3
add esp, 8
mov al, byte [ebp - 0x11d]
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.00426465
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042b22f
call fcn.0042b22f
call fcn.00409d00
call fcn.00401330
call fcn.0042b22f
call fcn.00401330
call fcn.0042b22f
call fcn.0042b22f
call fcn.0042b22f
int3