Function at 0x403a10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x30c
push ebx
push esi
push edi
push 0x7b
push eax
call fcn.004040e0
add esp, 8
test eax, eax
je 0x403cbe
cmp byte [eax], 0x7b
jne 0x403cbe
lea ecx, [esp + 0x98]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
mov dl, byte [eax]
test dl, dl
je 0x403a51
cmp dl, 0x7d
jne 0x403a40
mov al, byte [eax]
mov edi, str.CLSID
mov byte [ecx], al
sub eax, eax
mov byte [ecx + 1], 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x409680
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x118]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x98]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x118]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x118]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push ecx
push SysReAllocStringLen
call ebx
test eax, eax
je 0x403b25
push 0
push eax
push 0x13
call fcn.00401c00
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov dword [esp + 0x18], pe_nt_image_headers32
mov dword [esp + 0x1c], 1
push edx
push 0
push str.AppID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403bd4
lea edi, [esp + 0x98]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
mov edx, dword [esp + 0xc]
push ecx
push eax
push 1
push 0
push str.AppID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403bd4
push 0
push eax
push 0x13
call fcn.00401c00
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30c
ret
mov eax, dword [esp + 0xc]
mov edi, str.AppID
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x409680
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x118]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x118]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x118]
push eax
push ecx
push SysReAllocStringLen
call ebx
test eax, eax
je 0x403ca2
push 0
push eax
push 0x13
call fcn.00401c00
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30c
ret
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x320]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov eax, 1
add esp, 0x30c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30c
ret