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

Disassembly:
mov al, byte [0x408ad4]
sub esp, 0x120
cmp al, 0x31
push ebx
push ebp
push esi
push edi
je 0x40400a
mov edi, dword [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x2b]
mov cl, byte [esp + ecx + 0x2b]
cmp cl, 0x5c
jne 0x403ced
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403d1b
cmp eax, 2
je 0x403fc8
jmp 0x403fff
mov ecx, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x24]
push edx
push 0
push eax
push 0
push str.PendingFileRenameOperations
push ecx
call ebx
test eax, eax
je 0x403d4d
cmp eax, 2
je 0x403fc8
jmp 0x403fff
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push edx
call edi
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x28], esi
call edi
add esp, 8
mov edi, eax
test esi, esi
mov dword [esp + 0x10], edi
je 0x403ff1
test edi, edi
je 0x403fe7
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push esi
push edx
push 0
push str.PendingFileRenameOperations
push eax
call ebx
test eax, eax
jne 0x403fe7
cmp dword [esp + 0x24], 7
jne 0x403fe7
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x138]
mov ebp, esi
not ecx
dec ecx
mov edi, ecx
mov ecx, eax
and ecx, 1
mov dword [esp + 0x14], edi
cmp cl, 1
jne 0x403ea1
test edi, edi
je 0x403fa1
jmp 0x403de5
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push ebp
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x403e0f
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x403e0f
xor edx, edx
jmp 0x403e45
mov eax, dword [esp + 0x10]
mov ecx, edi
mov edx, ecx
mov esi, ebp
lea edi, [ebx + eax]
mov dword [esp + 0x28], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
add ebx, ecx
mov edi, ecx
mov byte [ebx + eax], 0
inc ebx
lea ebp, [edi + ebp + 1]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test edx, edx
mov eax, ecx
je 0x403e82
mov edx, dword [esp + 0x10]
mov esi, ebp
lea edi, [ebx + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov byte [ebx + ecx - 1], 0
lea ebp, [eax + ebp + 1]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
jne 0x403de1
jmp 0x403f77
and eax, 0x10
cmp al, 0x10
jne 0x403fa1
test edi, edi
je 0x403fa1
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ebp
mov eax, ecx
lea edi, [ebx + edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebx, ecx
mov ecx, dword [esp + 0x14]
lea ebp, [ecx + ebp + 1]
mov byte [ebx + edx], al
mov edi, ebp
or ecx, 0xffffffff
inc ebx
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
mov esi, ecx
push ebp
mov dword [esp + 0x1c], esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x403f27
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x403f4f
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, ecx
mov esi, ebp
lea edi, [ebx + eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
add ebx, ecx
mov esi, ecx
mov byte [ebx + eax], 0
inc ebx
jmp 0x403f59
mov eax, dword [esp + 0x10]
inc ebx
mov byte [ebx + eax - 1], 0
lea ebp, [esi + ebp + 1]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
jne 0x403eb4
mov esi, dword [esp + 0x20]
test ebx, ebx
je 0x403fa1
mov eax, dword [esp + 0x10]
inc ebx
push ebx
push eax
mov byte [ebx + eax - 1], 0
mov ecx, dword [esp + 0x20]
push 7
push 0
push str.PendingFileRenameOperations
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x403fe3
jmp 0x403fb5
mov edx, dword [esp + 0x18]
push str.PendingFileRenameOperations
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x403fe3
mov edi, dword [sym.imp.MSVCRT.dll_free]
push esi
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
add esp, 8
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x120
ret
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
test edi, edi
je 0x403fff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret