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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.WS2_32.dll_bind
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x1401ab29e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1401ab280
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1401ab485
mov ecx, 3
call fcn.1401ae2d0
cmp eax, 1
je 0x1401ab43c
mov ecx, 3
call fcn.1401ae2d0
test eax, eax
jne 0x1401ab2d5
cmp dword [reloc.WS2_32.dll_bind], 1
je 0x1401ab43c
cmp edi, 0xfc
je 0x1401ab485
mov qword [rsp + 0x50], rbp
lea rbp, [0x14020eb70]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1401ae220
test eax, eax
je 0x1401ab319
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1401ab0b0
lea rdx, [0x14020eb89]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14020ec8d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1401ab369
lea r8, str._program_name_unknown_
lea rcx, [0x14020eb89]
mov edx, 0x2fb
call fcn.1401ae220
test eax, eax
je 0x1401ab369
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1401ab0b0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14020eb89]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x1401ab3b8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14020ee84]
lea r9d, [rax + 3]
lea r8, [0x1401d2254]
sub rdx, rcx
call fcn.1401ae100
test eax, eax
je 0x1401ab3b8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1401ab0b0
lea r8, [0x1401e9560]
mov edx, 0x314
mov rcx, rbp
call fcn.1401ae040
test eax, eax
je 0x1401ab3e4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1401ab0b0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1401ae040
test eax, eax
je 0x1401ab414
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1401ab0b0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1401adde0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1401ab485
cmp rax, 0xffffffffffffffff
je 0x1401ab485
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1401adde0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.1401a9f30
xor ebx, ebx
cmp qword [0x14020f280], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1401adf0c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1401ae01f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401ae01f
mov rcx, rax
call fcn.1401a9e60
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14020f280], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1401a9e60
lea rdx, [0x1401e9680]
mov rcx, rsi
mov qword [0x14020f288], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1401a9e60
lea rcx, [rsp + 0x98]
mov qword [0x14020f290], rax
call fcn.1401aaaa0
test eax, eax
je 0x1401adebf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1401ab0b0
cmp dword [rsp + 0x98], 2
jne 0x1401adf0c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1401a9e60
test rax, rax
mov qword [0x14020f2a0], rax
je 0x1401adf0c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1401a9e60
mov qword [0x14020f298], rax
mov rcx, qword [0x14020f298]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1401adfb8
cmp qword [0x14020f2a0], rbp
je 0x1401adfb8
call fcn.1401aa020
mov rcx, qword [0x14020f2a0]
mov rsi, rax
call fcn.1401aa020
test rsi, rsi
mov r12, rax
je 0x1401adfb8
test rax, rax
je 0x1401adfb8
call rsi
test rax, rax
je 0x1401adf83
lea rcx, [rsp + 0x34]
mov r9d, listen
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1401adf83
test byte [rsp + 0x40], 1
jne 0x1401adfb8
lea rcx, [rsp + 0x30]
call fcn.1401aaaf0
test eax, eax
je 0x1401adfa5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1401ab0b0
cmp dword [rsp + 0x30], 4
jb 0x1401adfb2
bts edi, 0x15
jmp 0x1401adff6
bts edi, 0x12
jmp 0x1401adff6
mov rcx, qword [0x14020f288]
cmp rcx, rbp
je 0x1401adff6
call fcn.1401aa020
test rax, rax
je 0x1401adff6
call rax
test rax, rax
mov rbx, rax
je 0x1401adff6
mov rcx, qword [0x14020f290]
cmp rcx, rbp
je 0x1401adff6
call fcn.1401aa020
test rax, rax
je 0x1401adff6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14020f280]
call fcn.1401aa020
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1401ae01f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1401ae021
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401af3f0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1401af437
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.1401af6f0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x38
ret
Function at 0x1400051a4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14000b808], rcx
je 0x1400051da
cmp rax, rcx
jne 0x1400051d8
mov ebx, 1
mov edi, ebx
jmp 0x1400051df
jmp 0x1400051bd
mov ebx, 1
mov eax, dword [0x14000b810]
cmp eax, ebx
jne 0x1400051f5
mov ecx, 0x1f
call sub.MSVCR120_CLR0400.dll__amsg_exit
jmp 0x14000522c
mov eax, dword [0x14000b810]
test eax, eax
jne 0x140005226
mov dword [0x14000b810], ebx
lea rdx, [0x140007430]
lea rcx, [0x140007410]
call sub.MSVCR120_CLR0400.dll__initterm_e
test eax, eax
je 0x14000522c
mov eax, 0xff
jmp 0x14000531d
mov dword [0x14000a9e8], ebx
mov eax, dword [0x14000b810]
cmp eax, ebx
jne 0x140005253
lea rdx, [0x140007408]
lea rcx, [0x1400073c8]
call sub.MSVCR120_CLR0400.dll__initterm
mov dword [0x14000b810], 2
test edi, edi
jne 0x140005260
xor eax, eax
xchg qword [0x14000b808], rax
cmp qword [0x14000b828], 0
je 0x140005298
lea rcx, [0x14000b828]
call fcn.140005600
test eax, eax
je 0x140005298
mov rbx, qword [0x14000b828]
mov rcx, rbx
mov rax, qword [fcn.140005cf0]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov rcx, qword [0x14000aa00]
mov rax, qword [sym.imp.MSVCR120_CLR0400.dll___winitenv]
mov qword [rax], rcx
mov r8, qword [0x14000aa00]
mov rdx, qword [0x14000a9f8]
mov ecx, dword [0x14000a9f4]
call fcn.140002a34
mov dword [0x14000a9ec], eax
cmp dword [0x14000a9f0], 0
jne 0x1400052d9
mov ecx, eax
call qword [sym.imp.MSVCR120_CLR0400.dll_exit]
cmp dword [0x14000a9e8], 0
jne 0x1400052ee
call qword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x14000a9ec]
jmp 0x14000531d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
call fcn.140005680
add rsp, 0x28
jmp 0x1400051a4
Function at 0x140002c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140002c93
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140002cd6
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140002cd1
cmp rbx, r11
jae 0x140002cd6
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140002cc0
cmp rbx, r11
jb 0x140002cda
xor eax, eax
jmp 0x140002ce6
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400034e0
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x78
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov r12, rcx
mov rbx, qword [rcx + 0x90]
call fcn.140006a14
mov rcx, rax
xor r13d, r13d
mov edx, r13d
test rax, rax
setne dl
test edx, edx
jne 0x140003525
mov ecx, 0x80004005
call fcn.140003390
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x38], rax
or rsi, 0xffffffffffffffff
test rbx, rbx
je 0x140003578
test rbx, 0xffffffffffff0000
jne 0x140003565
movzx edi, bx
mov ecx, edi
call fcn.140006fb4
test rax, rax
je 0x14000358b
mov r8d, edi
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.140002d00
jmp 0x14000358b
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x14000357b
mov ecx, r13d
mov r8d, ecx
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.1400031d0
nop
lea rbx, vtable.CSAIICmdLine.0
mov qword [rbp - 0x40], rbx
mov dword [r12 + 0x158], r13d
mov qword [rbp - 0x30], r13
call fcn.140003710
test eax, eax
je 0x1400035bd
mov edi, 1
mov dword [r12 + 0x158], edi
jmp 0x1400036c1
xor dil, dil
mov qword [rbp + 0x48], r13
lea r8, [rbp + 0x48]
lea rdx, str.SOFTWAREDolbyDolbyDigitalPlus
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1400035ee
mov dil, 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rbp - 0x20], dil
mov qword [rbp + 0x50], r13
mov edi, r13d
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x1401bf8c8]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [0x1401bf8d8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140003634
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14000362f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edi, 1
test edi, edi
setne byte [rbp - 0x1f]
mov byte [rbp - 0x1e], 0
mov dword [rbp - 0x1c], r13d
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x40]
call fcn.140003e60
mov dword [r12 + 0x158], eax
cmp byte [rbp - 0x1e], 0
je 0x1400036c1
mov qword [rbp + 0x40], r13
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SOFTWAREConexantSAIISvrNotify
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x1400036c1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.sacmdsetting
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [r12 + 0x158]
mov qword [rbp - 0x40], rbx
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400036e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
add rsp, 0x78
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140003710
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1401f8ee0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [str.DTMLLUAdminUser]
mov ecx, 0xfffe
xor ebx, ebx
mov qword [rsp + 0x28], rax
mov rax, qword [0x1401bf998]
mov dword [rsp + 0x20], 0x7fff
mov qword [rsp + 0x30], rax
mov rax, qword [0x1401bf9a0]
mov qword [rsp + 0x38], rax
mov rax, qword [0x1401bf9a8]
mov qword [rsp + 0x40], rax
call fcn.140005b10
mov rdi, rax
test rax, rax
je 0x1400037aa
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400037a2
lea r8d, [rbx + 0xf]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140148164
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, rdi
call fcn.140005b08
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401472d0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140003dd0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], ecx
lea rdx, str.SOFTWAREConexantSAIISvrNotify
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
xor bl, bl
mov qword [rsp + 0x48], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140003e4b
lea rax, [rsp + 0x40]
lea rdx, str.ModeIndex
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov bl, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x30
pop rbx
ret
Function at 0x140004e20
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x1401f8ee0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
mov byte [rsp + 0x40], 0x52
cmp byte [rcx + 0x22], bl
jne 0x140004f25
mov qword [rsp + 0x30], rbx
lea rcx, str..pipeSAChannel
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x280], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140004ecd
lea r8, str.CSAIICmdLine::NotifyAboutChanges
lea rdx, str._s:nPipe__INVALID_HANDLE_VALUE_n
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [rbx + 1]
mov rdi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401472d0
add rsp, 0x270
pop rbx
ret
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x40]
mov r8d, 1
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140004f18
lea r8, str.CSAIICmdLine::NotifyAboutChanges
lea rdx, str._s:WriteFilefail_n
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140004eac
mov eax, ebx
jmp 0x140004eb4

Function at 0x140005150
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x21], 0
mov rbx, rdx
jne 0x14000525c
cmp byte [rcx + 0x20], 0
je 0x14000525c
mov eax, dword [rdx + 4]
mov qword [rsp + 0x48], rdi
cmp eax, 1
jne 0x1400051f0
lea r8, [rsp + 0x40]
lea rdx, str.SOFTWAREDolbyDolbyDigitalPlusDynamicKeys
xor edi, edi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x40], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140005257
lea rax, [rbx + 8]
lea r9d, [rdi + 4]
lea rdx, str.DD0DF94B_53A2_4A92_854E_91F42E28FD7B_1
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 0xff
test eax, eax
cmove ecx, edi
mov dword [rbx + 0xc], ecx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
test eax, eax
jne 0x140005257
lea r8, [rsp + 0x50]
lea rdx, str.SOFTWAREDolbyDolbyDigitalPlusDynamicKeys
xor edi, edi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x50], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140005257
lea rdx, [rsp + 0x40]
lea rax, [rbx + 0xc]
xor r9d, r9d
mov qword [rsp + 0x28], rdx
lea rdx, str.DD0DF94B_53A2_4A92_854E_91F42E28FD7B_1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
Function at 0x1400053b0
Capabilities:
Get file version info

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1401f8ee0]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [rsp + 0x30]
mov r8d, 0x208
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140005493
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x260], rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14000548f
mov ecx, esi
mov qword [rsp + 0x268], rdi
call fcn.140005b10
mov rdi, rax
test rax, rax
je 0x140005464
lea rcx, [rsp + 0x30]
mov r9, rax
mov r8d, esi
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14000545c
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [0x1401c0040]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14000545c
mov rax, qword [rsp + 0x20]
movzx ebx, word [rax + 8]
mov rcx, rdi
call fcn.140005b08
mov rdi, qword [rsp + 0x268]
mov eax, ebx
mov rsi, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401472d0
add rsp, 0x250
pop rbx
ret
mov eax, ebx
jmp 0x14000546e
mov eax, ebx
jmp 0x140005476

Function at 0x1400054a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
mov rdi, rcx
mov dword [rcx + 0xc], 0xff
xor ebx, ebx
lea r8, [rsp + 0x68]
lea rdx, str.SOFTWAREDolbyDolbyDigitalPlusDynamicKeys
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x60], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov r11, qword [rsp + 0x68]
test r11, r11
je 0x1400055c1
mov eax, dword [rdi + 4]
cmp eax, 1
jne 0x14000555f
mov eax, dword [rdi + 8]
cmp eax, 9
jae 0x140005507
lea rcx, [0x1401faea0]
mov edx, dword [rcx + rax*4]
jmp 0x14000550c
mov edx, 0xff
mov dword [rsp + 0x58], edx
cmp edx, 0xff
je 0x14000554f
lea rax, [rsp + 0x58]
lea rdx, str.DD0DF94B_53A2_4A92_854E_91F42E28FD7B_2
mov r9d, 4
xor r8d, r8d
mov rcx, r11
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11, qword [rsp + 0x68]
test eax, eax
jne 0x14000554f
mov dword [rdi + 0xc], ebx
mov rcx, r11
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
pop rdi
pop rbx
ret
test eax, eax
jne 0x1400055c1
lea rax, [rsp + 0x60]
lea rdx, str.DD0DF94B_53A2_4A92_854E_91F42E28FD7B_2
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rcx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400055b6
mov edx, dword [rsp + 0x50]
mov eax, ebx
lea rcx, [0x1401faea0]
nop
cmp dword [rcx], edx
je 0x1400055b1
inc eax
add rcx, 4
cmp eax, 9
jb 0x1400055a0
jmp 0x1400055b3
mov ebx, eax
mov dword [rdi + 0xc], ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x140009fd4
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14000a04e
xor r8d, r8d
call fcn.140009f08
mov rsi, rax
test rax, rax
jne 0x14000a00a
mov eax, edi
jmp 0x14000a064
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x14000a006
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000a7b0
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 0x14000a813
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a827
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000a827
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 0x14000a82c
cmp dword [rcx + 8], 0
je 0x14000a827
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14000a82c
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000f130
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1401f8ee0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14000f166
xor eax, eax
jmp 0x14000f1b2
lea rcx, [rsp + 0x20]
call fcn.140148438
cmp word [rsp + rax*2 + 0x1e], 0x5c
je 0x14000f192
lea r8, [0x1401c0040]
lea rcx, [rsp + 0x20]
mov edx, 0x105
call fcn.140149ccc
test eax, eax
jne 0x14000f162
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, 0x105
call fcn.140149ccc
test eax, eax
jne 0x14000f162
lea rcx, [rsp + 0x20]
call fcn.140007820
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401472d0
add rsp, 0x240
pop rbx
ret