Function at 0x40b1d0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464b1d
mov eax, dword fs:[0]
push eax
sub esp, 0x88
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], 2
xor esi, esi
mov dword [ebp - 0x64], 0
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x80], esi
call fcn.00402a30
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402a30
mov byte [ebp - 4], 4
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edi, dword [ebp - 0x28]
mov dword [ebp - 0x88], edi
call dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
lea eax, [ebp - 0x64]
push eax
push 0x2011f
push esi
push str.SOFTWARERansompod
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b287
mov esi, 1
jmp 0x40b969
call fcn.004016b0
lea ecx, [ebp - 0x50]
push ecx
mov eax, dword [eax + 0x1fc]
call eax
call fcn.004016b0
push 0
push 3
push 1
mov eax, dword [eax + 0x220]
lea ecx, [ebp - 0x50]
push ecx
call eax
mov byte [ebp - 4], 8
call fcn.004016b0
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp + 0x28]
mov eax, dword [eax + 0x204]
push ecx
call eax
test eax, eax
jne 0x40b2d0
xor bl, bl
jmp 0x40b2d6
cmp eax, 0xffffffff
sete bl
mov byte [ebp - 4], 9
call fcn.004016b0
lea ecx, [ebp - 0x50]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov byte [ebp - 4], 4
test bl, bl
je 0x40b304
push dword [ebp - 0x7c]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x40b95e
call fcn.004016b0
lea ecx, [ebp - 0x60]
push ecx
mov eax, dword [eax + 0x1fc]
call eax
call fcn.004016b0
push 0
push 3
push 2
mov eax, dword [eax + 0x220]
lea ecx, [ebp - 0x60]
push ecx
call eax
mov byte [ebp - 4], 0xd
call fcn.004016b0
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp + 0x28]
mov eax, dword [eax + 0x204]
push ecx
call eax
test eax, eax
jne 0x40b34d
xor bl, bl
jmp 0x40b353
cmp eax, 0xffffffff
sete bl
mov byte [ebp - 4], 0xe
call fcn.004016b0
lea ecx, [ebp - 0x60]
push ecx
mov eax, dword [eax + 0x200]
call eax
test bl, bl
je 0x40b388
push 2
push 0x46c1c0
push 7
push 0
push dword [ebp - 0x7c]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40b95e
mov ebx, dword [ebp - 0x7c]
mov ecx, ebx
call fcn.0040a5d0
test eax, eax
jne 0x40b442
mov esi, edi
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40b3a0
sub esi, ecx
sar esi, 1
lea ebx, [esi*2 + 0x14]
push ebx
call fcn.0045669c
mov edi, eax
add esp, 4
test edi, edi
jne 0x40b3d6
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [edi + 2]
jmp 0x40b969
push ebx
push 0
push edi
call fcn.0044f970
push dword [ebp - 0x88]
push 0x46cee8
push edi
call fcn.004025f0
add esp, 0x18
lea eax, [esi*2 + 4]
push eax
push edi
push 7
push 0
push dword [ebp - 0x7c]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
test eax, eax
je 0x40b435
call fcn.004533f0
add esp, 4
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 3
jmp 0x40b969
call fcn.004533f0
add esp, 4
jmp 0x40b955
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push ebx
push dword [ebp - 0x64]
call edi
cmp eax, 2
jne 0x40b470
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 3
jmp 0x40b969
mov eax, dword [ebp - 0x6c]
add eax, 0xa
push eax
call fcn.0045669c
mov ebx, eax
add esp, 4
mov dword [ebp - 0x70], ebx
test ebx, ebx
jne 0x40b499
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebx + 4]
jmp 0x40b969
mov eax, dword [ebp - 0x6c]
add eax, 0xa
push eax
push 0
push ebx
call fcn.0044f970
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0
push 0
push dword [ebp - 0x7c]
push dword [ebp - 0x64]
call edi
test eax, eax
je 0x40b4dc
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004533f0
add esp, 4
mov esi, 5
jmp 0x40b969
mov ecx, dword [ebp - 0x6c]
xor eax, eax
test ecx, ecx
je 0x40b510
test eax, eax
je 0x40b4f8
cmp word [ebx + eax*2], 0
jne 0x40b508
cmp word [ebx + eax*2 + 2], 0
je 0x40b50f
cmp word [ebx + eax*2], 0
jne 0x40b508
cmp word [ebx + eax*2 + 2], 0
je 0x40b508
inc esi
inc eax
cmp eax, ecx
jb 0x40b4e5
jmp 0x40b510
inc esi
lea eax, [esi + 1]
push 4
push eax
call fcn.004538d0
mov edi, eax
add esp, 8
mov dword [ebp - 0x84], edi
test edi, edi
jne 0x40b544
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004533f0
add esp, 4
lea esi, [edi + 6]
jmp 0x40b969
mov edx, dword [ebp - 0x6c]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x68], eax
xor ecx, ecx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x8c], ecx
test edx, edx
je 0x40b63d
mov esi, dword [ebp - 0x70]
mov edi, esi
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x74], 2
add eax, 0xfffffffc
sub dword [ebp - 0x74], esi
nop
test ecx, ecx
je 0x40b599
cmp word [edi], 0
jne 0x40b625
cmp word [edi + 2], 0
je 0x40b787
cmp word [edi], 0
jne 0x40b625
cmp word [edi + 2], 0
je 0x40b625
inc ebx
add eax, 4
add esi, dword [ebp - 0x90]
mov ecx, esi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x94], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b5c2
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.004538d0
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x94]
mov dword [eax], ecx
test ecx, ecx
je 0x40b806
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40b5f1
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x70]
lea eax, [ecx + 1]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
add eax, edi
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x94]
inc ecx
add edi, 2
mov dword [ebp - 0x8c], ecx
cmp ecx, edx
jb 0x40b580
mov edi, dword [ebp - 0x84]
xor esi, esi
test ebx, ebx
jle 0x40b66e
nop dword [eax]
nop word [eax + eax]
push dword [ebp - 0x88]
push dword [edi + esi*4]
call fcn.00452963
add esp, 8
test eax, eax
je 0x40b832
inc esi
cmp esi, ebx
jl 0x40b650
xor esi, esi
mov dword [ebp - 0x74], 0
xor edx, edx
cmp ebx, 2
jl 0x40b6d3
lea eax, [ebx - 1]
xor ebx, ebx
mov dword [ebp - 0x68], eax
mov ecx, dword [edi + edx*4]
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b690
mov eax, dword [ebp - 0x74]
sub ecx, esi
sar ecx, 1
lea eax, [eax + ecx*2]
mov ecx, dword [edi + edx*4 + 4]
mov dword [ebp - 0x74], eax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b6b0
sub ecx, esi
add edx, 2
sar ecx, 1
lea ebx, [ebx + ecx*2]
cmp edx, dword [ebp - 0x68]
jl 0x40b686
mov dword [ebp - 0x68], ebx
mov ebx, dword [ebp - 0x78]
mov esi, dword [ebp - 0x68]
cmp edx, ebx
jge 0x40b6f5
mov ecx, dword [edi + edx*4]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b6e0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x74]
add edx, esi
add edx, dword [ebp - 0x80]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b706
sub ecx, esi
sar ecx, 1
lea eax, [ecx + 3]
add eax, ebx
lea eax, [edx + eax*2]
lea esi, [eax*2 + 0xc8]
mov dword [ebp - 0x8c], eax
push esi
call fcn.0045669c
add esp, 4
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x40b875
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x70]
call fcn.004533f0
add esp, 4
xor esi, esi
test ebx, ebx
jle 0x40b774
mov eax, dword [edi + esi*4]
test eax, eax
je 0x40b76f
push eax
call fcn.004533f0
add esp, 4
mov dword [edi + esi*4], 0
inc esi
cmp esi, ebx
jl 0x40b758
push edi
call fcn.004533f0
add esp, 4
mov esi, 0xa
jmp 0x40b969
mov eax, dword [ebp - 0x68]
inc ebx
mov dword [ebp - 0x78], ebx
lea esi, [esi + eax*2]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b796
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.004538d0
mov edi, dword [ebp - 0x84]
mov ecx, eax
add esp, 8
mov dword [edi + ebx*4 - 4], ecx
test ecx, ecx
jne 0x40b7f0
push edi
call fcn.004533f0
add esp, 4
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x70]
call fcn.004533f0
add esp, 4
mov esi, 7
jmp 0x40b969
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40b7f0
jmp 0x40b63d
push dword [ebp - 0x84]
call fcn.004533f0
add esp, 4
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x70]
call fcn.004533f0
add esp, 4
mov esi, 8
jmp 0x40b969
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x70]
call fcn.004533f0
add esp, 4
xor esi, esi
mov eax, dword [edi + esi*4]
test eax, eax
je 0x40b85f
push eax
call fcn.004533f0
add esp, 4
mov dword [edi + esi*4], 0
inc esi
cmp esi, ebx
jl 0x40b848
push edi
call fcn.004533f0
add esp, 4
or esi, 0xffffffff
jmp 0x40b969
push esi
push 0
push eax
call fcn.0044f970
xor esi, esi
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x68], eax
test ebx, ebx
jle 0x40b8d6
nop
mov ecx, dword [edi + eax*4]
lea eax, [esi + esi]
mov esi, dword [ebp - 0x78]
sub eax, ecx
mov edx, ecx
add esi, eax
nop
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [edx + esi - 2], ax
test ax, ax
jne 0x40b8a0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b8b3
mov esi, dword [ebp - 0x80]
sub ecx, edx
mov eax, dword [ebp - 0x68]
inc esi
sar ecx, 1
inc eax
add esi, ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x80], esi
cmp eax, ebx
jl 0x40b890
mov edx, dword [ebp - 0x78]
lea ecx, [esi + esi]
mov esi, dword [ebp - 0x88]
sub ecx, esi
add ecx, edx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x40b8f0
push dword [ebp - 0x8c]
push edx
push 7
push 0
push dword [ebp - 0x7c]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x70]
call fcn.004533f0
add esp, 4
xor esi, esi
test ebx, ebx
jle 0x40b944
mov eax, dword [edi + esi*4]
test eax, eax
je 0x40b93f
push eax
call fcn.004533f0
add esp, 4
mov dword [edi + esi*4], 0
inc esi
cmp esi, ebx
jl 0x40b928
push edi
call fcn.004533f0
push dword [ebp - 0x78]
call fcn.004533f0
add esp, 8
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40b9a7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b99d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba6f
push edx
push ecx
call fcn.0044df88
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x40b9f9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b9ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba6f
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], 0x33
call fcn.004016b0
lea ecx, [ebp + 8]
push ecx
mov eax, dword [eax + 0x200]
call eax
mov byte [ebp - 4], 0x34
call fcn.004016b0
lea ecx, [ebp + 0x18]
push ecx
mov ecx, dword [eax + 0x200]
call ecx
mov dword [ebp - 4], 0x35
call fcn.004016b0
lea ecx, [ebp + 0x28]
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 0x30
call fcn.0045376f
int3