Function at 0x41e680
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x60d831
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa44
push ebp
mov ebp, ecx
push esi
xor esi, esi
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x1c], esi
cmp eax, esi
jle 0x41ea32
push ebx
push edi
xor ebx, ebx
mov eax, dword [ebp + 0x24]
add eax, ebx
mov ecx, dword [eax]
cmp dword [ecx + 0x1c], esi
jle 0x41ea19
mov edx, ecx
lea ecx, [esp + 0x654]
push ecx
lea ecx, [esp + 0x858]
mov eax, dword [edx + 0x18]
lea edx, [esp + 0x458]
push edx
lea edx, [esp + 0x34]
mov eax, dword [eax]
push ecx
push edx
push eax
call fcn.005deee8
add esp, 0x14
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x454]
push esi
push eax
push esi
push 0xf003f
push esi
push 0x6ec0cc
push esi
push ecx
push edx
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41e760
lea ecx, [esp + 0x244]
call fcn.004ab420
push 1
push 0x6be9f4
lea ecx, [esp + 0x24c]
mov dword [esp + 0xa64], esi
call fcn.004ab540
lea ecx, [esp + 0x244]
mov dword [esp + 0xa5c], 0xffffffff
call fcn.004ab530
jmp 0x41ea19
mov eax, dword [ebp + 0x24]
add eax, ebx
mov ecx, dword [eax]
xor eax, eax
mov edx, ecx
mov edi, dword [ecx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [edx]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
push edx
push 1
push esi
push 0x6bc840
push eax
call edi
mov ecx, dword [ebp + 0x24]
push 4
mov edx, dword [ebx + ecx]
lea ecx, [esp + 0x24]
push ecx
push 4
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x24]
push esi
push 0x6bc83c
push edx
mov dword [esp + 0x38], eax
call edi
mov eax, dword [ebp + 0x24]
push 4
mov ecx, dword [ebx + eax]
lea eax, [esp + 0x24]
push eax
push 4
mov edx, dword [ecx + 0x10]
mov ecx, dword [esp + 0x24]
push esi
push 0x6bcda8
push ecx
mov dword [esp + 0x38], edx
call edi
mov edx, dword [ebp + 0x24]
xor edi, edi
mov dword [esp + 0x28], edi
mov eax, dword [ebx + edx]
cmp dword [eax + 0x1c], esi
jle 0x41ea03
mov ecx, dword [0x6e7b6c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], ecx
push edi
lea edx, [esp + 0x20]
push 0x6bc0d4
push edx
mov dword [esp + 0xa68], 1
call fcn.005f368b
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push 0
push eax
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41e88e
lea ecx, [esp + 0x34]
call fcn.004ab420
push 1
push 0x6be9c4
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa64], 2
call fcn.004ab540
lea ecx, [esp + 0x34]
mov byte [esp + 0xa5c], 1
call fcn.004ab530
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa5c], 0xffffffff
call fcn.005fa859
jmp 0x41e9ea
mov eax, dword [ebp + 0x24]
add eax, ebx
mov ecx, dword [eax]
mov eax, dword [eax]
mov edx, dword [ecx + 0x18]
mov eax, dword [eax + 0x18]
add eax, esi
mov ecx, dword [edx + esi]
mov edi, dword [eax]
push ecx
call fcn.005de123
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push 0x6bd5d8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp + 0x24]
add eax, ebx
mov ecx, dword [eax]
mov eax, ecx
mov edx, dword [ecx + 0x18]
or ecx, 0xffffffff
mov eax, dword [eax + 0x18]
mov edi, dword [edx + esi + 4]
add eax, esi
mov edx, dword [eax + 4]
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 1
push eax
push 0x6bd5d0
push ecx
call edi
mov edx, dword [ebp + 0x24]
push 4
mov eax, dword [ebx + edx]
mov ecx, dword [eax + 0x18]
lea eax, [esp + 0x14]
push eax
push 4
mov edx, dword [ecx + esi + 0xc]
mov ecx, dword [esp + 0x20]
push 0
push 0x6bd5c4
push ecx
mov dword [esp + 0x28], edx
call edi
mov edx, dword [ebp + 0x24]
push 4
mov eax, dword [ebx + edx]
mov ecx, dword [eax + 0x18]
lea eax, [esp + 0x14]
push eax
push 4
mov edx, dword [ecx + esi + 0x10]
mov ecx, dword [esp + 0x20]
push 0
push 0x6bd5b0
push ecx
mov dword [esp + 0x28], edx
call edi
mov edx, dword [ebp + 0x24]
push 4
mov eax, dword [ebx + edx]
mov ecx, dword [eax + 0x18]
lea eax, [esp + 0x14]
push eax
push 4
mov edx, dword [ecx + esi + 0x14]
push 0
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x24]
push 0x6bd59c
push ecx
call edi
mov edx, dword [ebp + 0x24]
push 4
mov eax, dword [ebx + edx]
mov ecx, dword [eax + 0x18]
lea eax, [esp + 0x14]
push eax
push 4
mov edx, dword [ecx + esi + 8]
mov ecx, dword [esp + 0x20]
push 0
push 0x6bd584
push ecx
mov dword [esp + 0x28], edx
call edi
mov edx, dword [ebp + 0x24]
push 4
mov eax, dword [ebx + edx]
mov ecx, dword [eax + 0x18]
lea eax, [esp + 0x14]
push eax
push 4
mov edx, dword [ecx + esi + 0x20]
mov ecx, dword [esp + 0x20]
push 0
push 0x6bd57c
push ecx
mov dword [esp + 0x28], edx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa5c], 0xffffffff
call fcn.005fa859
mov edi, dword [esp + 0x28]
mov eax, dword [ebp + 0x24]
inc edi
add esi, 0x24
mov dword [esp + 0x28], edi
mov ecx, dword [ebx + eax]
cmp edi, dword [ecx + 0x1c]
jl 0x41e7e8
xor esi, esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x28]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x41e6b4
pop edi
pop ebx
mov ecx, dword [esp + 0xa4c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xa50
ret