Function at 0x402430
Capabilities:
Copy file
Create service
Get common file path
Persist via windows service

Disassembly:
sub esp, 0x424
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x41c], eax
mov edx, dword [0x4a18fc]
mov eax, dword [0x4a18f4]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ecx, dword [str.tdlock]
push 0x1f6
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
mov eax, dword [str._fwl]
mov dword [esp + 0x20], ecx
mov cx, word [0x4a1904]
lea edx, [esp + 0x2e]
push 0
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], eax
mov word [esp + 0x34], cx
call fcn.00465ec0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
push ebx
call ebp
mov esi, eax
test esi, esi
je 0x4024c7
jmp 0x4024b0
dec esi
mov eax, 0x5c
cmp ax, word [ebx + esi*2]
je 0x4024c2
test esi, esi
jne 0x4024b0
jmp 0x4024c7
test esi, esi
jbe 0x4024c7
inc esi
push 0x104
lea ecx, [esp + 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebx + esi*2]
push edi
call ebp
lea edx, [esp + 0x220]
push edx
mov esi, eax
call ebp
lea eax, [esi + eax + 0xa]
cmp eax, 0x104
jl 0x402506
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x402627
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Drivers_
lea ecx, [esp + 0x224]
push ecx
call ebp
push edi
lea edx, [esp + 0x224]
push edx
call ebp
lea esi, [esp + 0x220]
call fcn.00401fb0
test eax, eax
je 0x402542
push 0
mov eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x40256f
push str.install_driver_and_start_service:_oen_scm_error
call fcn.00405720
add esp, 4
xor eax, eax
jmp 0x402627
push str.System32Drivers_
lea ecx, [esp + 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
lea edx, [esp + 0x224]
push edx
call ebp
push 0
push 0
push str.FltMgr
push 0
push str.FSFilter_Activity_Monitor
lea eax, [esp + 0x234]
push eax
push 1
push 1
push 2
push 0xf01ff
lea ecx, [esp + 0x40]
push ecx
mov edx, ecx
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x402640
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
mov edi, eax
cmp edi, 0x431
je 0x4025ea
push str.install_driver_and_start_service:_Create_Service_error
call fcn.00405720
mov esi, dword [esp + 0x14]
add esp, 4
jmp 0x402617
lea ebx, [esp + 0x18]
call fcn.00402270
test eax, eax
je 0x4025fc
call fcn.00402360
lea eax, [esp + 0x18]
push eax
call fcn.00402060
mov esi, eax
add esp, 4
test esi, esi
jne 0x402613
call ebp
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466b40
add esp, 0x424
ret
lea ecx, [esp + 0x18]
push ecx
xor edi, edi
call fcn.00402060
add esp, 4
test eax, eax
jne 0x402668
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0x10]
jmp 0x402617
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0x10]
jmp 0x402617