joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001730
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
lea rax, [rcx + 0x420]
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x40]
lea rdx, str.Flags
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x40]
lea rax, [rbx + 0x424]
lea rdx, [0x1401b6e28]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400017c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
lea rax, [rcx + 0x420]
mov rdi, rcx
lea rdx, str.Flags
mov r9d, 4
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea r11, [rdi + 0x424]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r11
lea rdx, [0x1401b6e28]
repne scasw ax, word [rdi]
mov r9d, 1
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140001850
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r10, rdx
test rdx, rdx
je 0x140001889
lea rax, [rcx + 0x420]
lea rdx, str.DisconnectDevices
mov r9d, 4
xor r8d, r8d
mov rcx, r10
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140001890
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov r10, rdx
mov dword [rsp + 0x48], 4
test rdx, rdx
je 0x1400018d0
lea rax, [rcx + 0x420]
lea rcx, [rsp + 0x48]
lea rdx, str.DisconnectDevices
mov qword [rsp + 0x28], rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret
Function at 0x140001960
Capabilities:
Query service status
Start service

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1401f0b90]
xor rax, rsp
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400019ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.StartBTWDINS:_OpenSCManager_failed___d_
mov edx, eax
call fcn.1400052e0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14013f9a0
add rsp, 0x70
pop rbx
ret
lea rdx, str.BTWDINS
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x80], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x1400019f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.StartBTWDINS:_BTWDINS_OpenService_failed___d_
mov edx, eax
call fcn.1400052e0
jmp 0x140001a95
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140001a33
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.StartBTWDINS:_BTWDINS_QueryServiceStatusEx_failed___d_
mov edx, eax
call fcn.1400052e0
jmp 0x140001a8c
mov edx, dword [rsp + 0x3c]
cmp edx, 4
jne 0x140001a45
lea rcx, str.StartBTWDINS:_BTWDINS_service_is_running_already__
jmp 0x140001a87
cmp edx, 1
je 0x140001a58
lea rcx, str.StartBTWDINS:_BTWDINS_service_is_not_stopped:_in_0x_x_state
call fcn.1400052e0
jmp 0x140001a8c
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140001a80
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.StartBTWDINS:_BTWDINS_StartService_failed___d__n
mov edx, eax
call fcn.1400052e0
jmp 0x140001a8c
lea rcx, str.StartBTWDINS:_BTWDINS_service_started_successfully
call fcn.1400052e0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14013f9a0
add rsp, 0x70
pop rbx
ret
Function at 0x140002050
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rbx, rcx
lea rdx, str.btwpanfl
lea rcx, str.InstallServiceDriver:_installing__S_service
call fcn.1400052e0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x1400020ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.InstallServiceDriver:_OpenSCManager_failed__u
mov edx, eax
call fcn.1400052e0
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
xor eax, eax
lea r8, str.BTW_PAN_filter_driver
lea rdx, str.btwpanfl
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 1
mov r9d, 0xf01ff
mov rcx, rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x80], rsi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x14000214c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x431
jne 0x140002129
lea rcx, str.InstallServiceDriver:__S_service_installed_already
jmp 0x140002153
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str.InstallServiceDriver:_CreateService_failed__u
mov edx, ebx
call fcn.1400052e0
xor eax, eax
jmp 0x140002176
lea rcx, str.InstallServiceDriver:__S_service_installed
lea rdx, str.btwpanfl
call fcn.1400052e0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140003c90
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rcx, str.InstallDrivers_start
call fcn.1400052e0
lea r11, [rsp + 0x48]
lea rdx, str.SOFTWAREWidcommInstall
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003d39
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.INSTALLDIR
mov qword [rsp + 0x28], rax
lea rax, [0x1401fdd60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x40], 0x1cc
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
xor ebx, ebx
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
je 0x140003d39
call fcn.140002eb0
lea rcx, str.InstallDrivers_done
call fcn.1400052e0
xor eax, eax
add rsp, 0x38
ret
lea rcx, str.GetBtwInstallFolder_failed
call fcn.1400052e0
lea rcx, str.InstallDrivers_done
call fcn.1400052e0
xor eax, eax
add rsp, 0x38
ret

Function at 0x140003d90
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401f0b90]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, str.BcmBtRSupport
mov qword [rsp + 0x20], rax
lea rax, [0x140003ee0]
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
mov eax, dword [0x1401b91dc]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1401b91e0]
mov word [rsp + 0x44], ax
test rbx, rbx
je 0x140003eae
cmp word [rbx], 0
je 0x140003eae
lea rax, [rsp + 0x40]
movzx edx, word [rax]
test dx, dx
je 0x140003e1b
cmp word [rbx], dx
je 0x140003e31
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
test rax, rax
jne 0x140003e00
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
test rax, rax
jne 0x140003df1
jmp 0x140003eae
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
test rax, rax
je 0x140003eae
lea rdx, str.UnregServer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140003e6e
call fcn.1400044b0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14013f9a0
add rsp, 0x50
pop rbx
ret
lea rdx, str.RegServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140003e9a
call fcn.140004240
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14013f9a0
add rsp, 0x50
pop rbx
ret
lea rdx, str.Service
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140003e82
lea rcx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140003ec9
lea rcx, str.StartServiceCtrlDispatcher_failed.
call fcn.1400052e0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14013f9a0
add rsp, 0x50
pop rbx
ret
Function at 0x140004240
Capabilities:
Create service
Modify service
Persist via windows service
Query or enumerate registry value

Disassembly:
sub rsp, 0x6b8
mov rax, qword [0x1401f0b90]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
lea rdx, [rsp + 0x2a0]
mov r8d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140004297
lea rcx, str.CmdInstallService___Path_not_found_n
call fcn.1400052e0
lea rdx, [0x1401b9320]
lea rcx, str.Unable_to_install__s_n
call fcn.140140c88
jmp 0x140004489
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x6b0], rdi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140004459
mov qword [rsp + 0x6c0], rbx
xor ebx, ebx
lea rax, [0x1401b6cdc]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
lea r8, [0x1401b9320]
lea rdx, str.BcmBtRSupport
mov r9d, 0xf01ff
mov rcx, rdi
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x6c8], rsi
mov dword [rsp + 0x20], sendto
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
je 0x140004416
lea rax, str.Manages_the_Bluetooth_radio_state.
nop word [rax + rax]
movzx ecx, word [rbx + rax]
add rbx, 2
mov word [rsp + rbx + 0x8e], cx
test cx, cx
jne 0x140004350
lea rax, [rsp + 0x78]
lea rdx, str.SoftwareWidcommBtConfigGeneral
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400043d2
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
lea rdx, str.BtwRSupportServiceDescription
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x70], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x90]
lea r8, [rsp + 0x80]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x80], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea rdx, [0x1401b9320]
lea rcx, str._s_installed._n
call fcn.140140c88
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000443e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateService_failed____x_n
mov edx, eax
call fcn.1400052e0
call fcn.140004180
lea rcx, str.CreateService_failed____s_n
mov rdx, rax
call fcn.140140c88
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x6c8]
mov rbx, qword [rsp + 0x6c0]
jmp 0x140004481
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed____x_n
mov edx, eax
call fcn.1400052e0
call fcn.140004180
lea rcx, str.OpenSCManager_failed____s_n
mov rdx, rax
call fcn.140140c88
mov rdi, qword [rsp + 0x6b0]
xor eax, eax
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.14013f9a0
add rsp, 0x6b8
ret
Function at 0x1400044b0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140004685
lea rdx, str.BcmBtRSupport
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140004647
lea r8, [0x1401fe198]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400045c1
lea rdx, [0x1401b9320]
lea rcx, str.Stopping__s.
call fcn.140140c88
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x1401fe198]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140004586
nop dword [rax + rax]
mov eax, dword [0x1401fe19c]
cmp eax, 3
jne 0x14000458c
lea rcx, [0x1401b9594]
call fcn.140140c88
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x1401fe198]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140004550
mov eax, dword [0x1401fe19c]
cmp eax, 1
jne 0x14000459a
lea rcx, [0x1401b9598]
jmp 0x1400045b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.StopService_failed___x_n
mov edx, eax
call fcn.1400052e0
lea rcx, str._n_s_failed_to_stop._n
lea rdx, [0x1401b9320]
call fcn.140140c88
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140004600
lea rdx, [0x1401b9320]
lea rcx, str._s_removed._n
call fcn.140140c88
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DeleteService_failed___x_n
mov edx, eax
call fcn.1400052e0
call fcn.140004180
lea rcx, str.DeleteService_failed____s_n
mov rdx, rax
call fcn.140140c88
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed____x_n
mov edx, eax
call fcn.1400052e0
call fcn.140004180
lea rcx, str.OpenService_failed____s_n
mov rdx, rax
call fcn.140140c88
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
call fcn.140004180
lea rcx, str.OpenSCManager_failed____s_n
mov rdx, rax
call fcn.140140c88
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400049d0
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rcx, str.D:_A_OICI_GA___SY__A_OICI_GA___BA__A_OICI_GA___CO__A_OICI_GA___IU__A_OICI_GA___LS_
lea edx, [rbx + 1]
xor r9d, r9d
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x40], 0x18
mov qword [rsp + 0x48], rbx
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
lea r11, [rsp + 0x40]
lea r9d, [rbx + 1]
lea r8d, [rbx + 6]
mov qword [rsp + 0x38], r11
mov dword [rsp + 0x30], 0x3e8
lea rcx, str..pipeBtwRSupportServicePipe
mov edx, 0x40000003
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rcx, qword [rsp + 0x48]
mov rbx, rax
test rcx, rcx
je 0x140004a4f
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rbx
add rsp, 0x60
pop rbx
ret
Function at 0x1400050e0
Capabilities:
Print debug messages
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x1401f0b90]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp dword [0x1401fe1f4], 0
mov edi, edx
mov rbx, rcx
je 0x140005113
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp qword [0x1401f2a10], 0xffffffffffffffff
jne 0x14000512b
cmp word [0x1401fe200], 0
je 0x1400052b7
mov rax, qword [str.BtwRSupportSrvc:]
mov qword [rsp + 0x478], rbp
xor ebp, ebp
mov qword [rsp + 0x68], rax
mov rax, qword [0x1401b9d58]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x70], rax
movzx eax, word [0x1401b9d60]
mov qword [rsp + 0x30], rbp
mov word [rsp + 0x78], ax
lea rax, [rsp + 0x71]
or r9d, 0xffffffff
mov r8, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x3d7
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add di, 9
cmp qword [0x1401f2a10], 0xffffffffffffffff
mov word [rsp + 0x60], bp
mov word [rsp + 0x62], di
mov word [rsp + 0x64], bp
je 0x140005204
mov ecx, dword [0x1401fe1f0]
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov eax, 2
mov word [rsp + 0x40], ax
mov eax, 0x2694
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_ntohl]
movzx r8d, word [rsp + 0x62]
mov rcx, qword [0x1401f2a10]
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x60]
add r8d, 0x11
xor r9d, r9d
mov dword [rsp + 0x28], sendto
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
cmp word [0x1401fe200], bp
je 0x1400052af
lea rdx, [0x1401b9d64]
lea rcx, [0x1401fe200]
mov qword [rsp + 0x480], rsi
call fcn.140140e14
mov rsi, rax
test rax, rax
je 0x1400052a7
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5c]
movzx r9d, word [rsp + 0x5a]
movzx r8d, word [rsp + 0x58]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea rdx, [0x1401b9d68]
mov rcx, rsi
call fcn.140140e20
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
test ecx, ecx
jle 0x140005294
movsxd rax, ecx
cmp word [rbx + rax*2 - 2], 0xa
je 0x140005294
mov dword [rbx + rax*2], 0xa
mov rdx, rsi
mov rcx, rbx
call fcn.140140eb4
mov rcx, rsi
call fcn.140140fe8
mov rsi, qword [rsp + 0x480]
mov rbp, qword [rsp + 0x478]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14013f9a0
mov rbx, qword [rsp + 0x488]
add rsp, 0x460
pop rdi
ret
Function at 0x140005350
Capabilities:
Initialize winsock library
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x210
mov rax, qword [0x1401f0b90]
xor rax, rsp
mov qword [rsp + 0x200], rax
lea rax, [rsp + 0x38]
lea rdx, str.SoftwareWidcommBTConfigDebug
xor edi, edi
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000545e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.LogIPAddr
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [0x1401fe1f0]
lea rdx, str.LogFileName
test eax, eax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x103
cmove ecx, dword [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [0x1401fe200]
mov dword [0x1401fe1f0], ecx
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1401fe1f4]
lea rdx, str.BtwRSupportTraceFlag
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1401fe1f0], edi
je 0x1400054c9
mov qword [rsp + 0x220], rbx
mov ebx, 2
lea rdx, [rsp + 0x60]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400054c1
xor r8d, r8d
mov edx, ebx
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x1401f2a10], rax
cmp rax, 0xffffffffffffffff
je 0x1400054c1
xor ecx, ecx
lea r8d, [rbx + 0xe]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
mov rcx, rax
mov qword [rsp + 0x48], rbx
call qword [sym.imp.WS2_32.dll_bind]
mov rbx, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14013f9a0
add rsp, 0x210
pop rdi
ret

Function at 0x140009e7c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140009edf
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009ef3
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140009ef3
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x140009ef8
cmp dword [rcx + 8], 0
je 0x140009ef3
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140009ef8
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000d0e4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140015b8c
mov rsi, rax
test rax, rax
je 0x14000d160
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14000d15b
cmp dword [rbx], 0x40
jb 0x14000d15b
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14000d15b
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14000d164
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140015158
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400151c0
call fcn.140007224
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400151c0
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400151e2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140014b44
mov esi, eax
test rdi, rdi
je 0x1400151e0
test rbx, rbx
je 0x1400151e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret