Function at 0x408da0
Capabilities:
Create directory
Create process on windows
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040357c
mov eax, dword [ebp - 8]
call fcn.0040357c
lea ebx, [ebp - 0x54]
mov esi, 0x41ab24
xor eax, eax
push ebp
push 0x409230
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41ab68
mov edx, 0x409248
call fcn.0040325c
mov byte [ebp - 9], 0
push dword [0x41ab38]
push 0x409308
lea edx, [ebp - 0x68]
movzx eax, word [0x4191f4]
call fcn.004048e0
push dword [ebp - 0x68]
push 0x409314
mov eax, 0x41ab54
mov edx, 4
call fcn.0040344c
push 0
mov eax, dword [0x41ab54]
call fcn.0040358c
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x408f03
push 0
mov eax, dword [0x41ab54]
call fcn.0040358c
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x408f03
push 0x20
mov eax, dword [0x41ab54]
call fcn.0040358c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x408f03
inc byte [0x4191f8]
lea edx, [ebp - 0x70]
xor eax, eax
mov al, byte [0x4191f8]
call fcn.004048e0
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x409324
call fcn.004033d8
mov eax, dword [ebp - 0x6c]
call fcn.0040ffd8
cmp byte [0x4191f8], 0xa
jbe 0x408f03
push dword [0x41adac]
push dword [0x41ab54]
push 0x409338
lea edx, [ebp - 0x78]
xor eax, eax
call fcn.004057d8
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 4
call fcn.0040344c
mov eax, dword [ebp - 0x74]
call fcn.0040ffd8
mov eax, 0x41ab58
call fcn.00403208
jmp 0x4091fd
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x10
call fcn.004027e8
mov eax, ebx
xor ecx, ecx
mov edx, 0x44
call fcn.004027e8
mov dword [ebx], 0x44
mov word [ebx + 0x30], 0
xor eax, eax
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 5
mov dword [ebx + 0x14], 5
mov dword [ebx + 0x2c], 5
mov word [ebx + 0x30], 0
mov word [ebx + 0x32], 0
xor eax, eax
mov dword [ebx + 0x34], eax
xor eax, eax
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x40], eax
push 0x409344
push dword [0x41ab58]
push dword [0x41adb0]
push dword [ebp - 4]
push dword [ebp - 8]
push 0x409350
push dword [0x41ab54]
push 0x409344
lea eax, [ebp - 0x10]
mov edx, 8
call fcn.0040344c
lea eax, [ebp - 0x64]
push eax
push ebx
push 0
push 0
push 0xc000040
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.0040358c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409060
push 0x40935c
push dword [ebp - 0x10]
push 0x409338
lea edx, [ebp - 0x80]
xor eax, eax
call fcn.004057d8
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 4
call fcn.0040344c
mov eax, dword [ebp - 0x7c]
call fcn.0040ffd8
inc byte [0x4191f8]
cmp byte [0x4191f8], 0xa
jbe 0x4091fd
push dword [0x41adb4]
push dword [0x41ab54]
push 0x409338
lea edx, [ebp - 0x88]
xor eax, eax
call fcn.004057d8
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
mov edx, 4
call fcn.0040344c
mov eax, dword [ebp - 0x84]
call fcn.0040ffd8
mov eax, 0x41ab58
call fcn.00403208
jmp 0x4091fd
mov byte [esi], 0
xor ebx, ebx
cmp byte [esi], 0
jne 0x40908f
push 0x64
call sub.kernel32.dll_Sleep
push 0
push 0x408d78
mov eax, dword [ebp - 0x58]
push eax
call sub.user32.dll_EnumThreadWindows
inc ebx
cmp bl, 0xa
jbe 0x40908a
mov byte [esi], 1
cmp byte [esi], 0
je 0x40906a
push 0x1b7740
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x4090d6
mov eax, dword [0x41adb8]
call fcn.0040ffd8
mov eax, 0x41ab68
mov edx, 0x40936c
call fcn.0040325c
push 0
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x4091fd
mov ax, word [0x4191f4]
dec ax
je 0x4090fd
dec ax
je 0x40912e
dec ax
je 0x40917b
dec ax
je 0x4091b9
jmp 0x4091d8
mov eax, 0x41ab7c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004033d8
mov eax, 0x41ab64
mov edx, dword [ebp - 8]
call fcn.0040325c
mov eax, 0x41ab68
mov edx, 0x4093c8
call fcn.0040325c
jmp 0x4091ea
mov eax, 0x41ab68
mov edx, 0x409248
call fcn.0040325c
push dword [0x41ab7c]
push 0x40940c
push dword [ebp - 8]
mov eax, 0x41ab80
mov edx, 3
call fcn.0040344c
mov eax, 0x41ab64
mov edx, dword [0x41ab80]
call fcn.0040325c
mov eax, 0x41ab68
mov edx, 0x40941c
call fcn.0040325c
jmp 0x4091ea
mov eax, 0x41ab68
mov edx, 0x4094f4
call fcn.0040325c
push dword [0x41ab80]
push 0x40940c
push dword [ebp - 8]
mov eax, 0x41ab84
mov edx, 3
call fcn.0040344c
mov eax, 0x41ab64
mov edx, dword [0x41ab84]
call fcn.0040325c
jmp 0x4091ea
push dword [0x41ab84]
push 0x40940c
push dword [ebp - 8]
mov eax, 0x41ab64
mov edx, 3
call fcn.0040344c
jmp 0x4091ea
mov eax, 0x41ab64
mov ecx, dword [ebp - 8]
mov edx, 0x40951c
call fcn.004033d8
mov eax, 0x41ab68
mov edx, 0x409530
call fcn.0040325c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409237
lea eax, [ebp - 0x88]
mov edx, 9
call fcn.0040322c
lea eax, [ebp - 0x10]
call fcn.00403208
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040322c
ret