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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x105
call fcn.00413e95
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x4070e3
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40711e
mov eax, dword [0x42b128]
mov ecx, dword [eax]
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x407114
push 0x29
call fcn.00404a40
mov ecx, dword [0x42c160]
mov ecx, dword [ecx + 0xa4]
add esp, 4
mov eax, esi
call fcn.00402cc0
test al, al
je 0x407560
mov edi, dword [ebp - 0x5c]
mov eax, edi
lea edx, [eax + 1]
jmp 0x407150
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407150
sub eax, edx
lea esi, [eax + 0x15]
lea esp, [esp]
push esi
call fcn.00413e95
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407160
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 0x407178
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407187
sub eax, edx
cmp eax, 4
jb 0x407199
mov byte [ebx + eax - 4], cl
push 0x2a
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0xa8]
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4071b1
sub eax, edx
lea edi, [ebx - 1]
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4071c0
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.00413804
add esp, 8
test eax, eax
jne 0x40732b
push 0x425550
push ebx
call fcn.00412efb
mov esi, eax
add esp, 8
test esi, esi
je 0x407226
push 2
push 0
push esi
call fcn.004135cd
add esp, 0xc
push esi
call fcn.004134de
add esp, 4
push esi
mov edi, eax
call fcn.004136b6
add esp, 4
mov esi, edi
jmp 0x407228
xor esi, esi
push 0x29
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ecx + 0xa4]
add esp, 4
push edx
call fcn.00402e20
add esp, 4
cmp esi, eax
je 0x407360
push ebx
call fcn.0041405a
add esp, 4
test eax, eax
je 0x4072fe
push 4
call fcn.00404a40
mov eax, dword [0x42c160]
mov eax, dword [eax + 0x10]
add esp, 4
push eax
call fcn.00414c6b
add esp, 4
mov edi, eax
test eax, eax
jne 0x407289
mov edi, 0x425582
push 0x11
call fcn.00404a40
mov ecx, dword [0x42c160]
mov eax, dword [ecx + 0x44]
add esp, 4
push 2
push eax
xor eax, eax
call fcn.00403cb0
push ebx
mov esi, eax
call fcn.00413e5b
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4072b6
mov ecx, esi
sub eax, edx
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4072c4
sub ecx, ebx
lea ebx, [ecx + eax + 0x10]
push ebx
call fcn.00413e95
add esp, 4
test eax, eax
je 0x4072d1
push esi
push edi
push 0x427ca8
push eax
mov dword [ebp - 0x60], eax
call fcn.00413fd6
add esp, 0x10
test esi, esi
je 0x4072fe
push esi
call fcn.00413e5b
add esp, 4
push 0x29
call fcn.00404a40
mov edx, dword [0x42c160]
mov esi, dword [ebp - 0x60]
mov eax, dword [edx + 0xa4]
add esp, 4
push 0
push esi
push eax
mov eax, dword [ebp - 0x5c]
call fcn.004031c0
add esp, 0xc
push 6
push esi
jmp 0x407353
push 0x29
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0xa4]
mov eax, dword [ebp - 0x5c]
add esp, 4
push 0
push ebx
push edx
call fcn.004031c0
add esp, 0xc
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea esp, [esp]
push 8
call fcn.00413e95
mov esi, eax
add esp, 4
test esi, esi
je 0x407360
push 1
call fcn.00413e95
add esp, 4
test eax, eax
je 0x407370
push 0x427cbc
mov dword [esi], eax
mov dword [esi + 4], 0
call fcn.00403c30
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 0x4073a0
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.00413f29
add esp, 8
test eax, eax
je 0x4073b7
mov dword [esi], eax
mov eax, dword [esi + 4]
lea ecx, [eax + edi]
cmp eax, ecx
jae 0x4073f2
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 0x4073e0
add dword [esi + 4], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0x427cc0
mov byte [eax + ecx], 0
call fcn.00403c30
mov eax, 1
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [0x42b124], eax
jle 0x4074f1
nop
mov edx, dword [0x42b128]
mov edi, dword [ebp - 0x58]
mov eax, dword [edx + edi*4]
push 0x427cc4
push eax
mov byte [ebp - 0x51], 0
call fcn.004146e0
add esp, 8
test eax, eax
je 0x407453
push 0x427cbc
mov byte [ebp - 0x51], 1
call fcn.00403c30
add esp, 4
mov eax, dword [0x42b128]
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 0x407461
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.00413f29
add esp, 8
test eax, eax
je 0x407478
mov dword [esi], eax
mov eax, dword [esi + 4]
lea ecx, [eax + edi]
cmp eax, ecx
jae 0x4074b2
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 0x4074a0
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 0x4074d1
push 0x427cbc
call fcn.00403c30
add esp, 4
push 0x427cc4
call fcn.00403c30
mov eax, dword [ebp - 0x58]
inc eax
add esp, 4
mov dword [ebp - 0x58], eax
cmp eax, dword [0x42b124]
jl 0x407420
mov edi, dword [esi]
push 0x44
lea edx, [ebp - 0x50]
push 0
push edx
call fcn.00417250
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 0x407547
push eax
call fcn.00413e5b
add esp, 4
push esi
call fcn.00413e5b
mov eax, dword [ebp - 0x60]
add esp, 4
test eax, eax
je 0x407560
push eax
call fcn.00413e5b
add esp, 4
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00413e5b
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e08
mov esp, ebp
pop ebp
ret