Function at 0x415e10
Capabilities:
Encode data using base64 via winapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], 0
test ecx, ecx
mov dword [ebp - 0x1c], 0
mov eax, str.Information
mov dword [ebp - 0x20], 0
cmovne eax, esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
cmp ecx, 1
jne 0x415e68
mov ebx, str.Warning
jmp 0x415e7f
cmp ecx, 2
jne 0x415e74
mov ebx, str.Error
jmp 0x415e7f
cmp ecx, 3
mov ebx, str.Critical
cmovne ebx, eax
xor ecx, ecx
mov eax, str.Policy_Enforcement
test edx, edx
cmovne eax, ecx
cmp edx, 1
jne 0x415e97
mov esi, str.Threat_Detection
jmp 0x415ec6
cmp edx, 2
jne 0x415ea3
mov esi, str.License_Subsystem
jmp 0x415ec6
cmp edx, 3
jne 0x415eaf
mov esi, str.Functional_Errors
jmp 0x415ec6
cmp edx, 4
jne 0x415ebb
mov esi, str.Product_Health
jmp 0x415ec6
cmp edx, 5
mov esi, str.Update_Subsystem
cmovne esi, eax
test ebx, ebx
jne 0x415ed3
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x415ee0
lea eax, [esi + 2]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 4]
call fcn.004158e0
test eax, eax
je 0x415efa
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415f00
push edi
lea eax, [ebp - 8]
sub ecx, edx
push eax
push 0
push 0x40000001
push ecx
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov eax, dword [ebp - 8]
add eax, 0xa
push eax
call fcn.0045669c
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
test edi, edi
jne 0x415f4a
push dword [ebp - 4]
call fcn.004533f0
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xa
push eax
push 0
push edi
call fcn.0044f970
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415f61
lea eax, [ebp - 8]
sub ecx, edx
push eax
push edi
push 0x40000001
push ecx
push ebx
mov ebx, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
call ebx
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415f83
lea eax, [ebp - 8]
sub ecx, edx
push eax
push 0
push 0x40000001
push ecx
push esi
call ebx
mov eax, dword [ebp - 8]
add eax, 0xa
push eax
call fcn.0045669c
mov ebx, eax
add esp, 4
mov dword [ebp - 0x2c], ebx
test ebx, ebx
jne 0x415fce
push edi
call fcn.004533f0
push dword [ebp - 4]
call fcn.004533f0
add esp, 8
lea eax, [ebx + 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xa
push eax
push 0
push ebx
call fcn.0044f970
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415fe5
lea eax, [ebp - 8]
sub ecx, edx
push eax
push ebx
push 0x40000001
push ecx
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov edx, dword [ebp + 8]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416010
push 0
push 0
sub ecx, esi
push 0
sar ecx, 1
push 0
lea eax, [ecx + 1]
push eax
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
add eax, 2
push eax
call fcn.0045669c
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x416072
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
push dword [ebp - 4]
call fcn.004533f0
add esp, 0xc
lea eax, [esi + 6]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
add eax, 2
push eax
push 0
push esi
call fcn.0044f970
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416090
sub ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
push 0
push 0
sar ecx, 1
inc eax
push eax
push esi
lea eax, [ecx + 1]
push eax
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4160e9
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
push dword [ebp - 4]
call fcn.004533f0
add esp, 0x10
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4160f0
lea eax, [ebp - 8]
sub ecx, edx
push eax
push 0
push 0x40000001
push ecx
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov eax, dword [ebp - 8]
add eax, 0xa
push eax
call fcn.0045669c
mov esi, eax
add esp, 4
mov dword [ebp - 0x30], esi
test esi, esi
jne 0x41614d
push dword [ebp - 0x14]
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
push dword [ebp - 4]
call fcn.004533f0
add esp, 0x10
lea eax, [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xa
push eax
push 0
push esi
call fcn.0044f970
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x24], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416170
sub ecx, dword [ebp - 0x24]
lea eax, [ebp - 8]
push eax
push esi
push 0x40000001
push ecx
push edx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x4161c1
push esi
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
push dword [ebp - 4]
call fcn.004533f0
add esp, 0x14
mov eax, 9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 4
lea eax, [ebp - 0xc]
push eax
push 0x2011f
push 0
push str.SOFTWARERansompod
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x416214
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
push dword [ebp - 4]
call fcn.004533f0
add esp, 0x10
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push str.PPKF
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x10]
add eax, 0xa
push eax
call fcn.0045669c
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x416276
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
push dword [ebp - 4]
call fcn.004533f0
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
add eax, 0xa
push eax
push 0
push ecx
call fcn.0044f970
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
push 0
push str.PPKF
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4162e2
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
push dword [ebp - 4]
call fcn.004533f0
add esp, 0x10
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00413010
add esp, 4
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
test eax, eax
jne 0x416335
call fcn.004533f0
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
push dword [ebp - 4]
call fcn.004533f0
add esp, 0x14
mov eax, 0xd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004533f0
mov eax, dword [ebp - 0x18]
lea eax, [eax*2 + 0x14]
push eax
mov dword [ebp - 0x24], eax
call fcn.0045669c
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x416388
push dword [ebp - 0x1c]
call fcn.004533f0
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
push dword [ebp - 4]
call fcn.004533f0
add esp, 0x14
mov eax, 0xe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x24]
push 0
push eax
call fcn.0044f970
mov eax, dword [ebp - 0x14]
xor esi, esi
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], esi
jbe 0x4163d1
mov ebx, dword [ebp - 0x1c]
mov edi, eax
nop dword [eax + eax]
movzx eax, byte [esi + ebx]
push eax
push 0x46cfa4
push edi
call fcn.00402690
inc esi
add esp, 0xc
add edi, eax
cmp esi, dword [ebp - 0x18]
jb 0x4163b0
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004533f0
mov esi, dword [ebp - 0x30]
push esi
push str.message
push ebx
push str.subject
push edi
push str.severity
push dword [ebp - 0x14]
push 0x632d8c
push dword [ebp - 4]
push str.token
push 5
call fcn.00415690
add esp, 0x30
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x416441
push dword [ebp - 0x14]
call fcn.004533f0
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
mov eax, dword [ebp - 4]
push eax
call fcn.004533f0
add esp, 0x14
mov eax, 0xf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
mov edx, str._api_v1_log
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.00413e20
add esp, 8
test eax, eax
jne 0x41646c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41646c
push eax
call fcn.004533f0
add esp, 4
push dword [ebp - 0x30]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x41648f
push eax
call fcn.004533f0
add esp, 4
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret