joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007490
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x14003b078]
xor rax, rsp
mov qword [rsp + 0xa8], rax
call fcn.140006ae0
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x50]
call fcn.140006b20
movzx eax, al
test eax, eax
je 0x1400074e6
lea rcx, [rsp + 0xc8]
call fcn.140007330
jmp 0x140007729
mov rcx, qword [rsp + 0xc0]
call fcn.140007940
test rax, rax
je 0x140007552
mov rcx, qword [rsp + 0xc0]
call fcn.140007940
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xc0]
call fcn.140006af0
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x140007552
lea rcx, [rsp + 0xc8]
call fcn.140008620
mov byte [rsp + 0x42], al
mov rcx, qword [rsp + 0xc0]
call fcn.140005a90
movzx ecx, byte [rsp + 0x42]
mov byte [rax], cl
mov eax, dword [rsp + 0xc8]
jmp 0x140007729
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x80], 0
jne 0x14000756e
call fcn.140006ae0
jmp 0x140007729
mov rcx, qword [rsp + 0xc0]
call fcn.140005af0
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
jne 0x1400075d4
lea rcx, [rsp + 0xc8]
call fcn.140008620
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rcx + 0x80]
movzx ecx, al
call fcn.140001a90
movzx eax, al
test eax, eax
je 0x1400075c2
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x48], eax
jmp 0x1400075cb
call fcn.140006ae0
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
jmp 0x140007729
mov qword [rsp + 0x78], 0x20
lea rcx, [rsp + 0xc8]
call fcn.140008620
mov byte [rsp + 0x40], al
lea rax, [rsp + 0xa0]
lea rcx, [rsp + 0x41]
mov rdx, qword [rsp + 0xc0]
add rdx, 0x74
lea r8, [rsp + 0x68]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x40]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x68]
call fcn.140007420
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140007724
cmp dword [rsp + 0x44], 1
jle 0x14000766c
cmp dword [rsp + 0x44], 3
je 0x1400076e8
jmp 0x140007724
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x1400076c0
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.14000fe08
cmp qword [rsp + 0x58], rax
je 0x1400076c0
call fcn.140006ae0
jmp 0x140007729
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x70], rax
je 0x1400076e1
mov eax, dword [rsp + 0xc8]
jmp 0x140007729
call fcn.140006ae0
jmp 0x140007729
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x80]
movzx ecx, byte [rsp + 0x40]
call fcn.140001a90
movzx eax, al
test eax, eax
je 0x140007715
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x4c], eax
jmp 0x14000771e
call fcn.140006ae0
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
jmp 0x140007729
call fcn.140006ae0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14000ac00
add rsp, 0xb8
ret
Function at 0x140008c50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
cmp eax, 1
je 0x140008d8b
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140008c93
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140008db0
jmp 0x140008d9f
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400050b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x140008d26
cmp qword [rsp + 0x20], 0
jle 0x140008d26
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x140008cd2
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call fcn.140006f30
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.140006600
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.140006e20
cmp qword [rsp + 0x50], 0
jle 0x140008d77
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140008d77
mov rcx, qword [rsp + 0x40]
call fcn.140005af0
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.14000f880
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
jmp 0x140008d9f
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140008db0
add rsp, 0x38
ret
Function at 0x140008ee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
cmp eax, 1
je 0x140009011
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140008f23
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140009030
jmp 0x140009025
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call fcn.140005a50
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x140008fb6
cmp qword [rsp + 0x20], 0
jle 0x140008fb6
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x140008f62
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call fcn.140007940
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140006600
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.1400078f0
cmp qword [rsp + 0x50], 0
jle 0x140008ffd
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140008ffd
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.14000fe08
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
jmp 0x140009025
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140009030
add rsp, 0x38
ret

Function at 0x140014994
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400147b8
Function at 0x14000c4a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
call fcn.140061bb0
test al, al
je 0x14000c4ea
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400e9128], rax
xor r9d, r9d
xor eax, eax
lea r8, [0x14000be60]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400e9130], rax
add rsp, 0x38
ret

Function at 0x14000e4c0
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400e9198]
movzx ebx, dl
mov rdi, rcx
test rax, rax
jne 0x14000e4fe
call fcn.14000e630
mov qword [0x1400e9198], rax
test rax, rax
jne 0x14000e4fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
lea rdx, str.usb.generic.arbSendBuf
mov dword [rsp + 0x40], 0x18
mov ecx, 0x4000
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0
call fcn.140013100
mov edx, 0x400c0003
mov ecx, 0x40040003
test bl, bl
mov r9d, 0xff
mov r8d, 8
cmovne edx, ecx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov rcx, qword [0x140108188]
mov dword [rsp + 0x30], 0xbb8
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], eax
call fcn.140024a50
mov qword [0x1400c18a0], rax
cmp rax, 0xffffffffffffffff
jne 0x14000e5a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140013250
mov rdx, qword [0x140108188]
lea rcx, str.USBArb:_CreateNamedPipe__s_failed:__s___d__n
mov r8, rax
mov r9d, ebx
call fcn.14001dba0
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
test bl, bl
je 0x14000e5d8
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14000e5d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x217
jne 0x14000e5e5
mov rcx, qword [0x1400c18a0]
call fcn.14000eca0
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
cmp ebx, 0x3e5
je 0x14000e5d8
call fcn.140013250
mov rdx, rax
lea rcx, str.USBArb:_ConnectNamedPipe_failed:__s___d___n
mov r8d, ebx
call fcn.14001dba0
mov rcx, qword [0x1400c18a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov qword [0x1400c18a0], 0xffffffffffffffff
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000ef70
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x40
movsx eax, byte [rcx + 0x48]
lea rdx, str.USBArbPipeRead
mov r9d, dword [rcx + 0x40]
mov rdi, rcx
mov dword [rsp + 0x28], eax
mov r8, rcx
mov eax, dword [rcx + 0x44]
lea rcx, str.USBArb:__s:_Received_request_to_read_from_client:_p_len:_d_readPos:_d_isHeader:_d_n
mov dword [rsp + 0x20], eax
call fcn.140003050
movsxd rcx, dword [rdi + 0x44]
mov r8d, dword [rdi + 0x40]
sub r8d, ecx
jne 0x14000efc9
mov rcx, rdi
call fcn.14000e9b0
test al, al
je 0x14000f028
mov rcx, rdi
call fcn.14000ef70
add rsp, 0x40
pop rdi
ret
mov rdx, rcx
lea rax, [rdi + 0x18]
add rdx, qword [rdi + 0x38]
lea r9, [rsp + 0x50]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000f038
mov eax, dword [rsp + 0x50]
lea rdx, str.USBArbPipeRead
add dword [rdi + 0x44], eax
mov r8, rdi
mov ecx, dword [rdi + 0x44]
movsx eax, byte [rdi + 0x48]
mov r9d, dword [rdi + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, str.USBArb:__s:_Synchronously_read_the_message_from_client:_p_len:_d_readPos:_d_isHeader:_d_n
call fcn.140003050
mov rcx, rdi
call fcn.14000e9b0
test al, al
jne 0x14000efbb
mov rcx, rdi
call fcn.14000fa90
xor al, al
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14000f09e
mov qword [rsp + 0x58], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140013250
movsx ecx, byte [rdi + 0x48]
lea rdx, str.USBArbPipeRead
mov r9d, dword [rdi + 0x40]
mov r8, rdi
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
mov eax, dword [rdi + 0x44]
mov dword [rsp + 0x28], ecx
lea rcx, str.USBArb:__s:_Failed_to_read_from_pipe:_client:_p_len:_d_readPos:_d_isHeaderP:_d_with_error__s___u__n
mov dword [rsp + 0x20], eax
call fcn.14001dba0
mov rcx, rdi
call fcn.14000fa90
mov rbx, qword [rsp + 0x58]
xor al, al
add rsp, 0x40
pop rdi
ret
mov al, 1
add rsp, 0x40
pop rdi
ret
Function at 0x14000f590
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x40], rdi
xor r8d, r8d
mov dword [rsp + 0x38], edi
xor ecx, ecx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
lea edx, [rdi - 1]
mov dword [rsp + 0x20], edi
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
call fcn.1400123b0
mov rcx, qword [0x1400c18a0]
lea rdx, [0x1400e9178]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14000f60d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x217
jne 0x14000f690
mov rcx, qword [0x1400c18a0]
call fcn.14000eca0
mov rax, qword [0x1401081c0]
mov rax, qword [rax + 8]
call qword [case.0x140007e54.0]
test eax, eax
jne 0x14000f79b
call fcn.14000c4a0
xor ecx, ecx
call fcn.140011810
mov rcx, qword [0x1400e9150]
mov dword [0x1400e915c], 4
mov qword [0x1400e916c], rdi
test rcx, rcx
je 0x14000f6d8
lea rdx, [0x1400e9158]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x14000f6d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140013250
mov rdx, rax
lea rcx, str.USBArb:_SetServiceStatus_error:__s___u___n
mov r8d, ebx
call fcn.14001dba0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
cmp ebx, 0x3e5
je 0x14000f60d
call fcn.140013250
mov rdx, rax
lea rcx, str.USBArb:_ConnectNamedPipe_failed:__s___u___n
mov r8d, ebx
call fcn.14001dba0
mov rcx, qword [0x1400c18a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov qword [0x1400c18a0], 0xffffffffffffffff
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
lea rcx, str.USBArb:_VMUSBArbService_Started._n
call fcn.14001bf60
mov r8, qword [0x1400e9190]
lea rcx, [0x14000eee0]
mov r9b, 1
xor edx, edx
call fcn.14002bb30
test eax, eax
je 0x14000f726
mov r8d, eax
lea rdx, str.USBArbThreadMain
lea rcx, str.USBArb:__s:_Poll_CB_Device_failed_for_USBArbPipeConnected___d___exiting_n
call fcn.14001dba0
mov eax, 0x47
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov r8, qword [0x1400e91b0]
lea rcx, [0x14000e9a0]
xor r9d, r9d
mov byte [0x1400e9174], 1
xor edx, edx
call fcn.14002bb30
test eax, eax
je 0x14000f76f
mov r8d, eax
lea rdx, str.USBArbThreadMain
lea rcx, str.USBArb:__s:_Poll_CB_Device_failed_for_USBArbExitThread___d___exiting_n
call fcn.14001dba0
mov eax, 0x47
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov byte [0x1400e9175], 1
call fcn.140007bb0
call fcn.140012480
call qword [sym.imp.ole32.dll_CoUninitialize]
xor ecx, ecx
call fcn.14000e840
lea rcx, str.USBArb:_USBArbThreadMain_exiting_n
call fcn.14001bf60
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14000f7b0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400db748]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rcx, qword [rcx + 8]
xor edi, edi
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x70], edi
mov word [rsp + 0x74], 0x500
call qword [sym.imp.ADVAPI32.dll_ImpersonateNamedPipeClient]
test eax, eax
jne 0x14000f811
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140013250
mov rdx, rax
lea rcx, str.USBArb:_ImpersonateNamedPipeClient_failed:__s___u__n
mov r8d, ebx
call fcn.14001dba0
xor al, al
jmp 0x14000f8c8
lea rax, [rsp + 0x68]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], edi
mov r8d, 0x20
mov dword [rsp + 0x40], edi
mov dl, 2
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x14000f875
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140013250
mov rdx, rax
lea rcx, str.USBArb:_AllocateAndInitializeSid_failed:__s___u__n
mov r8d, ebx
call fcn.14001dba0
jmp 0x14000f8b9
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14000f8ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140013250
mov rdx, rax
lea rcx, str.USBArb:_CheckTokenMembership_failed:__s___u__n
mov r8d, ebx
call fcn.14001dba0
mov dword [rsp + 0x60], edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
je 0x14000f8e6
movzx eax, byte [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006a480
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140013250
mov rdx, rax
lea rcx, str.USBArb:_RevertToSelf_failed:__s___u__n
mov r8d, ebx
call fcn.14002b900
int3
Function at 0x14000f910
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x1400db748]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rdx
mov dword [rsp + 0x40], 0
mov rbx, rcx
movabs rax, 0x6e776f6e6b6e75
xor edx, edx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x68]
mov r8d, 0xf8
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], 0x201
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
test eax, eax
jne 0x14000f9b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140013250
mov rdx, rax
lea rcx, str.USBArb:_Could_not_get_pipe_state:__s___u___n
mov r8d, ebx
call fcn.14001dba0
mov eax, ebx
jmp 0x14000fa6e
mov r8d, dword [rbx + 0x1090]
xor edx, edx
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14000f9f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140013250
mov rdx, rax
lea rcx, str.USBArb:_Error_opening_process:__s___u__n
mov r8d, ebx
call fcn.14001dba0
mov eax, ebx
jmp 0x14000fa6e
mov r8d, dword [rbx + 0x1090]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000fa54
lea r9, [rsp + 0x50]
mov r8d, 8
lea rdx, [rsp + 0x48]
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x14000fa4b
mov rdx, qword [rsp + 0x48]
lea r8, [rsp + 0x60]
mov r9d, 0x100
mov rcx, rbx
call sub.PSAPI.DLL_GetModuleBaseNameA
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x40]
lea r9, [rsp + 0x60]
mov r8, rdi
lea rcx, str.USBArb:_Num_instances:_d__user:_s_client:_s_n
call fcn.14001bf60
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14006a480
mov rbx, qword [rsp + 0x190]
add rsp, 0x170
pop rdi
ret
Function at 0x140012020
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 + 8], rbx
lea rax, [r11 - 0x28]
xor ebx, ebx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rbx
lea rax, [r11 + 0x10]
mov qword [r11 - 0x18], rsi
lea r9, [r11 + 0x20]
mov qword [r11 - 0x40], rax
mov rsi, rcx
lea edx, [rbx + 1]
mov qword [r11 - 0x28], rbx
lea r8d, [rbx + 5]
mov qword [r11 + 0x10], rbx
mov dil, 1
mov qword [r11 + 0x20], rbx
mov qword [r11 - 0x48], rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
test eax, eax
je 0x140012088
mov rdx, rsi
lea rcx, str.Win32Access:_Failed_to_get_the_security_info_for__s_n
call fcn.14001dba0
xor dil, dil
jmp 0x14001219b
call fcn.140011b60
mov rcx, qword [rsp + 0x88]
mov rdx, rax
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400120b9
lea rcx, str.Win32Access:_Default_security_descriptor_owner_check_failed._n
call fcn.14001dba0
xor dil, dil
jmp 0x14001218d
mov rax, qword [rsp + 0x78]
mov ecx, 2
cmp cx, word [rax + 4]
je 0x1400120dd
lea rcx, str.Win32Access:_ACE_number_mismatched._n
call fcn.14001dba0
xor dil, dil
jmp 0x14001218d
mov qword [rsp + 0x58], rbp
call fcn.140011c80
mov rcx, qword [rsp + 0x78]
mov rbp, rax
cmp bx, word [rcx + 4]
jae 0x14001217f
nop dword [rax]
movzx edx, bx
lea r8, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x14001216d
mov rcx, qword [rsp + 0x80]
add rcx, 8
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14001216d
mov rdx, qword [rsp + 0x80]
mov rcx, rbp
add rdx, 8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14001215d
mov rdx, qword [rsp + 0x80]
mov rcx, rsi
add rdx, 8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x14001216d
mov rcx, qword [rsp + 0x78]
inc bx
cmp bx, word [rcx + 4]
jb 0x140012100
jmp 0x14001217f
movzx edx, bx
lea rcx, str.Win32Access:_Default_SID_mismatched_in_ACE._n
call fcn.14001dba0
xor dil, dil
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbp, qword [rsp + 0x58]
test rsi, rsi
je 0x14001219b
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400121b5
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, dil
add rsp, 0x60
pop rdi
ret
Function at 0x1400123b0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor edi, edi
lea rcx, str.ROOTWMI
mov qword [rsp + 0x60], rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, [0x140083328]
mov qword [0x1400ed058], rdi
mov rbx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [0x1400ed060], rax
lea r9, [0x1400af588]
lea rax, [rsp + 0x60]
xor edx, edx
lea r8d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400af578]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x140012460
mov rcx, qword [rsp + 0x60]
lea rdx, [0x1400ed058]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov qword [rsp + 0x30], rdi
mov rdx, rbx
mov rax, qword [rcx]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov rax, qword [rax + 0x18]
call qword [case.0x140007e54.0]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140007e54.0]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140013fe0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov ebp, r8d
mov eax, 0x80000000
mov dword [rsp + 0x60], r15d
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
cmp r8, rax
jae 0x1400140b6
test rbx, rbx
je 0x14001405d
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r14]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x20], r15
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140014095
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140014080
add rdi, rax
sub rbx, rax
jne 0x140014030
test rsi, rsi
je 0x140014065
mov qword [rsi], rbp
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
test rsi, rsi
je 0x14001408e
mov rax, rbp
sub rax, rbx
mov qword [rsi], rax
mov eax, 5
jmp 0x140014067
test rsi, rsi
je 0x1400140a7
mov ecx, dword [rsp + 0x60]
add rcx, rbp
sub rcx, rbx
mov qword [rsi], rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400142a0
jmp 0x140014067
mov r8d, 0x31c
lea rdx, str.boralib_file_fileIOWindows.c
lea rcx, str.VERIFY__s:_d_n
call fcn.14002b900
int3

Function at 0x140014110
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rdx
lea r8, [rsp + 0x30]
mov r14, rcx
xor edx, edx
mov rcx, qword [rcx]
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400141c0
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x1400141c0
mov rcx, qword [r14]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400141c0
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x1400141c0
mov rcx, qword [r14]
mov qword [rsp + 0x38], rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, eax
test eax, eax
jne 0x140014185
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140014189
mov esi, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, qword [r14]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test edi, edi
jne 0x1400141ab
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rdi, qword [rsp + 0x48]
xor al, al
add rsp, 0x20
pop r14
ret