Function at 0x4089a8
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 0x408e16
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push dword [0x41ab38]
push 0x408e30
lea edx, [ebp - 0x68]
movzx eax, word [0x4191f4]
call fcn.004048e0
push dword [ebp - 0x68]
push 0x408e3c
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 0x408afc
push 0
mov eax, dword [0x41ab54]
call fcn.0040358c
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x408afc
push 0x20
mov eax, dword [0x41ab54]
call fcn.0040358c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x408afc
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, 0x408e4c
call fcn.004033d8
mov eax, dword [ebp - 0x6c]
call fcn.0040f91c
cmp byte [0x4191f8], 0xa
jbe 0x408afc
push dword [0x41adac]
push dword [0x41ab54]
push 0x408e60
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.0040f91c
mov eax, 0x41ab58
call fcn.00403208
jmp 0x408de3
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 0x408e6c
push dword [0x41ab58]
push dword [0x41adb0]
push dword [ebp - 4]
push dword [ebp - 8]
push 0x408e78
push dword [0x41ab54]
push 0x408e6c
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 0x408c59
push 0x408e84
push dword [ebp - 0x10]
push 0x408e60
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.0040f91c
inc byte [0x4191f8]
cmp byte [0x4191f8], 0xa
jbe 0x408de3
push dword [0x41adb4]
push dword [0x41ab54]
push 0x408e60
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.0040f91c
mov eax, 0x41ab58
call fcn.00403208
jmp 0x408de3
mov byte [esi], 0
xor ebx, ebx
cmp byte [esi], 0
jne 0x408c88
push 0x64
call sub.kernel32.dll_Sleep
push 0
push 0x408980
mov eax, dword [ebp - 0x58]
push eax
call sub.user32.dll_EnumThreadWindows
inc ebx
cmp bl, 0xa
jbe 0x408c83
mov byte [esi], 1
cmp byte [esi], 0
je 0x408c63
push 0x1b7740
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x408ccf
mov eax, dword [0x41adb8]
call fcn.0040f91c
mov eax, 0x41ab68
mov edx, 0x408e94
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 0x408de3
mov ax, word [0x4191f4]
dec ax
je 0x408cf2
dec ax
je 0x408d14
dec ax
je 0x408d61
dec ax
je 0x408d9f
jmp 0x408dbe
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
jmp 0x408dd0
mov eax, 0x41ab68
mov edx, 0x408f20
call fcn.0040325c
push dword [0x41ab7c]
push 0x408f58
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, 0x408f68
call fcn.0040325c
jmp 0x408dd0
push dword [0x41ab80]
push 0x408f58
push dword [ebp - 8]
mov eax, 0x41ab84
mov edx, 3
call fcn.0040344c
mov eax, 0x41ab64
mov edx, dword [0x41ab84]
call fcn.0040325c
mov eax, 0x41ab68
mov edx, 0x409030
call fcn.0040325c
jmp 0x408dd0
push dword [0x41ab84]
push 0x408f58
push dword [ebp - 8]
mov eax, 0x41ab64
mov edx, 3
call fcn.0040344c
jmp 0x408dd0
mov eax, 0x41ab64
mov ecx, dword [ebp - 8]
mov edx, 0x409058
call fcn.004033d8
mov eax, 0x41ab68
mov edx, 0x40906c
call fcn.0040325c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e1d
lea eax, [ebp - 0x88]
mov edx, 9
call fcn.0040322c
lea eax, [ebp - 0x10]
call fcn.00403208
lea eax, [ebp - 8]
mov edx, 2
invalid
pop ss
movsb byte es:[edi], byte [esi]
invalid