Function at 0x462b30
Capabilities:
Create thread
Link many functions at runtime
Persist via windows service
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5c8b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd8
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0xc4], ecx
mov eax, dword [ebx + 8]
push ecx
mov dword [ebp - 4], 0
mov ecx, 0x501c74
mov byte [ebp - 0xbd], 0
mov dword [0x501c70], eax
call fcn.004633a0
push 0x50
lea eax, [ebp - 0xb8]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x64], xmm0
call fcn.0049cdf0
add esp, 0xc
push 0xa00
push 0
push str.wintun.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x463301
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WintunCreateAdapter
push edi
call esi
mov dword [0x505b64], eax
test eax, eax
je 0x4632eb
push str.WintunCloseAdapter
push edi
call esi
mov dword [0x505b4c], eax
test eax, eax
je 0x4632eb
push str.WintunOpenAdapter
push edi
call esi
mov dword [0x505b74], eax
test eax, eax
je 0x4632eb
push str.WintunGetAdapterLUID
push edi
call esi
mov dword [0x505b58], eax
test eax, eax
je 0x4632eb
push str.WintunGetRunningDriverVersion
push edi
call esi
mov dword [0x505b5c], eax
test eax, eax
je 0x4632eb
push str.WintunDeleteDriver
push edi
call esi
mov dword [0x505b68], eax
test eax, eax
je 0x4632eb
push str.WintunSetLogger
push edi
call esi
mov dword [0x505b6c], eax
test eax, eax
je 0x4632eb
push str.WintunStartSession
push edi
call esi
mov dword [0x505b7c], eax
test eax, eax
je 0x4632eb
push str.WintunEndSession
push edi
call esi
mov dword [0x505b80], eax
test eax, eax
je 0x4632eb
push str.WintunGetReadWaitEvent
push edi
call esi
mov dword [0x505b50], eax
test eax, eax
je 0x4632eb
push str.WintunReceivePacket
push edi
call esi
mov dword [0x505b78], eax
test eax, eax
je 0x4632eb
push str.WintunReleaseReceivePacket
push edi
call esi
mov dword [0x505b70], eax
test eax, eax
je 0x4632eb
push str.WintunAllocateSendPacket
push edi
call esi
mov dword [0x505b54], eax
test eax, eax
je 0x4632eb
push str.WintunSendPacket
push edi
call esi
mov dword [0x505b60], eax
test eax, eax
je 0x4632eb
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xd0], eax
mov esi, edi
test eax, eax
je 0x463303
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x501c30], eax
test eax, eax
je 0x4632d3
mov esi, dword [ebp - 0xc4]
cmp dword [esi + 0xbc], 7
lea eax, [esi + 0xa8]
jbe 0x462d4d
mov eax, dword [eax]
lea ecx, [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
cmp dword [esi + 0xa4], 7
lea ecx, [esi + 0x90]
jbe 0x462d69
mov ecx, dword [ecx]
cmp dword [esi + 0x8c], 7
lea eax, [esi + 0x78]
jbe 0x462d77
mov eax, dword [eax]
lea edx, [ebp - 0x64]
push edx
push ecx
push eax
call dword [0x505b64]
mov dword [ebp - 0xbc], eax
mov esi, edi
test eax, eax
je 0x4632d3
call dword [0x505b5c]
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.IPHLPAPI.DLL_InitializeUnicastIpAddressEntry]
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0xbc]
call dword [0x505b58]
cmp dword [0x501c88], 0xf
mov eax, 2
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
mov word [ebp - 0xb8], ax
mov eax, 0x501c74
cmova eax, dword [0x501c74]
push eax
call esi
cmp dword [0x501ca0], 0xf
mov edx, 0x501c8c
mov dword [ebp - 0xb4], eax
xorps xmm0, xmm0
cmova edx, dword [0x501c8c]
mov ecx, edx
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
lea eax, [ecx + 1]
mov dword [ebp - 0xc4], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x462e20
sub ecx, dword [ebp - 0xc4]
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.00408f20
cmp dword [ebp - 0x1c], 0xf
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
push eax
call esi
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov esi, edi
mov ecx, 0x20
mov dword [ebp - 0xc4], esi
test al, 1
jne 0x462e6a
mov dword [ebp - 0xc4], esi
shr eax, 1
dec ecx
test al, 1
je 0x462e63
mov byte [ebp - 0x7c], cl
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x462ea1
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x462e97
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463372
push ecx
push edx
call fcn.00472bfe
add esp, 8
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x78], 4
mov byte [ebp - 0x7b], 0
call dword [sym.imp.IPHLPAPI.DLL_CreateUnicastIpAddressEntry]
test eax, eax
je 0x462eda
cmp eax, 0x1392
jne 0x4632c6
mov edi, dword [ebp - 0xbc]
push 0x400000
push edi
call dword [0x505b7c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4632cc
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00456bf0
test al, al
je 0x462fce
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0xc8], eax
cmp edi, eax
je 0x462fc8
add edi, 4
nop word [eax + eax]
lea ecx, [edi + 0x18]
mov edx, 0x501c74
call fcn.00408730
test al, al
je 0x462fb7
mov edx, edi
lea ecx, [ebp - 0xe8]
call fcn.00458800
mov esi, eax
cmp esi, 0x501d1c
je 0x462fac
mov ecx, 0x501d1c
call fcn.004013d0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x501d1c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x501d2c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xe8]
call fcn.004013d0
add edi, 0x8c
lea eax, [edi - 4]
cmp eax, dword [ebp - 0xc8]
jne 0x462f50
mov edi, dword [ebp - 0xbc]
mov edx, 0x501d1c
lea ecx, [ebp - 0xe8]
call fcn.00458680
push 0x40
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0041b960
add esp, 8
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 0xf
lea eax, [ebp - 0x30]
push ecx
cmova eax, dword [ebp - 0x30]
push 0x20006
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4630b2
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x46305f
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x463055
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46337c
push ecx
push edx
call fcn.00472bfe
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp ecx, 0xf
jbe 0x46318b
mov edx, dword [ebp - 0xe8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x463181
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463377
jmp 0x463181
push 0x501cd4
push 5
push str._
mov edx, 0x501cbc
lea ecx, [ebp - 0x54]
call fcn.0045b730
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x54]
add esp, 0xc
cmp dword [ebp - 0x40], 0xf
cmova ecx, dword [ebp - 0x54]
inc eax
push eax
push ecx
push 1
push 0
push str.NameServer
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x463134
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46312a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46337c
push ecx
push edx
call fcn.00472bfe
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
cmp ecx, 0xf
jbe 0x46305f
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x463055
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46337c
jmp 0x463055
push ecx
push edx
call fcn.00472bfe
add esp, 8
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0xf
mov byte [ebp - 0xe8], 0
mov dword [0x5049ec], eax
mov eax, dword [ebp - 0x18]
mov dword [0x5049e4], eax
mov eax, dword [ebp - 0xc4]
mov dword [0x5049f0], edi
mov dword [0x5049e8], eax
mov byte [ebp - 0xbd], 1
mov byte [ebp - 4], 0
call fcn.0042aea0
lea eax, [ebx + 0x10]
mov ecx, 0x501d40
push eax
call fcn.004181f0
push 8
mov byte [0x501c6c], 1
call fcn.00472c0c
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], 0x463590
mov dword [eax + 4], 0x501c28
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
push ecx
push 0
push eax
push 0x40bb40
push 0
push 0
call fcn.004a09bc
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0xcc], ecx
test ecx, ecx
je 0x46338b
mov byte [ebp - 4], 0
cmp dword [0x501d38], 0
jne 0x463381
mov eax, dword [ebp - 0xc8]
push 8
mov dword [0x501d34], ecx
mov dword [0x501d38], eax
call fcn.00472c0c
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], 0x463730
mov dword [eax + 4], 0x501c28
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
push ecx
push 0
push eax
push 0x40bb40
push 0
push 0
call fcn.004a09bc
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0xcc], ecx
test ecx, ecx
je 0x46338b
cmp dword [0x501c2c], 0
jne 0x463386
mov eax, dword [ebp - 0xc8]
mov dword [0x501c28], ecx
mov dword [0x501c2c], eax
jmp 0x463334
mov edi, dword [ebp - 0xbc]
push edi
call dword [0x505b4c]
mov edi, dword [ebp - 0xd0]
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x463309
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x501c30]
test eax, eax
je 0x46332b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [0x501c30]
call edi
mov dword [0x501c30], 0
test esi, esi
je 0x463334
call fcn.00462a80
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x46334c
mov esi, dword [ecx]
lea eax, [ebx + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, byte [ebp - 0xbd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30
call fcn.004a074e
call fcn.004a074e
call fcn.004a074e
call fcn.004a0a6d
call fcn.004a0a6d
push 6
mov dword [ebp - 0xc8], 0
call fcn.00473f18
int3