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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448266
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
push ebx
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x4c]
push str.profile
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push str._s_02d
push eax
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x28], 1
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [ebp + 8]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x20]
push eax
push 0
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e69f
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x4c]
push eax
call esi
test eax, eax
je 0x40e6c0
inc ebx
cmp ebx, 0x64
jb 0x40e630
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40e6a7
lea esi, [ebx + 1]
cmp esi, 0x64
jae 0x40e792
lea esp, [esp]
push esi
push str.profile
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x50]
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push str._s_02d
push edx
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x28], 1
call edi
add esp, 0x10
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e792
push ebx
push str.profile
lea edx, [esp + 0x2c]
push str._s_02d
push edx
call edi
lea eax, [esp + 0x58]
add esp, 0x10
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e758
sub eax, edi
mov edi, dword [ebp + 8]
inc eax
push eax
lea eax, [esp + 0x4c]
push eax
push 1
push 0
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x38]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
inc ebx
inc esi
cmp esi, 0x64
jb 0x40e6e0
mov edx, dword [ebp + 8]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40e942
jmp 0x40e7d0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.00402470
push 7
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x164], 0
call fcn.00403670
mov eax, dword [eax]
mov edi, dword [esp + 0x10]
add edi, 0xfffffff0
lea esi, [eax - 0x10]
cmp esi, edi
mov byte [esp + 0x15c], 1
mov dword [esp + 0x20], edi
je 0x40e8ac
mov ecx, dword [edi + 0xc]
test ecx, ecx
jl 0x40e89e
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x40e89e
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x40e846
cmp eax, dword [esi]
jne 0x40e846
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40e87e
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebx, eax
test ebx, ebx
je 0x40e963
mov edx, dword [esi + 4]
mov dword [ebx + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e895
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x10], ebx
jmp 0x40e8ac
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401a70
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or esi, 0xffffffff
mov byte [esp + 0x15c], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e8d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push str.profile
push eax
call fcn.0042de57
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x15c], esi
je 0x40e968
add eax, 0xfffffff0
mov dword [esp + 0x14], 0x10
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40e914
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
inc eax
lea edx, [esp + 0x38]
push edx
push eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x40e7d0
mov dword [esp + 0x10], 2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.00401260
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40e97f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x154]
pop edi
pop esi
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret