Function at 0x41da90
Capabilities:
Check if file exists
Create process on windows
Delete file
Move file
Query environment variable
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cda6
mov eax, dword fs:[0]
push eax
sub esp, 0xc98
mov eax, dword [0x461020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xca4], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xca0], eax
mov dword [ebp - 4], 1
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0xc40], xmm0
cmovae edx, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0xc30], 0
mov dword [ebp - 0xc2c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41db01
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xc40]
call fcn.00402460
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xc2c]
mov eax, edx
mov ecx, dword [ebp - 0xc30]
sub eax, ecx
cmp eax, 1
jb 0x41db51
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0xc30], eax
lea eax, [ebp - 0xc40]
cmovae eax, dword [ebp - 0xc40]
mov word [eax + ecx], 0x5f
jmp 0x41db72
push 1
push str.___
mov byte [ebp - 0xc44], 0
lea ecx, [ebp - 0xc40]
push dword [ebp - 0xc44]
push 1
call fcn.004041d0
cmp dword [ebp - 0xc2c], 0x10
lea eax, [ebp - 0xc40]
push 0
cmovae eax, dword [ebp - 0xc40]
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41e0d2
push 0
lea eax, [ebp - 0xc44]
push eax
push dword [ebp + 0x24]
push dword [ebp - 0xca0]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x41dbf5
cmp dword [ebp - 0xc2c], 0x10
lea eax, [ebp - 0xc40]
cmovae eax, dword [ebp - 0xc40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 7
jmp 0x41e0d7
cmp byte [ebp + 0x40], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0xc99], 0
je 0x41ddd2
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmovae eax, dword [ebp + 8]
push eax
call esi
test eax, eax
je 0x41dc32
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call edi
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call esi
test eax, eax
je 0x41ddd2
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0xc18], 0
cmovae edx, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0xc14], 0
movups xmmword [ebp - 0xc28], xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0xca0], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41dc80
sub ecx, dword [ebp - 0xca0]
push ecx
push edx
lea ecx, [ebp - 0xc28]
call fcn.00402460
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xc14]
mov eax, edx
mov ecx, dword [ebp - 0xc18]
sub eax, ecx
cmp eax, 2
jb 0x41dcdc
lea eax, [ecx + 2]
cmp edx, 0x10
mov dword [ebp - 0xc18], eax
mov edx, 0x5f5f
lea eax, [ebp - 0xc28]
cmovae eax, dword [ebp - 0xc28]
mov word [eax + ecx], dx
mov byte [eax + ecx + 2], 0
jmp 0x41dcfd
push 2
push 0x45afa8
mov byte [ebp - 0xca0], 0
lea ecx, [ebp - 0xc28]
push dword [ebp - 0xca0]
push 2
call fcn.004041d0
cmp dword [ebp - 0xc14], 0x10
lea eax, [ebp - 0xc28]
cmovae eax, dword [ebp - 0xc28]
push eax
call esi
test eax, eax
je 0x41dd2f
cmp dword [ebp - 0xc14], 0x10
lea eax, [ebp - 0xc28]
cmovae eax, dword [ebp - 0xc28]
push eax
call edi
cmp dword [ebp - 0xc14], 0x10
lea ecx, [ebp - 0xc28]
lea eax, [ebp + 8]
cmovae ecx, dword [ebp - 0xc28]
cmp dword [ebp + 0x1c], 0x10
push ecx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x41dd79
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push 0
push eax
mov byte [ebp - 0xc99], 1
call esi
cmp dword [ebp - 0xc14], 0x10
lea eax, [ebp - 0xc28]
push 4
cmovae eax, dword [ebp - 0xc28]
push 0
push eax
call esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xc14]
cmp ecx, 0x10
jb 0x41ddd2
mov edx, dword [ebp - 0xc28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41ddc8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e1bd
push ecx
push edx
call fcn.0042b48a
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0xc88], 0x44
xor eax, eax
movlpd qword [ebp - 0xc84], xmm0
push 0x400
push eax
mov word [ebp - 0xc46], ax
mov word [ebp - 0xc58], ax
lea eax, [ebp - 0x410]
push eax
movups xmmword [ebp - 0xc98], xmm0
mov dword [ebp - 0xc5c], 1
movlpd qword [ebp - 0xc7c], xmm0
movlpd qword [ebp - 0xc74], xmm0
movlpd qword [ebp - 0xc6c], xmm0
movlpd qword [ebp - 0xc64], xmm0
movlpd qword [ebp - 0xc56], xmm0
movlpd qword [ebp - 0xc4e], xmm0
call fcn.0042d2f0
add esp, 0xc
lea ecx, [ebp - 0xc28]
mov edx, 0xb
call fcn.004145d0
cmp dword [eax + 0x14], 0x10
jb 0x41de65
mov eax, dword [eax]
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [ebp - 0xc14]
cmp ecx, 0x10
jb 0x41deb2
mov edx, dword [ebp - 0xc28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41dea8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e1c2
push ecx
push edx
call fcn.0042b48a
add esp, 8
push 0x800
lea eax, [ebp - 0xc10]
push 0
push eax
call fcn.0042d2f0
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
lea eax, [ebp - 0xc40]
cmovae ecx, dword [ebp + 8]
cmp dword [ebp - 0xc2c], 0x10
push ecx
cmovae eax, dword [ebp - 0xc40]
push eax
lea eax, [ebp - 0x410]
push eax
push str._s__d__c_copy__y___s____s_
lea eax, [ebp - 0xc10]
push 0x400
push eax
call fcn.00413c60
add esp, 0x24
lea eax, [ebp - 0xc98]
push eax
lea eax, [ebp - 0xc88]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41df59
cmp dword [ebp - 0xc2c], 0x10
lea eax, [ebp - 0xc40]
cmovae eax, dword [ebp - 0xc40]
push eax
call edi
mov esi, 8
jmp 0x41e0d7
push 0xffffffffffffffff
push dword [ebp - 0xc98]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc98]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc94]
call esi
cmp dword [ebp - 0xc2c], 0x10
lea eax, [ebp - 0xc40]
cmovae eax, dword [ebp - 0xc40]
push eax
call edi
xorps xmm0, xmm0
mov dword [ebp - 0xc18], 0
movups xmmword [ebp - 0xc28], xmm0
mov dword [ebp - 0xc14], 0xf
mov byte [ebp - 0xc28], 0
lea eax, [ebp - 0xc28]
mov byte [ebp - 4], 4
push eax
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004017a0
mov ecx, dword [ebp - 0xca4]
call fcn.0041d560
mov edi, dword [ebp - 0xc28]
cmp eax, 1
je 0x41dff5
cmp eax, 4
je 0x41dff5
lea esi, [eax + 0xa]
jmp 0x41e09a
cmp dword [ebp - 0xc14], 0x10
lea ecx, [ebp - 0xc28]
mov eax, dword [ebp - 0xc18]
lea edx, [ebp + 0x28]
mov esi, dword [ebp + 0x38]
cmovae ecx, edi
cmp dword [ebp + 0x3c], 0x10
cmovae edx, dword [ebp + 0x28]
cmp eax, esi
cmovb esi, eax
sub esi, 4
jb 0x41e034
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x41e039
add edx, 4
add ecx, 4
sub esi, 4
jae 0x41e023
cmp esi, 0xfffffffc
je 0x41e06d
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x41e066
cmp esi, 0xfffffffd
je 0x41e06d
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x41e066
cmp esi, 0xfffffffe
je 0x41e06d
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x41e066
cmp esi, 0xffffffff
je 0x41e06d
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x41e06d
sbb eax, eax
or eax, 1
jmp 0x41e06f
xor eax, eax
test eax, eax
jne 0x41e087
mov eax, dword [ebp - 0xc18]
cmp dword [ebp + 0x38], eax
jb 0x41e087
ja 0x41e087
mov esi, 1
jmp 0x41e09a
cmp byte [ebp - 0xc99], 0
mov esi, 9
jne 0x41e09a
mov esi, 0xe
mov eax, dword [ebp - 0xc14]
cmp eax, 0x10
jb 0x41e0d7
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x41e0c6
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e1c7
push ecx
push edi
call fcn.0042b48a
add esp, 8
jmp 0x41e0d7
mov esi, 6
mov ecx, dword [ebp - 0xc2c]
cmp ecx, 0x10
jb 0x41e111
mov edx, dword [ebp - 0xc40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e107
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e1c7
push ecx
push edx
call fcn.0042b48a
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0xc30], 0
mov dword [ebp - 0xc2c], 0xf
mov byte [ebp - 0xc40], 0
cmp ecx, 0x10
jb 0x41e15c
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e152
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e1c7
push ecx
push edx
call fcn.0042b48a
add esp, 8
mov ecx, dword [ebp + 0x3c]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x41e19e
mov edx, dword [ebp + 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e194
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e1c7
push ecx
push edx
call fcn.0042b48a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b459
mov esp, ebp
pop ebp
ret 0x3c
call fcn.0043042f
call fcn.0043042f
call fcn.0043042f
int3