Function at 0x40bc60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464bbd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x63c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x44], 0
call fcn.00402a30
mov byte [ebp - 4], 2
lea edi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x28]
push ecx
cmovae edi, dword [ebp - 0x40]
lea ecx, [ebp + 0x18]
push eax
mov dword [ebp - 0x54], edi
call fcn.00402ab0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
mov dword [ebp - 0x4c], eax
call ebx
mov dword [ebp - 0x48], eax
add eax, 2
push eax
mov dword [ebp - 0x50], eax
call fcn.0045669c
mov esi, eax
add esp, 4
test esi, esi
jne 0x40bd0d
lea esi, [eax + 1]
jmp 0x40be57
push dword [ebp - 0x50]
push 0
push esi
call fcn.0044f970
mov eax, dword [ebp - 0x48]
add esp, 0xc
inc eax
push 0
push 0
push eax
push esi
push 0xffffffffffffffff
push dword [ebp - 0x4c]
push 0
push 0xfde9
call ebx
test eax, eax
jne 0x40bd4a
push esi
call fcn.004533f0
add esp, 4
mov esi, 2
jmp 0x40be57
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call ebx
mov dword [ebp - 0x48], eax
add eax, 2
push eax
mov dword [ebp - 0x4c], eax
call fcn.0045669c
mov edi, eax
add esp, 4
test edi, edi
jne 0x40bd87
push esi
call fcn.004533f0
add esp, 4
lea esi, [edi + 3]
jmp 0x40be57
push dword [ebp - 0x4c]
push 0
push edi
call fcn.0044f970
mov eax, dword [ebp - 0x48]
add esp, 0xc
inc eax
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push dword [ebp - 0x54]
push 0
push 0xfde9
call ebx
test eax, eax
jne 0x40bdca
push edi
call fcn.004533f0
push esi
call fcn.004533f0
add esp, 8
mov esi, 4
jmp 0x40be57
lea eax, [ebp - 0x44]
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 0x40bdff
push esi
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 8
mov esi, 5
jmp 0x40be57
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40be04
sub ecx, edx
push ecx
push esi
push 1
push 0
push edi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x44]
test eax, eax
je 0x40be40
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 8
mov esi, 6
jmp 0x40be57
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004533f0
push edi
call fcn.004533f0
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40be91
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40be87
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf40
push edx
push ecx
call fcn.0044df88
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x40bedf
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bed5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf40
push edx
push ecx
call fcn.0044df88
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0xf
call fcn.004016b0
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [eax + 0x200]
call ecx
mov dword [ebp - 4], 0x10
call fcn.004016b0
lea ecx, [ebp + 0x18]
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044daed
mov esp, ebp
pop ebp
ret 0x20
call fcn.0045376f
int3