Function at 0x446140
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Get session user name
Persist via run registry key
Query or enumerate registry value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6105c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
mov eax, dword [0x6ec7b0]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
cmp eax, edi
mov dword [ebp - 4], edi
jne 0x446549
lea eax, [ebp - 0x28]
mov esi, 1
push eax
push 0x28
mov dword [0x6ec7b0], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4461c4
lea ecx, [ebp - 0x34]
push ecx
push 0x6c09b4
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x28]
push edi
push edi
lea edx, [ebp - 0x38]
push edi
push edx
push edi
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [0x6e7b6c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ecx
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0x210]
lea edx, [ebp - 0x210]
rep stosd dword es:[edi], eax
push edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x210], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x446393
cmp dword [ebp - 0x200], 2
jne 0x446393
push 0x6bced8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x4462d7
push 0x6c058c
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4462c0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x13c]
push eax
push 0
push 0
push 0x1a
push 0
call esi
test eax, eax
jne 0x4462ba
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dword [ebp - 0x20], ecx
mov al, byte [ebp + ecx - 0x13c]
cmp al, 0x5c
mov eax, 0x6ec0c8
je 0x44627f
mov eax, 0x6bd984
lea ecx, [ebp - 0x13c]
push eax
push ecx
lea edx, [ebp - 0x14]
push 0x6c0994
push edx
call fcn.005f368b
mov eax, dword [ebp - 0x14]
add esp, 0x10
push eax
call fcn.005e0142
mov ecx, dword [ebp - 0x14]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4462ba
mov dword [ebp - 0x1c], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4464b2
mov esi, 1
lea edx, [ebp - 0x24]
push edx
push esi
push 0
push 0x6bce80
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x446393
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x13c]
push eax
push ecx
push 0
push 0
push 0x6c098c
push edx
mov dword [ebp - 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44637e
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dword [ebp - 0x20], ecx
mov al, byte [ebp + ecx - 0x13c]
cmp al, 0x5c
mov eax, 0x6ec0c8
je 0x446347
mov eax, 0x6bd984
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x14]
push 0x6c0994
push ecx
call fcn.005f368b
mov edx, dword [ebp - 0x14]
add esp, 0x10
push edx
call fcn.005e0142
mov eax, dword [ebp - 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44637e
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4464b2
lea edx, [ebp - 0x13c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x44648b
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dword [ebp - 0x20], ecx
mov al, byte [ebp + ecx - 0x13c]
cmp al, 0x5c
mov eax, 0x6ec0c8
je 0x4463d7
mov eax, 0x6bd984
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x14]
push 0x6c0994
push ecx
call fcn.005f368b
mov edx, dword [ebp - 0x14]
add esp, 0x10
push edx
call fcn.005e0142
mov eax, dword [ebp - 0x200]
add esp, 4
cmp eax, 2
jne 0x44647c
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x17c]
push eax
push ecx
mov dword [ebp - 0x1c], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x446437
lea edx, [ebp - 0x17c]
push 0x6c097c
push edx
call fcn.005deb38
add esp, 8
mov eax, dword [ebp - 0x20]
mov cl, byte [ebp + eax - 0x13c]
mov eax, 0x6ec0c8
cmp cl, 0x5c
je 0x446450
mov eax, 0x6bd984
lea ecx, [ebp - 0x17c]
lea edx, [ebp - 0x13c]
push ecx
push eax
push edx
lea eax, [ebp - 0x14]
push 0x6c096c
push eax
call fcn.005f368b
mov ecx, dword [ebp - 0x14]
add esp, 0x14
push ecx
call fcn.005e0142
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4464b2
lea ecx, [ebp - 0x14]
mov dword [0x6ec7b0], 0
mov byte [ebp - 4], 0
call fcn.005fa859
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6e7b6c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push ecx
push 0x6c095c
push edx
mov byte [ebp - 4], 2
call fcn.005f368b
mov eax, dword [ebp - 0x18]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4464fb
mov ecx, dword [ebp - 0x18]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x18]
push eax
call fcn.00446b10
add esp, 4
test eax, eax
jne 0x44651d
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x6ec7a0]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
lea ecx, [ebp - 0x18]
mov dword [0x6ec7b0], 0
mov byte [ebp - 4], 1
call fcn.005fa859
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005fa859
mov dword [0x6ec7b0], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret