Function at 0x40c6d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464d09
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
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 esi, dword [ebp + 8]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 1
xor edi, edi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
call fcn.004016b0
lea ecx, [ebp - 0x48]
push ecx
mov eax, dword [eax + 0x1fc]
call eax
mov byte [ebp - 4], 2
call fcn.004016b0
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [eax + 0x1fc]
call eax
push ecx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0xc]
call fcn.00402a30
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x5c]
push eax
push 0x101
push edi
push str.SOFTWARERansompod
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c850
call fcn.004016b0
push esi
mov eax, dword [eax + 0x1fc]
call eax
call fcn.004016b0
push edi
push 3
push 1
mov eax, dword [eax + 0x220]
push esi
call eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x6c], 1
cmp edx, 8
jb 0x40c7f5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c7eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cf89
push edx
push ecx
call fcn.0044df88
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 5
call fcn.004016b0
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov byte [ebp - 4], 6
call fcn.004016b0
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [eax + 0x200]
call ecx
mov dword [ebp - 4], 7
call fcn.004016b0
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [eax + 0x200]
call ecx
jmp 0x40cf6a
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0
push dword [ebp - 0x70]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x40c929
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004016b0
push esi
mov eax, dword [eax + 0x1fc]
call eax
call fcn.004016b0
push 0
push 3
push 2
mov eax, dword [eax + 0x220]
push esi
call eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x6c], 1
cmp edx, 8
jb 0x40c8df
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c8d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cf89
push edx
push ecx
call fcn.0044df88
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 8
call fcn.004016b0
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov byte [ebp - 4], 9
call fcn.004016b0
lea ecx, [ebp - 0x48]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov dword [ebp - 4], 0xa
jmp 0x40cf59
mov eax, dword [ebp - 0x60]
add eax, 0xa
push eax
call fcn.0045669c
mov ecx, eax
add esp, 4
mov dword [ebp - 0x64], ecx
test ecx, ecx
jne 0x40c9ff
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004016b0
push esi
mov eax, dword [eax + 0x1fc]
call eax
call fcn.004016b0
push 0
push 3
push 3
mov eax, dword [eax + 0x220]
push esi
call eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x6c], 1
cmp edx, 8
jb 0x40c9b5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c9ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cf89
push edx
push ecx
call fcn.0044df88
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xb
call fcn.004016b0
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov byte [ebp - 4], 0xc
call fcn.004016b0
lea ecx, [ebp - 0x48]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov dword [ebp - 4], 0xd
jmp 0x40cf59
mov eax, dword [ebp - 0x60]
add eax, 0xa
push eax
push 0
push ecx
call fcn.0044f970
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
push 0
push 0
push dword [ebp - 0x70]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40caf5
push dword [ebp - 0x64]
call fcn.004533f0
add esp, 4
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004016b0
push esi
mov eax, dword [eax + 0x1fc]
call eax
call fcn.004016b0
push 0
push 3
push 3
mov eax, dword [eax + 0x220]
push esi
call eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x6c], 1
cmp edx, 8
jb 0x40caab
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40caa1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cf8e
push edx
push ecx
call fcn.0044df88
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xe
call fcn.004016b0
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov byte [ebp - 4], 0xf
call fcn.004016b0
lea ecx, [ebp - 0x48]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov dword [ebp - 4], 0x10
jmp 0x40cf59
xor ecx, ecx
cmp dword [ebp - 0x60], ecx
jbe 0x40cb22
mov eax, dword [ebp - 0x64]
add eax, 2
cmp word [eax - 2], 0
movzx edx, word [eax]
je 0x40cb14
test dx, dx
jne 0x40cb19
inc edi
jmp 0x40cb19
test dx, dx
je 0x40cb22
inc ecx
add eax, 2
cmp ecx, dword [ebp - 0x60]
jb 0x40cb02
push 4
push 0x3000
lea eax, [edi*4 + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x40cc09
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x64]
call fcn.004533f0
add esp, 4
call fcn.004016b0
push esi
mov eax, dword [eax + 0x1fc]
call eax
call fcn.004016b0
push 0
push 3
push 4
mov eax, dword [eax + 0x220]
push esi
call eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x6c], 1
cmp edx, 8
jb 0x40cbbf
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cbb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cf8e
push edx
push ecx
call fcn.0044df88
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0x11
call fcn.004016b0
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov byte [ebp - 4], 0x12
call fcn.004016b0
lea ecx, [ebp - 0x48]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov dword [ebp - 4], 0x13
jmp 0x40cf59
mov edx, dword [ebp - 0x60]
xor ecx, ecx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x68], ecx
test edx, edx
je 0x40ccd1
mov esi, dword [ebp - 0x64]
add eax, 0xfffffffc
mov dword [ebp - 0x70], eax
mov eax, 2
sub eax, esi
mov dword [ebp - 0x84], eax
lea edi, [esi + 2]
cmp word [edi - 2], 0
movzx eax, word [edi]
je 0x40ccbd
test ax, ax
jne 0x40ccc2
mov eax, dword [ebp - 0x7c]
inc dword [ebp - 0x74]
add dword [ebp - 0x70], 4
add eax, esi
mov esi, eax
mov dword [ebp - 0x7c], eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40cc63
sub esi, ecx
sar esi, 1
push 4
push 0x3000
lea eax, [esi*2 + 0xa]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0x70]
mov dword [ecx], eax
test eax, eax
je 0x40ce45
push esi
push dword [ebp - 0x7c]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.004538c5
mov eax, dword [ebp - 0x84]
add esp, 0x10
mov edx, dword [ebp - 0x60]
add eax, edi
mov ecx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x7c], eax
jmp 0x40ccc2
test ax, ax
je 0x40ccd1
inc ecx
add edi, 2
mov dword [ebp - 0x68], ecx
cmp ecx, edx
jb 0x40cc40
mov eax, dword [ebp - 0x74]
xor edi, edi
test eax, eax
je 0x40cdba
mov ecx, dword [ebp - 0x78]
mov esi, dword [ecx + edi*4]
mov dword [ebp - 0x68], esi
test esi, esi
je 0x40cdb1
call fcn.004016b0
lea ecx, [ebp - 0x58]
push ecx
mov eax, dword [eax + 0x1fc]
call eax
mov eax, esi
xor esi, esi
mov ecx, eax
cmp word [ecx], si
je 0x40cd1a
nop dword [eax + eax]
lea eax, [eax + 2]
inc esi
cmp word [eax], 0
jne 0x40cd10
call fcn.004016b0
push 0
push esi
push dword [ebp - 0x68]
mov eax, dword [eax + 0x218]
lea ecx, [ebp - 0x58]
push ecx
call eax
mov byte [ebp - 4], 0x17
call fcn.004016b0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x48]
mov eax, dword [eax + 0x208]
push ecx
call eax
mov byte [ebp - 4], 0x18
call fcn.004016b0
lea ecx, [ebp - 0x58]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x68], 0
call fcn.004016b0
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x38]
mov eax, dword [eax + 0x23c]
push ecx
call eax
mov esi, dword [ebp - 0x68]
call fcn.004016b0
lea ecx, [ebp - 0x48]
push ecx
push esi
mov eax, dword [eax + 0x244]
lea ecx, [ebp - 0x38]
push ecx
call eax
mov eax, dword [ebp - 0x78]
push 0x8000
push 0
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
inc edi
cmp edi, eax
jb 0x40cce1
push dword [ebp - 0x64]
call fcn.004533f0
add esp, 4
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x8000
push 0
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call fcn.004016b0
mov esi, dword [ebp - 0x80]
push esi
mov eax, dword [eax + 0x1fc]
call eax
movups xmm1, xmmword [esi]
mov dword [ebp - 0x6c], 1
movups xmm0, xmmword [ebp - 0x38]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
movups xmmword [esi], xmm0
movups xmmword [ebp - 0x38], xmm1
cmp edx, 8
jb 0x40cf14
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cf8e
jmp 0x40cf0a
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x64]
call fcn.004533f0
add esp, 4
call fcn.004016b0
mov esi, dword [ebp - 0x80]
push esi
mov eax, dword [eax + 0x1fc]
call eax
call fcn.004016b0
push 0
push 3
push 5
mov eax, dword [eax + 0x220]
push esi
call eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x6c], 1
cmp edx, 8
jb 0x40cec3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ceb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cf8e
push edx
push ecx
call fcn.0044df88
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0x14
call fcn.004016b0
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov byte [ebp - 4], 0x15
call fcn.004016b0
lea ecx, [ebp - 0x48]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov dword [ebp - 4], 0x16
jmp 0x40cf59
push edx
push ecx
call fcn.0044df88
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0x19
call fcn.004016b0
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov byte [ebp - 4], 0x1a
call fcn.004016b0
lea ecx, [ebp - 0x48]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov dword [ebp - 4], 0x1b
call fcn.004016b0
lea ecx, [ebp + 0xc]
push ecx
mov eax, dword [eax + 0x200]
call eax
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 0x14
call fcn.0045376f
call fcn.0045376f
int3