Function at 0x474320
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd530
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
push 0x4c7780
lea ecx, [esi + 4]
push ecx
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 4], ebx
call fcn.0040ca60
push str.shell
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.0040ca00
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x474393
mov eax, dword [eax]
mov esi, dword [esi]
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x4c]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push esi
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x4743c4
mov eax, dword [ebp - 0x4c]
xor esi, esi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ebx
mov edi, eax
cmp dword [ebp - 0x18], 8
jb 0x4743d6
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], bl
jb 0x4743fb
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp esi, ebx
jne 0x4745a0
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx]
mov dword [ebp - 0x54], eax
cmp eax, dword [ecx + 4]
je 0x474591
lea esi, [eax + 0x4c]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], esi
jmp 0x474428
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x4c]
xor edi, edi
mov dword [ebp - 0x70], edi
cmp dword [esi - 0x38], 8
mov byte [ebp - 4], 2
jb 0x474439
mov eax, dword [eax]
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x50]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
mov eax, dword [ebp - 0x64]
push eax
mov dword [ebp - 0x50], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x474462
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x70], edi
cmp dword [esi - 0x1c], 8
jb 0x47446d
mov esi, dword [esi - 0x30]
jmp 0x474470
add esi, 0xffffffd0
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x474497
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push 0x4c79ac
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x54]
push 0x4c7780
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0040ca60
push str.command
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 3
call fcn.0040ca00
mov esi, 8
add esp, 0x18
cmp dword [eax + 0x14], esi
jb 0x4744cb
mov eax, dword [eax]
lea edx, [ebp - 0x78]
push edx
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x50]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push edx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4744fc
cmp edi, ebx
je 0x4744f9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x50]
cmp dword [ebp - 0x18], esi
jb 0x47450d
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], esi
jb 0x47452e
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x4c]
cmp dword [eax], esi
jb 0x47453a
mov esi, dword [eax - 0x14]
jmp 0x47453d
lea esi, [eax - 0x14]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x474564
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push 0x4c79ac
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], bl
cmp edi, ebx
je 0x474575
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x70], ebx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
add dword [ebp - 0x4c], 0x54
add eax, 0x54
mov dword [ebp - 0x54], eax
cmp eax, dword [ecx + 4]
jne 0x474422
mov edi, dword [ebp - 0x64]
cmp edi, ebx
je 0x47459c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4745ad
cmp edi, ebx
je 0x4745ab
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 8