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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push esi
push edi
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x470]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x470]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea ecx, [ebp - 0x470]
push ecx
call fcn.00403580
add esp, 8
lea edx, [ebp - 0x470]
push edx
push str.SoftwareMicrosoftSecurity_s
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0
lea ecx, [ebp - 0x474]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea edx, [ebp - 0x208]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403577
lea eax, [ebp - 0x230]
push eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push str.Stamp
mov edx, dword [ebp - 0x474]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40346e
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov esi, eax
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x64
idiv ecx
sub esi, eax
push esi
mov edx, dword [ebp + 0xc]
push edx
push str._s_ld
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edi, [ebp - 0x270]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea ecx, [ebp - 0x270]
push ecx
call fcn.00403580
add esp, 8
lea edi, [ebp - 0x270]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea edx, [ebp - 0x270]
push edx
push 1
push 0
push str.Stamp
mov eax, dword [ebp - 0x474]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x230], 0x40
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x270]
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.Stamp
mov ecx, dword [ebp - 0x474]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov byte [ebp - 0x231], 0
lea edi, [ebp - 0x270]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea edx, [ebp - 0x270]
push edx
call fcn.00403580
add esp, 8
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.00402fe0
add esp, 8
cmp dword [ebp + 0x10], 0
jle 0x40351b
mov esi, dword [ebp + 0x10]
imul esi, esi, 0x18
imul esi, esi, 0x3c
imul esi, esi, 0x3c
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x64
idiv ecx
add esi, eax
mov dword [ebp - 4], esi
mov edx, dword [ebp - 4]
push edx
push 0x407620
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edi, [ebp - 0x22c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00403580
add esp, 8
lea edi, [ebp - 0x22c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea edx, [ebp - 0x22c]
push edx
push 1
push 0
push 0x407654
mov eax, dword [ebp - 0x474]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x474]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret