Function at 0x405ad0
Capabilities:
Encode data using base64
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
push 0x101
xor esi, esi
mov dword [ebp - 0x14], 0x100
push esi
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], 0x429820
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405ce7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 4]
push eax
push esi
push str.MachineGuid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
test eax, eax
mov ecx, 1
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x405ce7
push ebx
push edi
or eax, 0xffffffff
lea ebx, [ebp - 0x114]
movzx edi, word [ebx]
lea ebx, [ebx + 2]
mov ecx, edi
lea esi, [ecx - 0x41]
or ecx, 0x20
movzx edx, cx
cmp si, 0x19
mov ecx, edi
cmova edx, ecx
ror eax, 0xd
movzx edx, dx
add eax, edx
test dx, dx
jne 0x405b57
lea ebx, [ebp - 0x114]
movzx edi, word [ebx]
lea ebx, [ebx + 2]
mov ecx, edi
lea esi, [ecx - 0x41]
or ecx, 0x20
movzx edx, cx
cmp si, 0x19
mov ecx, edi
cmova edx, ecx
ror eax, 0xd
movzx edx, dx
add eax, edx
test dx, dx
jne 0x405b84
lea ebx, [ebp - 0x114]
movzx edi, word [ebx]
lea ebx, [ebx + 2]
mov ecx, edi
lea esi, [ecx - 0x41]
or ecx, 0x20
movzx edx, cx
cmp si, 0x19
mov ecx, edi
cmova edx, ecx
ror eax, 0xd
movzx edx, dx
add eax, edx
test dx, dx
jne 0x405bb1
mov dword [ebp - 8], eax
mov esi, 0x429820
bswap eax
mov dword [ebp - 4], eax
xor edi, edi
nop word [eax + eax]
mov dl, byte [ebp + edi - 8]
mov bl, byte [ebp + edi - 7]
movzx eax, dl
shr eax, 2
movzx ecx, bl
shr ecx, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movsx eax, dl
mov dl, byte [ebp + edi - 6]
and eax, 3
shl eax, 4
add edi, 3
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movsx eax, bl
and eax, 0xf
movzx ecx, dl
shl eax, 2
shr ecx, 6
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movsx eax, dl
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
cmp edi, 6
jl 0x405bf0
cmp edi, 8
jge 0x405cb1
mov cl, byte [ebp + edi - 8]
movzx eax, cl
shr eax, 2
movsx edx, cl
and edx, 3
shl edx, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
cmp edi, 7
jne 0x405c85
mov bl, 0x3d
jmp 0x405c9e
mov cl, byte [ebp + edi - 7]
movsx eax, cl
and eax, 0xf
mov bl, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx eax, cl
shr eax, 4
or edx, eax
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov byte [esi + 2], bl
mov byte [esi + 3], 0x3d
add esi, 4
mov byte [esi], 0
mov al, byte [0x429820]
mov byte [0x429829], 0
pop edi
pop ebx
test al, al
je 0x405ce7
cmp al, 0x2b
je 0x405cd2
cmp al, 0x2f
je 0x405cd2
cmp al, 0x3d
jne 0x405cda
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x7a
jmp 0x405cdd
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov al, byte [eax]
test al, al
jne 0x405cc6
pop esi
mov esp, ebp
pop ebp
ret