Function at 0x438da0
Capabilities:
Check for peb beingdebugged flag
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x62a040]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
xor eax, eax
mov dword [esp + 0x38], ecx
push edi
mov dword [esp + 0x50], 0
mov word [esp + 0x76], ax
mov dword [esp + 0x44], eax
call sym.SystemInformer.exe_PhGetApplicationDirectoryWin32
mov ebx, eax
test ebx, ebx
je 0x438e3d
mov eax, dword [ebx]
add eax, 0x1a
mov dword [esp + 0x30], 0
push 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push 0
push eax
call sym.SystemInformer.exe_PhCreateString3
push dword [ebx]
mov esi, eax
push dword [ebx + 4]
mov dword [esp + 0x4c], esi
push dword [esi + 4]
call fcn.0057e5b0
mov edi, dword [ebx]
mov ecx, 6
add edi, dword [esi + 4]
add esp, 0xc
mov esi, str.temp_drivers_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lock inc dword [ebx - 4]
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x438e3d
push ebx
call sym.SystemInformer.exe_PhDeleteDirectoryWin32
mov dword [esp + 0x44], ebx
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], 0
xor edi, edi
lea edx, [esp + 0x1c]
push eax
mov ecx, str.ksidyn.bin
mov dword [esp + 0x24], edi
call fcn.00438b20
mov esi, eax
or ebx, 0xffffffff
mov eax, dword [esp + 0x1c]
test esi, esi
js 0x438f64
mov ecx, dword ds:[esp + 0x2c]
mov edx, ecx
mov dword [esp + 0x48], ecx
mov ecx, eax
call fcn.00438c20
mov esi, eax
test esi, esi
js 0x438f60
lea eax, ds:[esp + 0x2c]
mov ecx, str.ksidyn.sig
push eax
lea edx, [esp + 0x24]
call fcn.00438b20
mov esi, eax
test esi, esi
js 0x438f5c
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
jne 0x438ecd
mov edi, dword [esp + 0x20]
mov esi, 0xe0020004
jmp 0x438f64
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
call fcn.00438a60
mov dword [esp + 0x2c], eax
test eax, eax
je 0x43970f
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov esi, eax
mov edx, 0x62b3e0
mov ecx, esi
call fcn.004f3a80
mov edi, eax
lea ecx, [esi - 8]
mov dword [esp + 0x50], edi
mov edx, ebx
lock xadd dword [ecx + 4], edx
dec edx
jne 0x438f1d
call fcn.004f9e40
lea ecx, [ecx]
test edi, edi
je 0x4396f9
push dword [edi + 4]
call sym.SystemInformer.exe_PhDoesFileExistWin32
test al, al
jne 0x439035
push str.The_kernel_driver_was_not_found.
push str.Unable_to_load_kernel_driver
push 0
push 0
push 0xfffe
push dword [esp + 0x50]
call fcn.00438800
add esp, 0x18
jmp 0x4396f9
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x438f77
push eax
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
je 0x438f8a
push edi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov edi, eax
cmp esi, 0xe0020001
jne 0x438fcf
push str.The_kernel_driver_is_not_yet_supported_on_this_kernel_version._Request_support_by_submitting_a_GitHub_issue_with_the_Windows_Kernel_version.
push str.Unable_to_load_kernel_driver
push eax
push eax
push 0xfffe
push dword [esp + 0x50]
call fcn.00438800
add esp, 0x18
xor esi, esi
jmp 0x439731
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], edi
cmp esi, 0xc000000f
jne 0x439005
push str.The_dynamic_configuration_was_not_found.
push str.Unable_to_load_kernel_driver
push 0
push 0
push 0xfffe
push dword [esp + 0x50]
call fcn.00438800
add esp, 0x18
mov esi, edi
jmp 0x439731
test esi, esi
jns 0x438ee1
push str.Failed_to_access_the_dynamic_configuration.
push str.Unable_to_load_kernel_driver
push 0
push esi
push 0xfffe
push dword [esp + 0x50]
lfence
call fcn.00438800
add esp, 0x18
mov esi, edi
jmp 0x439731
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x1a
push eax
mov dword [esp + 0x2c], str.KsiObjectName
call sym.SystemInformer.exe_PhGetStringRefSetting
mov edi, eax
test edi, edi
je 0x43907a
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x1a
push eax
mov dword [esp + 0x2c], str.KsiObjectName
call sym.SystemInformer.exe_PhGetStringRefSetting
mov edi, eax
mov dword [esp + 0x54], edi
cmp dword [edi], 0
jne 0x4390a5
push str.DriverKSystemInformer
nop
call sym.SystemInformer.exe_PhCreateString
mov ecx, edi
mov edi, eax
mov dword [esp + 0x54], edi
test ecx, ecx
je 0x4390a5
add ecx, 0xfffffff8
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4390a5
mov edi, edi
call fcn.004f9e40
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x16
push eax
mov dword [esp + 0x2c], str.KsiPortName
call sym.SystemInformer.exe_PhGetStringRefSetting
mov esi, eax
test esi, esi
je 0x4390ea
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x16
push eax
mov dword [esp + 0x2c], str.KsiPortName
call sym.SystemInformer.exe_PhGetStringRefSetting
mov esi, eax
mov dword [esp + 0x24], esi
cmp dword [esi], 0
jne 0x439108
mov eax, esi
xor esi, esi
mov dword [esp + 0x24], esi
test eax, eax
je 0x439108
lea ecx, [eax - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x439108
call fcn.004f9e40
lea eax, ds:[esp + 0x10]
mov dword [esp + 0x10], 0x16
push eax
mov dword [esp + 0x18], str.KsiAltitude
call sym.SystemInformer.exe_PhGetStringRefSetting
mov ecx, eax
test ecx, ecx
je 0x439150
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x16
push eax
mov dword [esp + 0x18], str.KsiAltitude
call sym.SystemInformer.exe_PhGetStringRefSetting
mov ecx, eax
mov dword [esp + 0x20], ecx
cmp dword [ecx], 0
jne 0x439172
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x20], ecx
test eax, eax
je 0x439172
lea ecx, [eax - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x43916e
call fcn.004f9e40
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x14], 0x3a
mov dword [esp + 0x18], str.KsiDisableImageLoadProtection
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
mov edi, eax
mov dword [esp + 0x10], 0x28
lea eax, [esp + 0x10]
mov dword [esp + 0x14], str.KsiRandomizedPoolTag
push eax
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
mov esi, eax
mov dword [esp + 0x10], 0x28
lea eax, [esp + 0x10]
mov dword [esp + 0x14], str.KsiDynDataNoEmbedded
push eax
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
neg eax
mov dword [esp + 0x70], 0x438ae0
sbb eax, eax
and eax, 4
neg esi
sbb esi, esi
xor ecx, ecx
and esi, 2
or eax, esi
test edi, edi
setne cl
or eax, ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x6c], eax
mov al, byte [0x630359]
mov byte [esp + 0x74], al
mov al, byte [0x630358]
mov byte [esp + 0x75], al
call fcn.00520a60
mov edi, eax
cmp edi, 0xc000000f
jne 0x4393de
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x3c
push eax
mov dword [esp + 0x18], str.KsiPreviousTemporaryDriverFile
call sym.SystemInformer.exe_PhGetStringRefSetting
mov esi, eax
test esi, esi
je 0x43927c
push dword [esi + 4]
call sym.SystemInformer.exe_PhDoesFileExistWin32
test al, al
je 0x43926e
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], esi
call fcn.00520a60
mov edi, eax
push esi
call sym.SystemInformer.exe_PhDereferenceObject
test edi, edi
jns 0x43940d
mov esi, dword [esp + 0x44]
test esi, esi
je 0x4393e4
lea eax, [esp + 0x10]
push eax
call sym.SystemInformer.exe_PhQuerySystemTime
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xb8], eax
mov eax, dword [0x62b3e0]
push 0x104
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xd4], eax
lea eax, [esp + 0x7c]
push 4
mov dword [esp + 0xc4], ecx
mov ecx, dword [str..sys]
push eax
mov dword [esp + 0x84], 1
mov dword [esp + 0x9c], 1
mov dword [esp + 0xac], 0x1c
mov dword [esp + 0xb0], str.SystemInformer
mov dword [esp + 0xb4], 0x109
mov byte [esp + 0xbe], 0x10
mov dword [esp + 0xcc], 1
mov dword [esp + 0xe0], ecx
call sym.SystemInformer.exe_PhFormat
mov esi, eax
mov eax, dword [esp + 0x44]
push eax
call sym.SystemInformer.exe_PhCreateDirectoryWin32
mov edi, eax
test edi, edi
js 0x439364
test esi, esi
je 0x43934d
mov edx, dword [esi + 4]
jmp 0x43934f
xor edx, edx
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [eax + 4]
call fcn.00519b60
mov edi, eax
test edi, edi
jns 0x439380
test esi, esi
je 0x43937a
lea ecx, [esi - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x43937a
call fcn.004f9e40
test edi, edi
js 0x4393e4
xor esi, esi
test esi, esi
je 0x439389
mov edx, dword [esi + 4]
jmp 0x43938b
xor edx, edx
mov ecx, edx
mov dword [esp + 0x34], 0x3c
mov dword [esp + 0x38], str.KsiPreviousTemporaryDriverFile
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4393a0
sub ecx, edi
mov dword [esp + 0x14], edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
call sym.SystemInformer.exe_PhSetStringRefSetting
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], esi
call fcn.00520a60
push esi
mov edi, eax
call sym.SystemInformer.exe_PhDereferenceObject
mov edi, edi
test edi, edi
jns 0x43940d
push str.Unable_to_load_the_kernel_driver_service.
push str.Unable_to_load_kernel_driver
push 0
push edi
push 0xfffe
push dword [esp + 0x50]
lfence
call fcn.00438800
add esp, 0x18
jmp 0x4396aa
push 0x632e38
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov dword ds:[esp + 0x10], eax
test eax, eax
je 0x43942d
lock dec dword [0x632e40]
jmp 0x43944a
mov eax, dword [0x632e48]
add eax, 8
push eax
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x10], eax
lea esi, [eax + 8]
mov edx, 0x22
mov ecx, esi
call fcn.0056dc40
mov eax, dword [esp + 0x40]
mov ecx, esi
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x20], eax
call fcn.00535f60
mov eax, dword [0x632e40]
push dword [esp + 0x10]
cmp eax, dword [0x632e44]
jae 0x4394a2
push 0x632e38
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x632e40]
nop
jmp 0x4394b0
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, ebx
call fcn.00521640
mov ecx, dword fs:[0x18]
mov dword [0x632e50], eax
mov ecx, dword [ecx + 0x30]
cmp byte [ecx + 2], 0
jne 0x439527
cmp eax, 5
je 0x439530
cmp eax, 4
jne 0x4394ec
test dword [0x6304b0], 0x2000
jne 0x439515
mov dword [esp + 0x38], str.__kx
jmp 0x439502
jge 0x439515
test dword [0x6304b0], 0x3000
jne 0x439515
mov dword [esp + 0x38], str.__kh
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 8
call fcn.00438860
mov edi, eax
test edi, edi
jns 0x4396aa
push str.Unable_to_restart.
jmp 0x4393e9
cmp eax, 5
jne 0x4396aa
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x32
push eax
mov dword [esp + 0x3c], str.KsiEnableUnloadProtection
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
je 0x4395ca
push 0x632e38
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x439568
lock dec dword [0x632e40]
jmp 0x439581
mov eax, dword [0x632e48]
add eax, 8
push eax
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov edx, 0x1f
lea ecx, [edi + 8]
call fcn.0056dc40
lea ecx, [edi + 8]
call fcn.00535f60
mov eax, dword [0x632e40]
push edi
cmp eax, dword [0x632e44]
jae 0x4395bc
push 0x632e38
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x632e40]
jmp 0x4395ca
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, ds:[esp + 0x34]
mov dword [esp + 0x34], 0x3e
push eax
mov dword [esp + 0x3c], str.KsiClientProcessProtectionLevel
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
sub eax, 1
je 0x439605
sub eax, 1
jne 0x4396aa
mov dword [esp + 0x4c], 0xc11
mov dword [esp + 0x48], 0x104b
jmp 0x439615
mov dword [esp + 0x4c], 0x801
mov dword [esp + 0x48], 0x1003
push 0x632e38
lea ebx, [ebx]
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x439635
lock dec dword [0x632e40]
jmp 0x43964e
mov eax, dword [0x632e48]
add eax, 8
push eax
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov edx, 0x28
lea ecx, [edi + 8]
call fcn.0056dc40
mov eax, dword [esp + 0x4c]
lea ecx, [edi + 8]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0x1c], 0xffffffff
mov dword [edi + 0x24], eax
call fcn.00535f60
mov eax, dword [0x632e40]
push edi
cmp eax, dword [0x632e44]
jae 0x43969c
push 0x632e38
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x632e40]
jmp 0x4396aa
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x4396c5
add ecx, 0xfffffff8
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4396c5
nop
call fcn.004f9e40
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4396df
add ecx, 0xfffffff8
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4396df
call fcn.004f9e40
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4396f9
add ecx, 0xfffffff8
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4396f9
call fcn.004f9e40
mov ecx, dword [esp + 0x2c]
mov eax, ebx
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x43970f
call fcn.004f9e40
mov eax, dword [esp + 0x50]
test eax, eax
je 0x439729
lea ecx, [eax - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x439729
call fcn.004f9e40
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x439749
lea ecx, [eax - 8]
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x439749
call fcn.004f9e40
test edi, edi
je 0x43975c
push edi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
lea esp, [esp]
test esi, esi
je 0x439773
push esi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword ds:[esp + 0xdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret