joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016b0b0
Capabilities:
Resume thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0x40], r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
call fcn.1401e6ef8
nop
lea rax, [0x1402861f8]
mov qword [rbx], rax
lea rax, [0x1402862a8]
mov qword [rbx + 0x40], rax
call fcn.1401e9268
mov rcx, rax
xor esi, esi
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x14016b11d
mov ecx, 0x80004005
call fcn.140003c70
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x48], rax
lea r12, [rbx + 0x60]
mov qword [r12], rsi
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x70], rsi
mov qword [rbx + 0x78], rsi
lea rdi, [rbx + 0x80]
mov esi, 4
nop
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi], rax
add rdi, 8
sub rsi, 1
jne 0x14016b150
test rbp, rbp
jne 0x14016b176
xor ecx, ecx
jmp 0x14016b189
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
mov rdx, rbp
lea rcx, [rbx + 0x48]
call fcn.140007720
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
mov dword [rbx + 0x50], eax
mov eax, dword [rcx + 4]
mov dword [rbx + 0x54], eax
mov eax, dword [rcx + 8]
mov dword [rbx + 0x58], eax
mov eax, dword [rcx + 0xc]
mov dword [rbx + 0x5c], eax
mov qword [rsp + 0x20], r12
lea r9, [0x14025bb58]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14025bb08]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14016b285
mov rcx, qword [r12]
mov rax, qword [rcx]
lea rdx, [rbx + 0x40]
call qword [rax + 0x30]
test eax, eax
js 0x14016b285
xor ebp, ebp
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x14016b920]
call fcn.1401eacc4
mov rsi, rax
test rax, rax
je 0x14016b285
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
lea r9, [rbx + 0x78]
mov r8, rdi
mov rdx, qword [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call fcn.14016b800
test eax, eax
je 0x14016b285
mov rcx, rbx
call fcn.14016b800
test eax, eax
je 0x14016b285
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14016b285
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov rax, rbx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140194010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x90
mov rbx, rdx
xor edx, edx
mov rsi, rcx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x64]
mov r12, r9
call fcn.1402197d0
call fcn.1401dc36c
lea r8, str.WAVE
mov rcx, qword [rax + 0x10]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rbx, rbx
mov rbp, rax
je 0x140194239
test rax, rax
je 0x140194239
mov qword [rsp + 0xa0], rdi
call fcn.1401dc36c
mov rdx, rbp
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
call fcn.1401dc36c
mov rdx, rbp
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rdi
mov ebx, 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], ebx
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]
test eax, eax
jne 0x14019422a
lea r9d, [rax + 0x10]
lea r8, [rsi + 0x260]
lea rdx, [rsi + 0x24c]
mov rcx, rbx
mov dword [rsi + 0x24c], 0x20746d66
call qword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x14019422a
lea rdx, [rsi + 0x24c]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioAscend]
lea r8, [rsi + 0x260]
lea rdx, [rsi + 0x238]
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbx
mov dword [rsi + 0x238], 0x61746164
call qword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x14019422a
lea rdx, [rsi + 0x238]
xor r8d, r8d
mov rcx, rbx
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 0x14019422a
cmp word [rsi + 0x212], 1
jne 0x14019422a
cmp word [rsi + 0x21e], 0x10
jne 0x14019422a
mov eax, dword [rsi + 0x23c]
mov rdx, r12
mov rcx, rsi
mov dword [rsi + 0xd4], eax
call fcn.140194240
test eax, eax
jne 0x140194211
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioClose]
mov rcx, rsi
call fcn.140194760
xor eax, eax
mov rdi, qword [rsp + 0xa0]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
mov dword [rsi + 0xd0], 1
mov dword [rsi + 0xdc], 0
mov rax, rbx
jmp 0x1401941ef
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioClose]
xor eax, eax
jmp 0x1401941ef
xor eax, eax
jmp 0x1401941f7
Function at 0x140194240
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, [0x140194610]
call sub.DSOUND.dll_DirectSoundEnumerateW
mov r11, qword [rsi + 0x10]
test r11, r11
je 0x14019429f
nop
mov rdx, qword [r11]
cmp rdx, qword [rsi + 0x288]
jne 0x14019428d
mov rdx, qword [r11 + 8]
cmp rdx, qword [rsi + 0x290]
jne 0x14019428d
xor eax, eax
jmp 0x140194292
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1401942b1
mov r11, qword [r11 + 0x18]
test r11, r11
jne 0x140194270
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.140194360
test eax, eax
je 0x14019429f
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 0x14019429f
add rbx, 1
add rdi, 8
cmp rbx, 4
jl 0x1401942d0
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 0x14019429f
lea rax, [rsi + 0x90]
lea r8, [0x140194520]
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 0x14019429f
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x140196e50
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x58], 0
lea rax, [0x14028b0e0]
mov rbx, rcx
mov qword [rcx], rax
je 0x140196ea9
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 0x140196e97
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 0x140196ec0
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 0x140196ef1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x20
pop rbx
ret
Function at 0x140196f00
Capabilities:
Check mutex on windows
Terminate thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
cmp qword [rcx + 0x58], rdi
mov r12, rdx
mov rbx, rcx
je 0x140196f5b
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 0x140196f4d
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], rdi
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x140196f6e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x68], rdi
mov dword [rbx + 8], edi
mov rdx, qword [r12]
mov rbp, qword [rbx + 0x10]
lea rcx, [rdx - 0x18]
sub rbp, 0x18
cmp rcx, rbp
je 0x140196fda
cmp dword [rbp + 0x10], edi
jl 0x140196fcd
mov rax, qword [rbp]
cmp qword [rcx], rax
jne 0x140196fcd
mov qword [rsp + 0x68], r13
call fcn.140007340
or ecx, 0xffffffff
mov r13, rax
lock xadd dword [rbp + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x140196fbe
mov rcx, qword [rbp]
mov rdx, rbp
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r13 + 0x18]
mov r13, qword [rsp + 0x68]
mov qword [rbx + 0x10], rax
jmp 0x140196fda
mov r8d, dword [rdx - 0x10]
lea rcx, [rbx + 0x10]
call fcn.140007720
mov eax, dword [r12 + 8]
mov rbp, qword [rsp + 0x58]
mov dword [rbx + 0x18], eax
mov rax, qword [r12 + 0x10]
mov qword [rbx + 0x20], rax
mov rax, qword [r12 + 0x18]
mov r12, qword [rsp + 0x60]
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x20], rdi
jne 0x140197024
mov r8, qword [rbx + 0x10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
mov qword [rbx + 0x68], rax
setne al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rbx + 0x10]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
jne 0x14019704b
cmp eax, 5
je 0x140197054
lea ecx, [rsi + 3]
jmp 0x140197059
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 2
cmp ecx, dword [rbx + 8]
jne 0x140197065
mov ecx, 1
jmp 0x140197068
mov dword [rbx + 8], ecx
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x14019708f
sub ecx, 2
je 0x140197086
cmp ecx, 1
jne 0x14019708f
mov rdx, qword [rbx + 0x28]
xor ecx, ecx
call r8
jmp 0x14019708f
mov rdx, qword [rbx + 0x28]
mov cl, 1
call r8
cmp qword [rbx + 0x60], rdi
jne 0x1401970ab
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x60], rax
cmp qword [rbx + 0x58], rdi
jne 0x1401970e0
cmp qword [rbx + 0x60], rdi
je 0x1401970e0
lea rax, [rsp + 0x50]
lea r8, [0x1401970f0]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x50], edi
call fcn.140218dd0
mov qword [rbx + 0x58], rax
cmp qword [rbx + 0x58], rdi
setne al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401a36e0
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, [0x140310db0]
xor r13d, r13d
xor edx, edx
mov rbx, r13
call fcn.140234688
lea ebp, [r13 + 1]
test rax, rax
mov rsi, rax
je 0x1401a37e6
nop
test rbx, rbx
jne 0x1401a37e6
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 0x1401a3753
mov rbx, r13
jmp 0x1401a37c9
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1401a3769
mov rbx, r13
jmp 0x1401a37c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x1401a377f
mov rbx, r13
jmp 0x1401a37c4
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 0x1401a37b2
nop
nop
cmp rbx, r11
jae 0x1401a37b7
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1401a37a0
cmp rbx, r11
jb 0x1401a37bc
mov rbx, r13
jmp 0x1401a37c4
cmp word [rbx], r13w
cmove rbx, r13
test rbx, rbx
jne 0x1401a3801
lea rcx, [0x140310db0]
mov edx, ebp
call fcn.140234688
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x1401a3720
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 0x1401a37e8
Function at 0x1401b3c30
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.14003c0d0
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 0x1401b3d3b
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 0x1401b3d02
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401b3cee
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 0x1401b3cfe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1401b3d5f
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401b3d24
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 0x1401b3d34
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1401b3d5f
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1401b3d5d
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 0x1401d3eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x90
mov rbx, rdx
xor edx, edx
mov rsi, rcx
lea r8d, [rdx + 0x64]
lea rcx, [rsp + 0x20]
call fcn.1402197d0
call fcn.1401dc36c
lea r8, str.WAVE
mov rcx, qword [rax + 0x10]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rbx, rbx
mov rbp, rax
je 0x1401d4079
test rax, rax
je 0x1401d4079
mov qword [rsp + 0xa0], rdi
call fcn.1401dc36c
mov rdx, rbp
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
call fcn.1401dc36c
mov rdx, rbp
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rdi
mov ebx, 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], ebx
call qword [sym.imp.WINMM.dll_mmioOpenW]
lea rdx, [rsi + 0x94]
mov r9d, 0x20
xor r8d, r8d
mov rcx, rax
mov rbx, rax
mov dword [rsi + 0x9c], 0x45564157
call qword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x1401d406a
lea r9d, [rax + 0x10]
lea r8, [rsi + 0x94]
lea rdx, [rsi + 0x80]
mov rcx, rbx
mov dword [rsi + 0x80], 0x20746d66
call qword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x1401d406a
lea rdx, [rsi + 0x80]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioAscend]
lea r8, [rsi + 0x94]
lea rdx, [rsi + 0x6c]
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbx
mov dword [rsi + 0x6c], 0x61746164
call qword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x1401d406a
lea rdx, [rsi + 0x6c]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioAscend]
mov edx, dword [rsi + 0x8c]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioSeek]
mov r8d, dword [rsi + 0x84]
lea rdx, [rsi + 0x44]
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioRead]
cmp dword [rsi + 0x84], eax
jne 0x1401d406a
cmp word [rsi + 0x46], 1
jne 0x1401d406a
cmp word [rsi + 0x52], 0x10
jne 0x1401d406a
mov dword [rsi + 0xe8], 0
mov rax, rbx
mov rdi, qword [rsp + 0xa0]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioClose]
xor eax, eax
jmp 0x1401d404d
xor eax, eax
jmp 0x1401d4055
Function at 0x1401d49e0
Capabilities:
Get file size
Read .ini file

Disassembly:
push rsi
sub rsp, 0x50
test rdx, rdx
mov rsi, rcx
jne 0x1401d49f6
xor eax, eax
add rsp, 0x50
pop rsi
ret
mov qword [rcx + 8], rdx
mov rcx, qword [0x140318518]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rdi
xor edi, edi
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1401d4b90
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rbx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 0xffffffff
setne dil
test edi, edi
je 0x1401d4b90
mov eax, 2
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r13
mov r13, 0xffffffffffffffff
mul rbp
cmovo rax, r13
mov rcx, rax
call fcn.1401dacd0
test rax, rax
mov r12, rax
jne 0x1401d4ab0
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rsi
ret
mov word [rax], 0
mov rax, qword [0x140318518]
lea r8, [0x140260b08]
mov qword [rsp + 0x28], rax
mov r9, r12
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r8, str.SetCount
lea rdx, str.DefLevel
lea rcx, [0x1403149a0]
xor r9d, r9d
call fcn.1401ee9b4
mov rbx, r12
mov dword [rsi + 0x10], eax
cmp word [r12], 0
je 0x1401d4b26
mov rdx, rbx
mov rcx, rsi
call fcn.1401d4ea0
xor eax, eax
mov rdi, rbx
mov rcx, r13
repne scasw ax, word [rdi]
not rcx
lea rbx, [rbx + rcx*2]
cmp word [rbx], ax
jne 0x1401d4b04
cmp dword [rsi + 0x18], 0
je 0x1401d4b4e
add dword [rsi + 0x10], 1
mov r9d, dword [rsi + 0x10]
lea r8, str.SetCount
lea rdx, str.DefLevel
lea rcx, [0x1403149a0]
call fcn.1401eea54
cmp dword [rsi + 0x14], 0
jne 0x1401d4b7e
lea r8, str.Finished
lea rdx, str.DefLevel
lea rcx, [0x1403149a0]
mov r9d, 1
call fcn.1401eea54
mov dword [0x140311254], 1
mov rcx, r12
call fcn.1401dacd8
mov eax, 1
jmp 0x1401d4a91
xor eax, eax
jmp 0x1401d4a9b
Function at 0x1401d6290
Capabilities:
Check os version
Set registry value

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x140300da0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ebx, ecx
lea rcx, [rsp + 0xb0]
mov dword [rsp + 0xb0], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0xb4], 6
jae 0x1401d62dc
mov ecx, ebx
call fcn.1401d64d0
jmp 0x1401d64aa
mov rax, qword [0x140318520]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x1f0], rsi
mov qword [rcx], rax
mov rax, qword [0x140318528]
mov qword [rsp + 0x1f8], rdi
mov qword [rcx + 8], rax
mov rax, qword [0x140318530]
xor edi, edi
test ebx, ebx
mov qword [rcx + 0x10], rax
mov rax, qword [0x140318538]
mov qword [rcx + 0x18], rax
mov rax, qword [0x140318540]
lea esi, [rdi + 1]
mov qword [rcx + 0x20], rax
mov rax, qword [0x140318548]
mov qword [rcx + 0x28], rax
mov rax, qword [0x140318550]
mov qword [rcx + 0x30], rax
mov rax, qword [0x140318558]
mov qword [rcx + 0x38], rax
mov eax, dword [0x140318560]
mov dword [rcx + 0x40], eax
mov dword [rsp + 0x64], edi
mov dword [rsp + 0x68], edi
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x70], edi
je 0x1401d63ca
sub ebx, esi
je 0x1401d63a8
sub ebx, esi
je 0x1401d638f
cmp ebx, esi
je 0x1401d6380
mov edi, 0x80000000
jmp 0x1401d6498
test byte [0x140318538], 8
je 0x1401d6376
mov dword [rsp + 0x70], esi
jmp 0x1401d63ca
mov eax, dword [0x140318538]
test al, 4
je 0x1401d6376
test sil, al
mov dword [rsp + 0x6c], esi
je 0x1401d63ca
mov dword [rsp + 0x64], esi
jmp 0x1401d63ca
mov eax, dword [0x140318538]
test al, 2
je 0x1401d63c1
test sil, al
mov dword [rsp + 0x68], esi
je 0x1401d63ca
mov dword [rsp + 0x64], esi
jmp 0x1401d63ca
test sil, al
je 0x1401d6376
mov dword [rsp + 0x64], esi
cmp dword [0x14031857c], edi
mov dword [rsp + 0x60], 0xaeaeaeae
jne 0x1401d63f0
lea rdx, [rsp + 0x60]
lea rcx, [0x140318520]
call fcn.1401d8a60
jmp 0x1401d6498
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareRealtekAEAPO
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1401d647a
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
lea rdx, str.CapProperties
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x44
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
mov ebx, edi
cmove ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1401d647a
lea rdx, str.WriteRegistry_successful
jmp 0x1401d6481
lea rdx, str.WriteRegistry_failed
or r9d, 0xffffffff
lea rcx, [0x140318520]
mov dword [rsp + 0x20], edi
or r8d, r9d
call fcn.1401d8ee0
mov rsi, qword [rsp + 0x1f0]
mov eax, edi
mov rdi, qword [rsp + 0x1f8]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140216200
add rsp, 0x1e0
pop rbx
ret
Function at 0x1401d6700
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x1b0
mov rax, qword [0x140300da0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rcx, [rsp + 0x80]
xor ebx, ebx
mov dword [rsp + 0x80], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x84], 6
jb 0x1401d67d0
cmp dword [0x140318570], ebx
lea edi, [rbx + 1]
jne 0x1401d67aa
mov r8d, edi
xor edx, edx
xor ecx, ecx
mov dword [0x140318574], ebx
mov dword [0x140318570], edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
je 0x1401d67aa
lea r8d, [rbx + 4]
lea rdx, str.AERTFilters
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1401d67a1
mov rcx, rax
mov dword [0x140318574], edi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [0x140318574], ebx
je 0x1401d68c7
mov eax, dword [0x140318538]
test dil, al
jne 0x1401d67c9
test al, 2
je 0x1401d68c7
mov eax, edi
jmp 0x1401d68c9
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, str..AndreaFilterRealtek
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1401d68c7
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov r9d, 0x34
mov edx, 0x222004
mov rcx, rsi
mov dword [rsp + 0x28], 0x34
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], 0x34
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401d6864
cmp dword [rsp + 0x40], ebx
je 0x1401d6864
cmp dword [rsp + 0x50], ebx
je 0x1401d6864
mov ebx, 1
jmp 0x1401d68be
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
mov edi, 1
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
lea r8, [rsp + 0x48]
lea r9d, [rdi + 0x33]
mov edx, 0x222004
mov rcx, rsi
mov dword [rsp + 0x28], 0x34
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], 0x34
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401d68be
cmp dword [rsp + 0x40], ebx
je 0x1401d68be
cmp dword [rsp + 0x50], ebx
cmovne ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140216200
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret