Function at 0x404430
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
mov eax, 0x71cc
call fcn.004073d0
push ebx
push ebp
push esi
push edi
call fcn.004053a0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x420d28
push 0x104
call esi
push str.DriverObjectXP.dat
push 0x420d28
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, 0x423bc8
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
not ecx
dec ecx
je 0x4044f3
push 0x423bc8
push str.Users_dll_path_is__s__n
call fcn.00406d51
add esp, 8
push 0
push 0x2000000
push 3
push 0
push 0
push 0xc0000000
push 0x423bc8
call edi
cmp eax, 0xffffffff
jne 0x4044f0
push str.Dll_path_for_user_not_exist_n
call fcn.00406d51
add esp, 4
push 0xffffffffffffffff
call ebx
push 0
push 0x423bc8
call ebp
test eax, eax
jne 0x4044f3
push eax
push eax
push str.Create_directory_for_usrers_dll_failed_
call fcn.004166a5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x71cc
ret
push eax
call ebx
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push str.driver
call edi
cmp eax, 0xffffffff
jne 0x404549
push str.Dll_path_for_user_not_exist_n
call fcn.00406d51
add esp, 4
push 0xffffffffffffffff
call ebx
push 0
push str.driver
call ebp
test eax, eax
jne 0x40454c
push eax
push eax
push str.Create_directory_for_driver_failed_
call fcn.004166a5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x71cc
ret
push eax
call ebx
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x94]
rep stosd dword es:[edi], eax
mov edi, 0x423bc8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40458a
push str.comm.dll
push 0x423bc8
lea eax, [esp + 0x9c]
push str._s_s
push eax
call fcn.00406f66
add esp, 0x10
push 0x41f3c8
push 0x420d28
call fcn.00407151
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x40], edi
je 0x404bc4
push edi
call fcn.00411149
push edi
push 1
lea ecx, [esp + 0x50]
mov ebx, eax
push 5
push ecx
mov dword [esp + 0x4c], ebx
call fcn.004072b9
lea ebp, [ebx + ebx*2]
shl ebp, 3
sub ebp, ebx
shl ebp, 3
push ebp
mov dword [esp + 0x44], ebp
call fcn.00406cc5
push edi
push ebx
push 0xb8
push eax
mov dword [esp + 0x58], eax
call fcn.004072b9
add esp, 0x28
push 0x420c20
push 0x104
call esi
push 0x41f3b8
push 0x420c20
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x420c20
mov ecx, 0x421010
call fcn.00405840
test eax, eax
jge 0x40463b
push 1
push 0x420c20
mov ecx, 0x421010
mov byte [esp + 0x2f], 0
call fcn.00405840
mov al, byte [esp + 0x27]
jmp 0x40463d
mov al, 1
cmp dword [0x4214ac], 1
je 0x404954
test al, al
je 0x404954
mov ecx, 5
lea edi, [esp + 0x44]
mov esi, 0x421018
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x404954
mov ecx, 5
lea edi, [esp + 0x44]
mov esi, 0x421018
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x404b9d
test ebx, ebx
mov dword [esp + 0x10], eax
jle 0x40480d
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], ebx
lea ebp, [ecx + 4]
mov ecx, dword [0x423c50]
mov dword [esp + 0x28], 0
test ecx, ecx
jle 0x4047f4
lea eax, [eax + eax*8]
mov dword [esp + 0x34], 0x425f90
shl eax, 3
lea edx, [esp + eax + 0x168]
lea edi, [esp + eax + 0x164]
mov dword [esp + 0x14], edx
lea esi, [esp + eax + 0x15c]
mov edx, 0x423c5e
mov dword [esp + 0x18], edi
mov dword [esp + 0x3c], esi
lea ebx, [esp + eax + 0x160]
mov dword [esp + 0x1c], edx
mov eax, dword [ebp]
xor ecx, ecx
mov cx, word [edx - 2]
cmp eax, ecx
jne 0x4047bf
xor eax, eax
mov ax, word [edx]
mov edx, dword [ebp - 4]
cmp edx, eax
jne 0x4047bf
push ecx
push eax
mov ecx, 0x421010
call fcn.00405ad0
test eax, eax
jge 0x404784
mov eax, dword [ebp]
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov dword [edi], 1
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, 0x48
add eax, ecx
add ebx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
add edx, ecx
add eax, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], eax
mov edi, eax
mov esi, edx
jmp 0x4047bf
cmp eax, 2
jne 0x4047bf
mov eax, dword [ebp]
add esi, 0x48
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, dword [esp + 0x14]
mov dword [esi - 0x48], ecx
mov ecx, dword [esp + 0x10]
mov dword [edi], 0
inc ecx
add eax, 0x48
add ebx, 0x48
add edi, 0x48
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
add ecx, 0x3c
mov dword [esp + 0x34], ecx
mov ecx, dword [0x423c50]
inc eax
add edx, 0x2d
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
jl 0x4046ee
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add ebp, 0xb8
dec ecx
mov dword [esp + 0x20], ecx
jne 0x404699
mov ebp, dword [esp + 0x2c]
add ebp, 9
test eax, eax
mov dword [esp + 0x14], ebp
jle 0x404942
test ebx, ebx
jle 0x404933
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], ebx
lea ebp, [edx + 4]
jmp 0x404835
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x20], 0
jle 0x4048fc
lea ebx, [esp + 0x160]
mov eax, dword [ebx - 4]
mov ecx, dword [ebp - 4]
lea esi, [ebp - 4]
cmp eax, ecx
jne 0x4048cd
mov ecx, dword [ebx]
mov eax, dword [ebp]
cmp ecx, eax
jne 0x4048cd
mov al, byte [ebx + 4]
mov ecx, dword [esp + 0x40]
lea edx, [ebx + 8]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
push esi
call fcn.00404be0
add esp, 0x14
test eax, eax
jl 0x4048e7
mov eax, dword [ebp]
mov ecx, dword [esi]
push eax
push ecx
push str.vid_04x_pid_04xs_driver_installed_OK__n
call fcn.00406d51
mov edx, dword [ebp]
mov eax, dword [esi]
sub esp, 0x3c
mov ecx, 0x12
lea esi, [esp + 0x94]
mov edi, esp
mov dword [esp + 0x9c], 1
mov dword [esp + 0x98], edx
mov dword [esp + 0x94], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x421010
call fcn.00405950
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
inc eax
add ebx, 0x48
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x40484c
jmp 0x4048fc
mov ecx, dword [ebp]
mov edx, dword [ebp - 4]
push ecx
push edx
push str.failed_to_install_driver_for:vid_04x_pid_04x_n
call fcn.00406d51
add esp, 0xc
mov eax, dword [ebp + 0xb0]
mov ebx, dword [ebp + 0x84]
mov edi, dword [ebp + 0x58]
mov esi, dword [ebp + 0x2c]
mov edx, dword [esp + 0x14]
add eax, ebx
add eax, edi
add ebp, 0xb8
add eax, esi
add edx, eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
jne 0x404831
mov ecx, 0x421010
call fcn.00405a50
jmp 0x404b9d
push str.No_new_devices_installed_into_system__n
call fcn.00406d51
add esp, 4
jmp 0x404b9d
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40498c
lea ecx, [esp + 0x94]
push eax
push ecx
push str.comm.dll
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40498c
push str.copy_comm.dll_failed__n
call fcn.00406d51
add esp, 4
xor edx, edx
test ebx, ebx
mov dword [esp + 0x10], edx
jle 0x404a5c
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], ebx
lea ecx, [eax + 4]
mov dword [esp + 0x1c], ecx
mov eax, dword [0x423c50]
test eax, eax
jle 0x404a43
lea edx, [edx + edx*8]
mov ebp, 0x425f90
mov ebx, 0x423c5e
mov dword [esp + 0x20], eax
lea edx, [esp + edx*8 + 0x15c]
mov eax, dword [ecx]
xor esi, esi
mov si, word [ebx - 2]
cmp eax, esi
jne 0x404a26
mov edi, dword [ecx - 4]
xor esi, esi
mov si, word [ebx]
cmp edi, esi
jne 0x404a26
mov dword [edx + 4], eax
mov eax, dword [ecx - 4]
mov dword [edx], eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0xc]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x34], esi
mov esi, edi
mov edi, dword [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
inc ecx
add edx, 0x48
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ebx, 0x2d
add ebp, 0x3c
dec eax
mov dword [esp + 0x20], eax
jne 0x4049ce
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
add ecx, 0xb8
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
jne 0x4049a9
add ebp, 9
xor eax, eax
test ebx, ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jle 0x404b59
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], ebx
lea edi, [ecx + 4]
test edx, edx
mov dword [esp + 0x2c], 0
jle 0x404b22
lea eax, [eax + eax*8]
lea ebx, [esp + 0x160]
lea esi, [esp + eax*8 + 0x399c]
mov ecx, dword [ebx - 4]
mov eax, dword [edi - 4]
lea ebp, [edi - 4]
cmp ecx, eax
jne 0x404af0
mov eax, dword [ebx]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x404af0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
lea ecx, [ebx + 8]
push ecx
push 1
push edx
push eax
push ebp
call fcn.00404be0
add esp, 0x14
test eax, eax
jl 0x404b06
mov ecx, dword [edi]
mov edx, dword [ebp]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi], edx
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esi + 8], 1
mov dword [esp + 0x18], ecx
add esi, 0x48
mov eax, dword [esp + 0x2c]
add ebx, 0x48
inc eax
cmp eax, edx
mov dword [esp + 0x2c], eax
jl 0x404a9d
mov eax, dword [esp + 0x18]
jmp 0x404b22
mov eax, dword [edi]
mov ecx, dword [edi - 4]
push eax
push ecx
push str.failed_to_install_driver_for:vid_04x_pid_04x_n
call fcn.00406d51
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [edi + 0xb0]
mov ebx, dword [edi + 0x84]
mov esi, dword [edi + 0x58]
mov ebp, dword [edi + 0x2c]
add ecx, ebx
mov ebx, dword [esp + 0x14]
add ecx, esi
add edi, 0xb8
add ecx, ebp
add ebx, ecx
mov ecx, dword [esp + 0x38]
dec ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], ecx
jne 0x404a7c
lea edx, [esp + 0x44]
mov dword [0x421010], eax
push edx
push eax
lea eax, [esp + 0x39a4]
mov ecx, 0x421010
push eax
call fcn.004059f0
mov ecx, 0x421010
call fcn.00405a50
cmp dword [0x4214ac], 1
jne 0x404b9d
push 0
push str.INSTALL_DRIVER
push str.c:dev_config.inf
call fcn.00403e30
add esp, 0xc
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040701a
mov edx, dword [esp + 0x34]
push edx
call fcn.00406f1e
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x71cc
ret
push 0
push 0
push str.Failed_to_open_DriverObjectXP.dat_
call fcn.004166a5
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x71cc
ret