Function at 0x4158b0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46de4f
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x495580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], edx
mov ebx, ecx
mov dword [ebp - 0x54], ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 0
call fcn.00436896
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.00438f3a
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x3c]
xor edx, edx
push eax
mov ecx, ebx
call fcn.00413730
add esp, 8
test al, al
jne 0x41592c
lea ecx, [ebp - 0x50]
call fcn.00438f51
xor bl, bl
jmp 0x415f31
push 0x14
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0043a7b1
mov esi, eax
add esp, 4
mov dword [esi], esi
mov dword [esi + 4], esi
mov dword [esi + 8], esi
mov word [esi + 0xc], 0x101
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 2
xor edi, edi
mov ebx, dword [ebp - 0x48]
test ebx, ebx
jle 0x415982
lea eax, [ebp - 0x18]
inc edi
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x18], edi
push eax
lea ecx, [ebp - 0x20]
call fcn.00410c60
mov ebx, dword [ebp - 0x48]
cmp edi, ebx
jl 0x415964
mov esi, dword [ebp - 0x20]
mov al, 1
xor edi, edi
mov byte [ebp - 0xd], al
test ebx, ebx
jle 0x415a04
nop dword [eax]
test al, al
je 0x415ae4
test edi, edi
js 0x415fea
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x20]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004110d0
mov eax, dword [ebp - 0x6c]
cmp byte [eax + 0xd], 0
jne 0x4159cd
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x10]
jae 0x4159cf
mov eax, esi
cmp eax, esi
je 0x4159f2
push eax
lea ecx, [ebp - 0x20]
call fcn.00416c90
push 0x14
push eax
call fcn.0044ae4b
mov ebx, dword [ebp - 0x48]
add esp, 8
mov esi, dword [ebp - 0x20]
mov al, byte [ebp - 0xd]
jmp 0x4159f7
xor al, al
mov byte [ebp - 0xd], al
inc edi
cmp edi, ebx
jl 0x415990
test al, al
je 0x415ae4
lea ecx, [ebp - 0x7c]
call fcn.00436896
push 0xffffffffffffffff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x48]
call fcn.00436bd6
mov edx, dword [ebp - 0x48]
xor esi, esi
test edx, edx
jle 0x415ad0
nop word [eax + eax]
test esi, esi
js 0x415fea
cmp esi, dword [ebp - 0x34]
jge 0x415fea
mov eax, dword [ebp - 0x38]
lea edi, [eax + esi*4]
cmp esi, edx
jge 0x415fea
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + esi*4]
sub ecx, 1
js 0x415fea
cmp ecx, dword [ebp - 0x74]
jge 0x415fea
mov eax, dword [ebp - 0x78]
lea eax, [eax + ecx*4]
mov ecx, dword [edi]
mov edi, dword [eax]
sub edi, 0x10
mov dword [ebp - 0x14], eax
lea ebx, [ecx - 0x10]
cmp ebx, edi
je 0x415ac7
cmp dword [edi + 0xc], 0
jl 0x415ab9
mov eax, dword [ebx]
cmp eax, dword [edi]
jne 0x415ab6
push ebx
call fcn.00403700
add esp, 4
lea edx, [edi + 0xc]
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415aac
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
jmp 0x415ac4
mov eax, dword [ebp - 0x14]
push dword [ecx - 0xc]
push ecx
mov ecx, eax
call fcn.00403e20
mov edx, dword [ebp - 0x48]
inc esi
cmp esi, edx
jl 0x415a30
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00436a23
lea ecx, [ebp - 0x7c]
call fcn.004368ad
lea ecx, [ebp - 0x20]
call fcn.004107b0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.00438f51
mov eax, dword [ebp - 0x34]
lea esi, [eax - 1]
test esi, esi
js 0x415b35
cmp esi, eax
jge 0x415fea
mov eax, dword [ebp - 0x38]
xor edx, edx
push 0
lea ecx, [eax + esi*4]
call fcn.00415760
add esp, 4
test al, al
jne 0x415b2b
push 1
push esi
lea ecx, [ebp - 0x3c]
call fcn.00436a58
sub esi, 1
js 0x415b35
mov eax, dword [ebp - 0x34]
jmp 0x415b02
lea ecx, [ebp - 0x68]
call fcn.00436896
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
push 0xffffffffffffffff
mov esi, dword [edi + 8]
push esi
mov dword [ebp - 0x14], esi
call fcn.00436bd6
xor ebx, ebx
test esi, esi
jle 0x415cee
nop
test ebx, ebx
js 0x415fea
cmp ebx, dword [edi + 8]
jge 0x415fea
mov eax, dword [edi + 4]
mov esi, dword [eax + ebx*4]
mov byte [ebp - 4], 7
call fcn.004363ea
mov ecx, eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x415ff9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov byte [ebp - 4], 5
or dword [ebp - 0x28], 1
lea ecx, [ebp - 0x6c]
mov edx, esi
mov dword [ebp - 0x24], eax
call fcn.00419c50
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 8
mov esi, dword [eax]
call fcn.00419f10
push esi
mov byte [ebp - 4], 9
push dword [eax]
lea eax, [ebp - 0x24]
push str._s:_s
push eax
call fcn.00403530
mov edx, dword [ebp - 0x84]
add esp, 0x10
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415bf5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415c14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x24]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x415fef
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x415c3f
push edi
lea ecx, [ebp - 0x24]
call fcn.004041a0
mov esi, dword [ebp - 0x24]
lea eax, [edi + 1]
push eax
push esi
call fcn.0045c357
add esp, 8
cmp edi, dword [esi - 8]
jg 0x415fef
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp ebx, dword [ebp - 0x60]
jge 0x415fea
mov eax, dword [ebp - 0x64]
lea edx, [esi - 0x10]
mov edi, dword [eax + ebx*4]
lea ecx, [eax + ebx*4]
sub edi, 0x10
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
cmp edx, edi
je 0x415cc4
cmp dword [edi + 0xc], 0
jl 0x415cb8
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x415cb8
push edx
call fcn.00403700
add esp, 4
lea edx, [edi + 0xc]
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415cae
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + 0x10]
mov dword [ecx], eax
jmp 0x415cc1
push dword [esi - 0xc]
push esi
call fcn.00403e20
mov edx, dword [ebp - 0x18]
and dword [ebp - 0x28], 0xfffffffe
or eax, 0xffffffff
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415ce1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 8]
inc ebx
cmp ebx, dword [ebp - 0x14]
jl 0x415b60
lea ecx, [ebp - 0xac]
call fcn.00436896
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xa
call fcn.00436896
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0xb
call fcn.00436bd6
mov eax, dword [ebp - 0x60]
xor esi, esi
mov ebx, eax
test ebx, ebx
jle 0x415d66
test esi, esi
js 0x415fea
cmp esi, eax
jge 0x415fea
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x3c]
lea edi, [eax + esi*4]
mov edx, edi
call fcn.004155b0
test al, al
jne 0x415d5c
push edi
push dword [ebp - 0xa4]
lea ecx, [ebp - 0xac]
call fcn.00436b3a
inc esi
cmp esi, ebx
jge 0x415d66
mov eax, dword [ebp - 0x60]
jmp 0x415d26
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x98]
call fcn.00436bd6
mov ebx, dword [ebp - 0x34]
xor esi, esi
test ebx, ebx
jle 0x415dbc
nop
test esi, esi
js 0x415fea
cmp esi, dword [ebp - 0x34]
jge 0x415fea
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x68]
lea edi, [eax + esi*4]
mov edx, edi
call fcn.004155b0
test al, al
jne 0x415db7
push edi
push dword [ebp - 0x90]
lea ecx, [ebp - 0x98]
call fcn.00436b3a
inc esi
cmp esi, ebx
jl 0x415d80
xor bl, bl
cmp dword [ebp - 0xa4], 0
je 0x415e02
lea ecx, [ebp - 0x50]
call fcn.00436896
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0xc
push eax
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x3c]
call fcn.004156b0
add esp, 4
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x3c]
push eax
call fcn.00436a23
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xb
mov bl, 1
call fcn.004368ad
cmp dword [ebp - 0x90], 0
je 0x415f4d
lea ecx, [ebp - 0x50]
call fcn.00436896
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xd
call fcn.00436bd6
mov eax, dword [ebp - 0x34]
xor esi, esi
mov ebx, eax
test ebx, ebx
jle 0x415e6f
test esi, esi
js 0x415fea
cmp esi, eax
jge 0x415fea
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x98]
lea edi, [eax + esi*4]
mov edx, edi
call fcn.004155b0
test al, al
jne 0x415e65
push edi
push dword [ebp - 0x48]
lea ecx, [ebp - 0x50]
call fcn.00436b3a
inc esi
cmp esi, ebx
jge 0x415e6f
mov eax, dword [ebp - 0x34]
jmp 0x415e32
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00436a23
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xb
call fcn.004368ad
mov edi, dword [ebp - 0x14]
xor ecx, ecx
test edi, edi
jle 0x415ed0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ecx, ecx
js 0x415fea
cmp ecx, dword [ebp - 0x34]
jge 0x415fea
push 4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x38]
lea esi, [ecx + 1]
push 4
push 0
mov dword [ebp - 0x1c], esi
push dword [eax + ecx*4]
push dword [ebp - 0x54]
call ebx
test eax, eax
jne 0x415fe3
mov ecx, esi
cmp ecx, edi
jl 0x415e96
mov edi, dword [ebp - 0x90]
xor esi, esi
test edi, edi
jle 0x415f11
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
js 0x415fea
cmp esi, dword [ebp - 0x90]
jge 0x415fea
mov eax, dword [ebp - 0x94]
push dword [eax + esi*4]
push dword [ebp - 0x54]
call ebx
test eax, eax
jne 0x415fe3
inc esi
cmp esi, edi
jl 0x415ee2
mov bl, 1
lea ecx, [ebp - 0x98]
call fcn.004368ad
lea ecx, [ebp - 0xac]
call fcn.004368ad
lea ecx, [ebp - 0x68]
call fcn.004368ad
lea ecx, [ebp - 0x3c]
call fcn.004368ad
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x415e87
mov edi, dword [ebp - 0x14]
xor esi, esi
test edi, edi
jle 0x415f11
nop
test bl, bl
jne 0x415e8a
test esi, esi
js 0x415fea
cmp esi, dword [ebp - 0x60]
jge 0x415fea
mov eax, dword [ebp - 0x64]
lea edx, [eax + esi*4]
cmp esi, dword [ebp - 0x34]
jge 0x415fea
mov eax, dword [ebp - 0x38]
lea ecx, [eax + esi*4]
mov byte [ebp - 4], 0xe
mov eax, dword [edx]
test eax, eax
je 0x415ff9
mov ecx, dword [ecx]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x415fb6
test dx, dx
je 0x415fb2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x415fb6
add ecx, 4
add eax, 4
test dx, dx
jne 0x415f90
xor eax, eax
jmp 0x415fbb
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 0xb
test eax, eax
je 0x415fd1
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00436a23
mov bl, 1
inc esi
cmp esi, edi
jl 0x415f60
test bl, bl
je 0x415f11
jmp 0x415e8a
xor bl, bl
jmp 0x415f13
call fcn.00436600
push 0x80070057
call fcn.00404410
push 0x80004005
call fcn.00404410
int3