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

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x140100c14
cmp r8d, 0xff
jne 0x140100b51
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x140100b3b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x1413d0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400dd150
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400dd150
cmp r8d, 0xfb
jne 0x140100b63
lea r9, str.WILL
jmp 0x140100ba1
cmp r8d, 0xfc
jne 0x140100b75
lea r9, str.WONT
jmp 0x140100ba1
cmp r8d, 0xfd
jne 0x140100b87
lea r9, [0x140141df4]
jmp 0x140100ba1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x140100bfd
cmp r10d, 0x27
jg 0x140100bd4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x1419f0]
test r8, r8
jne 0x140100be4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400dd150
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x140100bbb
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400dd150
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400dd150
add rsp, 0x38
ret

Function at 0x140100f60
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140100fbf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400dcfd0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140100af0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140101170
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140101318
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1401011d5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1401011d5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401011d5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14010120c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140101262
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140101262
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140101262
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140101262
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140101262
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140100c20
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1401012c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400dcfd0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140100ff0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140101310
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400dcfd0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140102a80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401be0c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140102b15
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140102b76
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400dcfd0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140115ce0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140102c31
sub ecx, 1
je 0x140102ca4
sub ecx, 1
je 0x140102be0
cmp ecx, 1
je 0x140102bc3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1401a95c8]
call fcn.1400dcfd0
jmp 0x140102ca4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1401027b0
test eax, eax
je 0x140102ca4
jmp 0x140102b4a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140102ca4
sub rax, rsi
cmp rax, rbp
jae 0x140102ca4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400dd150
jmp 0x140102ca4
cmp r8d, 4
jle 0x140102ca4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140102ca4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400dcef0
mov esi, eax
test eax, eax
je 0x140102c83
mov edx, 5
mov rcx, rbx
call fcn.140103770
mov eax, esi
jmp 0x140102b4a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400eb9d0
mov rcx, r14
call fcn.1400ebcb0
test eax, eax
je 0x140102b48
mov edx, 5
mov rcx, rbx
call fcn.140103770
mov eax, Ordinal_46
jmp 0x140102b4a
Function at 0x140115a40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140115a82
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140115ac9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140115b22
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140115ae0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140115b63
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140144f82]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140144f83]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140115b30
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140116c88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140116cd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140116cd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140116cd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140116cd2
cmp dword [rcx + 0x84], 0xe
jbe 0x140116cd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140116cd4
xor al, al
add rsp, 0x28
ret
Function at 0x140001120
Capabilities:
Get session information
Get session user name

Disassembly:
sub rsp, 0x278
mov rax, qword [0x14000d208]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x200
mov word [rsp + 0x50], 0
call fcn.140002270
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], 0x202
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14000118e
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140002240
add rsp, 0x278
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x30]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x14000116e
mov edx, dword [rsp + 0x30]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x38]
mov r8d, 5
xor ecx, ecx
mov qword [rsp + 0x20], rax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x14000116e
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x140001201
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140002240
add rsp, 0x278
ret
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140002240
add rsp, 0x278
ret

Function at 0x140001320
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
lea rdx, str.AS.exe
lea rcx, [rsp + 0x40]
call fcn.140001020
test eax, eax
je 0x140001366
lea rax, [0x14000e2e0]
lea r8, str.AS.exe
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
add rsp, 0x38
ret

Function at 0x140001370
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x38]
mov ebx, r9d
mov rdi, r8
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400013dc
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x1400013e9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140001400
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x40
mov edi, dword [rsp + 0x80]
mov rbx, r9
mov r12, r8
test edi, edi
mov r13, rdx
mov r14, rcx
jne 0x140001432
xor eax, eax
jmp 0x1400014d6
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x60], rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r9d, 1
xor r8d, r8d
lea esi, [rax + 1]
lea rax, [rsp + 0x30]
mov rdx, r13
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400014a7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x80], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1400014c3
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jbe 0x1400014b0
mov byte [rbx], 0
jmp 0x1400014ce
mov rdx, qword [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1400014ce
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
ret

Function at 0x140001500
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
sub rsp, 0x38
test rdx, rdx
mov rbx, rdx
mov rsi, rcx
je 0x14000151d
test rcx, rcx
jne 0x140001526
mov dword [rdx], 0xfffffff7
xor eax, eax
add rsp, 0x38
pop rsi
pop rbx
ret
lea rax, [rsp + 0x68]
lea rdx, str.SOFTWAREWow6432NodeTOSHIBABluetoothStackV1.0
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor edi, edi
test eax, eax
je 0x140001560
mov dword [rbx], 0xfffffffe
jmp 0x1400015c9
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea rdx, str.Language
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1400015a0
mov dword [rbx], 0xfffffffe
jmp 0x1400015b9
mov ecx, dword [rsp + 0x60]
call fcn.1400014f0
test eax, eax
jne 0x1400015b5
mov dword [rbx], 0xffffffff
jmp 0x1400015b9
mov dword [rsi], ecx
mov dword [rbx], edi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400015c9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx], edi
sete dil
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop rsi
pop rbx
ret
Function at 0x140001960
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
sub rsp, 0x38
call fcn.140001b30
test eax, eax
jne 0x140001b21
call fcn.140001120
test eax, eax
je 0x140001986
call fcn.140001230
xor eax, eax
add rsp, 0x38
ret
lea r8, str.TosBtProc1.exe
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001b13
lea r8, str.Install
lea rdx, str.SoftwareWow6432NodeToshibaBluetoothStackV1.0
xor r9d, r9d
mov rcx, 0xffffffff80000002
call fcn.140001370
test eax, eax
je 0x1400019db
call fcn.140001320
jmp 0x140001b0a
call fcn.1400015e0
call fcn.140001660
test eax, eax
je 0x140001b0a
call fcn.140001860
test eax, eax
jne 0x140001a03
lea ecx, [rax + 2]
call fcn.1400016b0
jmp 0x140001b0a
lea r8, str.BIEIconPositionNo
lea rdx, str.SoftwareToshibaBluetoothStackV1.0TosBtExt
mov r9d, 1
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
call fcn.140001370
sub eax, 1
je 0x140001ab1
cmp eax, 1
je 0x140001a83
lea r8, str.::45C6AFA5_2C13_402f_BC5D_45CC8172EF6B
lea rdx, str.open
xor edi, edi
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp rax, 0x20
ja 0x140001b05
call fcn.1400012a0
test eax, eax
jne 0x140001a7a
lea r8, str.::208D2C60_3AEA_1069_A2D7_08002B30309D::45C6AFA5_2C13_402f_BC5D_45CC8172EF6B
jmp 0x140001ae6
lea r8, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D::45C6AFA5_2C13_402f_BC5D_45CC8172EF6B
jmp 0x140001ae6
lea r8, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D::45C6AFA5_2C13_402f_BC5D_45CC8172EF6B
lea rdx, str.open
xor edi, edi
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp rax, 0x20
jmp 0x140001add
lea r8, str.::208D2C60_3AEA_1069_A2D7_08002B30309D::45C6AFA5_2C13_402f_BC5D_45CC8172EF6B
lea rdx, str.open
xor edi, edi
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp rax, 0x20
ja 0x140001b05
lea r8, str.::45C6AFA5_2C13_402f_BC5D_45CC8172EF6B
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rdi, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x38
ret
Function at 0x140001ba0
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
sub rsp, 0x108
mov rax, qword [0x14000d208]
mov qword [rsp + 0xf0], rax
mov qword [r11 + 0x10], rbp
xor ebp, ebp
lea rcx, [r11 - 0x87]
lea r8d, [rbp + 0x63]
xor edx, edx
mov qword [r11 + 0x18], rsi
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x68], rbp
mov byte [rsp + 0x80], bpl
call fcn.140002270
lea r11, [rsp + 0x80]
mov byte [rsp + 0x78], bpl
mov qword [rsp + 0x70], r11
mov byte [rsp + 0x79], bpl
mov byte [rsp + 0x7a], bpl
mov byte [rsp + 0x7b], bpl
mov byte [rsp + 0x7c], bpl
mov byte [rsp + 0x7d], 5
mov rsi, rbp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
lea edx, [rbp + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001d35
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea edx, [rbp + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140001d35
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140001d35
mov edx, dword [rsp + 0x60]
lea ecx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rsi, rax
je 0x140001d35
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea edx, [rbp + 2]
mov r8, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140001d35
lea rax, [rsp + 0x70]
lea r8d, [rbp + 0x20]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], ebp
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140001d35
cmp dword [rsi], ebp
mov qword [rsp + 0x110], rbx
mov ebx, ebp
jbe 0x140001d2d
mov qword [rsp + 0x128], rdi
lea rdi, [rsi + 8]
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140001d20
inc ebx
add rdi, 0x10
cmp ebx, dword [rsi]
jb 0x140001d02
jmp 0x140001d25
mov ebp, 1
mov rdi, qword [rsp + 0x128]
mov rbx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140001d45
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140001d55
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test rsi, rsi
je 0x140001d63
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rsi, qword [rsp + 0x120]
mov eax, ebp
mov rbp, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xf0]
call fcn.140002240
add rsp, 0x108
ret
Function at 0x140001db0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
xor edi, edi
mov ebx, 0x20019
call fcn.140002080
mov rdx, qword [str.SOFTWAREToshibaBluetoothStack]
test eax, eax
mov ecx, 0x20219
lea rax, [rsp + 0x30]
cmove ebx, ecx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rbx, qword [rsp + 0x60]
test eax, eax
je 0x140001e0d
xor eax, eax
mov rdi, qword [rsp + 0x68]
add rsp, 0x48
ret
mov rdx, qword [str.ItAdmin]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001e55
cmp dword [rsp + 0x50], edi
mov eax, 1
cmova edi, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rdi, qword [rsp + 0x68]
add rsp, 0x48
ret
Function at 0x140001e70
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
mov rdi, rcx
mov ebx, 0x20019
call fcn.140002080
mov rdx, qword [str.SOFTWAREToshibaBluetoothStackV1.0Admin]
test eax, eax
mov ecx, 0x20219
lea rax, [rsp + 0x38]
cmove ebx, ecx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140001ece
xor eax, eax
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x48
ret
mov rdx, qword [str.DisableRadio]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001f12
mov eax, dword [rsp + 0x58]
mov dword [rdi], eax
mov rdx, qword [str.HideFunctionality]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001f55
mov eax, dword [rsp + 0x58]
mov dword [rdi + 4], eax
mov rdx, qword [str.DisableLimitedUser]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001f98
mov eax, dword [rsp + 0x58]
mov dword [rdi + 8], eax
mov rdx, qword [str.ProtectLimitedUser]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001fdb
mov eax, dword [rsp + 0x58]
mov dword [rdi + 0xc], eax
mov rdx, qword [str.LimitServices]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000201e
mov eax, dword [rsp + 0x58]
mov dword [rdi + 0x10], eax
mov rdx, qword [str.DisableServices]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140002061
mov eax, dword [rsp + 0x58]
mov dword [rdi + 0x14], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov eax, 1
add rsp, 0x48
ret
Function at 0x140002080
Capabilities:
Check os version

Disassembly:
sub rsp, 0xd8
mov rax, qword [0x14000d208]
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x90
call fcn.140002270
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
jne 0x1400020ea
cmp dword [rsp + 0x24], 5
jne 0x1400020ea
cmp dword [rsp + 0x28], 0
jne 0x1400020ea
mov eax, 1
mov rcx, qword [rsp + 0xc0]
call fcn.140002240
add rsp, 0xd8
ret
xor eax, eax
mov rcx, qword [rsp + 0xc0]
call fcn.140002240
add rsp, 0xd8
ret