joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fac10
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0
mov rbx, rcx
je 0x1400fac29
mov eax, 1
add rsp, 0x20
pop rbx
ret
lea rcx, str.SRCOM64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx + 8], rax
je 0x1400fade0
lea rdx, str.sffxInit
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxFree
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetPower
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetPower
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetUserControlValue
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetUserControlValue
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxResetPreset
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetPreset
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetPreset
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetNumPresets
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetDefaultPlaybackDevice
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetSelectedPlaybackDevice
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetNumPlaybackDevices
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetPlaybackDeviceIndex
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetJackState
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetJackState
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetNumJackStates
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetJackStateInfo
mov qword [rbx + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x98], rax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400fade0
call rax
cmp eax, 0x80000001
je 0x1400fade0
mov dword [rbx], 1
mov eax, dword [rbx]
add rsp, 0x20
pop rbx
ret
Function at 0x1400fc4a0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rsi
mov rsi, r8
cmp dword [rcx + 0x38], 0
jne 0x1400fc4ee
mov rdx, qword [r8]
sub rdx, 0x18
or edi, 0xffffffff
lock xadd dword [rdx + 0x10], edi
add edi, 0xffffffff
test edi, edi
jg 0x1400fc5e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400fc5e8
mov rcx, qword [rcx + 0x40]
test rcx, rcx
jne 0x1400fc51f
mov rdx, qword [r8]
sub rdx, 0x18
or edi, 0xffffffff
lock xadd dword [rdx + 0x10], edi
add edi, 0xffffffff
test edi, edi
jg 0x1400fc5e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400fc5e8
or edi, 0xffffffff
test edx, edx
jne 0x1400fc5cc
call qword [sym.imp.SECOMN64.dll_SEAPOCOMAPI_GetLastError]
mov ebx, eax
call fcn.14013e120
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x1400fc551
mov ecx, 0x80004005
call fcn.140001c70
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
cmp ebx, 0xffffff00
jne 0x1400fc58a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rsi]
lea rdx, str._s_WinError___d_n
lea rcx, [rsp + 0x40]
call fcn.140001df0
jmp 0x1400fc5a1
mov r9d, ebx
mov r8, qword [rsi]
lea rdx, str._s_Error___d_n
lea rcx, [rsp + 0x40]
call fcn.140001df0
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400fc5cc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
add edi, 0xffffffff
test edi, edi
jg 0x1400fc5e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140104fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rbp, rdx
xor edx, edx
mov rbx, r8
mov rsi, rcx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x64]
call fcn.1401601f0
lea r8, str.WAVE
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rbx, rbx
mov rdi, rax
je 0x1401051cd
test rax, rax
je 0x1401051cd
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rdx, [rsp + 0x20]
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x24], 0x204d454d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], edi
call qword [sym.imp.WINMM.dll_mmioOpenW]
lea rdx, [rsi + 0x260]
mov r9d, 0x20
xor r8d, r8d
mov rcx, rax
mov rbx, rax
mov dword [rsi + 0x268], 0x45564157
call qword [sym.imp.WINMM.dll_mmioDescend]
mov rcx, rbx
test eax, eax
jne 0x1401051c5
lea r9d, [rax + 0x10]
lea r8, [rsi + 0x260]
lea rdx, [rsi + 0x24c]
mov dword [rsi + 0x24c], 0x20746d66
call qword [sym.imp.WINMM.dll_mmioDescend]
mov rcx, rbx
test eax, eax
jne 0x1401051c5
lea rdx, [rsi + 0x24c]
xor r8d, r8d
call qword [sym.imp.WINMM.dll_mmioAscend]
lea r8, [rsi + 0x260]
lea rdx, [rsi + 0x238]
mov r9d, 0x10
mov rcx, rbx
mov dword [rsi + 0x238], 0x61746164
call qword [sym.imp.WINMM.dll_mmioDescend]
mov rcx, rbx
test eax, eax
jne 0x1401051c5
lea rdx, [rsi + 0x238]
xor r8d, r8d
call qword [sym.imp.WINMM.dll_mmioAscend]
mov edx, dword [rsi + 0x258]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioSeek]
mov r8d, dword [rsi + 0x250]
lea rdx, [rsi + 0x210]
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioRead]
cmp dword [rsi + 0x250], eax
jne 0x1401051c2
cmp word [rsi + 0x212], 1
jne 0x1401051c2
cmp word [rsi + 0x21e], 0x10
jne 0x1401051c2
mov eax, dword [rsi + 0x23c]
mov rdx, qword [rsp + 0xc0]
mov rcx, rsi
mov dword [rsi + 0xd4], eax
call fcn.1401051f0
test eax, eax
jne 0x1401051a9
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioClose]
mov rcx, rsi
call fcn.140105720
jmp 0x1401051cd
mov dword [rsi + 0xd0], 1
mov dword [rsi + 0xdc], 0
mov rax, rbx
jmp 0x1401051cf
mov rcx, rbx
xor edx, edx
call qword [sym.imp.WINMM.dll_mmioClose]
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401051f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
lea rdx, [rcx + 0x10]
lea rcx, [0x1401055c0]
call sub.DSOUND.dll_DirectSoundEnumerateW
mov r11, qword [rsi + 0x10]
test r11, r11
je 0x14010524f
nop
mov rdx, qword [r11]
cmp rdx, qword [rsi + 0x288]
jne 0x14010523d
mov rdx, qword [r11 + 8]
cmp rdx, qword [rsi + 0x290]
jne 0x14010523d
xor eax, eax
jmp 0x140105242
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140105261
mov r11, qword [r11 + 0x18]
test r11, r11
jne 0x140105220
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rdx, rdi
mov rcx, rsi
mov qword [rsi + 0x18], r11
call fcn.140105310
test eax, eax
je 0x14010524f
xor ebx, ebx
lea rdi, [rsi + 0x68]
nop
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [rdi], rax
je 0x14010524f
add rbx, 1
add rdi, 8
cmp rbx, 4
jl 0x140105280
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [rsi + 0x60], rax
je 0x14010524f
lea rax, [rsi + 0x90]
lea r8, [0x1401054d0]
mov r9, rsi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rsi + 0x88], rax
je 0x14010524f
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140107670
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push rdi
mov eax, 0x10080
call fcn.140180a70
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x10098], rbx
mov qword [rsp + 0x100a0], rsi
mov rax, qword [0x14020e318]
xor rax, rsp
mov qword [rsp + 0x10070], rax
mov rsi, rcx
mov rax, qword [rcx + 0x188]
cmp dword [rax - 0x10], 0
jne 0x14010771d
lea rdx, [rsp + 0x70]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x6c], 0x5c
jne 0x1401076e8
mov word [rsp + rcx*2 + 0x6c], ax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140107705
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rsp + 0x70]
lea rdx, str._sDemoMusic.mp3
lea rcx, [rsi + 0x188]
call fcn.140001df0
lea rcx, [rsp + 0x40]
call fcn.140155924
nop
xor r8d, r8d
mov rdx, qword [rsi + 0x188]
lea rcx, [rsp + 0x40]
call fcn.140155a44
test eax, eax
jne 0x14010785c
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
call fcn.14013e120
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14010776d
mov ecx, 0x80004005
call fcn.140001c70
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rdx, str.WAVE
test rdx, 0xffffffffffff0000
jne 0x1401077b0
movzx edi, dx
mov ecx, edi
call fcn.14014c5c0
test rax, rax
je 0x1401077ce
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140005140
jmp 0x1401077ce
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.1400038f0
nop
mov rdi, qword [rsi + 0x188]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x1401077f9
cmp rax, qword [rdi - 0x18]
jne 0x1401077f9
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x140107837
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x140107815
call fcn.1400c63c0
int3
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.14015c410
lea rax, [rbx + 0x18]
mov qword [rsp + 0x28], rax
lea rcx, [rsi + 0xa8]
lea r9, [rsp + 0x20]
mov r8w, 0x65
lea rdx, [rsp + 0x28]
call fcn.14006f040
nop
lea rcx, [rsp + 0x40]
call fcn.14015597c
mov eax, 1
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.14015b6f0
lea r11, [rsp + 0x10080]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140108100
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x58], 0
lea rax, vtable.j.0
mov edi, edx
mov qword [rcx], rax
mov rbx, rcx
je 0x14010815f
mov rcx, qword [rcx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x58]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14010814d
mov rcx, qword [rbx + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov qword [rbx + 0x58], 0
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x140108176
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x68], 0
mov rcx, qword [rbx + 0x60]
mov dword [rbx + 8], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x10]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401081a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, 1
je 0x1401081b5
mov rcx, rbx
call fcn.14013c754
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401081d0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x58], 0
lea rax, vtable.j.0
mov rbx, rcx
mov qword [rcx], rax
je 0x140108229
mov rcx, qword [rcx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x58]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140108217
mov rcx, qword [rbx + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov qword [rbx + 0x58], 0
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x140108240
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x68], 0
mov rcx, qword [rbx + 0x60]
mov dword [rbx + 8], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x10]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140108271
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x20
pop rbx
ret
Function at 0x1401109e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12d, ecx
lea rcx, [0x14022c000]
xor r13d, r13d
xor edx, edx
mov rbx, r13
call fcn.14017d174
lea ebp, [r13 + 1]
test rax, rax
mov rsi, rax
je 0x140110ae6
nop
test rbx, rbx
jne 0x140110ae6
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov rdi, rax
jne 0x140110a53
mov rbx, r13
jmp 0x140110ac9
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140110a69
mov rbx, r13
jmp 0x140110ac4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x140110a7f
mov rbx, r13
jmp 0x140110ac4
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x140110ab2
nop
nop
cmp rbx, r11
jae 0x140110ab7
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140110aa0
cmp rbx, r11
jb 0x140110abc
mov rbx, r13
jmp 0x140110ac4
cmp word [rbx], r13w
cmove rbx, r13
test rbx, rbx
jne 0x140110b01
lea rcx, [0x14022c000]
mov edx, ebp
call fcn.14017d174
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x140110a20
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x140110ae8
Function at 0x140117cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rbx, r8
mov rdi, rcx
test r8, r8
jne 0x140117cf6
xor eax, eax
jmp 0x140117e32
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
call fcn.1400ed270
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140117e0e
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x88], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140117dd8
cmp dword [rsp + 0x30], 4
jne 0x140117dd8
mov eax, dword [rsp + 0x80]
mov dword [rbx], eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140117dc1
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140117dd1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140117e32
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140117dfa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140117e0a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140117e32
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140117e30
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140117e60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov ebx, r9d
mov qword [rsp + 0x40], 0
mov rdx, r8
lea rcx, [rsp + 0x38]
call fcn.1400ed270
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SOFTWARESRS_LabsAPO
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140117f6b
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140117f32
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140117f1e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140117f2e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140117f8f
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140117f54
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140117f64
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140117f8f
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140117f8d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x1401208f0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rsi
push rdi
push r12
mov eax, 0x100d0
call fcn.140180a70
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x100f8], rbx
mov qword [rsp + 0x10100], rbp
mov rax, qword [0x14020e318]
xor rax, rsp
mov qword [rsp + 0x100c0], rax
mov r12, rcx
call fcn.14013e120
mov rcx, rax
xor edx, edx
test rax, rax
setne dl
test edx, edx
jne 0x14012094f
mov ecx, 0x80004005
call fcn.140001c70
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0xc0]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, [rsp + 0xc0]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0xbc], 0x5c
jne 0x14012099b
mov word [rsp + rcx*2 + 0xbc], ax
lea r8, [rsp + 0xc0]
lea rdx, str._sHPGoogleAnalyticsPrivacyPolicy.htm
lea rcx, [rsp + 0x28]
call fcn.140001df0
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x40], rdx
call fcn.14013e120
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x1401209dd
mov ecx, 0x80004005
call fcn.140001c70
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rdx, str.HTML_FILE
test rdx, 0xffffffffffff0000
jne 0x140120a20
movzx edi, dx
mov ecx, edi
call fcn.14014c5c0
test rax, rax
je 0x140120a3d
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140005140
jmp 0x140120a3d
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.1400038f0
nop
mov rdi, qword [rsp + 0x28]
lea rbx, [rdi - 0x18]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx + 0x10], 0
jl 0x140120a6c
cmp rax, qword [rbx]
jne 0x140120a6c
mov rsi, rbx
lock add dword [rbx + 0x10], 1
mov rdi, qword [rsp + 0x28]
jmp 0x140120aab
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx + 8]
call qword [rax]
mov rsi, rax
test rax, rax
jne 0x140120a88
call fcn.1400c63c0
int3
mov eax, dword [rbx + 8]
mov dword [rsi + 8], eax
mov eax, dword [rbx + 8]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
lea r8, [rbx + 0x18]
add rdx, rdx
lea rcx, [rsi + 0x18]
call fcn.14015c410
lea rax, [rsi + 0x18]
mov qword [rsp + 0x30], rax
lea rcx, [r12 + 0xa8]
lea r9, [rsp + 0x20]
mov r8w, 0x66
lea rdx, [rsp + 0x30]
call fcn.14006f040
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x54]
call fcn.1401601f0
mov dword [rsp + 0x50], 0x70
mov qword [rsp + 0x58], 0
lea rax, str.open
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x80], 3
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop
lock xadd dword [rbx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140120b31
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
mov rcx, qword [rsp + 0x100c0]
xor rcx, rsp
call fcn.14015b6f0
lea r11, [rsp + 0x100d0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret