Function at 0x408c6e
Capabilities:
Accept command line arguments
Set registry value

Disassembly:
mov eax, 0x45f7d2
call fcn.0043b400
sub esp, 0xb4
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x18]
mov edi, 0xf003f
push eax
push edi
push ebx
mov esi, SysReAllocStringLen
push 0x476adc
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x408d8f
lea ecx, [ebp - 0x14]
call fcn.004090c6
mov ecx, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x408d8f
mov ecx, dword [0x47d7ec]
lea eax, [ebp - 0x48]
push eax
call fcn.00403599
lea eax, [ebp - 0x1d]
push ebx
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
mov dword [ebp - 0x98], 0x467548
mov dword [ebp - 0x78], 0x467550
call fcn.00401aa0
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x408d0d
mov eax, 0x46756c
push eax
lea eax, [ebp - 0x98]
push 0x476ab8
push eax
call fcn.00405841
add esp, 0xc
lea ecx, [ebp - 0x70]
push 1
push dword [ebp + 8]
call fcn.0040a692
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.0040bbda
lea ecx, [ebp - 0x98]
mov dword [ebp + 8], eax
call fcn.00401f3e
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 8]
push 1
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.00406295
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00401279
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00401279
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x100], bl
jne 0x408dab
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004090c6
jmp 0x4090a0
mov dword [ebp - 0x10], ebx
lea eax, [ebp + 8]
mov byte [ebp - 4], 4
push eax
push edi
push ebx
push 0x476a84
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x408ddd
lea ecx, [ebp - 0x10]
call fcn.004090c6
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
je 0x408e17
lea eax, [ebp - 0x18]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push 0x476a84
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x409083
lea ecx, [ebp - 0x10]
call fcn.004090c6
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x409083
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x48]
push 0x12
push edx
mov ecx, dword [eax + 0xc8]
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 5
jne 0x408e6e
lea eax, [ebp + 0xb]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00401712
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x48]
push eax
mov byte [ebp - 4], 6
call fcn.004019a4
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.00401279
lea eax, [ebp + 0xb]
push 1
push eax
push 0x4762c0
lea ecx, [ebp - 0xc0]
call fcn.00401ba8
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x48]
push eax
mov byte [ebp - 4], 7
call fcn.0040a5cd
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.00401279
mov ecx, dword [0x47d7ec]
lea eax, [ebp - 0x70]
push eax
call fcn.004036c9
lea eax, [ebp - 0x98]
push ebx
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.0040575c
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x6c]
neg eax
sbb eax, eax
push ebx
and eax, ecx
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 4], 9
call fcn.0040b6fc
mov dword [ebp + 8], eax
lea eax, [ebp - 0x98]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x94]
and eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b6fc
mov esi, 0x476a78
mov edi, eax
push esi
mov dword [ebp - 0x1c], edi
call fcn.0043b8b2
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.004024d7
push ebx
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040cd9b
cmp word [eax], 0x22
je 0x408fde
cmp dword [ebp + 8], ebx
jne 0x408f3d
mov edi, dword [ebp - 0x64]
jmp 0x408f5a
mov eax, dword [0x467558]
cmp eax, edi
je 0x408f50
mov eax, dword [ebp - 0x8c]
add edi, eax
jmp 0x408f5a
cmp eax, esi
lea edi, [esi + 4]
jne 0x408f5a
mov edi, dword [ebp - 0x3c]
mov esi, 0x476950
push esi
call fcn.0043b8b2
pop ecx
push eax
push esi
push edi
lea ecx, [ebp - 0x44]
call fcn.0040b668
mov eax, dword [ebp + 8]
cmp dword [0x467558], eax
jne 0x408fca
cmp dword [ebp - 0x1c], ebx
jne 0x408fca
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x70]
sub eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.00401d45
push dword [0x467558]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xa
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040c09d
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.00401279
push esi
call fcn.0043b8b2
pop ecx
push eax
push esi
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040b668
jmp 0x409037
mov eax, dword [ebp + 8]
cmp dword [0x467558], eax
jne 0x409037
cmp edi, 1
jne 0x409037
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x70]
sub eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.00401d45
push dword [0x467558]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xb
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.0040c09d
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.00401279
lea ecx, [ebp - 0x48]
call fcn.00401f3e
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push 0x476a60
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 8
call fcn.00401279
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00401279
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00401279
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x409096
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x4090a0
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4