joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045d48
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140026720
sub rsp, rax
mov rax, qword [0x140075180]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140043fa8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140045d97
mov rax, rbp
jmp 0x140045e9f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x7acf0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140046e68
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x7acf0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140045e9b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140045e9b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140046e68
test rax, rax
js 0x140045e9b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140045e9b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140045e8d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140045e8d
cmp byte [rcx], 0xd
jne 0x140045e73
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140045e82
cmp byte [rcx + 1], 0xa
jne 0x140045e82
inc rcx
jmp 0x140045e82
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x755d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140045e55
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140045e9f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140025df0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400460c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400460d6
mov al, 1
jmp 0x140046136
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400460e7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140046134
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400499f0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140046134
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140046134
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140046134
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140046136
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140046208
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14007acf0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14004625f
cmp word [rdx], r13w
jne 0x14004625f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140046264
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140046389
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400463aa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004629d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400462c4
cmp r9, r8
jae 0x1400462d4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14004627e
jmp 0x140046389
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004637e
cmp dword [rsp + 0x80], esi
je 0x14004637e
lea r8, [0x14007acf0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140046356
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140046326
mov word [rbx], r13w
jmp 0x140046386
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140046333
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140046386
cmp word [rsp + 0x70], r13w
jne 0x140046363
cmp rbx, r14
je 0x140046320
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140046e70
cmp word [rsp + 0x70], r13w
je 0x140046389
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14007acf0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140046383
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140046389
Function at 0x1400491ec
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004921c
xor eax, eax
jmp 0x1400492df
mov rbp, rbx
cmp word [rax], si
je 0x140049241
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140049228
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140049224
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400429c4
movsxd r14, eax
test eax, eax
jne 0x14004927f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140049215
mov rcx, r14
call fcn.1400416b8
mov rdi, rax
test rax, rax
jne 0x140049298
xor ecx, ecx
call fcn.14004167c
jmp 0x140049274
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400429c4
test eax, eax
jne 0x1400492c9
mov rcx, rdi
call fcn.14004167c
jmp 0x1400492d3
xor ecx, ecx
call fcn.14004167c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14004bf44
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14004131c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14004bfe5
cmp ebx, dword [rsp + 0x30]
je 0x14004bfde
test esi, esi
je 0x14004bfde
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004bfb9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004bfc6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004bfa3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004bfca
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004bfe7
mov eax, 1
jmp 0x14004bfe7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004f044
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140035ba8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004f0ce
cmp byte [rbp - 0x21], r15b
je 0x14004f0c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004f104
call fcn.140041fc8
test eax, eax
jne 0x14004f0f0
cmp byte [rbp - 0x21], r15b
je 0x14004f0e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004f104
cmp byte [rbp - 0x21], r15b
je 0x14004f101
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003d3a4
test eax, eax
jne 0x14004f1a4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140035ba8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004f143
cmp byte [rbp - 0x21], r15b
je 0x14004f178
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004f178
call fcn.140041fc8
test eax, eax
jne 0x14004f164
cmp byte [rbp - 0x21], r15b
je 0x14004f15d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004f178
cmp byte [rbp - 0x21], r15b
je 0x14004f175
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003d3a4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004f1a4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004f1a7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004f1b5
mov rcx, rdi
call fcn.14004167c
cmp byte [rbp + 0x3f], r15b
je 0x14004f1c4
mov rcx, qword [rbp + 0x27]
call fcn.14004167c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400507f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140050818
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140050818
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000b690
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400f5010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor edi, edi
add rcx, 8
mov dword [rcx + 0x28], edi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
mov qword [rbx + 0x38], rdi
lea rax, vtable.CAsyncEventNotifyBase.0
mov qword [rbx], rax
lea r8, [0x14000b870]
mov qword [rbx + 0x40], rdi
lea rax, [rsp + 0x30]
mov dword [rbx + 0x48], edi
mov r9, rbx
mov dword [rbx + 0x4c], 2
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], edi
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], rdi
mov qword [rbx + 0x60], rdi
mov qword [rbx + 0x68], rdi
mov qword [rbx + 0x70], rdi
mov dword [rbx + 0x78], 0xa
mov dword [rsp + 0x30], edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rbx + 0x38], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx + 0x40], rax
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008ade0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400100e0
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov r14, rdx
mov r15, rcx
test rdx, rdx
lea rdx, str.CAudioDeviceMuteStateHandler::OnRemoveDevice
jne 0x14001012e
mov r8d, 0x165
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.14003f0e0
mov r8d, 0x167
lea rcx, [0x1400a9e48]
call fcn.14003f0e0
xor edi, edi
lea rbp, [rdi - 1]
cmp dword [r15 + 0x30], edi
je 0x14001021c
mov rbx, qword [r14 + 0x148]
call fcn.140003970
mov rcx, rax
test rax, rax
je 0x140010312
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1400050d0
test al, al
jne 0x1400101af
test rbx, rbx
jne 0x140010191
mov eax, edi
jmp 0x14001019e
mov rax, rbp
inc rax
cmp word [rbx + rax*2], 0
jne 0x140010194
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140003400
nop
mov rbx, qword [rsp + 0x68]
cmp dword [rbx - 0x10], 0
jge 0x1400101be
mov esi, ebp
jmp 0x1400101df
lea rdx, str.0.0.0.00000000
mov rcx, rbx
call fcn.140091080
mov rsi, rax
test rax, rax
jne 0x1400101d9
mov esi, ebp
jmp 0x1400101df
sub rsi, rbx
sar rsi, 1
shr esi, 0x1f
xor sil, 1
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400101ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x14001021c
call fcn.140009a90
mov rcx, rax
mov edx, 0x3fd
mov r8d, 0xc8
call fcn.140080de0
cmp dword [r15 + 0x2c], 0
je 0x1400102f6
mov rbx, qword [r14 + 0x148]
call fcn.140003970
mov rcx, rax
test rax, rax
je 0x140010307
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400050d0
test al, al
jne 0x14001028b
test rbx, rbx
je 0x14001027a
mov rdi, rbp
nop word [rax + rax]
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x140010270
mov r8d, edi
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140003400
nop
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0x10], 0
jge 0x14001029a
mov edi, ebp
jmp 0x1400102bb
lea rdx, str.0.0.1.00000000
mov rcx, rbx
call fcn.140091080
mov rdi, rax
test rax, rax
jne 0x1400102b5
mov edi, ebp
jmp 0x1400102bb
sub rdi, rbx
sar rdi, 1
shr edi, 0x1f
xor dil, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x1400102d9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x1400102f6
call fcn.140009a90
mov rcx, rax
mov edx, 0x3fe
mov r8d, 0xc8
call fcn.140080de0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003700
int3
mov ecx, 0x80004005
call fcn.140003700
int3
Function at 0x140011d80
Capabilities:
Print debug messages

Disassembly:
push rbx
push rsi
sub rsp, 0x28
cmp dword [rcx + reloc.OLEAUT32.dll_LPSAFEARRAY_UserUnmarshal], 0
mov rsi, rdx
mov rbx, rcx
je 0x140011dce
mov r8d, 0x2d
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14003f0e0
mov r8d, 0xe8
lea rdx, str.CAudioDeviceSessionEvents::AddNewAudioSession
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.14003f0e0
mov qword [rsp + 0x48], rbp
mov eax, 1
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], r14
lock xadd dword [rcx + 0x120], eax
mov ecx, 0x28
call fcn.14008b40c
mov rdi, rax
mov qword [rsp + 0x40], rax
xor eax, eax
xor r14d, r14d
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
mov qword [rdi + 0x10], rax
lea rax, vtable.CAudioSessionEvents.0
mov qword [rdi], rax
mov qword [rdi + 8], r14
mov qword [rdi + 0x18], r14
mov qword [rdi + 0x20], r14
call fcn.140013b70
lea rsi, [r14 - 1]
test eax, eax
je 0x140011f26
mov rbp, qword [rbx + 0x140]
cmp qword [rbx + 0x158], r14
jne 0x140011edb
mov ecx, dword [rbx + 0x160]
test rcx, rcx
jne 0x140011e59
mov ecx, r14d
jmp 0x140011e73
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 0x18
jb 0x140011f6c
lea rcx, [rcx + rcx*2]
shl rcx, 3
add rcx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140011f6c
mov rcx, qword [rbx + 0x150]
mov qword [rax], rcx
mov qword [rbx + 0x150], rax
mov r8d, dword [rbx + 0x160]
lea ecx, [r8 - 1]
lea rdx, [rcx*2 + 1]
add rdx, rcx
sub r8d, 1
lea rdx, [rax + rdx*8]
js 0x140011edb
nop word [rax + rax]
mov rax, qword [rbx + 0x158]
mov qword [rdx], rax
mov qword [rbx + 0x158], rdx
sub rdx, 0x18
sub r8d, 1
jns 0x140011ec0
mov rcx, qword [rbx + 0x158]
mov rax, qword [rcx]
mov qword [rcx + 0x10], rdi
mov qword [rbx + 0x158], rax
mov qword [rcx + 8], rbp
mov qword [rcx], r14
inc qword [rbx + 0x148]
mov rax, qword [rbx + 0x140]
test rax, rax
je 0x140011f16
mov qword [rax], rcx
mov qword [rbx + 0x140], rcx
jmp 0x140011f2e
mov qword [rbx + 0x138], rcx
mov qword [rbx + 0x140], rcx
jmp 0x140011f2e
mov rcx, rdi
call fcn.140011af0
lock xadd dword [rbx + 0x120], esi
mov eax, dword [rbx + 0x120]
test eax, eax
jne 0x140011f56
cmp dword [rbx + reloc.OLEAUT32.dll_LPSAFEARRAY_UserUnmarshal], r14d
je 0x140011f56
mov rcx, qword [rbx + 0x118]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov ecx, 0x8007000e
call fcn.140003700
int3
Function at 0x1400143a0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp r8d, 0x16
jne 0x1400143e4
mov rax, qword [rsp + 0x60]
lea rdx, str.CBackgroundProcMain::OnWindowsMessage
mov r8d, 0x25
mov qword [rsp + 0x20], rax
lea rcx, str._s__d_WM_ENDSESSION_wParam_d_lParam_d
call fcn.14003f0e0
call fcn.140011360
mov rcx, rax
add rsp, 0x30
pop rbx
jmp 0x140070490
cmp r8d, 0x10
jne 0x14001444d
mov rax, qword [rsp + 0x60]
lea rdx, str.CBackgroundProcMain::OnWindowsMessage
mov r8d, 0x2b
mov qword [rsp + 0x20], rax
lea rcx, str._s__d_WM_CLOSE_wParam_d_lParam_d_Start
call fcn.14003f0e0
mov rcx, rbx
call fcn.140015a50
test rbx, rbx
je 0x14001442f
mov rcx, rbx
call fcn.140014320
mov edx, 0xf0
mov rcx, rbx
call fcn.14008ae0c
mov r8d, 0x2e
lea rdx, str.CBackgroundProcMain::OnWindowsMessage
lea rcx, str._s__d_WM_CLOSE_end
add rsp, 0x30
pop rbx
jmp fcn.14003f0e0
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400f5010]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rsi, [rcx + 0xb8]
lea r14, [rcx + 0xe8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rbx, qword [r14]
test rbx, rbx
je 0x140070572
xor ebp, ebp
test rbx, rbx
je 0x1400705a5
mov rdi, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdi, rdi
je 0x140070569
cmp dword [0x1400fa5e4], ebp
jne 0x14007054e
cmp dword [0x1400fa5e0], ebp
jne 0x14007054e
cmp dword [0x1400fa5e8], ebp
jne 0x14007054e
movups xmm0, xmmword [0x1400a9190]
mov rcx, qword [rdi + 0x800]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov r9d, 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x50], ebp
movaps xmmword [rsp + 0x40], xmm0
lea r8d, [r9 + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140064260
cmp qword [rdi + 0x810], rbp
je 0x140070569
mov rcx, qword [rdi + 0x7e0]
test rcx, rcx
je 0x140070569
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
test rbx, rbx
jne 0x1400704df
mov rcx, r14
call fcn.14000a500
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008ade0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140003700
int3
Function at 0x140017970
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, qword [0x1400f5010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov rbp, rdx
mov r15, rcx
call fcn.140003970
mov rcx, rax
test rax, rax
je 0x140017ba0
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
xor r13d, r13d
mov dword [rsp + 0x38], r13d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
lea r14, [r13 - 1]
test eax, eax
jne 0x140017b62
cmp dword [rsp + 0x40], 7
jne 0x140017b62
mov edi, dword [rsp + 0x38]
shr edi, 1
je 0x140017b62
mov ecx, edi
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.14008b448
mov r12, rax
test rax, rax
je 0x140017b62
cmp edi, 2
jb 0x140017b59
lea r8d, [rdi + rdi]
mov dword [rsp + 0x3c], r8d
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140017b59
cmp dword [rsp + 0x44], 7
jne 0x140017b59
mov eax, dword [rsp + 0x3c]
test al, 1
jne 0x140017b59
mov ebp, eax
shr ebp, 1
cmp ebp, 1
jb 0x140017b59
shr rax, 1
cmp word [r12 + rax*2 - 2], r13w
jne 0x140017b59
cmp ebp, 1
jbe 0x140017aba
cmp word [r12 + rax*2 - 4], r13w
jne 0x140017b59
mov edi, r13d
test ebp, ebp
je 0x140017b59
nop word [rax + rax]
mov eax, edi
lea rdx, [r12 + rax*2]
cmp r13w, word [rdx]
jne 0x140017ae3
mov eax, 1
jmp 0x140017b4f
test rdx, rdx
jne 0x140017aed
mov eax, r13d
jmp 0x140017afa
mov rax, r14
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140017af0
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.140003400
mov rbx, qword [rsp + 0x48]
movzx eax, word [rbx]
cmp ax, word [0x1400aa028]
je 0x140017b4c
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CLSIDFromString]
mov rdx, qword [rsi + 8]
cmp qword [rsi + 0x10], rdx
je 0x140017b3f
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rdx], xmm0
add qword [rsi + 8], 0x10
jmp 0x140017b4c
lea r8, [rsp + 0x50]
mov rcx, rsi
call fcn.14001c780
mov eax, dword [rbx - 0x10]
add edi, eax
cmp edi, ebp
jb 0x140017ad0
mov rcx, r12
call fcn.14008ae0c
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140017b7b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008ade0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003700
int3