Function at 0x5a3960
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x5a3b92
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x24]
mov eax, dword [esi + 4]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x3c]
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 0x5a3b21
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
shl eax, 6
lea eax, [eax + edx*4]
lea edx, [eax + 0x743d00]
mov eax, dword [eax + 0x743d00]
test eax, eax
je 0x5a3b85
test bl, bl
je 0x5a3ad0
test cl, cl
jne 0x5a3ad0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
lea ecx, [eax - 1]
mov dword [ebp - 0x58], eax
cmp ecx, 0xfffffffd
jbe 0x5a3b30
lea eax, [ebp - 0x58]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 8
test eax, eax
je 0x5a40c1
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp + 0xc]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x60]
movzx edi, bl
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.auto_claimed_interface_0__required_to_claim__u_with_WinUSB_
mov dword [esp + 8], str.winusbx_claim_interface
mov dword [esp + 4], 2
mov dword [esp], eax
call sym._usbi_log
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0xc]
lea esi, [edi + edi*4]
mov edx, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [ebp + 8]
sub ebx, 1
shl esi, 3
movzx ebx, bl
lea ecx, [ecx + esi + 0x3c]
shl edx, 6
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call dword [edx + eax*4 + 0x743d14]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp + 0xc]
je 0x5a3ba4
mov eax, dword [eax + 0x38]
mov edx, dword [ebp + 0xc]
mov dword [edx + esi + 0x38], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.claimed_interface__u
mov dword [esp + 8], str.winusbx_claim_interface
mov dword [esp + 4], 4
mov dword [esp], eax
call sym._usbi_log
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x34], edi
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx edi, bl
mov ecx, dword [ebp + 0xc]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x68], eax
mov eax, dword [eax + 0x38]
lea edx, [eax - 1]
cmp edx, 0xfffffffd
ja 0x5a4071
mov edx, dword [ebp + 8]
mov dword [esp], eax
lea ecx, [ebp - 0x58]
mov eax, dword [ebp + 8]
mov dword [esp + 4], ecx
shl edx, 6
call dword [edx + eax*4 + 0x743d18]
sub esp, 8
test eax, eax
je 0x5a3c05
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 0x3c], eax
jmp 0x5a3a98
mov eax, dword [esi + 0x48]
mov dword [ebp + 8], eax
jmp 0x5a39b9
movzx edi, bl
jmp 0x5a3a52
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [0x743e20]
mov eax, dword [ebp - 0x74]
sub esp, 4
mov dword [esp], eax
call sym._windows_error_str
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.could_not_access_interface__u:__s
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], str.winusbx_claim_interface
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._usbi_log
lea esp, [ebp - 0xc]
mov eax, 0xfffffffd
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [0x24]
mov dword [ebp - 0x60], 0
jmp 0x5a3986
mov dword [eax + esi + 0x3c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, 0xfffffffa
cmp edx, 0xb7
je 0x5a3ac7
cmp edx, 0x103
mov eax, 0xfffffffb
je 0x5a3ac7
cmp edx, 0x16
mov eax, 0xfffffffc
je 0x5a3ac7
mov dword [esp], 0
call sym._windows_error_str
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.could_not_claim_interface__u:__s
jmp 0x5a3b6a
mov eax, dword [ebp - 0x68]
mov dword [eax + 0x3c], 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 0x5a418c
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], edi
nop
lea esi, [esi]
mov dword [esp + 0xc], 0x12
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x72e370
call dword [0x743e38]
sub esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x5c], eax
je 0x5a414f
xor ebx, ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x1c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x72e370
mov dword [esp + 4], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [0x743e30]
sub esp, 0x14
test eax, eax
jne 0x5a3d03
mov edi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x70]
call eax
cmp eax, 0x103
je 0x5a3b40
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 - 0x60]
mov dword [esp + 8], str.get_interface_details_filter
mov ebx, 0xffffff9d
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._usbi_log
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [0x743e20]
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 [0x743e28]
sub esp, 0x18
test eax, eax
jne 0x5a3d70
mov eax, dword [ebp - 0x70]
call eax
cmp eax, 0x7a
je 0x5a3da0
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 0x5a3cca
mov eax, dword [ebp - 0x60]
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._usbi_log
jmp 0x5a3cea
mov esi, dword [ebp - 0x54]
mov dword [esp], esi
call sym._malloc
test eax, eax
mov edi, eax
je 0x5a4090
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 [0x743e28]
sub esp, 0x18
test eax, eax
je 0x5a3fa0
lea eax, [edi + 4]
call sym._normalize_path
mov dword [esp], edi
mov esi, eax
call sym._free
test esi, esi
je 0x5a4105
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 [0x743e18]
sub esp, 0x10
cmp eax, 0xffffffff
mov edi, eax
je 0x5a4113
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 [0x743e44]
sub esp, 0x18
test eax, eax
jne 0x5a3ece
mov eax, dword [ebp - 0x50]
cmp eax, 0xff
ja 0x5a3ece
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 eax, dword [ebp - 0x60]
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 + 0x10], edx
mov dword [esp], eax
call sym._usbi_log
mov dword [esp], edi
call dword [0x743e40]
sub esp, 4
mov dword [esp + 4], 0x7b
mov dword [esp], esi
call sym._strchr
test eax, eax
je 0x5a3f18
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 - 0x64], 0x1c
mov eax, dword [ecx + eax + 0x4c]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strncmp
test eax, eax
je 0x5a3f40
xor edi, edi
mov dword [esp], esi
add ebx, 1
call sym._free
mov eax, edi
test al, al
jne 0x5a4080
test ebx, ebx
jne 0x5a3c66
jmp 0x5a3c30
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x45]
mov ecx, 0xc0000000
call sym._windows_open_1
cmp eax, 0xffffffff
mov edi, eax
je 0x5a4030
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 + 0x743d18]
sub esp, 8
test eax, eax
je 0x5a3ff0
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x38]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x68]
sub esp, 4
mov dword [eax + 0x38], edi
mov edi, 1
jmp 0x5a3f1a
mov dword [esp], 0
mov dword [ebp - 0x64], edi
call sym._windows_error_str
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x60]
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._usbi_log
mov edx, dword [ebp - 0x64]
mov dword [esp], edx
call sym._free
jmp 0x5a3cea
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 - 0x60]
mov dword [esp], eax
call sym._usbi_log
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x5a3f18
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 - 0x60]
mov dword [esp], eax
call sym._usbi_log
jmp 0x5a3f1a
mov eax, 0xfffffffb
jmp 0x5a3ac7
mov edi, dword [ebp - 0x64]
jmp 0x5a3b13
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.could_not_allocate_interface_data_for_index__lu
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], str.get_interface_details_filter
mov ebx, 0xfffffff5
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._usbi_log
jmp 0x5a3cea
mov dword [esp], 0
movzx ebx, bl
call sym._windows_error_str
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x60]
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._usbi_log
mov eax, 0xfffffffd
jmp 0x5a3ac7
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.could_not_allocate_interface_path_for_index__lu
jmp 0x5a409c
mov dword [esp], 0
call sym._windows_error_str
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x60]
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._usbi_log
jmp 0x5a3eda
mov dword [esp], 0
call sym._windows_error_str
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x60]
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._usbi_log
mov eax, 0xffffff9d
jmp 0x5a3ac7
mov dword [esp], 0
call sym._windows_error_str
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x10], edi
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], eax
call sym._usbi_log
mov eax, 0xfffffffc
jmp 0x5a3ac7