Function at 0x4cf090
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x237]
push ebx
push eax
mov byte [ebp - 0x238], bl
call fcn.004e8ba0
xor eax, eax
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x238]
push ecx
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x103
lea edx, [ebp - 0x12f]
push ebx
push edx
mov byte [ebp - 0x130], bl
call fcn.004e8ba0
add esp, 0xc
xor eax, eax
jmp 0x4cf120
mov cl, byte [ebp + eax - 0x238]
mov byte [ebp + eax - 0x130], cl
inc eax
cmp cl, bl
jne 0x4cf120
lea eax, [ebp - 0x130]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4cf140
mov ecx, dword [str.drivers_]
mov edx, dword [0x54ccb4]
mov dword [eax], ecx
mov cx, word [0x54ccb8]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, str.Smrf
mov ecx, eax
jmp 0x4cf170
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4cf170
lea edi, [ebp - 0x130]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4cf182
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x130]
rep movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4cf1a0
mov edx, dword [str..inf]
mov cl, byte [0x54c97c]
mov dword [eax], edx
mov byte [eax + 4], cl
mov eax, dword [0x56831c]
cmp eax, 7
je 0x4cf23b
cmp eax, 6
je 0x4cf23b
cmp eax, 0xa
je 0x4cf23b
cmp eax, 9
je 0x4cf23b
cmp eax, 0xc
je 0x4cf23b
cmp eax, 0xd
je 0x4cf23b
push ebx
push str._os_is_not_need_register_pnp_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a3520
add esp, 0xc
push 2
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebx
jne 0x4cf20b
push ebx
push str._open_SCManager_fail_
jmp 0x4cf278
push 0xf01ff
push str.Smrf
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
je 0x4cf308
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
push ebx
push str._driver_already_register_
jmp 0x4cf35a
push ebx
push str._os_need_register_Pnp_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a3520
add esp, 0xc
push ebx
push str._clear_pnp_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a3520
add esp, 0xc
call fcn.004cf6a0
test al, al
jne 0x4cf29c
push ebx
push str._clear_pnp_fail_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a3520
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
lea edx, [ebp - 0x24]
push edx
xor esi, esi
call fcn.004cffc0
add esp, 4
test eax, eax
je 0x4cf2dd
jmp 0x4cf2c0
cmp esi, 3
je 0x4cf272
push 0x7d0
call edi
lea eax, [ebp - 0x24]
push eax
inc esi
call fcn.004cffc0
add esp, 4
test eax, eax
jne 0x4cf2c0
push ebx
push str._clear_pnp_success_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a3520
add esp, 0xc
call fcn.004cf890
test al, al
jne 0x4cf308
push ebx
push str._install_pnp_fail_
jmp 0x4cf278
push 0x103
lea ecx, [ebp - 0x33f]
push ebx
push ecx
mov byte [ebp - 0x340], bl
call fcn.004e8ba0
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x340]
push str._s_rundll32.exe_setupapi.dll_InstallHinfSection_DefaultInstall_128__s
push ecx
call fcn.004e5b0c
add esp, 0x10
push 5
lea edx, [ebp - 0x340]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebx
push str._register_driver_success_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a3520
add esp, 0xc
call fcn.004cf390
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret