Function at 0x462d40
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 0x4c5e8b
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.004635b0
push 0x50
lea eax, [ebp - 0xb8]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x64], xmm0
call fcn.0049cfc0
add esp, 0xc
push 0xa00
push 0
push 0x4f3790
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x463511
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WintunCreateAdapter
push edi
call esi
mov dword [0x505b64], eax
test eax, eax
je 0x4634fb
push str.WintunCloseAdapter
push edi
call esi
mov dword [0x505b4c], eax
test eax, eax
je 0x4634fb
push str.WintunOpenAdapter
push edi
call esi
mov dword [0x505b74], eax
test eax, eax
je 0x4634fb
push str.WintunGetAdapterLUID
push edi
call esi
mov dword [0x505b58], eax
test eax, eax
je 0x4634fb
push str.WintunGetRunningDriverVersion
push edi
call esi
mov dword [0x505b5c], eax
test eax, eax
je 0x4634fb
push str.WintunDeleteDriver
push edi
call esi
mov dword [0x505b68], eax
test eax, eax
je 0x4634fb
push str.WintunSetLogger
push edi
call esi
mov dword [0x505b6c], eax
test eax, eax
je 0x4634fb
push str.WintunStartSession
push edi
call esi
mov dword [0x505b7c], eax
test eax, eax
je 0x4634fb
push str.WintunEndSession
push edi
call esi
mov dword [0x505b80], eax
test eax, eax
je 0x4634fb
push str.WintunGetReadWaitEvent
push edi
call esi
mov dword [0x505b50], eax
test eax, eax
je 0x4634fb
push str.WintunReceivePacket
push edi
call esi
mov dword [0x505b78], eax
test eax, eax
je 0x4634fb
push str.WintunReleaseReceivePacket
push edi
call esi
mov dword [0x505b70], eax
test eax, eax
je 0x4634fb
push str.WintunAllocateSendPacket
push edi
call esi
mov dword [0x505b54], eax
test eax, eax
je 0x4634fb
push str.WintunSendPacket
push edi
call esi
mov dword [0x505b60], eax
test eax, eax
je 0x4634fb
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 0x463513
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x501c30], eax
test eax, eax
je 0x4634e3
mov esi, dword [ebp - 0xc4]
cmp dword [esi + 0xbc], 7
lea eax, [esi + 0xa8]
jbe 0x462f5d
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 0x462f79
mov ecx, dword [ecx]
cmp dword [esi + 0x8c], 7
lea eax, [esi + 0x78]
jbe 0x462f87
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 0x4634e3
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 0x463030
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 0x46307a
mov dword [ebp - 0xc4], esi
shr eax, 1
dec ecx
test al, 1
je 0x463073
mov byte [ebp - 0x7c], cl
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x4630b1
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4630a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463582
push ecx
push edx
call fcn.00472d8e
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 0x4630ea
cmp eax, 0x1392
jne 0x4634d6
mov edi, dword [ebp - 0xbc]
push 0x400000
push edi
call dword [0x505b7c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4634dc
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.00456c30
test al, al
je 0x4631de
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0xc8], eax
cmp edi, eax
je 0x4631d8
add edi, 4
nop word [eax + eax]
lea ecx, [edi + 0x18]
mov edx, 0x501c74
call fcn.00408730
test al, al
je 0x4631c7
mov edx, edi
lea ecx, [ebp - 0xe8]
call fcn.00458970
mov esi, eax
cmp esi, 0x501d1c
je 0x4631bc
mov ecx, 0x501d1c
call fcn.004013c0
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.004013c0
add edi, 0x8c
lea eax, [edi - 4]
cmp eax, dword [ebp - 0xc8]
jne 0x463160
mov edi, dword [ebp - 0xbc]
mov edx, 0x501d1c
lea ecx, [ebp - 0xe8]
call fcn.004587f0
push 0x40
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0041b970
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 0x4632c2
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x46326f
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x463265
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46358c
push ecx
push edx
call fcn.00472d8e
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 0x46339b
mov edx, dword [ebp - 0xe8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x463391
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463587
jmp 0x463391
push 0x501cd4
push 5
push str._
mov edx, 0x501cbc
lea ecx, [ebp - 0x54]
call fcn.0045b940
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 0x463344
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46333a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46358c
push ecx
push edx
call fcn.00472d8e
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 0x46326f
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x463265
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46358c
jmp 0x463265
push ecx
push edx
call fcn.00472d8e
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.0042aeb0
lea eax, [ebx + 0x10]
mov ecx, 0x501d40
push eax
call fcn.00418200
push 8
mov byte [0x501c6c], 1
call fcn.00472d9c
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], 0x4637a0
mov dword [eax + 4], 0x501c28
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
push ecx
push 0
push eax
push 0x40ba90
push 0
push 0
call fcn.004a0b8c
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0xcc], ecx
test ecx, ecx
je 0x46359b
mov byte [ebp - 4], 0
cmp dword [0x501d38], 0
jne 0x463591
mov eax, dword [ebp - 0xc8]
push 8
mov dword [0x501d34], ecx
mov dword [0x501d38], eax
call fcn.00472d9c
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], 0x463940
mov dword [eax + 4], 0x501c28
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
push ecx
push 0
push eax
push 0x40ba90
push 0
push 0
call fcn.004a0b8c
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0xcc], ecx
test ecx, ecx
je 0x46359b
cmp dword [0x501c2c], 0
jne 0x463596
mov eax, dword [ebp - 0xc8]
mov dword [0x501c28], ecx
mov dword [0x501c2c], eax
jmp 0x463544
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 0x463519
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 0x46353b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [0x501c30]
call edi
mov dword [0x501c30], 0
test esi, esi
je 0x463544
call fcn.00462c90
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x46355c
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.00472b2a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30
call fcn.004a091e
call fcn.004a091e
call fcn.004a091e
call fcn.004a0c3d
call fcn.004a0c3d
push 6
mov dword [ebp - 0xc8], 0
call fcn.004740f8
int3