Function at 0x140058640
Capabilities:
Authenticate hmac
Enumerate disk properties

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x1400e1700]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r12d, r12d
lea rcx, [0x1400cb0d0]
xor r8d, r8d
xor edx, edx
mov edi, r12d
lea r9d, [r12 + 2]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140058922
mov qword [rsp + 0xc0], rbx
lea r8, [rbp + 0x17]
mov qword [rsp + 0xd0], r15
xor edx, edx
mov rcx, rax
mov dword [rbp + 0x17], reloc.WLDAP32.dll_Ordinal_32
mov r15d, r12d
mov dword [rbp + 0xf], r12d
mov ebx, r12d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x1400588ec
lea edi, [r12 + 1]
mov qword [rsp + 0xc8], r14
nop dword [rax]
nop word [rax + rax]
lea rax, [rbp + 0xf]
mov r8d, edi
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x13]
mov eax, dword [rbp + 0xf]
lea rdx, [rbp + 0x17]
mov dword [rsp + 0x28], eax
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x140058773
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140058773
test rbx, rbx
je 0x140058729
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rbp + 0xf]
mov ecx, 0x40
lea edx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400588b8
lea rax, [rbp + 0xf]
mov r8d, edi
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x13]
mov eax, dword [rbp + 0xf]
lea rdx, [rbp + 0x17]
mov dword [rsp + 0x28], eax
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x140058710
test rbx, rbx
je 0x1400588b8
mov cl, 0x5c
mov byte [rbp - 0x19], 0x3e
xor cl, 0x3e
mov dl, 0x51
xor dl, 0x3e
mov byte [rbp - 0x17], cl
mov al, 0x48
mov byte [rbp - 0x16], dl
mov r8b, 0x46
lea rdx, [rbp - 0x18]
xor r9d, r9d
xor al, 0x3e
xor r8b, 0x3e
mov byte [rbp - 0x18], al
mov rcx, rbx
mov byte [rbp - 0x15], r8b
mov byte [rbp - 0x14], r9b
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1400588db
mov cl, Ordinal_45
mov byte [rbp - 9], 0x41
xor cl, 0x41
mov dl, 0x36
xor dl, 0x41
mov byte [rbp - 7], cl
mov al, 0x37
mov byte [rbp - 6], dl
mov r8b, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rbp - 8]
mov r9b, 0x33
mov r10b, 0x24
xor r11d, r11d
xor al, 0x41
xor r8b, 0x41
mov byte [rbp - 8], al
xor r9b, 0x41
mov byte [rbp - 5], r8b
xor r10b, 0x41
mov byte [rbp - 4], r9b
mov rcx, rbx
mov byte [rbp - 3], r10b
mov byte [rbp - 2], r11b
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1400588db
mov cl, 0x61
mov byte [rbp - 0x11], 4
xor cl, 4
mov dl, 0x69
xor dl, 4
mov byte [rbp - 0xf], cl
mov al, 0x75
mov byte [rbp - 0xe], dl
mov r8b, WSAStartup
lea rdx, [rbp - 0x10]
xor r9d, r9d
xor al, 4
xor r8b, 4
mov byte [rbp - 0x10], al
mov rcx, rbx
mov byte [rbp - 0xd], r8b
mov byte [rbp - 0xc], r9b
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1400588db
mov cl, gethostname
mov byte [rbp - 1], 0x51
xor cl, 0x51
mov byte [rbp + 7], r12b
mov dl, reloc.WLDAP32.dll_Ordinal_35
mov byte [rbp + 1], cl
xor dl, 0x51
mov al, 0x27
mov r8b, 0x25
mov byte [rbp + 2], dl
mov r9b, 0x24
lea rdx, [rbp]
mov r10b, Ordinal_50
mov r11b, 0x3d
xor al, 0x51
xor r8b, 0x51
xor r9b, 0x51
mov byte [rbp], al
xor r10b, 0x51
mov byte [rbp + 3], r8b
xor r11b, 0x51
mov byte [rbp + 4], r9b
mov rcx, rbx
mov byte [rbp + 5], r10b
mov byte [rbp + 6], r11b
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1400588db
inc r15d
lea r8, [rbp + 0x17]
mov edx, r15d
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x1400586e0
mov edi, r12d
test rbx, rbx
je 0x1400588e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0xc8]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc0]
test eax, eax
je 0x14005891e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
cmovne edi, r12d
mov eax, edi
jmp 0x140058924
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400b8870
mov rsi, qword [rsp + 0xd8]
add rsp, 0xa0
pop r12
pop rdi
pop rbp
ret