Function at 0x434b60
Capabilities:
Check if file exists
Check os version
Create process on windows
Delete registry key
Get common file path
Get file attributes
Get session user name
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afcf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x434bd0
lea ecx, [ebp - 0x34]
push ecx
push 0x652bcc
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x28]
push esi
push esi
lea edx, [ebp - 0x38]
push esi
push edx
push esi
push eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [0x6754d4]
mov dword [ebp - 0x18], esi
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 0x434d9f
cmp dword [ebp - 0x200], 2
jne 0x434d9f
push 0x6527fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
je 0x434cde
push 0x652bb8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x434ccc
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 0x434cc6
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dword [ebp - 0x1c], ecx
mov al, byte [ebp + ecx - 0x13c]
cmp al, 0x5c
mov eax, 0x679a28
je 0x434c8b
mov eax, 0x652bb4
lea ecx, [ebp - 0x13c]
push eax
push ecx
lea edx, [ebp - 0x14]
push 0x652ba8
push edx
call fcn.00593b08
mov eax, dword [ebp - 0x14]
add esp, 0x10
push eax
call fcn.005808ae
mov ecx, dword [ebp - 0x14]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x434cc6
mov dword [ebp - 0x18], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x434eb4
lea edx, [ebp - 0x24]
push edx
push 1
push 0
push 0x65279c
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x434d9f
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x13c]
push eax
push ecx
push 0
push 0
push 0x652ba0
push edx
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x434d8a
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dword [ebp - 0x1c], ecx
mov al, byte [ebp + ecx - 0x13c]
cmp al, 0x5c
mov eax, 0x679a28
je 0x434d4f
mov eax, 0x652bb4
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x14]
push 0x652ba8
push ecx
call fcn.00593b08
mov edx, dword [ebp - 0x14]
add esp, 0x10
push edx
call fcn.005808ae
mov eax, dword [ebp - 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x434d8a
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x434eb4
lea edx, [ebp - 0x13c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x434e97
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dword [ebp - 0x1c], ecx
mov al, byte [ebp + ecx - 0x13c]
cmp al, 0x5c
mov eax, 0x679a28
je 0x434de3
mov eax, 0x652bb4
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x14]
push 0x652ba8
push ecx
call fcn.00593b08
mov edx, dword [ebp - 0x14]
add esp, 0x10
push edx
call fcn.005808ae
mov eax, dword [ebp - 0x200]
add esp, 4
cmp eax, 2
jne 0x434e88
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x17c]
push eax
push ecx
mov dword [ebp - 0x18], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x434e43
lea edx, [ebp - 0x17c]
push 0x652b90
push edx
call fcn.0057f2ea
add esp, 8
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp + eax - 0x13c]
mov eax, 0x679a28
cmp cl, 0x5c
je 0x434e5c
mov eax, 0x652bb4
lea ecx, [ebp - 0x17c]
lea edx, [ebp - 0x13c]
push ecx
push eax
push edx
lea eax, [ebp - 0x14]
push 0x652b80
push eax
call fcn.00593b08
mov ecx, dword [ebp - 0x14]
add esp, 0x14
push ecx
call fcn.005808ae
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x434eb4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6754d4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push ecx
push 0x652b70
push edx
mov byte [ebp - 4], 2
call fcn.00593b08
mov eax, dword [ebp - 0x20]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x434fc8
cmp dword [ebp - 0x200], 2
jne 0x434f06
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x67a050]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegRestoreKeyA]
jmp 0x434f6b
mov eax, dword [ebp - 0x20]
push eax
push 0x652b68
push reloc.WSOCK32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
test eax, eax
jne 0x434f5b
push 0x652b5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x434f5b
push 0x652b50
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x434f54
mov ecx, dword [0x67a050]
push 0
push ecx
push 0x652b68
push reloc.WSOCK32.dll_closesocket
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x652b68
push reloc.WSOCK32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x652b34
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x434fb1
push 0x10004
push 0x652b18
push 0x6529a8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x434fc8
push 1
push 0
push 0
push 0x652964
push 0x64ef4c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x434fc8
push 0x10000
push 0x652b18
push 0x652844
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0059ad3d
jmp 0x434e97