Function at 0x40a6e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], 0
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
lea eax, [ebp - 4]
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 0x40a72d
lea eax, [esi + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov ecx, str.BProcessHash
call fcn.0040a5d0
test eax, eax
jne 0x40a7ea
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40a745
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 0x40a77d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi + 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0
push edi
call fcn.0044f970
push dword [ebp - 0x14]
push 0x46cee8
push edi
call fcn.004025f0
add esp, 0x18
lea eax, [esi*2 + 4]
push eax
push edi
push 7
push 0
push str.BProcessHash
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
test eax, eax
je 0x40a7dd
call fcn.004533f0
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004533f0
add esp, 4
jmp 0x40acbd
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push str.BProcessHash
push dword [ebp - 4]
call edi
cmp eax, 2
je 0x40a7c8
mov eax, dword [ebp - 8]
add eax, 0xa
push eax
call fcn.0045669c
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x40a834
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
lea eax, [ebx + 4]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xa
push eax
push 0
push ebx
call fcn.0044f970
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ebx
push 0
push 0
push str.BProcessHash
push dword [ebp - 4]
call edi
test eax, eax
je 0x40a87b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004533f0
add esp, 4
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
test ecx, ecx
je 0x40a8af
test eax, eax
je 0x40a897
cmp word [ebx + eax*2], 0
jne 0x40a8a7
cmp word [ebx + eax*2 + 2], 0
je 0x40a8ae
cmp word [ebx + eax*2], 0
jne 0x40a8a7
cmp word [ebx + eax*2 + 2], 0
je 0x40a8a7
inc esi
inc eax
cmp eax, ecx
jb 0x40a884
jmp 0x40a8af
inc esi
lea eax, [esi + 1]
push 4
push eax
call fcn.004538d0
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x40a8e2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004533f0
add esp, 4
lea eax, [edi + 6]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ecx
test esi, esi
je 0x40a9bd
mov edx, dword [ebp - 0xc]
mov edi, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 2
add eax, 0xfffffffc
sub dword [ebp - 0x18], edx
test ecx, ecx
je 0x40a92d
cmp word [edi], 0
jne 0x40a9ab
cmp word [edi + 2], 0
je 0x40aaf3
cmp word [edi], 0
jne 0x40a9ab
cmp word [edi + 2], 0
je 0x40a9ab
mov esi, dword [ebp - 0x20]
inc ebx
add eax, 4
mov dword [ebp - 0x1c], ebx
add esi, edx
mov dword [ebp - 0x24], eax
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a950
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 - 0x24]
mov dword [eax], ecx
test ecx, ecx
je 0x40ab6b
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40a980
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
lea eax, [ecx + 1]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
add eax, edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
inc ecx
add edi, 2
mov dword [ebp - 0x28], ecx
cmp ecx, esi
jb 0x40a914
mov edi, dword [ebp - 0x10]
xor esi, esi
test ebx, ebx
jle 0x40a9de
push dword [ebp - 0x14]
push dword [edi + esi*4]
call fcn.00452963
add esp, 8
test eax, eax
je 0x40ab96
inc esi
cmp esi, ebx
jl 0x40a9c3
xor esi, esi
mov dword [ebp - 0x18], 0
xor edx, edx
cmp ebx, 2
jl 0x40aa43
lea eax, [ebx - 1]
xor ebx, ebx
mov dword [ebp - 0x2c], 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 0x40aa00
mov eax, dword [ebp - 0x18]
sub ecx, esi
sar ecx, 1
lea eax, [eax + ecx*2]
mov ecx, dword [edi + edx*4 + 4]
mov dword [ebp - 0x18], eax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aa20
sub ecx, esi
add edx, 2
sar ecx, 1
lea ebx, [ebx + ecx*2]
cmp edx, dword [ebp - 0x2c]
jl 0x40a9f6
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
cmp edx, ebx
jge 0x40aa65
mov ecx, dword [edi + edx*4]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aa50
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add edx, esi
add edx, dword [ebp - 0x30]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aa73
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 - 0x28], eax
push esi
call fcn.0045669c
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40abdf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.004533f0
add esp, 4
xor esi, esi
test ebx, ebx
jle 0x40aade
mov eax, dword [edi + esi*4]
test eax, eax
je 0x40aad9
push eax
call fcn.004533f0
add esp, 4
mov dword [edi + esi*4], 0
inc esi
cmp esi, ebx
jl 0x40aac2
push edi
call fcn.004533f0
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
inc ebx
mov dword [ebp - 0x1c], ebx
lea esi, [edx + eax*2]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab02
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.004538d0
mov edi, dword [ebp - 0x10]
mov ecx, eax
add esp, 8
mov dword [edi + ebx*4 - 4], ecx
test ecx, ecx
jne 0x40ab55
push edi
call fcn.004533f0
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.004533f0
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40ab55
jmp 0x40a9bd
push dword [ebp - 0x10]
call fcn.004533f0
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.004533f0
add esp, 4
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.004533f0
add esp, 4
xor esi, esi
nop dword [eax]
mov eax, dword [edi + esi*4]
test eax, eax
je 0x40abc7
push eax
call fcn.004533f0
add esp, 4
mov dword [edi + esi*4], 0
inc esi
cmp esi, ebx
jl 0x40abb0
push edi
call fcn.004533f0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push eax
call fcn.0044f970
xor esi, esi
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
test ebx, ebx
jle 0x40ac46
nop dword [eax]
mov ecx, dword [edi + eax*4]
lea eax, [esi + esi]
mov esi, dword [ebp - 0x1c]
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 0x40ac10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac23
mov esi, dword [ebp - 0x30]
sub ecx, edx
mov eax, dword [ebp - 0x2c]
inc esi
sar ecx, 1
inc eax
add esi, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esi
cmp eax, ebx
jl 0x40ac00
mov edx, dword [ebp - 0x1c]
lea ecx, [esi + esi]
mov esi, dword [ebp - 0x14]
sub ecx, esi
add ecx, edx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x40ac53
push dword [ebp - 0x28]
push edx
push 7
push 0
push str.BProcessHash
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call fcn.004533f0
add esp, 4
xor esi, esi
test ebx, ebx
jle 0x40acac
nop word [eax + eax]
mov eax, dword [edi + esi*4]
test eax, eax
je 0x40aca7
push eax
call fcn.004533f0
add esp, 4
mov dword [edi + esi*4], 0
inc esi
cmp esi, ebx
jl 0x40ac90
push edi
call fcn.004533f0
push dword [ebp - 0x1c]
call fcn.004533f0
add esp, 8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret