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

Disassembly:
mov eax, 0x45fa46
call fcn.0043b5c0
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 0x408e2d
lea ecx, [ebp - 0x14]
call fcn.00409164
mov ecx, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x408e2d
mov ecx, dword [0x47d95c]
lea eax, [ebp - 0x48]
push eax
call fcn.004035e1
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.00401aa5
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x408dab
mov eax, 0x46756c
push eax
lea eax, [ebp - 0x98]
push 0x476ab8
push eax
call fcn.004058cc
add esp, 0xc
lea ecx, [ebp - 0x70]
push 1
push dword [ebp + 8]
call fcn.0040a730
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.0040bc78
lea ecx, [ebp - 0x98]
mov dword [ebp + 8], eax
call fcn.00401f43
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.00406320
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.0040127e
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.0040127e
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x100], bl
jne 0x408e49
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00409164
jmp 0x40913e
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 0x408e7b
lea ecx, [ebp - 0x10]
call fcn.00409164
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
je 0x408eb5
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 0x409121
lea ecx, [ebp - 0x10]
call fcn.00409164
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x409121
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 0x408f0c
lea eax, [ebp + 0xb]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00401717
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x48]
push eax
mov byte [ebp - 4], 6
call fcn.004019a9
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.0040127e
lea eax, [ebp + 0xb]
push 1
push eax
push 0x4762c0
lea ecx, [ebp - 0xc0]
call fcn.00401bad
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x48]
push eax
mov byte [ebp - 4], 7
call fcn.0040a66b
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.0040127e
mov ecx, dword [0x47d95c]
lea eax, [ebp - 0x70]
push eax
call fcn.00403711
lea eax, [ebp - 0x98]
push ebx
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.004057e7
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.0040b79a
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.0040b79a
mov esi, 0x476a78
mov edi, eax
push esi
mov dword [ebp - 0x1c], edi
call fcn.0043ba72
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.0040251f
push ebx
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040cdf6
cmp word [eax], 0x22
je 0x40907c
cmp dword [ebp + 8], ebx
jne 0x408fdb
mov edi, dword [ebp - 0x64]
jmp 0x408ff8
mov eax, dword [0x467558]
cmp eax, edi
je 0x408fee
mov eax, dword [ebp - 0x8c]
add edi, eax
jmp 0x408ff8
cmp eax, esi
lea edi, [esi + 4]
jne 0x408ff8
mov edi, dword [ebp - 0x3c]
mov esi, 0x476950
push esi
call fcn.0043ba72
pop ecx
push eax
push esi
push edi
lea ecx, [ebp - 0x44]
call fcn.0040b706
mov eax, dword [ebp + 8]
cmp dword [0x467558], eax
jne 0x409068
cmp dword [ebp - 0x1c], ebx
jne 0x409068
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.00401d4a
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.0040c13b
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.0040127e
push esi
call fcn.0043ba72
pop ecx
push eax
push esi
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040b706
jmp 0x4090d5
mov eax, dword [ebp + 8]
cmp dword [0x467558], eax
jne 0x4090d5
cmp edi, 1
jne 0x4090d5
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.00401d4a
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.0040c13b
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.0040127e
lea ecx, [ebp - 0x48]
call fcn.00401f43
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.0040127e
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.0040127e
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.0040127e
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x409134
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x40913e
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