Function at 0x40f150
Capabilities:
Create process on windows
Encode data using xor
Get common file path
Persist via windows service
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464f7d
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push esi
push edi
mov eax, dword [0x63c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push str.Ransompod:_Install_Config_Files___Enter
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.004016b0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp + 8]
mov eax, dword [eax + 0x21c]
push ecx
call eax
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x10]
cmove ecx, dword [ebp - 0x28]
push eax
push 0x2011f
push 0
push str.SOFTWARERansompod
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f1ee
mov esi, 1
jmp 0x40fa03
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push str.Path_32
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp - 0x24]
add eax, 0xa
push eax
call fcn.0045669c
mov esi, eax
add esp, 4
test esi, esi
je 0x40f335
mov eax, dword [ebp - 0x24]
add eax, 0xa
push eax
push 0
push esi
call fcn.0044f970
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push esi
push 0
push 0
push str.Path_32
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x40f266
push esi
call fcn.004533f0
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 3
jmp 0x40fa03
mov edx, dword [ebp - 0x24]
xor eax, eax
test edx, edx
je 0x40f2d9
cmp edx, 0x40
jb 0x40f2c6
movaps xmm2, xmmword [0x636a50]
lea ecx, [esi + 0x20]
mov edi, edx
and edi, 0xffffffc0
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x30]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp eax, edi
jb 0x40f283
cmp eax, edx
jae 0x40f2d9
nop word [eax + eax]
xor byte [eax + esi], 0xdf
inc eax
cmp eax, edx
jb 0x40f2d0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x40f310
push esi
call fcn.004533f0
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 4
jmp 0x40fa03
lea eax, [eax*2 + 4]
push eax
mov dword [ebp - 0x28], eax
call fcn.0045669c
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x40f348
push esi
call fcn.004533f0
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 2
jmp 0x40fa03
push dword [ebp - 0x28]
push 0
push edi
call fcn.0044f970
add esp, 0xc
push dword [ebp - 0x20]
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40f390
push edi
call fcn.004533f0
push esi
call fcn.004533f0
add esp, 8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 4
jmp 0x40fa03
push esi
call fcn.004533f0
mov ecx, edi
add esp, 4
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f3a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 0xe]
mov dword [ebp - 0x24], eax
add eax, 0xa
push eax
call fcn.0045669c
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x40f3ea
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004533f0
add esp, 4
mov esi, 2
jmp 0x40fa03
mov eax, dword [ebp - 0x24]
add eax, 0xa
push eax
push 0
push esi
call fcn.0044f970
push str.___AIN
push edi
push str._ws_ws_
push esi
call fcn.004025f0
mov edi, dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
add esp, 0x1c
xor esi, esi
test esi, esi
jne 0x40f43e
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push 0x4663e0
call edi
test eax, eax
je 0x40f520
push str.Ransompod_Initialization_Error:_Copying_desktop_files
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40f544
cmp esi, 1
jne 0x40f46a
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x466400
call edi
test eax, eax
je 0x40f520
push str.Ransompod_Initialization_Error:_Copying_documents_files
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40f544
cmp esi, 2
jne 0x40f496
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x466440
call edi
test eax, eax
je 0x40f520
push str.Ransompod_Initialization_Error:_Copying_downloads_files
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40f544
cmp esi, 3
jne 0x40f4be
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x4663f0
call edi
test eax, eax
je 0x40f520
push str.Ransompod_Initialization_Error:_Copying_music_files
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40f544
cmp esi, 4
jne 0x40f4e3
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x466410
call edi
test eax, eax
je 0x40f520
push str.Ransompod_Initialization_Error:_Copying_pictures_files
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40f544
cmp esi, 5
jne 0x40f508
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x466420
call edi
test eax, eax
je 0x40f520
push str.Ransompod_Initialization_Error:_Copying_videos_files
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40f544
cmp esi, 6
jne 0x40f520
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x466460
call edi
test eax, eax
jne 0x40f596
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x40f544
mov ecx, dword [ebp - 0x14]
push 0
call fcn.00409b40
add esp, 4
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x1c], 0
inc esi
cmp esi, 7
jl 0x40f415
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00409630
cmp dword [ebp - 0x2c], 0
je 0x40f9d9
mov ecx, esi
call fcn.00409270
mov esi, eax
test esi, esi
je 0x40f5a5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 8
jmp 0x40fa03
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Ransompod_Initialization_Error:_Copying_public_desktop_files
call edi
jmp 0x40f554
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.Explorer
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40f5f0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 8
mov esi, 9
jmp 0x40fa03
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x642bdc], eax
test eax, eax
je 0x40f8d3
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x642bdc]
test eax, eax
je 0x40f8d3
cmp dword [ebp - 0x28], 0
je 0x40f8d3
push 0x7d0
mov dword [ebp - 0x28], 0
call fcn.0045669c
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x40f685
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 8
mov esi, 2
jmp 0x40fa03
push 0x7d0
push 0
push eax
call fcn.0044f970
mov esi, dword [ebp - 0x18]
push str.AppHelper.exe
push esi
push 0x46c9bc
push dword [ebp - 0x20]
call fcn.004025f0
add esp, 0x1c
mov dword [ebp - 0x84], 0x44
xor eax, eax
mov dword [ebp - 0x58], 1
mov word [ebp - 0x42], ax
xorps xmm0, xmm0
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x84]
movlpd qword [ebp - 0x80], xmm0
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push 0
push dword [ebp - 0x20]
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x52], xmm0
movlpd qword [ebp - 0x4a], xmm0
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f745
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.004533f0
push esi
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 0xc
mov esi, 0xd
jmp 0x40fa03
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40f7aa
push dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.004533f0
push dword [ebp - 0x18]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 0xc
mov esi, 0xe
jmp 0x40fa03
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x40f895
cmp eax, 2
je 0x40f895
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x40]
cmp eax, 4
jne 0x40f802
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.004533f0
push dword [ebp - 0x18]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 0xc
mov esi, 0xa
jmp 0x40fa03
cmp eax, 5
jne 0x40f83c
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.004533f0
push dword [ebp - 0x18]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 0xc
mov esi, 0xb
jmp 0x40fa03
cmp eax, 0x576
jne 0x40f860
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x20]
call fcn.004533f0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
jmp 0x40f971
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.004533f0
push dword [ebp - 0x18]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 0xc
mov esi, 0x10
jmp 0x40fa03
push dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.004533f0
push dword [ebp - 0x18]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 0xc
mov esi, 0xf
jmp 0x40fa03
call fcn.0040a0d0
test eax, eax
je 0x40f902
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 8
mov esi, 0xa
jmp 0x40fa03
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0x2011f
push 0
push str.SYSTEMCurrentControlSetServicesRansompod_TD
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f9b3
push 4
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 4
push 0
push str.Start
push dword [ebp - 0x20]
call esi
test eax, eax
jne 0x40f9b3
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 2
push eax
push 4
push 0
push str.Type
push dword [ebp - 0x20]
call esi
test eax, eax
jne 0x40f9b3
push dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push 4
push 0
push 0x46d25c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40f9d6
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x18]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 8
mov esi, 0xc
jmp 0x40fa03
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
add esp, 8
mov esi, 0xb
jmp 0x40fa03
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov dword [ebp - 0x10], 0
call fcn.004533f0
push dword [ebp - 0x18]
call fcn.004533f0
add esp, 8
push str.Ransompod:_Install_Config_Files___Exit
call edi
xor esi, esi
mov dword [ebp - 4], 0x14
call fcn.004016b0
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [eax + 0x200]
call ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10