Function at 0x415941
Capabilities:
Copy file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov ebx, edx
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.0043b487
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [edi - 0xc]
dec eax
push eax
call fcn.0043a8ec
push 0x5c
pop ecx
cmp ax, cx
je 0x41597c
push ecx
lea ecx, [ebp - 0x10]
call fcn.0043b93f
mov edi, dword [ebp - 0x10]
xor esi, esi
lea edx, [ebp - 0x10]
push 0x492a04
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call fcn.0043ab55
pop ecx
push esi
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call fcn.0044c96a
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043c924
cmp dword [ebp - 0x24], 0x60000
jbe 0x4159c2
mov eax, dword [ebp + 8]
sub eax, 1
je 0x4159d7
sub eax, 1
je 0x4159cc
mov ebx, 0x80004002
jmp 0x415d0f
cmp dword [ebp - 0x24], 0x60004
jb 0x415a13
jmp 0x415a09
cmp dword [ebp - 0x24], 0x60003
jb 0x415a13
push str.WindowsSystem32WimBootCompress.ini
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0043ab55
pop ecx
mov ecx, dword [eax]
call fcn.0044c9a8
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043c924
test esi, esi
je 0x415a11
push 0x50
pop ebx
jmp 0x415d0f
xor esi, esi
call fcn.0043c5cd
push eax
lea ecx, [ebp - 0x14]
call fcn.0043ac50
lea eax, [ebp - 0x14]
mov edx, str.ControlSession_ManagerEnvironment
push eax
push str.PROCESSOR_ARCHITECTURE
mov ecx, ebx
call fcn.0044cebc
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x415d04
call fcn.0043c5cd
push eax
lea ecx, [ebp - 0xc]
call fcn.0043ac50
mov eax, 0x104
lea ecx, [ebp - 0xc]
push eax
push eax
call fcn.0043c822
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push eax
lea ecx, [ebp - 0xc]
call fcn.0043c894
push 0x5c
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x415a86
or eax, 0xffffffff
jmp 0x415a8b
sub eax, dword [ebp - 0xc]
sar eax, 1
inc eax
lea ecx, [ebp - 0xc]
push eax
call fcn.0043c894
lea eax, [ebp - 0x14]
mov edx, str.Config_
push str.wofadk.sys
push eax
lea ecx, [ebp - 0x24]
call fcn.00430fb9
pop ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0043ab55
pop ecx
lea ecx, [ebp - 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0043b96c
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x34]
push esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call fcn.0044c96a
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x415cf9
push str.WindowsSystem32driverswofadk.sys
lea edx, [ebp - 0x10]
mov dword [ebp - 0x20], esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], esi
call fcn.0043ab55
pop ecx
push esi
mov esi, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
mov ecx, esi
call fcn.0044c96a
mov eax, dword [ebp - 0x20]
pop ecx
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x30], ecx
jb 0x415b4c
ja 0x415b30
cmp dword [ebp - 0x34], eax
jbe 0x415b4c
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x415b58
call fcn.0044bc4b
mov ebx, eax
jmp 0x415cf1
or eax, ecx
jne 0x415b58
push 2
pop ebx
jmp 0x415cf1
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push 0x20006
push dword [0x4ab220]
mov dword [ebp - 8], ecx
push ecx
push ecx
push str.servicesWofAdk
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x415ce9
mov ecx, dword [ebp - 8]
mov edx, str.Instances
push str.WofAdk_Instance
push str.DefaultInstance
call fcn.0044cefe
mov ecx, dword [ebp - 8]
mov ebx, str.InstancesWofAdk_Instance
push str.40730
push str.Altitude
mov edx, ebx
call fcn.0044cefe
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x24]
and dword [ebp - 0x24], 0
mov edx, ebx
push 4
push eax
push 4
push str.Flags
call fcn.0044ce32
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 0x20
push 0x10
push str.FltMgr
push 7
push 0
push str.DependOnService
push dword [ebp - 8]
call ebx
mov ecx, dword [ebp - 8]
mov edx, str.Discription
push str.WofAdk_Mini_Filter_Driver
call fcn.0044cd7d
mov ecx, dword [ebp - 8]
mov edx, str.DisplayName
mov dword [esp], 0x48f10c
call fcn.0044cd7d
pop ecx
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push eax
push 4
push 0
push str.ErrorControl
push dword [ebp - 8]
call ebx
mov ecx, dword [ebp - 8]
mov edx, str.Group
push str.FSFilter_Compression
call fcn.0044cd7d
pop ecx
push 0x50
push str.SystemRootSystem32driverswofadk.sys
push 2
push 0
push str.ImagePath
push dword [ebp - 8]
call ebx
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push 4
push eax
push 4
push 0
push str.Start
push dword [ebp - 8]
call ebx
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 3
push eax
push 4
push 0
push str.SupportedFeatures
push dword [ebp - 8]
call ebx
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 2
push eax
push 4
push 0
push 0x48f600
push dword [ebp - 8]
call ebx
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
push str.Start
mov edx, str.servicesWof
mov ecx, ebx
call fcn.0044cdf3
pop ecx
pop ecx
test eax, eax
jne 0x415ce7
push 4
pop ecx
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ecx
push eax
push ecx
push str.Start
mov edx, str.servicesWof
mov ecx, ebx
call fcn.0044ce32
add esp, 0x10
xor ebx, ebx
lea ecx, [ebp - 8]
call fcn.0043a910
lea ecx, [esi - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0043c924
lea ecx, [edi - 0x10]
call fcn.0043c924
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret