Function at 0x401015
Capabilities:
Create directory
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37794
call fcn.004053e0
push edi
mov al, byte [0xf0c53c]
mov byte [ebp - 0x668c], al
xor ecx, ecx
mov dword [ebp - 0x668b], ecx
mov dword [ebp - 0x6687], ecx
mov dword [ebp - 0x6683], ecx
mov byte [ebp - 0x667f], cl
mov dl, byte [0xf0c540]
mov byte [ebp - 0x3762c], dl
mov ecx, 0xc34f
xor eax, eax
lea edi, [ebp - 0x3762b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0xf0c544]
mov byte [ebp - 0x667c], al
mov ecx, 0x1869
xor eax, eax
lea edi, [ebp - 0x667b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0xf0c548]
mov byte [ebp - 0x104], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dl, byte [0xf0c54c]
mov byte [ebp - 0x37794], dl
mov ecx, 0x59
xor eax, eax
lea edi, [ebp - 0x37793]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x6798], 0
mov dword [ebp - 0x68a0], 0
mov dword [ebp - 0x68b8], 0
mov dword [ebp - 0x6794], 0
mov al, byte [0xf0c550]
mov byte [ebp - 0x490], al
mov ecx, 0x59
xor eax, eax
lea edi, [ebp - 0x48f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0xf0c554]
mov byte [ebp - 0x208], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dl, byte [0xf0c558]
mov byte [ebp - 0x689c], dl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x689b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0xf0c55c]
mov byte [ebp - 0x6790], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x678f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0xf0c560]
mov byte [ebp - 0x314], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x313]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dl, byte [0xf0c564]
mov byte [ebp - 0x68e8], dl
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x68e7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0xf0c568]
mov byte [ebp - 0x68b4], al
xor ecx, ecx
mov dword [ebp - 0x68b3], ecx
mov dword [ebp - 0x68af], ecx
mov dword [ebp - 0x68ab], ecx
mov dword [ebp - 0x68a7], ecx
mov word [ebp - 0x68a3], cx
mov byte [ebp - 0x68a1], cl
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x68c0], 0
mov dword [ebp - 0x68ec], 0
mov dword [ebp - 0x68bc], 0
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 0
push 1
call fcn.0040497c
add esp, 4
mov dword [ebp - 0x498], eax
push 0x104
push 0xf097b0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x6798], eax
mov edx, dword [ebp + 8]
push edx
push 0xf06e98
call fcn.00405270
add esp, 8
push 0xf097b0
call fcn.00405360
add esp, 4
mov dword [ebp - 0x6798], eax
jmp 0x4012a0
mov eax, dword [ebp - 0x6798]
sub eax, 1
mov dword [ebp - 0x6798], eax
cmp dword [ebp - 0x6798], 1
jle 0x4012f3
push 1
mov ecx, dword [ebp - 0x6798]
push ecx
push 0xf097b0
call fcn.00403d6a
add esp, 0xc
push eax
call fcn.00403d06
add esp, 4
cmp eax, 0x5c
jne 0x4012f1
mov edx, dword [ebp - 0x6798]
push edx
push 0xf097b0
call fcn.00403e97
add esp, 8
push eax
push 0xf0ab38
call fcn.00405270
add esp, 8
jmp 0x4012f3
jmp 0x401291
push 0x53
call fcn.00403caa
add esp, 4
push eax
push 0xf0c0d0
call fcn.00405270
add esp, 8
push 0x61
call fcn.00403caa
add esp, 4
push eax
push 0xf0c0d0
call fcn.00405280
add esp, 8
push 0x74
call fcn.00403caa
add esp, 4
push eax
push 0xf0c0d0
call fcn.00405280
add esp, 8
push 0x69
call fcn.00403caa
add esp, 4
push eax
push 0xf0c0d0
call fcn.00405280
add esp, 8
push 0x76
call fcn.00403caa
add esp, 4
push eax
push 0xf0c0d0
call fcn.00405280
add esp, 8
push 0x61
call fcn.00403caa
add esp, 4
push eax
push 0xf0c0d0
call fcn.00405280
add esp, 8
push 0x53
call fcn.00403caa
add esp, 4
push eax
push 0xf0c0d0
call fcn.00405280
add esp, 8
push 0x6d
call fcn.00403caa
add esp, 4
push eax
push 0xf0c0d0
call fcn.00405280
add esp, 8
push 0x6f
call fcn.00403caa
add esp, 4
push eax
push 0xf0c0d0
call fcn.00405280
add esp, 8
push 0x6b
call fcn.00403caa
add esp, 4
push eax
push 0xf0c0d0
call fcn.00405280
add esp, 8
push str._____69857
push 0xf0c0dc
call fcn.00405270
add esp, 8
mov dword [ebp - 0x6798], 1
jmp 0x401410
mov eax, dword [ebp - 0x6798]
add eax, 1
mov dword [ebp - 0x6798], eax
cmp dword [ebp - 0x6798], 0xb
jge 0x401447
push 1
mov ecx, dword [ebp - 0x6798]
push ecx
push 0xf0c0d0
call fcn.00403d6a
add esp, 0xc
push eax
call fcn.00403d06
add esp, 4
mov edx, dword [ebp - 0x6798]
mov dword [edx*4 + 0x40dddc], eax
jmp 0x401401
mov dword [ebp - 0x6798], 0
push 0xf0c56c
push 0xf057f4
call fcn.00405270
add esp, 8
push 0xf0c570
lea eax, [ebp - 0x208]
push eax
call fcn.00405270
add esp, 8
push 0xf057f4
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x494], eax
mov ecx, dword [ebp - 0x494]
push ecx
push 0xf057f4
call fcn.00403e97
add esp, 8
push eax
push 0xf057f4
call fcn.00405270
add esp, 8
push 0x72
call fcn.00403caa
add esp, 4
push eax
push 0x65
call fcn.00403caa
add esp, 4
push eax
push 0x64
call fcn.00403caa
add esp, 4
push eax
push 0x6c
call fcn.00403caa
add esp, 4
push eax
push 0x6f
call fcn.00403caa
add esp, 4
push eax
push 0x66
call fcn.00403caa
add esp, 4
push eax
push 0x61
call fcn.00403caa
add esp, 4
push eax
push 0xf057f4
push 0x40d03c
push 0xf059fc
call fcn.00405218
add esp, 0x28
push 0
push 0xf059fc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x6798], eax
push 0x70
call fcn.00403caa
add esp, 4
push eax
push 0x6d
call fcn.00403caa
add esp, 4
push eax
push 0x74
call fcn.00403caa
add esp, 4
push eax
push 0x7a
call fcn.00403caa
add esp, 4
push eax
push 0xf057f4
push 0x40d050
push 0xf058f8
call fcn.00405218
add esp, 0x1c
push 0
push 0xf058f8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x6798], eax
mov dword [ebp - 0x6798], 0
push 0x40d05c
push 4
call fcn.0040394c
add esp, 4
push eax
push 0x40d064
push 0xf058f8
push 0x40d068
push 0xf0bec4
call fcn.00405218
add esp, 0x18
push 0x40d074
push 5
call fcn.0040394c
add esp, 4
push eax
push 0x40d07c
push 0xf058f8
push 0x40d080
push 0xf0bfc8
call fcn.00405218
add esp, 0x18
push str..bat
push 1
call fcn.0040394c
add esp, 4
push eax
push 0x40d094
push 0xf058f8
push str._s_s_s_s
push 0xf05b10
call fcn.00405218
add esp, 0x18
push 0xf05b10
push 0xf08220
call fcn.00405270
add esp, 8
push 0xf0c574
lea edx, [ebp - 0x104]
push edx
call fcn.00405270
add esp, 8
push str..exe
push 2
call fcn.0040394c
add esp, 4
push eax
push 0x40d0ac
lea eax, [ebp - 0x104]
push eax
call fcn.00405218
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
push 0x40d0b4
push 0xf058f8
push str._s_s_s
push 0xf08324
call fcn.00405218
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
push 0x20
call fcn.00403caa
add esp, 4
push eax
push 0x22
call fcn.00403caa
add esp, 4
push eax
push 0xf097b0
push 0x22
call fcn.00403caa
add esp, 4
push eax
push str._s_s_s_s_s
push 0xf05b10
call fcn.00405218
add esp, 0x1c
push 0x73
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x6790]
push eax
call fcn.00405270
add esp, 8
push 0x65
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x6790]
push ecx
call fcn.00405280
add esp, 8
push 0x74
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x6790]
push edx
call fcn.00405280
add esp, 8
push 0x20
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x6790]
push eax
call fcn.00405280
add esp, 8
push 0x7a
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x6790]
push ecx
call fcn.00405280
add esp, 8
push 0x74
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x6790]
push edx
call fcn.00405280
add esp, 8
push 0x6d
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x6790]
push eax
call fcn.00405280
add esp, 8
push 0x70
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x6790]
push ecx
call fcn.00405280
add esp, 8
push 0x3d
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x6790]
push edx
call fcn.00405280
add esp, 8
push 0x73
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.00405270
add esp, 8
push 0x65
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x314]
push ecx
call fcn.00405280
add esp, 8
push 0x74
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x314]
push edx
call fcn.00405280
add esp, 8
push 0x20
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.00405280
add esp, 8
push 0x4d
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x314]
push ecx
call fcn.00405280
add esp, 8
push 0x59
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x314]
push edx
call fcn.00405280
add esp, 8
push 0x46
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.00405280
add esp, 8
push 0x49
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x314]
push ecx
call fcn.00405280
add esp, 8
push 0x4c
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x314]
push edx
call fcn.00405280
add esp, 8
push 0x45
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.00405280
add esp, 8
push 0x53
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x314]
push ecx
call fcn.00405280
add esp, 8
push 0x3d
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x314]
push edx
call fcn.00405280
add esp, 8
push 0xf058f8
lea eax, [ebp - 0x6790]
push eax
push 0x40d0cc
lea ecx, [ebp - 0x208]
push ecx
call fcn.00405218
add esp, 0x10
push 0xf059fc
lea edx, [ebp - 0x314]
push edx
push 0x40d0d4
lea eax, [ebp - 0x689c]
push eax
call fcn.00405218
add esp, 0x10
push 0x73
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x6790]
push ecx
call fcn.00405270
add esp, 8
push 0x65
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x6790]
push edx
call fcn.00405280
add esp, 8
push 0x74
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x6790]
push eax
call fcn.00405280
add esp, 8
push 0x20
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x6790]
push ecx
call fcn.00405280
add esp, 8
push 0x62
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x6790]
push edx
call fcn.00405280
add esp, 8
push 0x66
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x6790]
push eax
call fcn.00405280
add esp, 8
push 0x63
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x6790]
push ecx
call fcn.00405280
add esp, 8
push 0x65
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x6790]
push edx
call fcn.00405280
add esp, 8
push 0x63
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x6790]
push eax
call fcn.00405280
add esp, 8
push 0x3d
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x6790]
push ecx
call fcn.00405280
add esp, 8
push 0x61
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x68e8]
push edx
call fcn.00405270
add esp, 8
push 0x74
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x68e8]
push eax
call fcn.00405280
add esp, 8
push 0x74
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x68e8]
push ecx
call fcn.00405280
add esp, 8
push 0x72
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x68e8]
push edx
call fcn.00405280
add esp, 8
push 0x69
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x68e8]
push eax
call fcn.00405280
add esp, 8
push 0x62
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x68e8]
push ecx
call fcn.00405280
add esp, 8
push 0x20
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x68e8]
push edx
call fcn.00405280
add esp, 8
push 0x2b
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x68e8]
push eax
call fcn.00405280
add esp, 8
push 0x68
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x68e8]
push ecx
call fcn.00405280
add esp, 8
push 0x20
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x68e8]
push edx
call fcn.00405280
add esp, 8
push 0xf058f8
lea eax, [ebp - 0x68e8]
push eax
push 0x40d0dc
lea ecx, [ebp - 0x37794]
push ecx
call fcn.00405218
add esp, 0x10
push 0xf0c578
push 0xf08428
call fcn.00405270
add esp, 8
push 0x30
call fcn.00403caa
add esp, 4
push eax
push 0x2f
call fcn.00403caa
add esp, 4
push eax
push 0x20
call fcn.00403caa
add esp, 4
push eax
push 0x54
call fcn.00403caa
add esp, 4
push eax
push 0x46
call fcn.00403caa
add esp, 4
push eax
push 0x49
call fcn.00403caa
add esp, 4
push eax
push 0x48
call fcn.00403caa
add esp, 4
push eax
push 0x53
call fcn.00403caa
add esp, 4
push eax
push str._s_s_s_s_s_s_s_s
lea edx, [ebp - 0x68b4]
push edx
call fcn.00405218
add esp, 0x28
push 0xa
call fcn.00403caa
add esp, 4
push eax
push 0xd
call fcn.00403caa
add esp, 4
push eax
lea eax, [ebp - 0x68b4]
push eax
push 0xa
call fcn.00403caa
add esp, 4
push eax
push 0xd
call fcn.00403caa
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.set_cmdline
push 0xa
call fcn.00403caa
add esp, 4
push eax
push 0xd
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x6790]
push eax
push 0xa
call fcn.00403caa
add esp, 4
push eax
push 0xd
call fcn.00403caa
add esp, 4
push eax
lea ecx, [ebp - 0x689c]
push ecx
push 0xa
call fcn.00403caa
add esp, 4
push eax
push 0xd
call fcn.00403caa
add esp, 4
push eax
lea edx, [ebp - 0x208]
push edx
push 0xa
call fcn.00403caa
add esp, 4
push eax
push 0xd
call fcn.00403caa
add esp, 4
push eax
push str._echo_off
push str._s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s
push 0xf08428
call fcn.00405218
add esp, 0x58
call fcn.00401dbd
mov dword [ebp - 0x4d4], 0x3c
mov dword [ebp - 0x4c4], 0xf08220
mov dword [ebp - 0x4d0], 0x40
mov dword [ebp - 0x4cc], 0
mov dword [ebp - 0x4c8], str.open
mov dword [ebp - 0x4c0], 0xf05b10
mov dword [ebp - 0x4bc], 0
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4b4], 0x1d
lea eax, [ebp - 0x4d4]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 0x49c], 0
je 0x401d1b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x49c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x49c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0xf05b08], 1
jne 0x401d6d
mov dword [ebp - 0x6798], 0
jmp 0x401d3f
mov eax, dword [ebp - 0x6798]
add eax, 1
mov dword [ebp - 0x6798], eax
mov ecx, dword [0xf05b0c]
sub ecx, 2
cmp dword [ebp - 0x6798], ecx
jge 0x401d6d
mov edx, dword [ebp - 0x6798]
imul edx, edx, 0x3e8
add edx, 0x40de0c
push edx
call fcn.004051ee
add esp, 4
jmp 0x401d30
mov eax, dword [0xf05b0c]
sub eax, 2
mov dword [ebp - 0x6798], eax
jmp 0x401d8c
mov ecx, dword [ebp - 0x6798]
add ecx, 1
mov dword [ebp - 0x6798], ecx
mov edx, dword [ebp - 0x6798]
cmp edx, dword [0xf05b0c]
jge 0x401db6
mov eax, dword [ebp - 0x6798]
imul eax, eax, 0x3e8
add eax, 0x40de0c
push eax
call fcn.004051ee
add esp, 4
jmp 0x401d7d
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret