joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140112390
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14011239d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401123ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140112395
lea eax, [rcx + 1]
jmp 0x1401123bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401123ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401123b4
sub eax, 3
jb 0x1401123ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14011243d
sar eax, 1
movsxd rbp, eax
jb 0x140112424
jmp 0x1401123fc
add ebx, ebx
jne 0x1401123fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140112424
inc ecx
add ebx, ebx
jne 0x14011240a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140112424
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14011241d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14011240c
add ecx, 2
jmp 0x140112429
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140112352
jmp 0x14011239d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xbde00
mov dl, 0x31
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14011248d
cmp rsi, rcx
jae 0x140112495
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140112474
cmp al, 0x8f
ja 0x140112474
cmp byte [rsi - 2], 0xf
je 0x14011247a
sub al, 0xe8
cmp al, 1
ja 0x14011245e
cmp rsi, rcx
jae 0x140112495
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140112464
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140112495
lodsb al, byte [rsi]
jmp 0x140112474
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x10f000]
mov eax, dword [rdi]
or eax, eax
je 0x1401124fe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x114fcc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1401124a2
jns 0x1401124d7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1401124e1
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1401124f8
mov qword [rbx], rax
add rbx, 8
jmp 0x1401124c2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140112538
cmp al, 0xef
ja 0x14011252a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14011250a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140112519
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14011258c
sub rsp, 0xffffffffffffff80
jmp 0x14008e9f4
Function at 0x1400010a0
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
sub rsp, 0x468
mov rax, qword [0x14004b008]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.14001c790
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call fcn.14001c790
lea rcx, str.DeleteAthService_Enter___n
call fcn.14000db40
mov r8d, 0x102
lea rdx, [rsp + 0x240]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [0x14003a840]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140020ee4
lea r8, [rsp + 0x240]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140020f4c
lea r8, [0x14003a840]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140020f4c
lea rdx, [rsp + 0x30]
lea rcx, str.DeleteAthService__The_szFilename_is:__s_n
call fcn.14000db40
xor eax, eax
lea r9, str.uninstall
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140001430
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x2a0
mov rax, qword [0x14004b008]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor esi, esi
lea rcx, [rsp + 0x80]
xor edx, edx
mov dword [rsp + 0x50], esi
mov r8d, 0x208
call fcn.14001c790
lea rax, [rsp + 0x78]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareAtheros
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400014e8
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.EnableServiceDebug
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], esi
je 0x140001660
mov qword [rsp + 0x2b0], rbx
lea r8, str.C:AthSvc
mov edx, 0x104
mov qword [rsp + 0x2b8], rdi
lea rcx, [rsp + 0x80]
call fcn.140020ee4
lea rax, [rsp + 0x7c]
mov dword [rsp + 0x60], 0x208
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareAtheros
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400015a0
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.ServiceLogPath
lea rax, [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14004be04], eax
mov ebx, eax
je 0x1400015d5
xor eax, eax
lock cmpxchg dword [0x14004be04], ebx
cmp dword [0x14004be04], ebx
je 0x1400015d5
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x14004be04], ebx
jne 0x1400015b0
lea rdx, [rsp + 0x80]
call fcn.140018c60
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lock cmpxchg dword [0x14004be04], esi
mov edi, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14004be04], eax
mov ebx, eax
je 0x140001635
nop dword [rax]
nop dword [rax + rax]
xor eax, eax
lock cmpxchg dword [0x14004be04], ebx
cmp dword [0x14004be04], ebx
je 0x140001635
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x14004be04], ebx
jne 0x140001610
test edi, edi
mov eax, esi
cmovg eax, edi
mov dword [0x14004be00], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lock cmpxchg dword [0x14004be04], esi
mov rdi, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140019260
add rsp, 0x2a0
pop rsi
ret
Function at 0x140001680
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x14004b008]
xor rax, rsp
mov qword [rsp + 0x250], rax
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
xor edx, edx
mov r8d, 0x1d0
movups xmm1, xmmword [0x14003ac28]
lea rcx, [rsp + 0x78]
xor ebx, ebx
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x14003ac38]
movaps xmmword [rsp + 0x50], xmm1
movsd xmm1, qword [0x14003ac48]
movaps xmmword [rsp + 0x60], xmm0
movsd qword [rsp + 0x70], xmm1
call fcn.14001c790
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], 4
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400017d1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.SwitchRadio
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400017c6
cmp dword [rsp + 0x30], 2
jne 0x1400017c6
lea rcx, str.reset_radio_off_status.__r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
mov edx, ebx
call fcn.14000db40
mov r8d, ebx
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [rbx + 1]
call fcn.140018d20
call fcn.1400097d0
cmp eax, 0x32
jl 0x1400017af
lea rcx, str.DisableRadioHandler__dont_send_check_msg__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableRadioHandler__dont_send_check_msg_n
lea ecx, [rbx + 1]
call fcn.140018d20
mov dword [0x14004be94], ebx
mov ecx, dword [0x14004be70]
xor r9d, r9d
mov r8, rbx
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140019260
add rsp, 0x260
pop rbx
ret
Function at 0x1400017f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x268
mov rax, qword [0x14004b008]
xor rax, rsp
mov qword [rsp + 0x250], rax
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
xor edx, edx
mov r8d, 0x1d0
movups xmm1, xmmword [0x14003ac28]
lea rcx, [rsp + 0x78]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x14003ac38]
movaps xmmword [rsp + 0x50], xmm1
movsd xmm1, qword [0x14003ac48]
movaps xmmword [rsp + 0x60], xmm0
movsd qword [rsp + 0x70], xmm1
call fcn.14001c790
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], 4
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400018bd
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.SwitchRadio
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [rsp + 0x30]
lea rcx, str.The_value_of_SwitchRadio_is__d
call fcn.14000db40
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140019260
add rsp, 0x268
ret

Function at 0x1400018f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x268
mov rax, qword [0x14004b008]
xor rax, rsp
mov qword [rsp + 0x250], rax
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
xor edx, edx
mov r8d, 0x1d0
movups xmm1, xmmword [0x14003ac28]
lea rcx, [rsp + 0x78]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x14003ac38]
movaps xmmword [rsp + 0x50], xmm1
movsd xmm1, qword [0x14003ac48]
movaps xmmword [rsp + 0x60], xmm0
movsd qword [rsp + 0x70], xmm1
call fcn.14001c790
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], 4
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400019bd
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.ReplaceTrayIconDisabled
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [rsp + 0x30]
lea rcx, str.The_value_of_ReplaceTrayIconDisabled_is__d
call fcn.14000db40
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140019260
add rsp, 0x268
ret
Function at 0x1400019f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbp, rcx
lea rcx, str.CommApi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140001ac0
mov qword [rsp + 0x40], rsi
lea rcx, str.Successfully_load_CommApi.dll_n_n
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.InitApi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CallApi
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnInitApi
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test r14, r14
je 0x140001aa8
test rdi, rdi
je 0x140001aa8
test rax, rax
je 0x140001aa8
call rdi
movups xmm0, xmmword [0x14003de78]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rdx, rbp
movaps xmmword [rsp + 0x20], xmm0
call r14
call rsi
lea rcx, str.Successfully_fire_message_to_btvstack_n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
Function at 0x140001e30
Capabilities:
Create thread
Print debug messages
Resume thread

Disassembly:
sub rsp, 0x38
lea rcx, str.Enter_Function_StartCustomThread____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp qword [0x14004be68], 0
je case.default.0x140001e56
lea rcx, str.Enter_condition_pSvc__hWorkEvent___NULL__n
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [0x14004be68], rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14004be78], rax
xor r9d, r9d
lea r8, [0x14000f320]
xor edx, edx
lea rax, [0x14004be70]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14004be60], rax
test rax, rax
je 0x140001ed7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov qword [0x14004be60], 0
mov ecx, dword [0x14004be70]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5b
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rcx, qword [0x14004be68]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140001f42
lea rdx, str.Create_Thread_fails__n
mov ecx, 1
call fcn.140018d20
mov ecx, dword [0x14004be70]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5b
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rcx, qword [0x14004be68]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140001f04
call fcn.1400097d0
cmp eax, 0x14
jl 0x140001f89
cmp qword [0x14004be80], 0
jne 0x140001f89
lea rax, [0x14004be88]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [0x14004be20]
lea r8, [0x140001ad0]
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14004be80], rax
add rsp, 0x38
ret
xchg edi, eax
invalid
push 0x7a
movabs byte [0x32f47c327e5df09e], al
xchg edi, eax
jrcxz 0x14007c047
popfq
cli
movabs eax, dword [0x2444a32c13a2918d]
movabs dword [0x516ad875243a2444], eax
sub al, 0x6d
sbb eax, 0xb55ada37
mov ecx, 0x7ee989c3
invalid
Function at 0x140001f90
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.Enter_Function_StopCustomThread____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1400097d0
xor ebx, ebx
cmp eax, 0x14
jl 0x140001fe8
cmp qword [0x14004be80], rbx
je 0x140001fe8
lea rcx, str.TerminateThread_pSvc__hTimerThread__0___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [0x14004be80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14004be80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14004be80], rbx
cmp qword [0x14004d680], rbx
je 0x140002021
lea rcx, str.TerminateThread_g_hS3S4CheckThread__0___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [0x14004d680]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14004d680]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14004d680], rbx
mov rcx, qword [0x14004be60]
test rcx, rcx
je 0x1400020a3
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 0x103
jne 0x1400020a3
mov ecx, dword [0x14004be70]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5c
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rcx, qword [0x14004be60]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000208f
lea rcx, str.TerminateThread_pSvc__hCustomThread__0___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [0x14004be60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14004be60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14004be60], rbx
mov rcx, qword [0x14004be68]
test rcx, rcx
je 0x1400020bc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14004be68], rbx
mov rcx, qword [0x14004be78]
test rcx, rcx
je 0x1400020d5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14004be78], rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140002310
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x14004b008]
xor rax, rsp
mov qword [rbp + 0x430], rax
movups xmm0, xmmword [rcx]
lea rcx, [rbp + 0x5c]
mov eax, dword [0x14003b7e8]
movaps xmm1, xmmword [0x14003b7b0]
xor edx, edx
movaps xmmword [rbp - 0x80], xmm0
mov r8d, 0x1bc
movaps xmm0, xmmword [str.SOFTWAREAtherosVistaAddOnSupported]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm0, xmmword [0x14003b7c0]
movaps xmmword [rbp + 0x30], xmm0
movsd xmm0, qword [0x14003b7e0]
movaps xmmword [rbp + 0x20], xmm1
movaps xmm1, xmmword [0x14003b7d0]
movsd qword [rbp + 0x50], xmm0
movaps xmmword [rbp + 0x40], xmm1
mov dword [rbp + 0x58], eax
call fcn.14001c790
xor edi, edi
mov dword [rsp + 0x64], 8
xor edx, edx
mov dword [rsp + 0x60], edi
mov r8d, 0x208
lea rcx, [rbp + 0x220]
call fcn.14001c790
lea r8d, [rdi + 0x40]
mov dword [rsp + 0x70], 4
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x140002445
lea rax, [rsp + 0x68]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x10]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002445
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rdi
xor r9d, r9d
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x48], rdi
xor edx, edx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000244c
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400024fb
mov qword [rsp + 0x558], rbx
mov ebx, edi
cmp dword [rsp + 0x60], ebx
jbe 0x1400024e6
xor edx, edx
lea rcx, [rbp + 0x220]
mov r8d, 0x208
call fcn.14001c790
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x64]
lea rax, [rsp + 0x74]
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x220]
lea rax, [rsp + 0x78]
mov edx, ebx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1400024d7
lea rdx, [rbp + 0x220]
lea rcx, [rbp - 0x70]
call fcn.140020d70
test eax, eax
jne 0x1400024d7
cmp dword [rsp + 0x74], 1
je 0x1400024e1
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140002460
jmp 0x1400024e6
mov edi, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x558]
mov eax, edi
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140019260
mov rdi, qword [rsp + 0x560]
add rsp, 0x540
pop rbp
ret
Function at 0x1400040c0
Capabilities:
Create thread
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
sub ecx, 4
je 0x14000415e
sub ecx, 3
je 0x1400040e6
sub ecx, 1
je 0x1400040f3
cmp ecx, 0xa
je 0x1400040f3
xor eax, eax
add rsp, 0x30
pop rbx
ret
lea rcx, str.Enter_case_PBT_APMRESUMESUSPEND__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x14004d698], 0
jne 0x1400041aa
lea rcx, str.System_resume_from_S3_S4__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1400097d0
cmp eax, 0x14
jl 0x140004125
xor ebx, ebx
mov dword [0x14004be90], ebx
mov dword [0x14004be8c], ebx
call fcn.140001680
mov dword [0x14004d698], 1
mov dword [0x14004d568], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14004d570], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14004d560], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
lea r8, [0x140001d20]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov qword [0x14004d680], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.System_enter_S3_S4__n
mov dword [0x14004d690], 1
mov dword [0x14004d698], ebx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1400041c0
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x270
mov rax, qword [0x14004b008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
call fcn.14001c790
test rbp, rbp
je 0x140004315
mov qword [rsp + 0x280], rbx
lea rdx, [rsp + 0x50]
mov r8d, 0x208
mov qword [rsp + 0x290], rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], ebx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x140004311
mov edx, esi
mov qword [rsp + 0x298], rdi
lea ecx, [rbx + 2]
mov dword [rsp + 0x44], ebx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov r9, rax
mov r8d, esi
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea r9, [rsp + 0x44]
mov rcx, rbx
lea r8, [rsp + 0x48]
lea rdx, [0x14003ccfc]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rdx, qword [rsp + 0x48]
mov rcx, rbp
movzx r8d, word [rdx + 0x10]
movzx eax, word [rdx + 0x14]
movzx r9d, word [rdx + 0x12]
movzx edx, word [rdx + 0x16]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov edx, 0x104
mov dword [rsp + 0x20], r8d
lea r8, str._d._d._d._d
call fcn.140001040
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdi, qword [rsp + 0x298]
mov eax, 1
mov rbx, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140019260
add rsp, 0x270
pop rbp
ret
xor eax, eax
jmp 0x1400042e8
xor eax, eax
jmp 0x1400042f8