Function at 0x413560
Capabilities:
Create process on windows
Encode data using xor
Enumerate processes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4651ed
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x63c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x244], 0
call fcn.004016b0
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp + 8]
mov eax, dword [eax + 0x21c]
push ecx
call eax
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x240]
cmove ecx, dword [ebp - 0x250]
push eax
push 0x2011f
push 0
push str.SOFTWARERansompod
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x250], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4135fd
mov esi, 1
jmp 0x413a78
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x244]
push eax
push 0
push 0
push 0
push str.Path_32
push dword [ebp - 0x240]
call edi
mov eax, dword [ebp - 0x244]
add eax, 0xa
push eax
call fcn.0045669c
mov esi, eax
add esp, 4
test esi, esi
je 0x413762
mov eax, dword [ebp - 0x244]
add eax, 0xa
push eax
push 0
push esi
call fcn.0044f970
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
push esi
push 0
push 0
push str.Path_32
push dword [ebp - 0x240]
call edi
test eax, eax
je 0x41368a
push esi
call fcn.004533f0
add esp, 4
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 3
jmp 0x413a78
mov edx, dword [ebp - 0x244]
xor eax, eax
test edx, edx
je 0x413700
cmp edx, 0x40
jb 0x4136f3
movaps xmm2, xmmword [0x636a50]
lea ecx, [esi + 0x20]
mov edi, edx
and edi, 0xffffffc0
nop word [eax + eax]
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 0x4136b0
cmp eax, edx
jae 0x413700
xor byte [eax + esi], 0xdf
inc eax
cmp eax, edx
jb 0x4136f7
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x248], eax
test eax, eax
jne 0x41373d
push esi
call fcn.004533f0
add esp, 4
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 4
jmp 0x413a78
lea eax, [eax*2 + 4]
push eax
mov dword [ebp - 0x24c], eax
call fcn.0045669c
mov edi, eax
add esp, 4
test edi, edi
jne 0x413778
push esi
call fcn.004533f0
add esp, 4
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 2
jmp 0x413a78
push dword [ebp - 0x24c]
push 0
push edi
call fcn.0044f970
add esp, 0xc
push dword [ebp - 0x248]
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4137c9
push edi
call fcn.004533f0
push esi
call fcn.004533f0
add esp, 8
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 4
jmp 0x413a78
push esi
call fcn.004533f0
mov ecx, edi
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4137d7
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 0x1c]
mov dword [ebp - 0x244], eax
add eax, 0xa
push eax
call fcn.0045669c
mov esi, eax
add esp, 4
mov dword [ebp - 0x248], esi
test esi, esi
jne 0x41382a
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004533f0
add esp, 4
mov esi, 2
jmp 0x413a78
mov eax, dword [ebp - 0x244]
add eax, 0xa
push eax
push 0
push esi
call fcn.0044f970
push str.RnspodCLI.exe
push edi
push str._ws_ws_
push esi
call fcn.004025f0
push edi
call fcn.004533f0
add esp, 0x20
cmp dword [ebp - 0x250], 1
jne 0x413a4f
push 5
push 0
push str.1000
push esi
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x248]
mov esi, eax
call fcn.004533f0
add esp, 4
cmp esi, 0x20
jg 0x4138a5
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 5
jmp 0x413a78
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x413a3c
nop word [eax + eax]
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.0044f970
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x413a35
xor edi, edi
nop dword [eax + eax]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413920
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push str.RnspodCLI.exe
push eax
call fcn.0045657d
test eax, eax
mov eax, 1
push 0x228
cmove edi, eax
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.0044f970
add esp, 0x18
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x413910
test esi, esi
je 0x413988
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4139b7
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4138d0
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 9
jmp 0x413a78
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 4
push eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
push eax
push 0
push 0
push str.UACF
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x240]
test eax, eax
je 0x413a05
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 6
jmp 0x413a78
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24c], 0x3e8
mov dword [ebp - 0x240], 0
jne 0x413a2e
cmp dword [ebp - 0x250], 1
jne 0x413a2e
xor esi, esi
jmp 0x413a78
mov esi, 7
jmp 0x413a78
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 9
jmp 0x413a78
push esi
call fcn.004533f0
mov eax, dword [ebp - 0x240]
add esp, 4
test eax, eax
je 0x413a73
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], 0
mov esi, 8
mov dword [ebp - 4], 0xd
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044daed
mov esp, ebp
pop ebp
ret 0x10