Function at 0x40af87
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
push ebx
xor ebx, ebx
push esi
push edi
mov esi, eax
xor eax, eax
mov byte [ebp - 0x74], bl
lea edi, [ebp - 0x73]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x38], bl
lea edi, [ebp - 0x37]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push dword [ebp + 8]
mov byte [ebp - 0x4c], bl
xor eax, eax
lea edi, [ebp - 0x4b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp - 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], 0x100
mov dword [ebp - 0x10], ebx
call fcn.00406e89
lea eax, [esi + 0x120]
push eax
push str._device_name_
mov eax, edi
push eax
call fcn.0040af3c
lea eax, [esi + 0xa0]
push eax
push str._device_desc_
mov eax, edi
push eax
call fcn.0040af3c
lea eax, [esi + 0xca5]
cmp byte [eax], bl
jne 0x40b021
lea ecx, [esi + 0xaa5]
cmp byte [ecx], bl
je 0x40b021
push ecx
jmp 0x40b022
push eax
push str._drive_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
lea eax, [esi + 0x625]
push eax
push str._serial_number_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
mov eax, esi
call fcn.004021ff
mov ebx, eax
call fcn.00407431
push eax
push str._device_type_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
lea eax, [esi + 0x1a0]
push eax
push str._service_name_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
lea eax, [esi + 0x10]
push eax
push str._device_class_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
lea eax, [esi + 0x725]
push eax
push str._device_mfg_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
lea eax, [esi + 0x2a0]
push eax
push str._driver_file_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
lea eax, [esi + 0xa25]
push eax
push str._driver_version_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
push 0x63
xor edi, edi
lea eax, [ebp - 0xdb]
push edi
push eax
mov byte [ebp - 0xdc], 0
call sub.msvcrt.dll_memset
fild dword [esi + 0xcd8]
mov eax, dword [esi + 0xcd8]
test eax, eax
jge 0x40b0f6
fadd qword [0x418310]
fdiv qword [0x418330]
lea eax, [ebp - 0xdc]
fstp qword [esp + 4]
mov dword [esp], str._2.2f
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0xdc]
push eax
push str._firmware_revision_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
mov ebx, 0xff
push ebx
lea eax, [ebp - 0x2db]
push edi
push eax
mov byte [ebp - 0x2dc], 0
call sub.msvcrt.dll_memset
push ebx
lea eax, [ebp - 0x1db]
push edi
push eax
mov byte [ebp - 0x1dc], 0
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0xd20]
add esp, 0x18
cmp eax, edi
je 0x40b174
push eax
lea edi, [ebp - 0x2dc]
call fcn.00405c69
pop ecx
mov eax, dword [esi + 0xd24]
test eax, eax
je 0x40b18b
push eax
lea edi, [ebp - 0x1dc]
call fcn.00405c69
pop ecx
lea eax, [ebp - 0x1dc]
push eax
push str._product_name_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
lea eax, [ebp - 0x2dc]
push eax
push str._vendor_name_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
movzx eax, word [esi + 0xd28]
cmp ax, 0xffff
jne 0x40b1d0
xor eax, eax
push 0xa
lea ecx, [ebp - 0x24]
movzx eax, ax
push ecx
push eax
call sub.msvcrt.dll__itoa
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push str._power_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
xor eax, eax
mov byte [ebp - 0x60], 0
lea edi, [ebp - 0x5f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, word [esi + 0xd2a]
test ax, ax
je 0x40b229
movzx ecx, al
movzx eax, ah
push ecx
push eax
lea eax, [ebp - 0x60]
push str._d._2.2x
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
push str._usb_version_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
push 0xa
lea eax, [ebp - 0x74]
push eax
push dword [esi + 0xcec]
call sub.msvcrt.dll__itoa
add esp, 0xc
push eax
push str._vid_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
push 0xa
lea eax, [ebp - 0x74]
push eax
push dword [esi + 0xcf0]
call sub.msvcrt.dll__itoa
add esp, 0xc
push eax
push str._pid_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
push dword [esi + 0xcec]
mov edi, str._4.4x
lea eax, [ebp - 0x38]
push edi
push eax
call sub.msvcrt.dll_sprintf
push dword [esi + 0xcf0]
lea eax, [ebp - 0x4c]
push edi
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x18
lea eax, [ebp - 0x38]
push eax
push str._vid_hex_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
lea eax, [ebp - 0x4c]
push eax
push str._pid_hex_
lea eax, [ebp - 0x18]
push eax
call fcn.0040af3c
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40b2d9
mov eax, 0x416615
push 5
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
lea esi, [ebp - 0x18]
call fcn.00406e64
pop edi
pop esi
pop ebx
leave
ret 4