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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
xor ecx, ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x6c], 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 0x40a8b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41eb54
mov edx, 0x40a8d0
call fcn.00403780
mov byte [ebp - 9], 0
push dword [0x41eb24]
push 0x40a8f4
lea edx, [ebp - 0x6c]
movzx eax, word [0x41d298]
call fcn.00405148
push dword [ebp - 0x6c]
push 0x40a900
mov eax, 0x41eb40
mov edx, 4
call fcn.00403964
push 0
mov eax, dword [0x41eb40]
call fcn.00403aa4
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40a540
push 0
mov eax, dword [0x41eb40]
call fcn.00403aa4
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40a540
push 0x20
mov eax, dword [0x41eb40]
call fcn.00403aa4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a540
add byte [0x41d29c], 1
jae 0x40a4ce
call fcn.00402f1c
lea edx, [ebp - 0x74]
xor eax, eax
mov al, byte [0x41d29c]
call fcn.00405148
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 0x40a910
call fcn.004038f0
mov eax, dword [ebp - 0x70]
call fcn.00412764
cmp byte [0x41d29c], 0xa
jbe 0x40a540
push dword [0x41ed98]
push dword [0x41eb40]
push 0x40a924
lea edx, [ebp - 0x7c]
xor eax, eax
call fcn.00406434
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x78]
call fcn.00412764
mov eax, 0x41eb44
call fcn.0040372c
jmp 0x40a884
mov eax, 0x41eb54
mov edx, 0x40a930
call fcn.00403780
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x10
call fcn.00402bd8
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.00402bd8
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 5
mov dword [ebp - 0x44], 5
mov dword [ebp - 0x2c], 5
mov word [ebp - 0x28], 0
mov dword [ebp - 0x28], 0xc7660000
inc ebp
fiadd dword [eax]
add byte [ebx], dh
ror byte [ecx - 0x3fcc23bb], 0x89
inc ebp
loopne 0x40a5e8
ror byte [ecx - 0x3fcc1bbb], 0x89
inc ebp
call 0x40ea6a2a
add bh, bh
xor eax, 0x41eb44
push dword [0x41ed9c]
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40a9d0
push dword [0x41eb40]
push 0x40a9c4
lea eax, [ebp - 0x10]
mov edx, 8
call fcn.00403964
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
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 0x40a6bf
push 0x40a9dc
mov byte [0x41eb10], 0
mov byte [ebp - 0x11], 0
cmp byte [0x41eb10], 0
jne 0x40a70b
push 0x64
call sub.kernel32.dll_Sleep
push 0
push 0x40a3a8
mov eax, dword [ebp - 0x5c]
push eax
call sub.user32.dll_EnumThreadWindows
add byte [ebp - 0x11], 1
jae 0x40a6f5
call fcn.00402f1c
cmp byte [ebp - 0x11], 0xa
jbe 0x40a702
mov byte [0x41eb10], 1
cmp byte [0x41eb10], 0
je 0x40a6d3
push 0x1b7740
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x40a761
mov eax, dword [0x41eda4]
call fcn.00412764
mov eax, 0x41eb54
mov edx, 0x40a9ec
call fcn.00403780
push 0
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, 0x41eb54
mov edx, 0x40aa00
call fcn.00403780
jmp 0x40a884
mov eax, 0x41eb54
mov edx, 0x40aaa0
call fcn.00403780
mov ax, word [0x41d298]
dec ax
je 0x40a793
dec ax
je 0x40a7c4
dec ax
je 0x40a802
dec ax
je 0x40a840
jmp 0x40a85f
mov eax, 0x41eb68
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, 0x41eb50
mov edx, dword [ebp - 8]
call fcn.00403780
mov eax, 0x41eb54
mov edx, 0x40aafc
call fcn.00403780
jmp 0x40a871
push dword [0x41eb68]
push 0x40ab30
push dword [ebp - 8]
mov eax, 0x41eb6c
mov edx, 3
call fcn.00403964
mov eax, 0x41eb50
mov edx, dword [0x41eb6c]
call fcn.00403780
mov eax, 0x41eb54
mov edx, 0x40ab3c
call fcn.00403780
jmp 0x40a871
push dword [0x41eb6c]
push 0x40ab30
push dword [ebp - 8]
mov eax, 0x41eb70
mov edx, 3
call fcn.00403964
mov eax, 0x41eb50
mov edx, dword [0x41eb70]
call fcn.00403780
mov eax, 0x41eb54
mov edx, 0x40abf4
call fcn.00403780
jmp 0x40a871
push dword [0x41eb70]
push 0x40ab30
push dword [ebp - 8]
mov eax, 0x41eb50
mov edx, 3
call fcn.00403964
jmp 0x40a871
mov eax, 0x41eb50
mov ecx, dword [ebp - 8]
mov edx, 0x40acc4
call fcn.004038f0
mov eax, 0x41eb54
invalid
invalid