Function at 0x473330
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 0x5befcb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd8
mov eax, dword [0x624040]
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, 0x627e24
mov byte [ebp - 0xbd], 0
mov dword [0x627e20], eax
call fcn.00473ba0
push 0x50
lea eax, [ebp - 0xb8]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x64], xmm0
call fcn.00591a40
add esp, 0xc
push 0xa00
push 0
push 0x609f90
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x473af7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WintunCreateAdapter
push edi
call esi
mov dword [0x62f01c], eax
test eax, eax
je 0x473ae1
push str.WintunCloseAdapter
push edi
call esi
mov dword [0x62f004], eax
test eax, eax
je 0x473ae1
push str.WintunOpenAdapter
push edi
call esi
mov dword [0x62f02c], eax
test eax, eax
je 0x473ae1
push str.WintunGetAdapterLUID
push edi
call esi
mov dword [0x62f010], eax
test eax, eax
je 0x473ae1
push str.WintunGetRunningDriverVersion
push edi
call esi
mov dword [0x62f014], eax
test eax, eax
je 0x473ae1
push str.WintunDeleteDriver
push edi
call esi
mov dword [0x62f020], eax
test eax, eax
je 0x473ae1
push str.WintunSetLogger
push edi
call esi
mov dword [0x62f024], eax
test eax, eax
je 0x473ae1
push str.WintunStartSession
push edi
call esi
mov dword [0x62f034], eax
test eax, eax
je 0x473ae1
push str.WintunEndSession
push edi
call esi
mov dword [0x62f038], eax
test eax, eax
je 0x473ae1
push str.WintunGetReadWaitEvent
push edi
call esi
mov dword [0x62f008], eax
test eax, eax
je 0x473ae1
push str.WintunReceivePacket
push edi
call esi
mov dword [0x62f030], eax
test eax, eax
je 0x473ae1
push str.WintunReleaseReceivePacket
push edi
call esi
mov dword [0x62f028], eax
test eax, eax
je 0x473ae1
push str.WintunAllocateSendPacket
push edi
call esi
mov dword [0x62f00c], eax
test eax, eax
je 0x473ae1
push str.WintunSendPacket
push edi
call esi
mov dword [0x62f018], eax
test eax, eax
je 0x473ae1
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 0x473af9
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x627de0], eax
test eax, eax
je 0x473ac9
mov esi, dword [ebp - 0xc4]
cmp dword [esi + 0xbc], 7
lea eax, [esi + 0xa8]
jbe 0x47354d
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 0x473569
mov ecx, dword [ecx]
cmp dword [esi + 0x8c], 7
lea eax, [esi + 0x78]
jbe 0x473577
mov eax, dword [eax]
lea edx, [ebp - 0x64]
push edx
push ecx
push eax
call dword [0x62f01c]
mov dword [ebp - 0xbc], eax
mov esi, edi
test eax, eax
je 0x473ac9
call dword [0x62f014]
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 [0x62f010]
cmp dword [0x627e38], 0xf
mov eax, 2
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
mov word [ebp - 0xb8], ax
mov eax, 0x627e24
cmova eax, dword [0x627e24]
push eax
call esi
cmp dword [0x627e50], 0xf
mov edx, 0x627e3c
mov dword [ebp - 0xb4], eax
xorps xmm0, xmm0
cmova edx, dword [0x627e3c]
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 0x473620
sub ecx, dword [ebp - 0xc4]
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.004097a0
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 0x47366a
mov dword [ebp - 0xc4], esi
shr eax, 1
dec ecx
test al, 1
je 0x473663
mov byte [ebp - 0x7c], cl
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x4736a1
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x473697
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473b68
push ecx
push edx
call fcn.0048335e
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 0x4736da
cmp eax, 0x1392
jne 0x473abc
mov edi, dword [ebp - 0xbc]
push 0x400000
push edi
call dword [0x62f034]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x473ac2
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.004676b0
test al, al
je 0x4737c4
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0xc8], eax
cmp edi, eax
je 0x4737be
add edi, 4
lea eax, [edi + 0x18]
push 0x627e24
push eax
call fcn.00408f90
add esp, 8
test al, al
je 0x4737ad
mov edx, edi
lea ecx, [ebp - 0xe8]
call fcn.004693f0
mov esi, eax
cmp esi, 0x627ecc
je 0x4737a2
mov ecx, 0x627ecc
call fcn.004017e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x627ecc], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x627edc], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xe8]
call fcn.004017e0
add edi, 0x8c
lea eax, [edi - 4]
cmp eax, dword [ebp - 0xc8]
jne 0x473742
mov edi, dword [ebp - 0xbc]
mov edx, 0x627ecc
lea ecx, [ebp - 0xe8]
call fcn.00469270
push 0x40
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.004232b0
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 0x4738a8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x473855
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47384b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473b72
push ecx
push edx
call fcn.0048335e
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 0x473981
mov edx, dword [ebp - 0xe8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x473977
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473b6d
jmp 0x473977
push 0x627e84
push 5
push str._
mov edx, 0x627e6c
lea ecx, [ebp - 0x54]
call fcn.0046c360
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 0x47392a
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x473920
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473b72
push ecx
push edx
call fcn.0048335e
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 0x473855
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47384b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473b72
jmp 0x47384b
push ecx
push edx
call fcn.0048335e
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 [0x62e3dc], eax
mov eax, dword [ebp - 0x18]
mov dword [0x62e3d4], eax
mov eax, dword [ebp - 0xc4]
mov dword [0x62e3e0], edi
mov dword [0x62e3d8], eax
mov byte [ebp - 0xbd], 1
mov byte [ebp - 4], 0
call fcn.00431a50
lea eax, [ebx + 0x10]
mov ecx, 0x627ef0
push eax
call fcn.0041ee40
push 8
mov byte [0x627e1c], 1
call fcn.0048336c
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], 0x473d90
mov dword [eax + 4], 0x627dd8
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
push ecx
push 0
push eax
push 0x40c400
push 0
push 0
call fcn.00595613
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0xcc], ecx
test ecx, ecx
je 0x473b81
mov byte [ebp - 4], 0
cmp dword [0x627ee8], 0
jne 0x473b77
mov eax, dword [ebp - 0xc8]
push 8
mov dword [0x627ee4], ecx
mov dword [0x627ee8], eax
call fcn.0048336c
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], 0x473f30
mov dword [eax + 4], 0x627dd8
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
push ecx
push 0
push eax
push 0x40c400
push 0
push 0
call fcn.00595613
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0xcc], ecx
test ecx, ecx
je 0x473b81
cmp dword [0x627ddc], 0
jne 0x473b7c
mov eax, dword [ebp - 0xc8]
mov dword [0x627dd8], ecx
mov dword [0x627ddc], eax
jmp 0x473b2a
mov edi, dword [ebp - 0xbc]
push edi
call dword [0x62f004]
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 0x473aff
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 [0x627de0]
test eax, eax
je 0x473b21
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [0x627de0]
call edi
mov dword [0x627de0], 0
test esi, esi
je 0x473b2a
call fcn.00473280
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x473b42
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.004830fa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30
call fcn.0059539e
call fcn.0059539e
call fcn.0059539e
call fcn.005956c4
call fcn.005956c4
push 6
mov dword [ebp - 0xc8], 0
call fcn.00484dcd
int3