Function at 0x4440e0
Capabilities:
Decode data using base64 via winapi
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2b58
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x5254e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
xor edx, edx
mov dword [ebp - 0x78], edx
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x6c], edx
jb 0x444131
mov ecx, dword [esi]
jmp 0x444133
mov ecx, esi
push edx
push edx
lea edi, [ebp - 0x6c]
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
push edx
push 1
push eax
push ecx
call edi
test eax, eax
je 0x444637
mov edx, dword [ebp - 0x6c]
push 0x52b148
push edx
call fcn.004aa4dd
mov ebx, eax
add esp, 8
mov dword [ebp - 0x74], ebx
test ebx, ebx
je 0x444637
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x444177
mov esi, dword [esi]
push 0
push 0
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push 1
push eax
push esi
call edi
test eax, eax
je 0x444637
push 7
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebx], eax
jne 0x44461b
mov eax, 7
mov ecx, 0x5002a8
lea esi, [ebx + 4]
jmp 0x4441b0
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x44461b
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x4441b0
test eax, eax
je 0x4441f8
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x44461b
cmp eax, 1
jbe 0x4441f8
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x44461b
cmp eax, 2
jbe 0x4441f8
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x44461b
xor eax, eax
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x4c], al
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x6c]
mov edi, 0xb
add ecx, 0xfffffffc
cmp ecx, edi
jbe 0x444355
lea ecx, [ecx]
mov edx, dword [edi + ebx]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
xor esi, esi
add edi, 4
cmp ebx, esi
jbe 0x444344
lea eax, [ebx + edi]
mov dword [ebp - 0x78], eax
cmp eax, dword [ebp - 0x6c]
ja 0x444344
push esi
push 0x4e10ad
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x30], 0
call fcn.004082f0
mov byte [ebp - 4], 1
test ebx, ebx
je 0x4442cb
add edi, dword [ebp - 0x74]
movzx ecx, byte [edi + esi]
shr ecx, 4
mov al, byte [ecx + 0x4dc97c]
mov byte [ebp - 0x7c], al
cmp al, 0x30
jne 0x444289
cmp dword [ebp - 0x20], 0
jbe 0x444297
mov edx, dword [ebp - 0x7c]
push edx
push 1
lea ecx, [ebp - 0x30]
call fcn.00408150
movzx eax, byte [edi + esi]
and eax, 0xf
mov al, byte [eax + 0x4dc97c]
lea ecx, [ebx - 1]
mov byte [ebp - 0x7c], al
cmp esi, ecx
je 0x4442b8
cmp al, 0x30
jne 0x4442b8
cmp dword [ebp - 0x20], 0
jbe 0x4442c6
mov ecx, dword [ebp - 0x7c]
push ecx
push 1
lea ecx, [ebp - 0x30]
call fcn.00408150
inc esi
cmp esi, ebx
jb 0x44426f
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x68]
push 0x500300
push eax
call fcn.0040b8c0
add esp, 0xc
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004080d0
mov esi, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], esi
jb 0x444307
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004a9dd8
add esp, 4
cmp dword [ebp - 0x3c], 0
jbe 0x44431c
push 1
push 0x4e4b04
lea ecx, [ebp - 0x4c]
call fcn.0040a0a0
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00409fb0
mov edi, dword [ebp - 0x78]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1c], esi
jb 0x444344
mov eax, dword [ebp - 0x30]
push eax
call fcn.004a9dd8
add esp, 4
mov ecx, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x74]
add ecx, 0xfffffffc
cmp edi, ecx
jb 0x444220
push ebx
call fcn.004a9da3
add esp, 4
mov dword [ebp - 0x12c], 0x4fca94
mov dword [ebp - 0x11c], 0x4e4be8
mov byte [ebp - 4], 3
xor edi, edi
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x78], 1
mov dword [ebp - 0xcc], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], edi
call fcn.00401780
lea edx, [ebp - 0x114]
push 0x20
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], edi
call fcn.0040b460
mov byte [ebp - 0x8c], al
cmp dword [ebp - 0x94], edi
jne 0x4443e3
mov eax, dword [ebp - 0xc0]
or eax, 4
push edi
push eax
lea ecx, [ebp - 0xcc]
call fcn.00401640
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x114]
mov dword [ebp + edx - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.0040a560
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xd4], edi
mov eax, dword [ebp - 0x80]
mov bl, 0xa
lea esi, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.004500d0
push eax
mov eax, dword [ebp - 0x84]
push ecx
push 0x4e4b14
push ecx
push eax
push ecx
lea ecx, [ebp - 0x11c]
push str.rsa2_
push ecx
mov byte [ebp - 4], 0xb
call fcn.0040b990
add esp, 0xc
mov ecx, eax
call fcn.004069e0
add esp, 4
push eax
call fcn.0040b990
add esp, 0xc
push eax
call fcn.0040bc40
mov byte [ebp - 4], bl
mov ebx, 0x10
add esp, 8
cmp dword [ebp - 0x54], ebx
jb 0x4444b4
mov edx, dword [ebp - 0x68]
push edx
call fcn.004a9dd8
add esp, 4
push edi
lea eax, [ebp - 0x70]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x500310
push SysReAllocString
mov dword [ebp - 0x70], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x44452b
push eax
push str.SetPlonkSSHHostKey:_Create_Registry_Key_failed___d_
push edi
push edi
call fcn.00432650
add esp, 0x10
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0
call fcn.0041cc10
lea ecx, [ebp - 0xcc]
push ecx
mov dword [ebp - 0xcc], vtable.std::ios_base.0
call fcn.00497fcd
add esp, 4
cmp dword [ebp - 0x38], ebx
jb 0x44464f
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004a9dd8
add esp, 4
jmp 0x44464f
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0041cca0
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], ebx
jae 0x444545
lea ecx, [ebp - 0x4c]
cmp dword [eax + 0x14], ebx
jb 0x44454c
mov eax, dword [eax]
mov edx, dword [ebp - 0x3c]
inc edx
push edx
push ecx
push 1
push edi
push eax
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp dword [ebp - 0x1c], ebx
jb 0x444573
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004a9dd8
add esp, 4
mov edx, dword [ebp - 0x70]
push edx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x4445de
push esi
push str.SetPlonkSSHHostKey:_Set_Registry_Value_failed___d_
push edi
push edi
call fcn.00432650
add esp, 0x10
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0
call fcn.0041cc10
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xcc], vtable.std::ios_base.0
call fcn.00497fcd
add esp, 4
cmp dword [ebp - 0x38], ebx
jb 0x44464f
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004a9dd8
add esp, 4
jmp 0x44464f
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0
call fcn.0041cc10
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xcc], vtable.std::ios_base.0
call fcn.00497fcd
add esp, 4
cmp dword [ebp - 0x38], ebx
jb 0x444617
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004a9dd8
add esp, 4
mov al, 1
jmp 0x444651
push ebx
call fcn.004a9da3
add esp, 4
push str.SetPlonkSSHHostKey:_unexpected_key_type
push 0
push 0
call fcn.00432650
add esp, 0xc
jmp 0x44464f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.SetPlonkSSHHostKey:_CryptStringToBinary_failed___d_
push 0
push 0
call fcn.00432650
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a91d2
mov esp, ebp
pop ebp
ret