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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
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.00403a94
mov eax, dword [ebp - 8]
call fcn.00403a94
xor eax, eax
push ebp
push 0x40c337
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push dword [0x415ae0]
push 0x40c350
lea edx, [ebp - 0x68]
movzx eax, word [0x41413c]
call fcn.00405478
push dword [ebp - 0x68]
push 0x40c35c
mov eax, 0x415b00
mov edx, 4
call fcn.00403964
push 0
mov eax, dword [0x415b00]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
jne 0x40c0c9
push 0
mov eax, dword [0x415b00]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
jne 0x40c0c9
push 0x20
mov eax, dword [0x415b00]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x40c0c9
add byte [0x414140], 1
jae 0x40c058
call fcn.00402f1c
lea edx, [ebp - 0x70]
xor eax, eax
mov al, byte [0x414140]
call fcn.00405478
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x40c36c
call fcn.004038f0
mov eax, dword [ebp - 0x6c]
call fcn.00412fc4
cmp byte [0x414140], 0xa
jbe 0x40c0c9
push 0x40c380
push dword [0x415b00]
push 0x40c3a0
lea edx, [ebp - 0x78]
xor eax, eax
call fcn.0040666c
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x74]
call fcn.00412fc4
mov eax, 0x415b04
call fcn.0040372c
jmp 0x40c304
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x10
call fcn.00402bd8
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00402bd8
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x24], 0
mov dword [ebp - 0x28], 1
push 0x40c3ac
push dword [0x415b04]
push 0x40c3b8
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40c3e0
push dword [0x415b00]
push 0x40c3ac
lea eax, [ebp - 0x10]
mov edx, 8
call fcn.00403964
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0xc000040
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00403aa4
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x40c1f4
push 0x40c3ec
push dword [ebp - 0x10]
push 0x40c3a0
lea edx, [ebp - 0x80]
xor eax, eax
call fcn.0040666c
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x7c]
call fcn.00412fc4
add byte [0x414140], 1
jae 0x40c19a
call fcn.00402f1c
cmp byte [0x414140], 0xa
jbe 0x40c304
push 0x40c3fc
push dword [0x415b00]
push 0x40c3a0
lea edx, [ebp - 0x88]
xor eax, eax
call fcn.0040666c
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x84]
call fcn.00412fc4
mov eax, 0x415b04
call fcn.0040372c
jmp 0x40c304
push 0x1b7740
mov eax, dword [ebp - 0x64]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
jne 0x40c22c
mov eax, 0x40c418
call fcn.00412fc4
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 0x40c304
mov ax, word [0x41413c]
dec ax
je 0x40c24f
dec ax
je 0x40c271
dec ax
je 0x40c2a0
dec ax
je 0x40c2cf
jmp 0x40c2ee
mov eax, 0x415b14
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, 0x415b10
mov edx, dword [ebp - 8]
call fcn.00403780
jmp 0x40c300
push dword [0x415b14]
push 0x40c430
push dword [ebp - 8]
mov eax, 0x415b18
mov edx, 3
call fcn.00403964
mov eax, 0x415b10
mov edx, dword [0x415b18]
call fcn.00403780
jmp 0x40c300
push dword [0x415b18]
push 0x40c430
push dword [ebp - 8]
mov eax, 0x415b1c
mov edx, 3
call fcn.00403964
mov eax, 0x415b10
mov edx, dword [0x415b1c]
call fcn.00403780
jmp 0x40c300
push dword [0x415b1c]
push 0x40c430
push dword [ebp - 8]
mov eax, 0x415b10
mov edx, 3
call fcn.00403964
jmp 0x40c300
mov eax, 0x415b10
mov ecx, dword [ebp - 8]
mov edx, 0x40c43c
call fcn.004038f0
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c33e
lea eax, [ebp - 0x88]
mov edx, 9
call fcn.00403750
lea eax, [ebp - 0x10]
call fcn.0040372c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403750
ret