Function at 0x6b815080
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, dword [eax + 0x24]
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 0x54]
cmp byte [eax], 2
mov dword [ebp - 0x45], 0x5c2e5c5c
mov dword [ebp - 0x41], 0x7562696c
mov dword [ebp - 0x3d], 0x2d306273
mov dword [ebp - 0x39], 0x30303030
mov byte [ebp - 0x35], 0
sete cl
cmp dword [ebp + 8], 0xffffffff
je 0x6b815241
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
shl eax, 6
lea eax, [eax + edx*4]
lea edx, [eax + 0x6b820200]
mov eax, dword [eax + 0x6b820200]
test eax, eax
je 0x6b8152a8
test bl, bl
je 0x6b8151f0
test cl, cl
jne 0x6b8151f0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x34]
lea ecx, [eax - 1]
mov dword [ebp - 0x58], eax
cmp ecx, 0xfffffffd
jbe 0x6b815250
lea eax, [ebp - 0x58]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 8
test eax, eax
je 0x6b8157c1
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp + 0xc]
mov dword [edi + 0x34], eax
movzx eax, bl
mov dword [esp + 0xc], str.auto_claimed_interface_0__required_to_claim__u_with_WinUSB_
mov dword [ebp - 0x60], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 8], str.winusbx_claim_interface
mov dword [esp + 4], 2
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x60]
sub ebx, 1
mov edx, dword [ebp + 8]
mov dword [esp], eax
movzx ebx, bl
mov eax, dword [ebp + 8]
mov dword [esp + 4], ebx
lea ecx, [ecx + edi*8 + 0x34]
shl edx, 6
mov dword [esp + 8], ecx
call dword [edx + eax*4 + 0x6b820214]
sub esp, 0xc
test eax, eax
je 0x6b8152b5
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x60]
mov eax, dword [eax + 0x30]
mov dword [edi + esi*8 + 0x30], eax
mov esi, dword [ebp - 0x60]
mov dword [esp + 0xc], str.claimed_interface__u
mov dword [esp + 8], str.winusbx_claim_interface
mov dword [esp + 4], 4
mov dword [esp], 0
mov dword [esp + 0x10], esi
call sym.libusb_1.0.dll_usbi_log
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx + 0x2c], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp + 0xc]
movzx eax, bl
mov dword [ebp - 0x60], eax
lea eax, [esi + eax*8]
mov dword [ebp - 0x68], eax
mov eax, dword [eax + 0x30]
lea edx, [eax - 1]
cmp edx, 0xfffffffd
ja 0x6b815781
mov edx, dword [ebp + 8]
mov dword [esp], eax
lea esi, [ebp - 0x58]
mov eax, dword [ebp + 8]
mov dword [esp + 4], esi
shl edx, 6
call dword [edx + eax*4 + 0x6b820218]
sub esp, 8
test eax, eax
je 0x6b815320
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 0x34], eax
jmp 0x6b8151b0
mov eax, dword [edi + 0x60]
mov dword [ebp + 8], eax
jmp 0x6b8150ce
movzx edi, bl
mov dword [ebp - 0x60], edi
jmp 0x6b81516a
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [0x6b820324]
mov eax, dword [ebp - 0x74]
sub esp, 4
mov dword [esp], eax
call sym._windows_error_str
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0xc], str.could_not_access_interface__u:__s
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 8], str.winusbx_claim_interface
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
lea esp, [ebp - 0xc]
mov eax, 0xfffffffd
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x60]
mov dword [edx + esi*8 + 0x34], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, 0xfffffffa
cmp edx, 0xb7
je 0x6b8151e3
cmp edx, 0x103
mov eax, 0xfffffffb
je 0x6b8151e3
cmp edx, 0x16
mov eax, 0xfffffffc
je 0x6b8151e3
mov dword [esp], 0
call sym._windows_error_str
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.could_not_claim_interface__u:__s
jmp 0x6b81528d
mov eax, dword [ebp - 0x68]
mov dword [eax + 0x34], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
call eax
cmp eax, 0x16
mov dword [ebp - 0x74], eax
je 0x6b81588c
mov dword [ebp - 0x6c], edi
mov dword [esp + 0xc], 0x12
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], sym.libusb_1.0.dll_GUID_DEVINTERFACE_LIBUSB0_FILTER
call dword [0x6b82033c]
sub esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x5c], eax
je 0x6b81584f
xor ebx, ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x1c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], sym.libusb_1.0.dll_GUID_DEVINTERFACE_LIBUSB0_FILTER
mov dword [esp + 4], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [0x6b820334]
sub esp, 0x14
test eax, eax
jne 0x6b815413
mov eax, dword [ebp - 0x70]
call eax
cmp eax, 0x103
je 0x6b815260
mov dword [esp], 0
call sym._windows_error_str
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Could_not_obtain_interface_data_for_index__lu:__s
mov eax, dword [ebp - 0x64]
mov dword [esp + 8], str.get_interface_details_filter
mov ebx, 0xffffff9d
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [0x6b820324]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x54]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [0x6b82032c]
sub esp, 0x18
test eax, eax
jne 0x6b815480
mov eax, dword [ebp - 0x70]
call eax
cmp eax, 0x7a
je 0x6b8154b0
mov dword [esp], 0
call sym._windows_error_str
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.could_not_access_interface_data__dummy__for_index__lu:__s
jmp 0x6b8153da
mov eax, dword [ebp - 0x64]
mov dword [esp + 0xc], str.program_assertion_failed___http:__msdn.microsoft.com_en_us_library_ms792901.aspx_is_wrong
mov ebx, 0xffffff9d
mov dword [esp + 8], str.get_interface_details_filter
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
jmp 0x6b8153fa
mov esi, dword [ebp - 0x54]
mov dword [esp], esi
call sym._malloc
test eax, eax
mov edi, eax
je 0x6b815790
mov dword [eax], 5
mov dword [esp + 8], eax
lea eax, [ebp - 0x34]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [0x6b82032c]
sub esp, 0x18
test eax, eax
je 0x6b8156b4
lea eax, [edi + 4]
call sym._normalize_path
mov dword [esp], edi
mov esi, eax
call sym._free
test esi, esi
je 0x6b815805
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [0x6b82031c]
sub esp, 0x10
cmp eax, 0xffffffff
mov edi, eax
je 0x6b815813
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x50]
mov dword [esp + 4], str.LUsb0
mov dword [esp], edi
mov dword [esp + 0x10], eax
call dword [0x6b820350]
sub esp, 0x18
test eax, eax
jne 0x6b8155df
mov eax, dword [ebp - 0x50]
cmp eax, 0xff
ja 0x6b8155df
lea edx, [ebp - 0x45]
mov dword [esp + 8], eax
mov dword [esp + 4], str..libusb0__04u
mov dword [esp], edx
mov dword [ebp - 0x78], edx
call sym._sprintf
mov edx, dword [ebp - 0x78]
mov dword [esp + 0xc], str.assigned_libusb0_symbolic_link__s
mov dword [esp + 8], str.get_interface_details_filter
mov dword [esp + 4], 4
mov dword [esp], 0
mov dword [esp + 0x10], edx
call sym.libusb_1.0.dll_usbi_log
mov dword [esp], edi
call dword [0x6b82034c]
sub esp, 4
mov dword [esp + 4], 0x7b
mov dword [esp], esi
call sym._strchr
test eax, eax
je 0x6b815629
mov byte [eax], 0
mov dword [esp], esi
call sym._strlen
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x6c]
imul eax, dword [ebp - 0x60], 0x1c
mov eax, dword [ecx + eax + 0x64]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strncmp
test eax, eax
je 0x6b815650
xor edi, edi
mov dword [esp], esi
add ebx, 1
call sym._free
mov eax, edi
test al, al
jne 0x6b815233
test ebx, ebx
jne 0x6b815379
jmp 0x6b815343
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x45]
mov ecx, 0xc0000000
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
call sym._windows_open.isra.23
cmp eax, 0xffffffff
mov edi, eax
je 0x6b815740
lea ecx, [ebp - 0x58]
mov eax, dword [ebp + 8]
mov dword [esp], edi
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 8]
shl eax, 6
call dword [eax + ecx*4 + 0x6b820218]
sub esp, 8
test eax, eax
je 0x6b815703
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x68]
sub esp, 4
mov dword [eax + 0x30], edi
mov edi, 1
jmp 0x6b81562b
mov dword [esp], 0
mov dword [ebp - 0x60], edi
call sym._windows_error_str
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.could_not_access_interface_data__actual__for_index__lu:__s
mov ebx, 0xffffff9d
mov dword [esp + 8], str.get_interface_details_filter
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
mov edx, dword [ebp - 0x60]
mov dword [esp], edx
call sym._free
jmp 0x6b8153fa
lea eax, [ebp - 0x45]
mov dword [esp + 0xc], str.could_not_initialize_filter_driver_for__s
mov dword [esp + 8], str.winusbx_claim_interface
mov dword [esp + 4], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x6b815629
mov dword [esp], 0
xor edi, edi
call sym._windows_error_str
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x45]
mov dword [esp + 0xc], str.could_not_open_device__s:__s
mov dword [esp + 8], str.winusbx_claim_interface
mov dword [esp + 4], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
jmp 0x6b81562b
mov eax, 0xfffffffb
jmp 0x6b8151e3
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.could_not_allocate_interface_data_for_index__lu
mov eax, dword [ebp - 0x64]
mov dword [esp + 8], str.get_interface_details_filter
mov ebx, 0xfffffff5
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
jmp 0x6b8153fa
mov dword [esp], 0
movzx ebx, bl
call sym._windows_error_str
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.failed_to_auto_claim_interface_0__required_to_claim__u_with_WinUSB_:__s
mov dword [esp + 8], str.winusbx_claim_interface
mov dword [esp + 4], 2
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
mov eax, 0xfffffffd
jmp 0x6b8151e3
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.could_not_allocate_interface_path_for_index__lu
jmp 0x6b81579c
mov dword [esp], 0
call sym._windows_error_str
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.could_not_open_device_interface_registry_key_for_index__lu:__s
mov dword [esp + 8], str.get_interface_details_filter
mov dword [esp + 4], 2
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
jmp 0x6b8155eb
mov dword [esp], 0
call sym._windows_error_str
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0xc], str.could_not_obtain_device_info_set:__s
mov dword [esp + 8], str.get_interface_details_filter
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
mov eax, 0xffffff9d
jmp 0x6b8151e3
mov dword [esp], 0
call sym._windows_error_str
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0xc], str.could_not_access_interface__u:__s
mov dword [esp + 8], str.winusbx_claim_interface
mov dword [esp + 4], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
mov eax, 0xfffffffc
jmp 0x6b8151e3