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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400043b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400043b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140003200
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140003330
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000324b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400032d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003230
mov rcx, rbx
call fcn.140003c50
mov rdi, rax
test rax, rax
je 0x140003352
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003d90
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003337
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400032ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400032e0
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400032ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003190
nop dword [rax]
xor esi, esi
jmp 0x140003258
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003190
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003190
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400038c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000391c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003913
test rsi, rsi
je 0x140003913
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400038f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003c50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003c70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003c78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003c70
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003ccd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003cc4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003c70
add rax, 0x28
cmp rax, r9
jne 0x140003cb0
xor eax, eax
ret

Function at 0x140003cd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a20]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003cef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003cf8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003cef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003d90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003daf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003db8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140003090
Capabilities:
Get local ipv4 addresses

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea r14, [rcx + 0x18]
xor ebx, ebx
mov r15, rcx
mov eax, 0x5dc
xor ecx, ecx
mov dword [rsp + 0x70], eax
mov esi, dword [rsp + 0x70]
mov ebp, 1
mov dword [r14], ecx
mov word [r14 + 4], cx
nop dword [rax]
mov ecx, eax
call fcn.14000af9c
mov rdi, rax
test rax, rax
je 0x14000311e
xor r8d, r8d
lea rax, [rsp + 0x70]
mov r9, rdi
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x10]
lea ecx, [rdx - 0xe]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov esi, eax
cmp eax, 0x6f
jne 0x140003134
mov rcx, rdi
call fcn.14000accc
xor edi, edi
inc ebx
cmp ebx, 3
jae 0x140003204
mov eax, dword [rsp + 0x70]
jmp 0x1400030d0
lea r8, str.Memory_allocation_failed_for_IP_ADAPTER_ADDRESSES_struct
movzx edx, bp
lea rcx, str.P_Sensor
call fcn.140004370
test esi, esi
jne 0x140003204
mov rbx, rdi
test rdi, rdi
je 0x140003230
cmp dword [rbx + 0x64], 0x47
jne 0x140003163
mov rcx, qword [rbx + 0x40]
lea rdx, str.Qualcomm_Atheros
call fcn.14000876c
test rax, rax
jne 0x140003171
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140003148
jmp 0x14000321d
lea rcx, [rbx + 0x50]
test r14, r14
je 0x140003199
test rcx, rcx
je 0x14000318f
mov eax, dword [rcx]
mov dword [r14], eax
movzx eax, word [rcx + 4]
mov word [r14 + 4], ax
jmp 0x1400031a9
xor eax, eax
mov dword [r14], eax
mov word [r14 + 4], ax
call fcn.14000acac
mov dword [rax], 0x16
call fcn.14000ab5c
movzx ecx, byte [r15 + 0x1c]
mov esi, 4
movzx edx, byte [r15 + 0x1b]
movzx r8d, byte [r15 + 0x1a]
movzx eax, byte [r15 + 0x1d]
movzx r10d, byte [r15 + 0x19]
movzx r11d, byte [r14]
mov r9, qword [rbx + 0x40]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, str.P_Sensor
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r8d
lea r8, str.Found_Adapter__ws__02X:_02X:_02X:_02X:_02X:_02X
mov dword [rsp + 0x28], r10d
movzx edx, si
mov dword [rsp + 0x20], r11d
call fcn.140004370
mov ebx, ebp
jmp 0x14000321f
mov r9d, esi
movzx edx, bp
lea r8, str.GetAdaptersAddresses_failed__Error__x_
lea rcx, str.P_Sensor
call fcn.140004370
xor ebx, ebx
test rdi, rdi
je 0x14000322c
mov rcx, rdi
call fcn.14000accc
test ebx, ebx
jne 0x14000324a
lea r8, str.Failed_to_get_adapter_MAC_address.
movzx edx, bp
lea rcx, str.P_Sensor
call fcn.140004370
xor eax, eax
jmp 0x1400032af
cmp qword [0x140029018], 0x10
lea rcx, [section..data]
mov qword [rsp + 0x30], 0
mov edx, 0xc0000000
cmovae rcx, qword [section..data]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [r15 + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x1400032ad
lea r8, str.Failed_to_open_driver_handle.
movzx edx, bp
lea rcx, str.P_Sensor
call fcn.140004370
xor ebp, ebp
mov eax, ebp
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400038b0
Capabilities:
Unmount volume via ioctl

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140029048]
xor rax, rsp
mov qword [rsp + 0x58], rax
movsx esi, dl
lea rcx, [rsp + 0x48]
xor eax, eax
lea rdx, str.._c:
xor ebp, ebp
mov qword [rsp + 0x48], rax
mov r8d, esi
mov word [rsp + 0x50], ax
mov dword [rsp + 0x40], ebp
mov edi, ebp
call fcn.140003840
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x48]
mov r14d, 1
mov dword [rsp + 0x28], ebp
mov r8d, r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000395b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, esi
movzx edx, r14w
lea r8, str.open_file__c_failed__reason0x_x_n
mov dword [rsp + 0x20], eax
lea rcx, str.TF_USB
call fcn.140004370
jmp 0x140003a46
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov edx, 0x90018
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rcx, str.TF_USB
mov edi, eax
test eax, eax
jne 0x1400039ae
mov r9d, dword [rsp + 0x40]
lea r8, str.LOCK_VOLUME_fail_bytes__0x_x_n
movzx edx, r14w
call fcn.140004370
jmp 0x140003a46
mov esi, 4
lea r8, str.LOCK_VOLUME_success_n
movzx edx, si
call fcn.140004370
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov edx, 0x90020
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea r8, str.DISMOUNT_VOLUME_success_n
movzx edx, si
lea rcx, str.TF_USB
call fcn.140004370
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov edx, 0x2d4808
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea r8, str.STORAGE_EJECT_MEDIA_success_n
movzx edx, si
lea rcx, str.TF_USB
call fcn.140004370
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006ab0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140004370
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x140029048]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp dword [0x140029e64], 0
mov rbx, r8
movzx edi, dx
mov rsi, rcx
je 0x14000444a
mov qword [r11 - 0x20], rbp
lea rbp, [r11 + 0x20]
call fcn.140005d70
mov qword [rsp + 0x30], rbp
lea rdx, [rsp + 0x60]
mov r9d, 0xff
xor ebp, ebp
mov qword [rsp + 0x28], rbp
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call fcn.14000d544
lea rax, [rsp + 0x60]
mov byte [rsp + 0x15f], bpl
mov rdx, rsi
mov qword [rsp + 0x50], rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov rbx, rax
test rax, rax
je 0x140004442
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea ecx, [rbp + 1]
mov dword [rsp + 0x30], ebp
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov rcx, rbx
mov qword [rsp + 0x20], rbp
movzx edx, di
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbp, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140006ab0
add rsp, 0x180
pop rdi
pop rsi
pop rbx
ret

Function at 0x140004470
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x178
mov rax, qword [0x140029048]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp dword [0x140029e64], 0
mov rbx, r9
mov esi, r8d
movzx edi, dx
mov rbp, rcx
je 0x14000454d
mov qword [r11 - 0x28], r14
lea r14, [r11 + 0x28]
call fcn.140005d70
mov qword [rsp + 0x30], r14
lea rdx, [rsp + 0x60]
mov r9d, 0xff
xor r14d, r14d
mov qword [rsp + 0x28], r14
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call fcn.14000d544
lea rax, [rsp + 0x60]
mov byte [rsp + 0x15f], r14b
mov rdx, rbp
mov qword [rsp + 0x50], rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov rbx, rax
test rax, rax
je 0x140004545
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea ecx, [r14 + 1]
mov dword [rsp + 0x30], r14d
xor r8d, r8d
mov word [rsp + 0x28], cx
mov r9d, esi
mov rcx, rbx
mov qword [rsp + 0x20], r14
movzx edx, di
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov r14, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140006ab0
add rsp, 0x178
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004940
Capabilities:
Get uefi variable

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140029048]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov rbp, rcx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [rsi + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140004b1a
lea ecx, [rsi + 0x28]
mov qword [rsp + 0x68], rbx
call fcn.14000af9c
lea rdx, str.SeSystemEnvironmentPrivilege
xor ecx, ecx
mov rbx, rax
lea r8, [rax + 4]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140004aea
lea r8, [rbx + 0x10]
xor ecx, ecx
lea rdx, str.SeBackupPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140004aea
lea r8, [rbx + 0x1c]
xor ecx, ecx
lea rdx, str.SeRestorePrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140004aea
mov dword [rbx], 3
lea r9d, [rsi + 0x28]
mov edi, 2
mov qword [rsp + 0x28], rsi
mov dword [rbx + 0xc], edi
mov r8, rbx
mov dword [rbx + 0x18], edi
xor edx, edx
mov dword [rbx + 0x24], edi
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140004adb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004adb
lea r9d, [rsi + 8]
lea r8, [rsp + 0x38]
lea rdx, str.74B00BD9_805A_4D61_B51F_43268123D113
lea rcx, str.QCA_pwrovr
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
mov esi, eax
cmp eax, 8
je 0x140004a83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, esi
movzx edx, di
lea r8, str.Failed_to_read_UEFI_configuration._Status___d__Err___d
mov dword [rsp + 0x20], eax
lea rcx, str.P_Sensor
call fcn.140004370
mov rcx, rbx
call fcn.14000accc
xor eax, eax
jmp 0x140004ab9
movzx eax, byte [rsp + 0x3c]
lea r8, str.UEFI_IfType___d.
mov byte [rbp + 0x178], al
lea rcx, str.P_Sensor
mov r9d, eax
mov eax, 4
movzx edx, ax
call fcn.140004370
mov rcx, rbx
call fcn.14000accc
mov eax, 1
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006ab0
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.AdjustTokenPrivileges_failed__Err___d_n
jmp 0x140004afc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Failed_to_LookupPrivilegeValue__Err___d_n
mov edi, 2
mov r9d, eax
movzx edx, di
lea rcx, str.P_Sensor
call fcn.140004370
mov rcx, rbx
call fcn.14000accc
xor eax, eax
jmp 0x140004ab9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 2
lea r8, str.OpenProcessToken_failed__Err___d_n
mov r9d, eax
movzx edx, di
lea rcx, str.P_Sensor
call fcn.140004370
xor eax, eax
jmp 0x140004abe
Function at 0x1400054f0
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x140029048]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r14, rcx
xor r9d, r9d
mov ecx, 0x52534d42
xor r8d, r8d
xor edx, edx
mov ebp, 0xc0000001
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov ebx, eax
test eax, eax
je 0x1400056e7
mov r15d, 4
lea r8, str.WmiQueryAllSmbiosData_iBufferSizeNeeded_d_n
movzx edx, r15w
lea rcx, str.QCA_WLAN_Service
mov r9d, ebx
call fcn.140004370
mov ecx, ebx
call fcn.14000af9c
mov rsi, rax
test rax, rax
je 0x1400056e7
mov r9d, ebx
mov r8, rax
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov ecx, eax
test eax, eax
jne 0x140005596
mov rcx, rsi
call fcn.14000accc
jmp 0x1400056e7
mov qword [rsp + 0x178], rdi
lea rax, [rsi + rcx]
mov edi, dword [rsi + 4]
add rdi, 8
add rdi, rsi
cmp rdi, rax
jbe 0x1400055bb
mov ebp, 0xc0010015
jmp 0x1400056d7
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x108
call fcn.1400083e0
lea rbx, [rsi + 8]
test rbx, rbx
je 0x140005617
lea rax, [rsi + 0xc]
cmp rax, rdi
ja 0x140005617
nop
cmp byte [rbx], 1
je 0x140005619
movzx eax, byte [rbx + 1]
add rbx, rax
cmp rbx, rdi
ja 0x140005617
lea rax, [rbx + 2]
cmp rax, rdi
ja 0x140005617
cmp byte [rbx], 0
jne 0x140005605
cmp byte [rbx + 1], 0
je 0x14000560a
inc rbx
jmp 0x1400055f1
add rbx, 2
lea rax, [rbx + 4]
cmp rax, rdi
jbe 0x1400055e0
xor ebx, ebx
mov r9, rbx
movzx edx, r15w
lea r8, str.type_buf0x_p._n
lea rcx, str.QCA_WLAN_Service
call fcn.140004370
test rbx, rbx
je 0x1400056c0
mov edx, dword [rsi + 4]
lea r8, [rsp + 0x30]
add rdx, 8
mov word [rsp + 0x30], 0x506
add rdx, rsi
mov rcx, rbx
call fcn.140005b70
mov edi, eax
test eax, eax
je 0x1400056c0
lea rbx, [r14 + 4]
mov dword [r14], edi
mov r8d, edi
test rbx, rbx
jne 0x140005681
call fcn.14000acac
mov dword [rax], 0x16
call fcn.14000ab5c
jmp 0x14000568e
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140007fd0
mov dword [rsp + 0x28], edi
lea r9, str.smbios_data_read
lea r8, str._s__s_size_d_n
movzx edx, r15w
lea rcx, str.QCA_WLAN_Service
mov qword [rsp + 0x20], rbx
call fcn.140004370
xor ebp, ebp
lea r8, str.SmbiosReadData_read_succeeded._n
jmp 0x1400056c7
lea r8, str.SmbiosReadData_read_failed._n
movzx edx, r15w
lea rcx, str.QCA_WLAN_Service
call fcn.140004370
mov rcx, rsi
call fcn.14000accc
mov rdi, qword [rsp + 0x178]
mov eax, ebp
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140006ab0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rsi
ret
Function at 0x140005720
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor esi, esi
mov rcx, qword [rcx + 0x190]
test rcx, rcx
je 0x14000574d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x190], rsi
mov rcx, qword [rbx + 0x198]
test rcx, rcx
je 0x140005766
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x198], rsi
mov rcx, qword [rbx + 0x1a0]
test rcx, rcx
je 0x14000577f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x1a0], rsi
mov rcx, qword [rbx + 0x1b0]
test rcx, rcx
je 0x140005798
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x1b0], rsi
mov rcx, qword [rbx + 0x1a8]
test rcx, rcx
je 0x1400057b1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x1a8], rsi
mov rdi, qword [rbx + 0x180]
test rdi, rdi
je 0x1400057d9
mov rcx, rdi
call fcn.1400025e0
mov edx, 0x38
mov rcx, rdi
call fcn.1400064b4
mov qword [rbx + 0x180], rsi
mov rcx, qword [rbx + 0x1b8]
test rcx, rcx
je 0x1400057fe
mov edx, 0xa8
mov qword [rcx + 0x10], 0xffffffffffffffff
call fcn.1400064b4
mov qword [rbx + 0x1b8], rsi
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140005817
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0x50], 0xffffffffffffffff
mov eax, 4
lea r8, str.m_hPSensorEvent_Thread_terminated.
movzx edx, ax
lea rcx, str.P_Sensor
call fcn.140004370
call qword [sym.imp.OLE32.dll_CoUninitialize]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x38]
mov eax, 1
mov qword [rbx + 0x58], 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000dbec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000da18
Function at 0x140002712
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140002731
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14000ebd0
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140008580
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000e5c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000e5c0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400085f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001d1e4]
mov rbx, rcx
test esi, esi
jle 0x140008720
mov rax, qword [0x14001d1e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000863b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400086c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140008620
mov rcx, rbx
call fcn.140009040
mov rdi, rax
test rax, rax
je 0x140008742
mov rax, qword [0x14001d1e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140009180
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001d1e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140008727
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400086be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400086d0
add dword [0x14001d1e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14001d1e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400086be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140008580
nop dword [rax]
xor esi, esi
jmp 0x140008648
mov rax, qword [0x14001d1e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140008580
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140008580
nop
nop word cs:[rax + rax]
nop dword [rax]