Function at 0x406480
Capabilities:
Create process on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x105
call fcn.00412765
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x406493
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4064ce
mov eax, dword [0x429108]
mov ecx, dword [eax]
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4064c4
push 0x32
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov ecx, dword [ecx + 0xc8]
add esp, 4
mov eax, esi
call fcn.00402430
test al, al
je 0x406910
mov edi, dword [ebp - 0x5c]
mov eax, edi
lea edx, [eax + 1]
jmp 0x406500
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406500
sub eax, edx
lea esi, [eax + 0x15]
lea esp, [esp]
push esi
call fcn.00412765
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x406510
mov edx, ebx
mov dword [ebp - 0x60], ebx
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406528
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406537
sub eax, edx
cmp eax, 4
jb 0x406549
mov byte [ebx + eax - 4], cl
push 0x33
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0xcc]
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406561
sub eax, edx
lea edi, [ebx - 1]
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406570
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x40]
push eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.004122d4
add esp, 8
test eax, eax
jne 0x4066db
push 0x423550
push ebx
call fcn.004119cb
mov esi, eax
add esp, 8
test esi, esi
je 0x4065d6
push 2
push 0
push esi
call fcn.0041209d
add esp, 0xc
push esi
call fcn.00411fae
add esp, 4
push esi
mov edi, eax
call fcn.00412186
add esp, 4
mov esi, edi
jmp 0x4065d8
xor esi, esi
push 0x32
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ecx + 0xc8]
add esp, 4
push edx
call fcn.00402590
add esp, 4
cmp esi, eax
je 0x406710
push ebx
call fcn.0041292a
add esp, 4
test eax, eax
je 0x4066ae
push 4
call fcn.00403fe0
mov eax, dword [0x42a118]
mov eax, dword [eax + 0x10]
add esp, 4
push eax
call fcn.0041356b
add esp, 4
mov edi, eax
test eax, eax
jne 0x406639
mov edi, 0x423572
push 0x11
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov eax, dword [ecx + 0x44]
add esp, 4
push 2
push eax
xor eax, eax
call fcn.00403250
push ebx
mov esi, eax
call fcn.0041272b
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406666
mov ecx, esi
sub eax, edx
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406674
sub ecx, ebx
lea ebx, [ecx + eax + 0x10]
push ebx
call fcn.00412765
add esp, 4
test eax, eax
je 0x406681
push esi
push edi
push 0x425b20
push eax
mov dword [ebp - 0x60], eax
call fcn.004128a6
add esp, 0x10
test esi, esi
je 0x4066ae
push esi
call fcn.0041272b
add esp, 4
push 0x32
call fcn.00403fe0
mov edx, dword [0x42a118]
mov esi, dword [ebp - 0x60]
mov eax, dword [edx + 0xc8]
add esp, 4
push 0
push esi
push eax
mov eax, dword [ebp - 0x5c]
call fcn.00402930
add esp, 0xc
push 6
push esi
jmp 0x406703
push 0x32
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0xc8]
mov eax, dword [ebp - 0x5c]
add esp, 4
push 0
push ebx
push edx
call fcn.00402930
add esp, 0xc
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea esp, [esp]
push 8
call fcn.00412765
mov esi, eax
add esp, 4
test esi, esi
je 0x406710
push 1
call fcn.00412765
add esp, 4
test eax, eax
je 0x406720
push 0x425b34
mov dword [esi], eax
mov dword [esi + 4], 0
call fcn.004031d0
mov eax, dword [ebp - 0x60]
add esp, 4
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406750
mov ecx, dword [esi]
sub eax, edx
mov edi, eax
mov eax, dword [esi + 4]
lea ebx, [eax + edi + 1]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push ebx
push edx
call fcn.004127f9
add esp, 8
test eax, eax
je 0x406767
mov dword [esi], eax
mov eax, dword [esi + 4]
lea ecx, [eax + edi]
cmp eax, ecx
jae 0x4067a2
mov ecx, dword [ebp - 0x60]
sub ecx, eax
lea esp, [esp]
mov edx, dword [esi]
mov bl, byte [ecx + eax]
mov byte [eax + edx], bl
mov edx, dword [esi + 4]
inc eax
add edx, edi
cmp eax, edx
jb 0x406790
add dword [esi + 4], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0x425b38
mov byte [eax + ecx], 0
call fcn.004031d0
mov eax, 1
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [0x429104], eax
jle 0x4068a1
nop
mov edx, dword [0x429108]
mov edi, dword [ebp - 0x58]
mov eax, dword [edx + edi*4]
push 0x425b3c
push eax
mov byte [ebp - 0x51], 0
call fcn.004130a0
add esp, 8
test eax, eax
je 0x406803
push 0x425b34
mov byte [ebp - 0x51], 1
call fcn.004031d0
add esp, 4
mov eax, dword [0x429108]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x64], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406811
mov ecx, dword [esi + 4]
sub eax, edx
mov edx, dword [esi]
mov edi, eax
lea ebx, [ecx + edi + 1]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push ebx
push eax
call fcn.004127f9
add esp, 8
test eax, eax
je 0x406828
mov dword [esi], eax
mov eax, dword [esi + 4]
lea ecx, [eax + edi]
cmp eax, ecx
jae 0x406862
mov ecx, dword [ebp - 0x64]
sub ecx, eax
lea ebx, [ebx]
mov edx, dword [esi]
mov bl, byte [ecx + eax]
mov byte [eax + edx], bl
mov edx, dword [esi + 4]
inc eax
add edx, edi
cmp eax, edx
jb 0x406850
add dword [esi + 4], edi
cmp byte [ebp - 0x51], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov byte [eax + ecx], 0
je 0x406881
push 0x425b34
call fcn.004031d0
add esp, 4
push 0x425b3c
call fcn.004031d0
mov eax, dword [ebp - 0x58]
inc eax
add esp, 4
mov dword [ebp - 0x58], eax
cmp eax, dword [0x429104]
jl 0x4067d0
mov edi, dword [esi]
push 0x44
lea edx, [ebp - 0x50]
push 0
push edx
call fcn.00415c60
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0
push 0x100
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esi]
mov dword [esi + 4], 0
test eax, eax
je 0x4068f7
push eax
call fcn.0041272b
add esp, 4
push esi
call fcn.0041272b
mov eax, dword [ebp - 0x60]
add esp, 4
test eax, eax
je 0x406910
push eax
call fcn.0041272b
add esp, 4
mov edx, dword [ebp - 0x5c]
push edx
call fcn.0041272b
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004118d8
mov esp, ebp
pop ebp
ret