Function at 0x405df0
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5493e1
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x5ac7dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004057b0
test eax, eax
jne 0x405e2f
mov al, 1
jmp 0x406066
sub esp, 0x18
add esi, 0x3a8
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x405e52
mov eax, dword [ecx]
jmp 0x405e54
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push esi
mov word [eax], dx
call fcn.00407d40
lea ecx, [ebp - 0x428]
call fcn.0040d650
add esp, 0x18
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405f26
lea ecx, [ebp - 0x474]
mov dword [ebp - 0x474], 0
push ecx
push esi
call eax
test eax, eax
je 0x405f26
cmp dword [ebp - 0x474], 0
setne al
test al, al
je 0x405f26
push str.datadrvinst.exe
lea edx, [ebp - 0x428]
lea ecx, [ebp - 0x470]
call fcn.0040a890
mov esi, eax
push str.datadrvinst64.exe
lea edx, [ebp - 0x428]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x458]
call fcn.0040a890
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x405f01
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x405f09
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x458]
call fcn.00406ce0
lea ecx, [ebp - 0x470]
jmp 0x405f86
push str.datadrvinst.exe
lea edx, [ebp - 0x428]
lea ecx, [ebp - 0x458]
call fcn.0040a890
mov esi, eax
push str.datadrvinst32.exe
lea edx, [ebp - 0x428]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x470]
call fcn.0040a890
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x405f63
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x405f6b
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x470]
call fcn.00406ce0
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 0
call fcn.00406ce0
push str.datadrvinst.exe_remove_bmnadapter
lea edx, [ebp - 0x428]
lea ecx, [ebp - 0x440]
call fcn.0040a890
push 0x40
lea eax, [ebp - 0x4c4]
push 0
push eax
call fcn.004d3150
push 0x400
lea eax, [ebp - 0x410]
mov dword [ebp - 0x4c8], 0x44
push 0
push eax
call fcn.004d3150
add esp, 0x1c
lea ecx, [ebp - 0x440]
cmp dword [ebp - 0x42c], 0x10
lea edx, [ebp - 0x410]
cmovae ecx, dword [ebp - 0x440]
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x405ff0
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x4c8]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40604c
push 0x2710
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.004057b0
test eax, eax
jne 0x40604c
mov bl, 1
jmp 0x40604e
xor bl, bl
lea ecx, [ebp - 0x440]
call fcn.00406ce0
lea ecx, [ebp - 0x428]
call fcn.00406ce0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae22e
mov esp, ebp
pop ebp
ret