Function at 0x4292e0
Capabilities:
Check if file exists
Delete file
Delete registry value
Get common file path
Get file attributes
Persist via run registry key
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c7266
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x5820
call fcn.0051f3e0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 2
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x42933c
mov ecx, dword [esp + 0x14]
push 0x5dfb08
push ecx
call ebp
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
lea eax, [esp + 0x14]
push eax
push 2
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_accept
call edi
test eax, eax
jne 0x42936d
mov ecx, dword [esp + 0x14]
push 0x5dfb08
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call esi
push 0x4ffe
lea ecx, [esp + 0x836]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x83c], ax
call fcn.0051d400
add esp, 0xc
push 0x400
lea edx, [esp + 0x834]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x400
lea eax, [esp + 0x1034]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x1030]
push ecx
lea edx, [esp + 0x1834]
push str._s_system
push edx
call fcn.00424960
lea eax, [esp + 0x103c]
push eax
lea ecx, [esp + 0x2040]
push str._s_system32
push ecx
call fcn.00424960
add esp, 0x18
push ebx
push 0x1a
lea edx, [esp + 0x2838]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x2830]
push eax
lea ecx, [esp + 0x3034]
push str._sMra
push ecx
call fcn.00424960
lea edx, [esp + 0x303c]
push edx
lea eax, [esp + 0x3840]
push str._sUpdate
push eax
call fcn.00424960
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esi, [esp + 0x848]
lea ebp, [esp + 0x48]
mov ecx, esi
add esp, 0x18
mov dword [esp + 0x14], esi
sub ebp, ecx
mov dword [esp + 0x18], 8
jmp 0x429460
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x429465
sub eax, edx
sar eax, 1
je 0x4298fe
mov eax, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [eax + ebp], cx
add eax, 2
cmp cx, bx
jne 0x429480
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x429496
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
lea eax, [esp + 0x30]
jne 0x4294e5
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4294b4
mov edx, dword [str.Mra.exe]
mov ecx, dword [0x5dfef8]
mov dword [eax], edx
mov edx, dword [0x5dfefc]
mov dword [eax + 4], ecx
mov ecx, dword [0x5dff00]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x42952a
add eax, 0xfffffffe
jmp 0x4294f0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4294f0
mov edx, dword [0x5dfee0]
mov ecx, dword [0x5dfee4]
mov dword [eax], edx
mov edx, dword [0x5dfee8]
mov dword [eax + 4], ecx
mov ecx, dword [0x5dfeec]
mov dword [eax + 8], edx
mov dx, word [0x5dfef0]
mov dword [eax + 0xc], ecx
mov word [eax + 0x10], dx
lea eax, [esp + 0x30]
push eax
call edi
cmp eax, 0xffffffff
je 0x429545
and eax, 0xfffffffd
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
movzx ecx, word [eax]
mov word [eax + ebp], cx
add eax, 2
cmp cx, bx
jne 0x429552
lea eax, [esp + 0x30]
lea edx, [eax + 2]
jmp 0x429570
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x429570
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
jne 0x4295d8
lea eax, [esp + 0x30]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x429590
mov ecx, dword [0x5dc79c]
mov edx, dword [0x5dc7a0]
mov dword [eax], ecx
mov ecx, dword [0x5dc7a4]
mov dword [eax + 4], edx
mov edx, dword [0x5dc7a8]
mov dword [eax + 8], ecx
mov ecx, dword [0x5dc7ac]
mov dword [eax + 0xc], edx
mov dx, word [0x5dc7b0]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
jmp 0x42966e
push 0x5dc7b4
lea ecx, [esp + 0x28]
call fcn.0043bf90
mov dword [esp + 0x583c], ebx
push 0x5dc79c
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00406610
add esp, 0xc
mov byte [esp + 0x583c], 1
mov eax, dword [eax]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x429610
lea edi, [esp + 0x30]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x429624
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x583c], bl
lea ecx, [esp + 0x1c]
call fcn.004381e0
mov dword [esp + 0x583c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.004381e0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
call edi
cmp eax, 0xffffffff
je 0x429689
and eax, 0xfffffffd
push eax
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
movzx ecx, word [eax]
mov word [eax + ebp], cx
add eax, 2
cmp cx, bx
jne 0x429696
lea eax, [esp + 0x30]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4296b0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
lea eax, [esp + 0x30]
jne 0x429715
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4296d0
mov ecx, dword [str.mractl.dll]
mov edx, dword [0x5dfecc]
mov dword [eax], ecx
mov ecx, dword [0x5dfed0]
mov dword [eax + 4], edx
mov edx, dword [0x5dfed4]
mov dword [eax + 8], ecx
mov ecx, dword [0x5dfed8]
mov dword [eax + 0xc], edx
mov dx, word [0x5dfedc]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
jmp 0x429761
add eax, 0xfffffffe
jmp 0x429720
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x429720
mov ecx, dword [0x5dfeb0]
mov edx, dword [0x5dfeb4]
mov dword [eax], ecx
mov ecx, dword [0x5dfeb8]
mov dword [eax + 4], edx
mov edx, dword [0x5dfebc]
mov dword [eax + 8], ecx
mov ecx, dword [0x5dfec0]
mov dword [eax + 0xc], edx
mov edx, dword [0x5dfec4]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 0x30]
push eax
call edi
cmp eax, 0xffffffff
je 0x42977c
and eax, 0xfffffffd
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [eax + ebp], cx
add eax, 2
cmp cx, bx
jne 0x429790
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4297a6
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
jne 0x429807
lea eax, [esp + 0x30]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4297c4
mov ecx, dword [str.mraaway.dll]
mov edx, dword [0x5dfe9c]
mov dword [eax], ecx
mov ecx, dword [0x5dfea0]
mov dword [eax + 4], edx
mov edx, dword [0x5dfea4]
mov dword [eax + 8], ecx
mov ecx, dword [0x5dfea8]
mov dword [eax + 0xc], edx
mov edx, dword [0x5dfeac]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
jmp 0x429834
lea edi, [esp + 0x30]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x429810
mov ecx, 6
mov esi, 0x5dfe7c
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
call edi
cmp eax, 0xffffffff
je 0x42984f
and eax, 0xfffffffd
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [eax + ebp], cx
add eax, 2
cmp cx, bx
jne 0x429860
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x429876
sub eax, edx
lea edi, [esp + 0x30]
sar eax, 1
add edi, 0xfffffffe
cmp word [esp + eax*2 + 0x2e], 0x5c
jne 0x4298b0
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x429894
mov ecx, 7
mov esi, str.mrasearch.dll
rep movsd dword es:[edi], dword [esi]
jmp 0x4298ca
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4298b0
mov ecx, 7
mov esi, 0x5dfe40
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4298e9
and eax, 0xfffffffd
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [esp + 0x14]
add esi, 0x800
sub ebp, 0x800
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
jne 0x429460
mov ecx, dword [esp + 0x5834]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret