joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006b4a0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rbx, rcx
lea rax, [0x1401ad3c8]
mov qword [rcx], rax
lea rax, [0x1401ad638]
mov qword [rcx + 0xa8], rax
xor ebp, ebp
cmp qword [rcx + 0x1a8], rbp
je 0x14006b532
mov rcx, qword [rcx + 0x1b0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, 0x1388
mov rcx, qword [rbx + 0x1a8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14006b51e
or edx, 0xffffffff
mov rcx, qword [rbx + 0x1a8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x1b0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov qword [rbx + 0x1a8], rbp
mov rcx, qword [rbx + 0x1b8]
test rcx, rcx
je 0x14006b54b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x1b8], rbp
mov dword [rbx + 0x158], ebp
mov rcx, qword [0x14022e878]
test rcx, rcx
je 0x14006b56a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14022e878], rbp
mov rcx, rbx
call fcn.14006ca50
lea rcx, [0x14022e6e0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [rbx + 0x140], ebp
je 0x14006b58d
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rbx
call fcn.140143330
nop
lea rcx, [rbx + 0x1f0]
call fcn.140086f40
nop
mov rdx, qword [rbx + 0x1c8]
sub rdx, 0x18
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14006b5c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, vtable..24.0
mov qword [rbx + 0x150], rax
cmp qword [rbx + 0x1a8], 0
je 0x14006b62a
mov rcx, qword [rbx + 0x1b0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, 0x1388
mov rcx, qword [rbx + 0x1a8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14006b616
or edx, 0xffffffff
mov rcx, qword [rbx + 0x1a8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x1b0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov qword [rbx + 0x1a8], rbp
mov rcx, qword [rbx + 0x1b8]
test rcx, rcx
je 0x14006b643
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x1b8], rbp
mov dword [rbx + 0x158], ebp
mov rcx, qword [rbx + 0x1b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x160]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
add edi, 0xffffffff
test edi, edi
jg 0x14006b677
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbx + 0xa8]
call fcn.14006e400
nop
mov rcx, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp fcn.140143b7c
Function at 0x140071040
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [0x14022f830], 0
jne 0x14007118a
cmp qword [0x14022f840], 0
mov dword [rsp + 0x40], 0
jne 0x140071080
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14022f840], rax
cmp qword [0x14022f848], 0
jne 0x1400710a1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14022f848], rax
cmp qword [0x14022f850], 0
jne 0x1400710c2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14022f850], rax
cmp qword [0x14022f858], 0
jne 0x1400710e3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14022f858], rax
cmp qword [0x14022f860], 0
jne 0x140071104
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14022f860], rax
cmp qword [0x14022f838], 0
jne 0x14007112f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [0x14022f838], rax
jne 0x14007112f
add rsp, 0x38
ret
call fcn.14014c248
test rax, rax
je 0x140071150
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x140071150
mov rax, qword [rax + 0x40]
jmp 0x140071152
xor eax, eax
mov qword [0x14022f988], rax
lea rax, [rsp + 0x40]
lea r9, [0x14022f830]
mov qword [rsp + 0x28], rax
lea r8, [0x1400711a0]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14022f830], rax
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400737e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
lea rdi, [0x14019cf88]
mov rsi, rax
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
jne 0x140073837
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140073825
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rbx]
sub rdx, 0x18
cmp eax, 0xffffffff
je 0x14007380d
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140073864
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1400756f0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rdi
mov eax, 0x10060
call fcn.140181870
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10078], rbx
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x10050], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
call fcn.14013d07c
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x14007574e
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rdx, [0x14019cf88]
test rdx, 0xffffffffffff0000
jne 0x14007578a
movzx edi, dx
mov ecx, edi
call fcn.14013d654
test rax, rax
je 0x1400757a6
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.1400020e0
jmp 0x1400757a6
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbx
call fcn.140002390
nop
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x50]
call fcn.140160e90
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14007581e
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x4c], 0x5c
jne 0x1400757fe
mov word [rsp + rcx*2 + 0x4c], ax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002390
mov rax, rbx
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.14015d000
mov rbx, qword [rsp + 0x10078]
add rsp, 0x10060
pop rdi
ret
Function at 0x1400758a0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rdi
mov eax, 0x10060
call fcn.140181870
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10078], rbx
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x10050], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
call fcn.14013d07c
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x1400758fe
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rdx, [0x14019cf88]
test rdx, 0xffffffffffff0000
jne 0x14007593a
movzx edi, dx
mov ecx, edi
call fcn.14013d654
test rax, rax
je 0x140075956
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.1400020e0
jmp 0x140075956
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbx
call fcn.140002390
nop
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x50]
call fcn.140160e90
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x2a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400759ce
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x4c], 0x5c
jne 0x1400759ae
mov word [rsp + rcx*2 + 0x4c], ax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002390
mov rax, rbx
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.14015d000
mov rbx, qword [rsp + 0x10078]
add rsp, 0x10060
pop rdi
ret
Function at 0x140075a50
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x10060
call fcn.140181870
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10098], rbx
mov qword [rsp + 0x100a0], rbp
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x10050], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
call fcn.14013d07c
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x140075abd
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rdx, [0x14019cf88]
test rdx, 0xffffffffffff0000
jne 0x140075af9
movzx edi, dx
mov ecx, edi
call fcn.14013d654
test rax, rax
je 0x140075b15
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.1400020e0
jmp 0x140075b15
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbx
call fcn.140002390
nop
mov r12d, 1
mov dword [rsp + 0x30], r12d
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x50]
call fcn.140160e90
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x25]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140075c25
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x4c], 0x5c
jne 0x140075b75
mov word [rsp + rcx*2 + 0x4c], ax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002390
xor eax, eax
or rcx, 0xffffffffffffffff
lea rbp, str.RealtekAudioHDA_
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
mov rax, qword [rbx]
mov rsi, rbp
sub rsi, rax
sar rsi, 1
mov r13d, dword [rax - 0x10]
lea edi, [r13 + rcx - 1]
sub r12d, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or eax, r12d
jge 0x140075bdc
mov edx, edi
mov rcx, rbx
call fcn.140001df0
mov rax, qword [rbx]
cmp rsi, r13
ja 0x140075be8
lea rbp, [rax + rsi*2]
movsxd rdx, r14d
add rdx, rdx
lea rcx, [rax + r13*2]
mov r9, rdx
mov r8, rbp
call fcn.14015cd30
test edi, edi
js 0x140075c1a
mov rax, qword [rbx]
cmp edi, dword [rax - 0xc]
jg 0x140075c1a
mov dword [rax - 0x10], edi
movsxd rcx, edi
mov rax, qword [rbx]
mov word [rax + rcx*2], 0
jmp 0x140075c25
mov ecx, 0x80070057
call fcn.140001c00
int3
mov rax, rbx
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.14015d000
lea r11, [rsp + 0x10060]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140075cb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x60], rbx
call fcn.14013d07c
mov rcx, rax
mov edx, ebx
test rax, rax
setne dl
test edx, edx
jne 0x140075cf2
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
lea rdx, [0x14019cf88]
test rdx, 0xffffffffffff0000
jne 0x140075d2e
movzx edi, dx
mov ecx, edi
call fcn.14013d654
test rax, rax
je 0x140075d4a
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.1400020e0
jmp 0x140075d4a
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rsi
call fcn.140002390
nop
mov dword [rsp + 0x58], 1
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14019c170]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140075d84
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea ebx, [rcx - 1]
mov r8d, ebx
mov rcx, rsi
call fcn.140002390
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rsi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140076210
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140076236
add rsp, 0x48
ret
lea r8, [rsp + 0x34]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
xor ebx, ebx
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140076296
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
mov edx, 0x80020003
mov ecx, 2
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x14007b6b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x860
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, rcx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, str.Sound_Blaster
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.Sound_Blaster
mov rcx, rsi
call fcn.140002390
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareCreative_TechSB_Plugin_for_Dell_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007b7e4
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x30], 0x800
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.TabName
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14007b7d4
mov eax, dword [rsp + 0x38]
cmp eax, 1
je 0x14007b792
cmp eax, 2
jne 0x14007b7d4
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14007b7ab
test al, 1
jne 0x14007b7d4
shr rax, 1
cmp word [rsp + rax*2 + 0x4e], 0
je 0x14007b7b2
jmp 0x14007b7d4
mov word [rsp + 0x50], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140002390
test rbx, rbx
je 0x14007b7e4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test rbx, rbx
je 0x14007b7f2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.14015d000
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14007d080
Capabilities:
Get file size
Read .ini file

Disassembly:
push rsi
sub rsp, 0x50
test rdx, rdx
mov rsi, rcx
jne 0x14007d096
xor eax, eax
add rsp, 0x50
pop rsi
ret
mov qword [rcx + 8], rdx
mov rcx, qword [0x14022f9a0]
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 0x14007d230
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 0x14007d230
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.14013d074
test rax, rax
mov r12, rax
jne 0x14007d150
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 [0x14022f9a0]
lea r8, [0x14019cf88]
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, [0x14022e890]
xor r9d, r9d
call fcn.14014ba50
mov rbx, r12
mov dword [rsi + 0x10], eax
cmp word [r12], 0
je 0x14007d1c6
mov rdx, rbx
mov rcx, rsi
call fcn.14007d540
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 0x14007d1a4
cmp dword [rsi + 0x18], 0
je 0x14007d1ee
add dword [rsi + 0x10], 1
mov r9d, dword [rsi + 0x10]
lea r8, str.SetCount
lea rdx, str.DefLevel
lea rcx, [0x14022e890]
call fcn.14014baf0
cmp dword [rsi + 0x14], 0
jne 0x14007d21e
lea r8, str.Finished
lea rdx, str.DefLevel
lea rcx, [0x14022e890]
mov r9d, 1
call fcn.14014baf0
mov dword [0x14022e824], 1
mov rcx, r12
call fcn.14013d06c
mov eax, 1
jmp 0x14007d131
xor eax, eax
jmp 0x14007d13b
Function at 0x1400877b0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x40
mov rsi, rcx
lea rbx, [rcx + 0x158]
mov edi, 0x20
nop
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
add rbx, 8
sub rdi, 1
mov qword [rbx - 8], rax
jne 0x1400877e0
lea r8d, [rdi + 1]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsi + 0x258], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r12d, r12d
lea rcx, [0x140087d40]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x28], r12
mov qword [rsi + 0x260], rax
mov dword [rsp + 0x20], 4
call fcn.14014d1a0
test rax, rax
mov rbp, rax
je 0x1400879d8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rbp + 0x58]
mov dword [rsp + 0x30], 2
lea r9, [rsi + 0x268]
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsi + 0x270], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rcx, [0x140087e70]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x28], r12
mov qword [rsi + 0x278], rax
mov dword [rsp + 0x20], 4
call fcn.14014d1a0
test rax, rax
mov rbp, rax
je 0x1400879d8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rbp + 0x58]
mov dword [rsp + 0x30], 2
lea r9, [rsi + 0x280]
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsi + 0x2f8], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rcx, [0x140087f10]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x28], r12
mov qword [rsi + 0x300], rax
mov dword [rsp + 0x20], 4
call fcn.14014d1a0
test rax, rax
mov rbp, rax
je 0x1400879d8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rbp + 0x58]
mov dword [rsp + 0x30], 2
lea r9, [rsi + 0x308]
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x14008f850
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov ebp, r9d
mov r12d, r8d
mov rsi, rdx
mov r13, rcx
call fcn.14013d07c
mov rcx, rax
xor r10d, r10d
test rax, rax
setne r10b
test r10d, r10d
jne 0x14008f8a3
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rbx, qword [rsi]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x14008f8d9
cmp rax, qword [rbx - 0x18]
jne 0x14008f8d9
lea rdi, [rbx - 0x18]
lock add dword [rbx - 8], 1
jmp 0x14008f917
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
jne 0x14008f8f5
call fcn.1400c5210
int3
mov eax, dword [rbx - 0x10]
mov dword [rdi + 8], eax
mov eax, dword [rbx - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rdi + 0x18]
call fcn.14015cd30
lea rax, [rdi + 0x18]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.14008f730
nop
lea rdx, [0x1401b05c8]
lea rcx, str.failed
test r12d, r12d
cmovne rcx, rdx
lea rdx, str.get_Property
lea r8, str.get_Value
cmp dword [rsp + 0x90], 0
cmovne r8, rdx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rcx
mov r9, qword [rax]
lea rdx, str._RTK___s__s__s___val_d_r_n
lea rcx, [rsp + 0x30]
call fcn.140001f50
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14008f9a2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
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 0x14008f9cd
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 0x14008f9e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret