Function at 0x100366bd
Capabilities:
Check if file exists
Copy file
Get common file path
Move file
Print debug messages

Disassembly:
push 0x664
mov eax, 0x1005a8e9
call fcn.100420aa
mov eax, dword [0x10077c68]
or dword [ebp - 0x664], 0xffffffff
mov dword [ebp - 0x668], eax
mov eax, dword [0x10077c6c]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x670], eax
mov dword [ebp - 0x66c], ebx
call fcn.10026096
test eax, eax
je 0x10036706
call fcn.100263ab
mov dword [ebp - 0x664], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x420], ax
xor edi, edi
lea eax, [ebp - 0x41e]
push edi
push eax
call fcn.10045640
lea eax, [ebp - 0x644]
add esp, 0xc
push eax
call fcn.10036559
pop ecx
mov dword [ebp - 4], edi
cmp dword [ebp - 0x630], edi
jne 0x10036751
push str._GetSysFileName_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
push ebx
jmp 0x100369bf
cmp dword [ebp - 0x62c], 8
mov ebx, dword [ebp - 0x640]
jae 0x10036766
lea ebx, [ebp - 0x640]
lea eax, [ebp - 0x420]
push eax
xor ecx, ecx
call fcn.10025ff2
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x420]
push eax
call ebx
test eax, eax
jne 0x100367a2
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.file_not_found
call esi
lea eax, [ebp - 0x420]
push eax
call esi
jmp 0x100369bc
xor eax, eax
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.10045640
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.drivers_netfilter2.sys
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x1003681a
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1003690c
push str.CopyFileW_failed:_netfilter2.sys
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x100369bc
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
call fcn.10025dfd
test eax, eax
jne 0x1003690c
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
test eax, eax
jne 0x1003690c
call fcn.100261eb
push eax
lea eax, [ebp - 0x218]
push eax
push str._s._08x
lea ecx, [ebp - 0x660]
call fcn.100276d0
mov eax, dword [ebp - 0x65c]
add esp, 0xc
cmp dword [ebp - 0x648], 8
jae 0x10036888
lea eax, [ebp - 0x65c]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push eax
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x100368ee
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
test eax, eax
jne 0x100368d1
push str.CopyFileW_2_failed:_netfilter2.sys
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
push 1
lea esi, [ebp - 0x660]
call fcn.10006669
jmp 0x100369bc
cmp dword [ebp - 0x648], 8
mov eax, dword [ebp - 0x65c]
jae 0x100368e6
lea eax, [ebp - 0x65c]
push 4
push edi
push eax
call esi
jmp 0x100368f9
push str.copy_netfiler_driver_module_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
push 1
lea esi, [ebp - 0x660]
call fcn.10006669
mov esi, 0x206
cmp dword [ebp - 0x668], edi
je 0x10036989
xor eax, eax
push esi
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push edi
push eax
call fcn.10045640
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
mov ebx, str.cache
xor ecx, ecx
call fcn.10025ff2
lea esi, [ebp - 0x628]
call fcn.10025a26
test eax, eax
jne 0x1003695a
push str.make_netfilter2_data_folder_failed
jmp 0x1003680f
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.protocolfilters.dll_int___cdecl_ProtocolFilters::pf_init_class_ProtocolFilters::PFEvents___wchar_t_const__]
pop ecx
pop ecx
test eax, eax
jne 0x1003697d
push str.pf_init_failed
jmp 0x1003680f
push str.GlobalSign_Organization_Validation_CA___SHA256
call dword [sym.imp.protocolfilters.dll_void___cdecl_ProtocolFilters::pf_setRootSSLCertSubject_char_const__]
pop ecx
push dword [ebp - 0x670]
push str.netfilter2
call dword [sym.imp.nfapi.dll_enum__NF_STATUS___cdecl_nfapi::nf_init_char_const___class_nfapi::NF_EventHandler__]
neg eax
sbb eax, eax
pop ecx
and eax, 2
pop ecx
mov dword [ebp - 0x66c], eax
je 0x100369b6
push str.nf_init_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.nfapi.dll_void___cdecl_nfapi::nf_adjustProcessPriviledges_void_]
push edi
push 1
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x644]
call fcn.10006669
cmp dword [ebp - 0x664], 0xffffffff
je 0x100369e2
push dword [ebp - 0x664]
call fcn.100263e2
mov eax, dword [ebp - 0x66c]
call fcn.1004212d
ret