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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612a7c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7a0
xor eax, eax
push ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
push esi
push edi
mov ebx, ecx
test al, al
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
lea edx, [ebp - 0x24]
je 0x46c2c1
mov edi, 0x6bc4e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [0x6ed4fc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x3a0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x6ed55c]
push ecx
push edx
push 0x6c2954
push eax
call fcn.005deb38
add esp, 0x10
jmp 0x46c2fe
mov edi, 0x6c294c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x3a0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x6ed4f8]
push ecx
push 0x6c29c8
push edx
call fcn.005deb38
add esp, 0xc
lea eax, [ebp - 0x3a0]
push ebx
push eax
push 0x1004
lea ecx, [ebp - 0x24]
push 0
push ecx
push 1
lea ecx, [ebp - 0x320]
call fcn.005f3924
mov ebx, dword [ebp + 0xc]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 1
jne 0x46c473
mov ecx, dword [0x6ec7a0]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x128]
push edx
push eax
push 0
push 0
push 0x6c2928
push ecx
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x46c3bd
mov edx, dword [0x6e7b6c]
mov dword [ebp + 0xc], edx
mov eax, dword [0x6ec628]
mov byte [ebp - 4], 2
test eax, eax
jne 0x46c37e
mov eax, 0x6ec62c
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.0049bbe0
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x128]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [ebp - 4], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0xc]
call fcn.005fa859
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46c3db
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x298], ecx
lea ecx, [ebp - 0x320]
call fcn.005f3a86
cmp eax, 1
je 0x46c3f4
mov byte [ebp - 4], 3
jmp 0x46c5d0
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x320]
push edx
call fcn.005f3b61
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
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 ecx, [ebp + 0xc]
call fcn.005fa859
lea ecx, [ebp - 0x128]
push 0x5c
push ecx
call fcn.005df0e0
add esp, 8
test eax, eax
je 0x46c473
mov byte [eax], 0
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edx, [ebp - 0x128]
push ecx
push edx
push 1
push eax
mov eax, dword [0x6ec7a0]
push 0x6c2928
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x14
call fcn.005f6c5c
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x46c4a7
mov edi, ebx
or ecx, 0xffffffff
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi], method.CCommandLineInfo.virtual_0
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46c4b0
mov eax, ebx
jmp 0x46c4cc
mov byte [ebp - 4], 4
jmp 0x46c5d0
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x320]
call fcn.005f3b61
mov dword [ebp - 0x18], 1
mov eax, dword [eax]
mov byte [ebp - 4], 5
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.005fa8c7
lea ecx, [ebp - 0x7ac]
call fcn.00534cb0
mov al, byte [ebp - 0x18]
mov dword [ebp - 4], 7
test al, 1
je 0x46c4fb
lea ecx, [ebp + 0xc]
call fcn.005fa859
mov bl, byte [ebp + 8]
push esi
test bl, bl
lea ecx, [ebp - 0x7ac]
je 0x46c510
call fcn.005354c0
jmp 0x46c515
call fcn.00535020
test al, al
jne 0x46c565
test bl, bl
push 0x10030
je 0x46c531
mov edx, dword [0x6ed7ec]
mov eax, dword [0x6ed7e8]
push edx
push eax
jmp 0x46c53f
mov ecx, dword [0x6ed7ec]
mov edx, dword [0x6ed7e4]
push ecx
push edx
mov ecx, dword [ebp - 0x14]
call fcn.005f88b4
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 1
call fcn.00534e10
mov byte [ebp - 4], 8
jmp 0x46c5d0
mov eax, dword [esi + 8]
test eax, eax
jne 0x46c5a5
mov ecx, dword [0x6ed7ec]
mov edx, dword [0x6ed7e0]
push 0x10040
push ecx
mov ecx, dword [ebp - 0x14]
push edx
call fcn.005f88b4
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 1
call fcn.00534e10
mov byte [ebp - 4], 9
jmp 0x46c5d0
mov ecx, dword [ebp - 0x14]
push esi
push 0x1485
push 0x111
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 1
call fcn.00534e10
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x274]
call fcn.005fa859
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 0
call fcn.005f6497
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8