Function at 0x40d230
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
lea eax, [ebp - 0x3c]
mov ebx, ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
call fcn.00425809
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
je 0x40d8e6
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x38], eax
call fcn.00425809
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x40d8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
call fcn.00425809
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x40d8fa
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
push 0
lea edi, [eax + 0x10]
mov eax, dword [ebx]
push 0
push 0x405
push dword [eax + 0x114]
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 8]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebx]
shl ecx, 3
mov eax, dword [eax + 0x94]
mov dword [ebp + 8], ecx
add ecx, eax
mov eax, dword [ecx + 0x1c]
add eax, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004045c0
mov ecx, dword [ebx + 4]
mov esi, eax
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x40d312
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, eax
test edx, edx
jne 0x40d320
call fcn.00425809
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov edx, eax
xor ecx, ecx
test edx, edx
setne cl
test ecx, ecx
je 0x40d904
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov ecx, dword [esi]
add eax, 0x10
push dword [ecx - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
push ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040e7f0
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
call fcn.00416f30
mov edx, dword [ebp - 0xc]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d380
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d39c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x94]
add ecx, dword [ebp + 8]
call fcn.00404d80
test al, al
je 0x40d4ca
lea ecx, [ebp - 0x64]
call fcn.00425b97
mov eax, dword [ebx]
mov ecx, dword [eax + 0x94]
add ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.00404b30
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ddb0
add esp, 0xc
lea ecx, [ebp - 0x64]
push 0
push dword [eax]
call fcn.00425dde
mov edx, dword [ebp - 0x1c]
test eax, eax
setne bl
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d40e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d42a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x40d4bf
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x64]
call fcn.00425f84
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x1c], eax
call fcn.00426322
test eax, eax
jne 0x40d4b1
mov edx, dword [ebp - 0x64]
push 0x10
lea ecx, [ebp - 0x64]
call dword [edx + 0x38]
test eax, eax
je 0x40d4b1
mov eax, dword [ebp - 0x20]
push ecx
mov eax, dword [eax]
sub eax, 0x10
mov esi, esp
push eax
call fcn.00416ec0
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 8]
mov ebx, esp
lea eax, [esi - 0x10]
push eax
call fcn.00416ec0
add eax, 0x10
push esp
lea ecx, [ebp - 0x64]
mov dword [ebx], eax
call fcn.00426083
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
call fcn.00406b80
test eax, eax
je 0x40d575
cmp dword [ebp - 0x1c], 0
jne 0x40d447
lea ecx, [ebp - 0x48]
call fcn.0040e8e0
lea ecx, [ebp - 0x64]
call fcn.00425d42
mov ebx, dword [ebp - 4]
mov eax, dword [ebx]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x94]
mov eax, dword [ecx + esi + 0x30]
and eax, dword [ecx + esi + 0x34]
add ecx, esi
cmp eax, 0xffffffff
je 0x40d4ec
push dword [ecx + 0x30]
call fcn.004044b0
mov eax, dword [ebx]
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 0x94]
mov ecx, dword [eax + esi + 0x20]
sub ecx, dword [eax + esi + 0x1c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x40d593
mov esi, dword [ebp - 8]
add edi, 0xfffffff0
or ebx, 0xffffffff
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d53c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d555
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40d56c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x48]
mov dword [eax], 1
call fcn.0040e8e0
lea ecx, [ebp - 0x64]
call fcn.00425d42
jmp 0x40d520
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x94]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
add ecx, esi
push eax
call fcn.004045c0
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x40d5c7
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, eax
test edx, edx
jne 0x40d5d5
call fcn.00425809
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov edx, eax
xor ecx, ecx
test edx, edx
setne cl
test ecx, ecx
je 0x40d8e6
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
lea esi, [eax + 0x10]
mov eax, dword [ebx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [eax - 0xc]
mov ebx, dword [ecx - 0xc]
mov dword [ebp - 0x18], esi
lea edx, [ebx + eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], ebx
test edx, edx
js 0x40d913
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x40d633
push edx
lea ecx, [ebp - 0x18]
call fcn.00416cf0
mov esi, dword [ebp - 0x18]
add ebx, ebx
push ebx
push dword [ebp - 0x24]
push ebx
push esi
call fcn.0043ddca
mov eax, dword [ebp - 0x1c]
add eax, eax
push eax
push dword [ebp - 0x28]
push eax
lea eax, [ebx + esi]
push eax
call fcn.0043ddca
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x1c]
add esp, 0x20
cmp eax, dword [esi - 8]
jg 0x40d913
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [edi - 0x10]
lea ebx, [esi - 0x10]
mov dword [ebp - 0x2c], ecx
cmp ebx, ecx
je 0x40d6c7
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x40d6b8
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x40d6b8
push ebx
call fcn.00416ec0
add esp, 4
mov dword [ebp - 0x28], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40d6b0
mov esi, dword [ebp - 0x2c]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
jmp 0x40d6c7
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00416dd0
mov edi, dword [ebp - 0x10]
or esi, 0xffffffff
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d6e0
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d6fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
push ecx
mov esi, dword [eax]
mov dword [ebp - 0x2c], esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x40d72b
cmp ecx, dword [esi - 0x10]
jne 0x40d72b
lea ebx, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40d764
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x40d90e
mov ecx, dword [esi - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0043ddca
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 8]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
push ecx
mov ecx, dword [esi - 0x10]
lea ebx, [esi - 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x28], esp
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
mov ecx, eax
jl 0x40d798
cmp ecx, dword [ebx]
jne 0x40d798
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40d7da
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x2c], edx
test edx, edx
je 0x40d90e
mov ecx, dword [ebx + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.0043ddca
mov ebx, dword [ebp - 0x2c]
add esp, 0x10
mov ecx, dword [ebp - 0x28]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
push ecx
mov ecx, dword [edi - 0x10]
lea ebx, [edi - 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x28], esp
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
mov ecx, eax
jl 0x40d80b
cmp ecx, dword [ebx]
jne 0x40d80b
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40d846
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x2c], edx
test edx, edx
je 0x40d90e
mov ecx, dword [ebx + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 4]
lea eax, [ebx + 0x10]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.0043ddca
mov ebx, dword [ebp - 0x2c]
add esp, 0x10
mov ecx, dword [ebp - 0x28]
lea eax, [ebx + 0x10]
mov ebx, dword [ebp - 4]
mov dword [ecx], eax
mov ecx, dword [ebx]
call fcn.00406b80
test eax, eax
je 0x40d8d1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x94]
add ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004045c0
lea ecx, [ebp - 0x14]
push ecx
push dword [eax]
push dword [ebx + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edx, dword [ebp - 0x34]
test eax, eax
sete bl
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d8ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x40d8c5
push 0
push 0
push 1
push 0
push str.Removed
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x40d590
jmp 0x40d520
push 0x80004005
call fcn.00416fc0
push 0x80004005
call fcn.00416fc0
push 0x80004005
call fcn.00416fc0
push 0x80004005
call fcn.00416fc0
call fcn.00416e90
push 0x80070057
call fcn.00416fc0
int3