joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb01f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xb169fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xb02002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00b05dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xb02002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00afd6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00b0620b
push 0x10
call fcn.00b061d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xb01fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00af21c0
jmp 0xb01fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00b01b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xb01ff0
mov ecx, edi
call fcn.00af22c0
push edi
call fcn.00b061c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xb02021
inc ebx
cmp ebx, 0x20
jb 0xb01f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xb03250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb17808
push 0xb07288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xb03329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xb03329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00b061d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xb03329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xb03329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xb0332c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00b03351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb03d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb03d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xb03d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb03d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xb03d94
push eax
push esi
call fcn.00b0620b
add esp, 8
pop esi
ret 0x10

Function at 0xb03da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb03e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xb03e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xb1c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b05dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xb03dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xb03e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb03ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xb03eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xb1c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b05dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xb03eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xb03e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xb04000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xb04131
push esi
call fcn.00b07145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00af6080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xb04131
push 0
push ebp
call fcn.00af63a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00af6260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xb0408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00af62f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xb04121
push 0xb1c918
push edi
call fcn.00b053f0
push eax
push ebx
push esi
call fcn.00b03f60
push 0xb1c8f8
push edi
call fcn.00b053f0
push eax
push ebx
push esi
call fcn.00b03f60
push 0xb1c8d8
push edi
call fcn.00b053f0
push eax
push ebx
push esi
call fcn.00b03f60
push 0xb1c8c0
push edi
call fcn.00b053f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00b03f60
push 0xb1c8a0
push edi
call fcn.00b053f0
push eax
push ebx
push esi
call fcn.00b03f60
push 0xb1c888
push edi
call fcn.00b053f0
push eax
push ebx
push esi
call fcn.00b03f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xb051b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00b05140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b05140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b05140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b05140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xb05bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xb05c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb1787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb05c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb05c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x43b638
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
sub eax, 0x3a5712b4
or esi, eax
push esi
pop eax
call fcn.0043b679
dec esi
push 0x3bff13ab
pop eax
add eax, eax
xor dword [edx], ecx
and esi, eax
dec eax
inc edx
mov esi, 0x7b51613c
sub eax, 0xcc5900e0
cmp edx, edi
jne fcn.0043b638
or eax, eax
sub eax, esi
ret
Function at 0x408935
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop esi
or edi, eax
call fcn.00408961
add eax, 0x341d15e3
dec edi
xor dword [edx], esi
inc edi
and eax, eax
inc edx
sub eax, eax
or edi, eax
cmp edx, ecx
jne fcn.00408935
ret
Function at 0x401f20
Capabilities:
Terminate process

Disassembly:
call fcn.00402f80
push eax
call fcn.00402f90
movzx eax, ax
push eax
call fcn.00402f90
shr eax, 0x10
push eax
push str.Nov__6_2023
push str.github.com_librtlsdr
push 9
push 0
push str.rtl_eeprom__an_EEPROM_programming_tool_for_RTL2832_based_SDR_receivers_nrtl_eeprom_version__d._d__s___s__nrtl_sdr____library__d._d__s_n_n
push 2
call fcn.0041e1d8
add esp, 4
push eax
call fcn.004011a0
add esp, 0x24
push str.Usage:_trtl_eeprom___options__n_t__d_device_index__default:_0___n_t__m__str__set_manufacturer_string__n_t__p__str__set_product_string__n_t__M__id__set_manufacturer_ID__aka_vendor_ID__in_hexadecimal__n_t__P__id__set_product_ID_in_hexadecimal__n_t__n_sets_manufacturer_and_product_ID_to_0x1209_0x2832__n_t_____as_with__g_realtek_sdr__n_t__s__str__set_serial_number_string__n_t__i__0_1__disable_enable_IR_endpoint__n_t__g__conf__generate_default_config_and_write_to_device__n_t_____conf__can_be_one_of:__n_t____realtek_t_tRealtek_default__as_without_EEPROM___n_t____realtek_oem_t_tRealtek_default_OEM_with_EEPROM__n_t____noxon_t_tTerratec_NOXON_DAB_Stick__n_t____terratec_black_tTerratec_T_Stick_Black__n_t____terratec_plus_tTerratec_T_Stick__DVB_T_DAB___n_t____realtek_sdr_t_tRealtek_SDR___without_DVB_compatibility__n_t__w__filename__write_dumped_file_to_device__n_t__r__filename__dump_EEPROM_to_file__n_t__h_display_this_help_text__n_nUse_on_your_own_risk__especially__w___M_and__P__n
push 2
call fcn.0041e1d8
add esp, 4
push eax
call fcn.004011a0
add esp, 8
push 1
call fcn.004209fb
int3

Function at 0x402e20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x402e2c
pop ebp
ret
movd xmm0, dword [eax + 0xa8]
cvtdq2pd xmm0, xmm0
mov eax, dword [eax + 0x84]
movd xmm1, eax
divsd xmm0, qword [0x4369c0]
shr eax, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm0, qword [0x4369b8]
addsd xmm1, qword [eax*8 + 0x4369e0]
mulsd xmm0, xmm1
pop ebp
jmp fcn.0041bf70
Function at 0x40d710
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x80]
push eax
call esi
lea eax, [edi + 0xa4]
push eax
call esi
lea eax, [edi + 0xc4]
push eax
call esi
lea eax, [edi + 0xdc]
push eax
call fcn.0040dd30
add esp, 4
lea eax, [edi + 0xec]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 0xc0], eax
lea esi, [edi + 0x10c]
lea eax, [edi + 0x78]
mov dword [esi + 4], esi
mov dword [eax + 4], eax
lea ebx, [edi + 0xc]
mov dword [eax], eax
lea eax, [edi + 0x114]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x124]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x12c]
push ebx
mov dword [esi], esi
mov dword [eax + 4], eax
mov dword [eax], eax
call fcn.0040e290
add esp, 4
test eax, eax
jns 0x40d7a9
mov ebx, 0xffffff9d
jmp 0x40d7d4
mov eax, dword [ebx]
push 0x10
mov dword [ebp + 8], eax
call fcn.004211f3
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40d820
lea ebx, [eax - 0xb]
push dword [edi + 0xc]
call fcn.0040e020
push dword [edi + 0x10]
call fcn.0040e020
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [edi + 0x80]
push eax
call esi
lea eax, [edi + 0xa4]
push eax
call esi
lea eax, [edi + 0xc4]
push eax
call esi
lea eax, [edi + 0xdc]
push eax
call fcn.0040dcd0
add esp, 4
lea eax, [edi + 0xec]
push eax
call esi
push dword [edi + 0xc0]
call dword [sym.imp.KERNEL32.dll_TlsFree]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
push 1
push dword [ebp + 8]
push str.add_fd__d_events__d
push str.usbi_add_pollfd
push 4
push 0
call fcn.0040b040
mov eax, dword [ebp + 8]
add esp, 0x18
mov dword [ebx], eax
mov eax, 1
mov word [ebx + 4], ax
lea eax, [edi + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 8]
mov dword [ecx + 4], esi
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
push edi
mov dword [eax + 4], ecx
inc dword [edi + 0x120]
mov dword [esi], ecx
call fcn.0040d3a0
add esp, 4
lea eax, [edi + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x98]
test eax, eax
je 0x40d89a
push dword [edi + 0xa0]
push 1
push dword [ebp + 8]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40d9d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 0x1c]
push dword [eax + 0xc0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40da01
mov eax, 0xfffffffa
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push esi
push 0
call fcn.0040cb70
mov esi, eax
test esi, esi
jne 0x40da1a
lea eax, [esi - 0xb]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 0x20]
movzx eax, ax
add eax, 8
push edi
push eax
call fcn.004211f3
mov edi, eax
add esp, 4
test edi, edi
jne 0x40da45
push esi
call fcn.0040ccb0
lea eax, [edi - 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov al, byte [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dl, byte [ebp + 0xc]
mov byte [edi + 1], al
mov eax, ecx
shr eax, 8
mov byte [ebp + 0x11], al
mov byte [ebp + 0x10], cl
movzx eax, word [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov word [edi + 2], ax
mov eax, ecx
shr eax, 8
mov byte [ebp + 0x11], al
mov byte [ebp + 0x10], cl
movzx eax, word [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
mov word [edi + 4], ax
mov eax, ecx
shr eax, 8
mov byte [ebp + 0x11], al
mov byte [ebp + 0x10], cl
movzx eax, word [ebp + 0x10]
mov byte [edi], dl
mov word [edi + 6], ax
test dl, dl
js 0x40daa9
movzx eax, cx
push eax
push dword [ebp + 0x1c]
lea eax, [edi + 8]
push eax
call fcn.0041cc00
add esp, 0xc
mov eax, dword [ebp + 0x24]
mov dword [esi + 8], eax
mov dword [esi], ebx
mov word [esi + 5], 0
mov dword [esi + 0x20], edi
movzx ecx, word [edi + 6]
mov eax, ecx
mov byte [ebp + 0x10], cl
shr eax, 8
mov byte [ebp + 0x11], al
movzx eax, word [ebp + 0x10]
add eax, 8
mov dword [esi + 0x18], 0x40dc00
mov dword [esi + 0x10], eax
lea eax, [ebp - 4]
push esi
mov dword [esi + 0x1c], eax
mov byte [esi + 4], 2
call fcn.0040d160
mov edi, eax
push esi
test edi, edi
js 0x40dbcc
call fcn.0040dc30
add esp, 4
cmp byte [ebp + 0xc], 0
jge 0x40db18
push dword [esi + 0x14]
mov eax, dword [esi + 0x20]
add eax, 8
push eax
push dword [ebp + 0x1c]
call fcn.0041cc00
add esp, 0xc
mov eax, dword [esi + 0xc]
cmp eax, 6
ja case.default.0x40db24
jmp dword [eax*4 + 0x40dbdc]
mov edi, dword [esi + 0x14]
push esi
call fcn.0040ccb0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push esi
mov edi, 0xfffffff9
call fcn.0040ccb0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push esi
mov edi, 0xfffffff7
call fcn.0040ccb0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push esi
mov edi, 0xfffffffc
call fcn.0040ccb0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push esi
mov edi, 0xfffffff8
call fcn.0040ccb0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push esi
or edi, 0xffffffff
call fcn.0040ccb0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push eax
mov eax, dword [ebx + 0x24]
push str.unrecognised_status_code__d
push str.libusb_control_transfer
push 2
push dword [eax + 0x1c]
call fcn.0040b040
add esp, 0x14
mov edi, 0xffffff9d
push esi
call fcn.0040ccb0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40f7d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov edx, 0x1505
push esi
mov esi, eax
test eax, eax
jne 0x40f7e8
pop esi
mov esp, ebp
pop ebp
ret
movsx ecx, byte [eax]
test ecx, ecx
je 0x40f803
nop
mov eax, edx
lea esi, [esi + 1]
shl edx, 5
add edx, ecx
movsx ecx, byte [esi]
add edx, eax
test ecx, ecx
jne 0x40f7f0
push ebx
test edx, edx
mov ebx, 1
mov ecx, ebx
mov eax, 0xc0906d
cmovne ecx, edx
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3fd
push edi
push 0x445d90
sub ecx, eax
cmovne ebx, ecx
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x445d8c]
lea edi, [eax + esi*8]
mov eax, dword [edi]
test eax, eax
je 0x40f91c
cmp eax, ebx
jne 0x40f884
mov ecx, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40f877
test dl, dl
je 0x40f873
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40f877
add eax, 2
add ecx, 2
test dl, dl
jne 0x40f857
xor eax, eax
jmp 0x40f87c
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f9a9
push dword [edi + 4]
push dword [ebp + 8]
push str.hash_collision___s_vs__s_
push str.htab_hash
push 4
push 0
call fcn.0040b040
mov eax, 0x14191f7
add esp, 0x18
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
mov edx, ebx
shr eax, 9
imul eax, eax, 0x3fb
sub edx, eax
inc edx
mov dword [ebp - 4], edx
mov ecx, esi
sub ecx, edx
cmp esi, edx
lea eax, [ecx + 0x3fd]
cmova eax, ecx
mov esi, eax
cmp esi, ebx
je 0x40f91c
mov eax, dword [0x445d8c]
mov edi, dword [eax + esi*8]
cmp edi, ebx
jne 0x40f918
mov eax, dword [eax + esi*8 + 4]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40f908
test dl, dl
je 0x40f904
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40f908
add ecx, 2
add eax, 2
test dl, dl
jne 0x40f8e8
xor eax, eax
jmp 0x40f90d
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f9a9
mov edx, dword [ebp - 4]
test edi, edi
jne 0x40f8c0
cmp dword [0x445da8], 0x3fd
jb 0x40f959
push 0x3fd
push str.hash_table_is_full___lu_entries_
push str.htab_hash
push 1
push 0
call fcn.0040b040
add esp, 0x14
xor esi, esi
push 0x445d90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call fcn.00424404
mov ecx, eax
add esp, 4
mov eax, dword [0x445d8c]
mov dword [eax + esi*8 + 4], ecx
lea eax, [eax + esi*8]
test ecx, ecx
jne 0x40f9a1
push str.could_not_duplicate_string_for_hash_table
push str.htab_hash
push 1
push ecx
call fcn.0040b040
add esp, 0x10
xor esi, esi
push 0x445d90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
inc dword [0x445da8]
mov dword [eax], ebx
push 0x445d90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fcb0
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x445d5c], 0
je 0x40fd28
push 0
push 0
push 0x402
push dword [0x445d70]
call dword [0x445d88]
test eax, eax
je 0x40fce4
push 0xffffffffffffffff
push dword [0x445d5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40fd08
push str.could_not_wait_for_timer_thread_to_quit
push str.windows_destroy_clock
push 4
push 0
call fcn.0040b040
add esp, 0x10
push 1
push dword [0x445d5c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x445d5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x445d5c], 0
mov dword [0x445d70], 0
ret
Function at 0x40fe90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x410049
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push esi
push edi
push 0xe8
push 0xd4a51000
mov dword [0x445d68], edi
mov dword [0x445d6c], esi
call fcn.0041c140
push esi
push edi
push str.hires_timer_available__Frequency:__I64u_Hz_
push str.windows_init_clock
push 4
push 0
mov dword [0x445d60], eax
mov dword [0x445d64], edx
call fcn.0040b040
add esp, 0x18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x410022
mov edx, dword [ebp - 4]
test edx, edx
je 0x410022
xor ecx, ecx
test dl, 1
jne 0x40ff2b
mov eax, 1
rol eax, 1
inc ecx
test edx, eax
je 0x40ff24
push ecx
push str.timer_thread_will_run_on_core__d
push str.windows_init_clock
mov eax, 1
shl eax, cl
push 4
push 0
mov dword [ebp - 4], eax
call fcn.0040b040
add esp, 0x14
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
test esi, esi
jne 0x40ff86
push eax
call fcn.0040fd30
push eax
push str.could_not_create_event:__s
push str.windows_init_clock
push 1
push dword [ebp + 8]
call fcn.0040b040
add esp, 0x18
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x445d70
push 0
push esi
push 0x40fa00
push 0
push 0
call fcn.004242e1
add esp, 0x18
mov dword [0x445d5c], eax
test eax, eax
jne 0x40ffce
push str.unable_to_create_timer_thread___aborting
push str.windows_init_clock
push 1
push dword [ebp + 8]
call fcn.0040b040
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov edi, dword [ebp + 8]
test eax, eax
jne 0x40fff4
push str.unable_to_set_timer_thread_affinity__timer_discrepancies_may_arise
push str.windows_init_clock
push 2
push edi
call fcn.0040b040
add esp, 0x10
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x410010
push str.failed_to_wait_for_timer_thread_to_become_ready___aborting
push str.windows_init_clock
push 1
push edi
jmp 0x40ffb7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
call fcn.0040fd30
push eax
push str.could_not_get_process_affinity:__s
push str.windows_init_clock
push 1
push dword [ebp + 8]
call fcn.0040b040
add esp, 0x18
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.no_hires_timer_available_on_this_platform
push str.windows_init_clock
push 4
push 0
call fcn.0040b040
add esp, 0x10
xorps xmm0, xmm0
movlpd qword [0x445d68], xmm0
mov eax, 1
movlpd qword [0x445d60], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret