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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140063ec3
cmp byte [rcx + 0x71], 0
je 0x140063ec3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140063ebf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140063e84
sub eax, 1
je 0x140063e88
cmp eax, 2
jne 0x140063ebf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140066880
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140063eb6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140063ebf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140063e6c
xor al, al
jmp 0x140063e6c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140066880
add rsp, 0x60
pop rbx
ret

Function at 0x140065e54
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140065ed8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14006ac20]
cmp byte [rcx + rax], 0
je 0x140065ed8
dec r8
sub rdx, 1
jne 0x140065ebe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140067584
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400675ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400675ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400675ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400675ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1400675ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400675d0
xor al, al
add rsp, 0x28
ret
Function at 0x140004f40
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
xor r12d, r12d
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
movups xmmword [rbp - 0x48], xmm0
movups xmm0, xmmword [0x140008550]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [0x140008560]
movups xmmword [rbp - 0x28], xmm1
mov ecx, r12d
mov eax, edx
sub eax, esi
add dword [rbp - 0x48], eax
mov edx, r12d
nop
add ecx, dword [rbp + rdx*4 - 0x48]
mov dword [rbp + rdx*4 - 0x48], ecx
cmp ecx, 0x10000
jb 0x140004fe2
shr ecx, 0x10
mov word [rbp + rdx*4 - 0x46], r12w
inc rdx
cmp rdx, 4
jb 0x140004fc0
mov rdi, qword [rbp - 0x58]
cmp rsi, r14
je 0x140005023
nop dword [rax + rax]
cmp rdi, qword [rbp - 0x50]
je 0x140005008
movzx eax, byte [rsi]
mov byte [rdi], al
mov rdi, qword [rbp - 0x58]
inc rdi
mov qword [rbp - 0x58], rdi
jmp 0x14000501b
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140005d70
mov rdi, qword [rbp - 0x58]
inc rsi
cmp rsi, r14
jne 0x140004ff0
mov r14, r12
mov rax, rdi
mov rsi, qword [rbp - 0x60]
sub rax, rsi
cmp rax, 0x40
jb 0x140005068
nop word [rax + rax]
lea rdx, [rsi + r14]
lea rcx, [rbp - 0x38]
call fcn.1400054d0
add r14, 0x40
mov rdi, qword [rbp - 0x58]
mov rcx, rdi
mov rsi, qword [rbp - 0x60]
sub rcx, rsi
lea rax, [r14 + 0x40]
cmp rax, rcx
jbe 0x140005040
lea rdx, [rsi + r14]
cmp rsi, rdx
je 0x140005087
sub rdi, rdx
mov r8, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
lea rax, [rdi + rsi]
mov qword [rbp - 0x58], rax
lea rcx, [rbp - 0x60]
call fcn.140003070
lea r8, [rbp - 0x38]
mov rax, r12
cmp rbx, r15
je 0x1400050b9
mov ecx, 3
sub cl, al
shl cl, 3
mov edx, dword [r8]
shr edx, cl
mov byte [rbx], dl
inc rbx
inc rax
cmp rax, 4
jb 0x140005097
add r8, 4
lea rax, [rbp - 0x18]
cmp r8, rax
jne 0x140005094
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140005103
mov rdx, qword [rbp - 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400050fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005fb4
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140005f50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400068e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000692a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000692a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000692a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000692a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000692a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000692c
xor al, al
add rsp, 0x28
ret

Function at 0x1407c4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407c41df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407c4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c406f
add dl, dl
jne 0x1407c4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c40f6
xor eax, eax
add dl, dl
jne 0x1407c40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c41ad
add dl, dl
jne 0x1407c40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407c40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407c407e
mov eax, 1
add dl, dl
jne 0x1407c4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c40fb
sub eax, ebx
mov ebx, 1
jne 0x1407c414c
mov ecx, 1
add dl, dl
jne 0x1407c412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407c413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407c4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407c4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c415d
cmp eax, 0x7d00
jae 0x1407c419b
cmp eax, 0x500
jb 0x1407c4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c407e
cmp eax, 0x7f
ja 0x1407c419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407c41d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407c407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000f158
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140076010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000f211
cmp byte [rcx + 0x72], 0
je 0x14000f211
mov rax, qword [rcx]
mov edi, 0xffff
mov edx, edi
mov rax, qword [rax + 0x18]
call qword [case.0x140044c3e.0]
cmp di, ax
je 0x14000f1d2
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000f1d6
sub eax, 1
je 0x14000f1da
sub eax, 2
je 0x14000f211
xor al, al
jmp 0x14000f213
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000f208
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000f1d2
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14000f213
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400443a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140010988
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, r9
mov r9, r8
mov r14, rdx
mov rsi, rcx
movabs rcx, 0xcbf29ce484222325
xor edx, edx
movzx eax, byte [rdx + r9]
xor rcx, rax
movabs r8, 0x100000001b3
imul rcx, r8
inc rdx
cmp rdx, 8
jb 0x1400109c0
mov r8, qword [rsi + 0x30]
and r8, rcx
mov rax, r8
add rax, rax
mov rcx, qword [rsi + 0x18]
mov rdi, qword [rsi + 8]
mov r11, qword [rcx + rax*8]
cmp r11, rdi
je 0x140010a05
mov rdi, qword [rcx + rax*8 + 8]
mov rdi, qword [rdi]
mov rdx, rdi
cmp rdx, r11
je 0x140010a3e
mov rdi, qword [rdi + 8]
mov rdx, rdi
mov rax, qword [rdi + 0x10]
cmp qword [r9], rax
jne 0x140010a08
mov r8, rbx
lea rdx, [rsp + 0x60]
lea rcx, [rsi + 8]
call fcn.140010b78
mov qword [r14], rdi
mov byte [r14 + 8], 0
mov rax, r14
jmp 0x140010b63
mov qword [rsp + 0x20], rbx
mov r9, qword [rbx]
cmp rdx, r9
je 0x140010a78
mov rax, qword [rbx + 8]
mov qword [rax], r9
mov rax, qword [r9 + 8]
mov qword [rax], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rbx
mov rcx, qword [rdx + 8]
mov rax, qword [r9 + 8]
mov qword [rdx + 8], rax
mov rax, qword [rbx + 8]
mov qword [r9 + 8], rax
mov qword [rbx + 8], rcx
add r8, r8
mov r9, qword [rsi + 0x18]
mov rax, qword [r9 + r8*8]
cmp rax, qword [rsi + 8]
jne 0x140010a98
mov qword [r9 + r8*8], rbx
mov rax, qword [rsi + 0x18]
mov qword [rax + r8*8 + 8], rbx
jmp 0x140010ac7
cmp rax, rdx
jne 0x140010aa3
mov qword [r9 + r8*8], rbx
jmp 0x140010ac7
mov rax, qword [r9 + r8*8 + 8]
mov rcx, qword [rax]
mov qword [r9 + r8*8 + 8], rcx
cmp rcx, rbx
je 0x140010ac7
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r8*8 + 8], rcx
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x38]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
movss xmm1, dword [0x1400646a8]
test rax, rax
jns 0x140010ae8
addss xmm0, xmm1
xorps xmm2, xmm2
cvtsi2ss xmm2, rdx
test rdx, rdx
jns 0x140010af9
addss xmm2, xmm1
divss xmm0, xmm2
comiss xmm0, dword [rsi]
jbe 0x140010b58
cmp rdx, 0x200
jae 0x140010b11
shl rdx, 3
jmp 0x140010b23
movabs rax, 0xfffffffffffffff
cmp rdx, rax
jae 0x140010b23
add rdx, rdx
mov rcx, rsi
call fcn.14000f22c
mov rax, qword [rsi + 8]
cmp qword [rax], rax
je 0x140010b58
mov r15, qword [rax + 8]
mov rdi, qword [rsi + 8]
mov rdi, qword [rdi]
lea r8, [rdi + 0x10]
mov r9, rdi
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140010988
cmp rdi, r15
jne 0x140010b38
mov qword [r14], rbx
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140010c40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov r9, rcx
mov rbx, rdx
movabs rcx, 0xcbf29ce484222325
xor r10d, r10d
movzx eax, byte [r10 + r8 + 0x10]
movabs rdx, 0x100000001b3
xor rcx, rax
inc r10
imul rcx, rdx
cmp r10, 8
jb 0x140010c59
mov rdx, qword [r9 + 0x30]
and rdx, rcx
mov rcx, qword [r9 + 0x18]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], r8
jne 0x140010cb1
cmp qword [rcx + rdx*8], r8
jne 0x140010ca6
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x140010caa
mov rax, qword [r8 + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x140010cbe
cmp qword [rcx + rdx*8], r8
jne 0x140010cbe
mov rax, qword [r8]
mov qword [rcx + rdx*8], rax
lea rcx, [r9 + 8]
mov rdx, rbx
call fcn.140010b78
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400187e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
lea rdx, str.CLSID
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400188b1
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400188a2
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.InsecureQI
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400188a2
cmp dword [rbp + 0x18], 4
jne 0x1400188a2
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x1400188a2
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400188b3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400188b3
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400188b1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400188c2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x140018ca4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x14007ea6c], 0
je 0x140018cca
mov eax, dword [0x14007ea70]
jmp 0x140018dce
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x14007ea70]
test eax, eax
jne 0x140018d36
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018d36
cmp dword [rbp + 0x10], ebx
je 0x140018da5
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x140018d4a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018dad
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018dad
cmp dword [rbp + 0x10], ebx
jne 0x140018dad
mov ebx, dword [0x14007ea70]
jmp 0x140018db6
and dword [0x14007ea70], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov byte [0x14007ea6c], 1
test rcx, rcx
je 0x140018dcc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret

Function at 0x14001d340
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov byte [r11 + 0x18], r8b
push rdi
sub rsp, 0x40
cmp qword [rcx + 8], 0
lea rbx, [rcx + 0x20]
mov rdi, rcx
je 0x14001d384
lea rax, str.Mutex__s_already_created
mov qword [r11 - 0x20], rbx
mov ecx, 0x17d8441
mov qword [r11 - 0x28], rax
call fcn.140020124
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x14001d391
mov r8, qword [rbx]
lea rcx, [rdx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
cmp eax, 0xb7
jne 0x14001d3cd
lea rax, str.Got_handle_to_existing_mutex__s
mov qword [rsp + 0x28], rbx
mov ecx, 0x17d8442
mov qword [rsp + 0x20], rax
call fcn.140020124
cmp qword [rdi + 8], 0
jne 0x14001d377
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
call fcn.140020270
xor al, al
jmp 0x14001d379
Function at 0x14001d4b0
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x103d0
call fcn.140045fb0
sub rsp, rax
mov rax, qword [0x140076010]
xor rax, rsp
mov qword [rsp + 0x103c0], rax
cmp qword [rdx + 0x18], 8
mov r9, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rcx
jb 0x14001d4e6
mov r9, qword [rdx]
mov r8d, 0x7fff
lea rdx, [rsp + 0x3c0]
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7ffe
ja 0x14001d532
lea rdx, [rsp + 0x3c0]
mov rcx, rbx
call fcn.140007214
mov rax, rbx
mov rcx, qword [rsp + 0x103c0]
xor rcx, rsp
call fcn.1400443a0
add rsp, 0x103d0
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14001f7a0
lea rdx, [0x140064df0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400211a8
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x50
xor edi, edi
mov rbx, rdx
cmp qword [rcx + 0x18], 8
mov rsi, rcx
mov qword [rax + 0x18], rdi
mov rdx, rcx
mov dword [rax + 8], edi
jb 0x1400211d4
mov rdx, qword [rcx]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x30006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002128b
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14002121d
mov rcx, qword [rbx]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140021221
lea ecx, [rax*2 + 2]
cmp qword [rbx + 0x10], rdi
jne 0x140021240
lea rbx, [0x14004f0d4]
jmp 0x14002124a
cmp qword [rbx + 0x18], 8
jb 0x14002124a
mov rbx, qword [rbx]
lea rdx, [rsi + 0x20]
cmp qword [rdx + 0x18], 8
jb 0x140021258
mov rdx, qword [rdx]
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rbx
mov ebx, 1
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
test eax, eax
movzx edi, dil
cmove edi, ebx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x68]
mov al, dil
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14002af94
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rdi, rcx
mov r15d, 1
mov edx, r15d
lea ecx, [r15 + 0x1f]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_378]
mov rdx, rax
xor r14d, r14d
test rax, rax
jne 0x14002afe1
mov ecx, 0x1117748
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2904]
nop
mov dword [rax + 8], r15d
lea rax, [0x14004a870]
mov qword [rdx], rax
test rdi, rdi
je 0x14002b010
mov r8, qword [rdi - 8]
test r8, r8
jne 0x14002b013
xor edx, edx
mov ecx, 0x100371a
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2055]
nop
nop dword [rax + rax]
mov r8, r14
mov qword [rdx + 0x10], rdi
mov rax, rdi
neg rax
sbb rcx, rcx
and rcx, r8
mov qword [rdx + 0x18], rcx
je 0x14002b031
mov eax, r15d
lock xadd dword [rcx + 0xc], eax
mov rcx, qword [rdi + 0x58]
mov qword [rdi + 0x58], rdx
test rcx, rcx
je 0x14002b050
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140044c3e.0]
mov rdx, qword [rdi + 0x58]
nop
mov rcx, qword [rdi + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x140044c3e.0]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [r15 + rax]
movsxd rcx, ebx
mov eax, 2
mul rcx
mov rbp, rax
mov rax, 0xffffffffffffffff
cmovo rbp, rax
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_378]
mov rsi, rax
test rax, rax
jne 0x14002b0a3
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1135]
nop
mov r8, rbp
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov word [rsi], r14w
mov r8d, ebx
mov rdx, rsi
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x14002b0e5
lea rcx, [rdi + 8]
mov rax, qword [rcx]
cmp byte [rdi + 0x22], r14b
sete r8b
mov rdx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x140044c3e.0]
nop
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rax
mov ebp, 3
mov edx, ebp
call qword [sym.imp.USER32.dll_GetAncestor]
mov rbx, rax
mov edx, ebp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.USER32.dll_GetAncestor]
cmp rbx, rax
sete r9b
lea r8d, [rbp - 1]
mov rcx, qword [rdi + 0x38]
call fcn.1400232b8
cmp byte [rdi + 0x22], r14b
jne 0x14002b16d
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_1443]
test eax, eax
je 0x14002b16d
lea edx, [rbp - 0x17]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
bt rax, 0x16
jb 0x14002b16d
mov dword [rsp + 0x68], r15d
lea r9d, [rbp + 1]
lea r8, [rsp + 0x68]
lea edx, [rbp + 3]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.dwmapi.dll_DwmSetWindowAttribute]
test eax, eax
jns 0x14002b16d
mov ecx, 0x2255252
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_154]
nop
mov rcx, rsi
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
mov al, r15b
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret