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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14000b671
cmp byte [rdx], bl
je 0x14000b671
mov rdx, rcx
mov rcx, qword [0x140015340]
call fcn.14000d944
mov r11, rax
test rax, rax
je 0x14000b66d
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000b64f
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call fcn.14000b810
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor eax, eax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [r11]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000b690
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14000b708
test r8d, r8d
je 0x14000b708
mov rdx, rcx
mov rcx, qword [0x140015340]
call fcn.14000d944
test rax, rax
je 0x14000b704
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000b6f1
mov rcx, rax
call fcn.14000b810
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000b720
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x140015340]
xor ebp, ebp
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x68], ebp
call fcn.14000d944
mov rbx, rax
test rax, rax
je 0x14000b800
test rsi, rsi
je 0x14000b7ab
cmp byte [rsi], bpl
je 0x14000b7ab
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov rdx, rsi
mov rdi, rsi
cmp qword [rax + 8], rbp
je 0x14000b788
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.14000b810
mov dword [rsp + 0x60], eax
jmp 0x14000b7a6
xor eax, eax
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbp
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x50]
mov r8d, 2
lea rdx, [0x140011f30]
cmp qword [rbx + 8], rbp
je 0x14000b7d9
mov rcx, rbx
call fcn.14000b810
mov rdx, rax
mov eax, dword [rsp + 0x60]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
movsxd rax, dword [rsp + 0x60]
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000b810
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x1c], 1
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], 0
jne 0x14000b85a
mov edx, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov r9d, 1
neg edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], 0
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x14000b896
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x14000b88f
dec edx
je 0x14000b887
cmp edx, 2
je 0x14000b881
mov rdx, rsi
jmp 0x14000b8e4
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x14000b8ec
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x14000b8ec
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x14000b8ec
mov rcx, rbx
call fcn.14000ae90
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x14000b8d9
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
sub r11d, dword [rbx + 0x14]
movsxd rcx, r11d
add rcx, qword [rbx + 8]
mov r8, rdi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x14000caa0
Capabilities:
Hash data with crc32
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rdi
push r12
push r14
sub rsp, 0x58
or ebx, 0xffffffff
xor r12d, r12d
mov r14, r8
mov edi, 0x80000
test rcx, rcx
je 0x14000cd0b
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14000cd06
mov rcx, qword [0x1400148d4]
xor edx, edx
mov r8d, edi
mov qword [rsp + 0x48], r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x14000ccf8
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x50], rsi
test rax, rax
jle 0x14000cb53
lea r8, [rsp + 0x8c]
xor r9d, r9d
mov edx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ebp, [r14 + 0x80000]
lea rsi, [0x140011f90]
add r12d, 0x80000
sub ebp, 0x80000
cmp r14, 0xffffffffffffffff
je 0x14000cb7d
movsxd rax, r12d
cmp rax, r14
cmovg edi, ebp
lea r9, [rsp + 0x80]
mov r8d, edi
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r10d, dword [rsp + 0x80]
mov r11, r13
mov r9d, r10d
cmp r10d, 8
jb 0x14000ccab
mov esi, r10d
lea r10, [0x140011f90]
shr rsi, 3
nop word [rax + rax]
movzx ecx, byte [r11]
mov eax, ebx
shr ebx, 8
xor rcx, rax
add r11, 8
add r9d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r11 - 7]
mov edx, dword [r10 + rax*4]
xor edx, ebx
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 6]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 5]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 4]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 3]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 2]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 1]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ebx, dword [r10 + rax*4]
xor ebx, edx
dec rsi
jne 0x14000cbd0
mov r10d, dword [rsp + 0x80]
lea rsi, [0x140011f90]
test r9d, r9d
je 0x14000cccc
movzx ecx, byte [r11]
mov eax, ebx
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov ebx, dword [rsi + rdx*4]
xor ebx, eax
dec r9d
jne 0x14000ccb0
cmp r10d, 0x80000
je 0x14000cb61
mov rcx, qword [0x1400148d4]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x90]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
not ebx
movsxd rax, ebx
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rbx
ret
or r8, 0xffffffffffffffff
xor edx, edx
jmp 0x14000caa0
Function at 0x14000cd20
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rdi
push r12
push r14
sub rsp, 0x58
or ebx, 0xffffffff
xor r12d, r12d
mov r14, r8
mov edi, 0x80000
test rcx, rcx
je 0x14000cd0b
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14000cd06
mov rcx, qword [0x1400148d4]
xor edx, edx
mov r8d, edi
mov qword [rsp + 0x48], r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x14000ccf8
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x50], rsi
test rax, rax
jle 0x14000cb53
lea r8, [rsp + 0x8c]
xor r9d, r9d
mov edx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ebp, [r14 + 0x80000]
lea rsi, [0x140011f90]
add r12d, 0x80000
sub ebp, 0x80000
cmp r14, 0xffffffffffffffff
je 0x14000cb7d
movsxd rax, r12d
cmp rax, r14
cmovg edi, ebp
lea r9, [rsp + 0x80]
mov r8d, edi
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r10d, dword [rsp + 0x80]
mov r11, r13
mov r9d, r10d
cmp r10d, 8
jb 0x14000ccab
mov esi, r10d
lea r10, [0x140011f90]
shr rsi, 3
nop word [rax + rax]
movzx ecx, byte [r11]
mov eax, ebx
shr ebx, 8
xor rcx, rax
add r11, 8
add r9d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r11 - 7]
mov edx, dword [r10 + rax*4]
xor edx, ebx
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 6]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 5]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 4]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 3]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 2]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 1]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ebx, dword [r10 + rax*4]
xor ebx, edx
dec rsi
jne 0x14000cbd0
mov r10d, dword [rsp + 0x80]
lea rsi, [0x140011f90]
test r9d, r9d
je 0x14000cccc
movzx ecx, byte [r11]
mov eax, ebx
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov ebx, dword [rsi + rdx*4]
xor ebx, eax
dec r9d
jne 0x14000ccb0
cmp r10d, 0x80000
je 0x14000cb61
mov rcx, qword [0x1400148d4]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x90]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
not ebx
movsxd rax, ebx
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rbx
ret
or r8, 0xffffffffffffffff
xor edx, edx
jmp 0x14000caa0
Function at 0x1400032c4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rcx + 8]
mov rbx, rcx
lea rdx, [0x14001f340]
call 0x14000a648
lea r8, [rbx + 0xc]
lea rdx, str.First_Help
call 0x14000a648
lea r8, [rbx + 0x10]
lea rdx, str.Last_Counter
call 0x14000a648
lea r8, [rbx + 0x14]
lea rdx, str.Last_Help
add rsp, 0x20
pop rbx
jmp 0x14000a648
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov eax, dword [0x1400306e8]
mov rbx, r8
mov rdi, rdx
test al, 1
jne 0x14000a694
and qword [0x1400306f0], 0
lea rcx, [0x14001d4d0]
and qword [0x1400306f8], 0
or eax, 1
and qword [0x140030700], 0
mov dword [0x1400306e8], eax
call fcn.140019894
test rbx, rbx
je 0x14000a748
and dword [rbx], 0
mov rax, qword [0x1400306f0]
test rax, rax
jne 0x14000a707
and qword [rsp + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWmiApRplPerformance
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
mov rax, qword [0x1400306f0]
jne 0x14000a703
xor ecx, ecx
test rax, rax
je 0x14000a6f7
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov qword [0x1400306f0], rax
test ecx, ecx
jne 0x14000a74d
and dword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp dword [rsp + 0x40], 4
mov ecx, eax
mov eax, 0xd
cmovne ecx, eax
jmp 0x14000a74d
mov ecx, 0x80004003
mov rbx, qword [rsp + 0x48]
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
add rsp, 0x30
pop rdi
ret
Function at 0x140003364
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x860
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, rcx
mov rdi, rdx
mov rcx, rdx
mov ebx, 0x3f2
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
xor ebp, ebp
test eax, eax
je 0x140003459
lea rax, [rsp + 0x40]
mov r9d, 0x1000a
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140003459
xor edx, edx
mov word [rsp + 0x50], bp
mov r8d, 0x7fe
lea rcx, [rsp + 0x52]
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rbp
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x48], 0x400
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov ebx, eax
cmp eax, 0x103
je 0x14000343a
test eax, eax
jne 0x140003434
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
call fcn.140003364
mov ebx, eax
test ebx, ebx
je 0x1400033cc
jmp 0x14000344e
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140019770
mov rbx, qword [rsp + 0x890]
add rsp, 0x860
pop rdi
pop rsi
pop rbp
ret

Function at 0x140003484
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
mov rsi, r8
mov rcx, rdx
mov rdi, rdx
mov ebx, 0x3f2
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
test eax, eax
je 0x1400034f9
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov r9d, 0x10002
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400034f9
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140003b90
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x60
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov ebx, 0x80004005
mov esi, 1
xor r14d, r14d
test esi, esi
je 0x140003c40
lea rcx, [0x140030648]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
nop
mov eax, dword [0x1400305d0]
test eax, eax
jne 0x140003bf9
lea r14d, [rax + 1]
mov dword [0x1400305d0], r14d
mov dword [0x1400305cc], r14d
mov rcx, qword [0x14002f120]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ResetEvent]
xor esi, esi
jmp 0x140003bb6
cmp dword [0x1400305cc], 0
je 0x140003c28
lea rcx, [0x140030648]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
or edx, 0xffffffff
mov rcx, qword [0x14002f120]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
test eax, eax
je 0x140003bb6
jmp 0x140003d2b
xor esi, esi
inc eax
mov dword [0x1400305d0], eax
xor ebx, ebx
jmp 0x140003bb6
lea rcx, [0x140030648]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
test r14d, r14d
je 0x140003d2b
call fcn.140004f34
mov ebx, eax
test eax, eax
js 0x140003cf2
mov rax, qword [0x14002f170]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140003c79
mov rcx, qword [rcx + 8]
and qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x42
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoInitializeSecurity]
mov ebx, eax
test eax, eax
js 0x140003cec
mov rax, qword [0x14002f180]
add rax, 0x108
cmp qword [rax], 0
jne 0x140003ce6
mov qword [rsp + 0x20], rax
lea r9, [0x14001f490]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14001f480]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoCreateInstance]
mov ebx, eax
jmp 0x140003cec
jmp 0x140003cf2
lea rcx, [0x140030648]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
nop
test ebx, ebx
jns 0x140003d0a
dec dword [0x1400305d0]
and dword [0x1400305cc], 0
mov rcx, qword [0x14002f120]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SetEvent]
lea rcx, [0x140030648]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x140009cd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rdi, r9
mov qword [rax - 0x10], r9
mov rbx, rdx
mov qword [rax - 0x18], rdx
lea r9, [rax + 0x18]
xor esi, esi
lea rdx, str.Working_Directory
xor r8d, r8d
mov dword [rax + 0x18], esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x50]
mov edx, eax
test ecx, ecx
je 0x140009d49
cmp ecx, 2
jbe 0x140009d5e
cmp ecx, 7
jne 0x140009d49
test byte [rdi], 1
jne 0x140009d49
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x140009d49
test rbx, rbx
je 0x140009d74
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140009d49
cmp word [rbx + rax*2 - 4], si
je 0x140009d74
mov eax, 0xd
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test byte [rdi], 1
jne 0x140009d49
test rbx, rbx
je 0x140009d74
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140009d49
mov eax, edx
jmp 0x140009d4e
Function at 0x140009d80
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov qword [rax - 0x60], 0xfffffffffffffffe
xor esi, esi
and qword [rax - 0x50], rsi
and qword [rax - 0x48], rsi
xor edi, edi
mov qword [rsp + 0xb0], rdi
and qword [rax + 0x10], rdi
lea rax, [rax + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWbemCIMOM
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009fa1
mov rsi, qword [rsp + 0xa8]
mov qword [rsp + 0x40], rsi
and qword [rsp + 0xb8], rdi
and qword [rsp + 0x30], rdi
and dword [rsp + 0xa8], edi
lea r9, [rsp + 0xa8]
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140009cd0
test eax, eax
jne 0x140009fa1
mov ecx, dword [rsp + 0xa8]
add rcx, rcx
lea r15d, [rdi + 2]
mov eax, r15d
mul rcx
lea r13, [rdi - 1]
cmovo rax, r13
mov rcx, rax
call fcn.14001930c
mov r14, rax
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x140009f92
lea r9, [rsp + 0xa8]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140009cd0
test eax, eax
jne 0x140009f81
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_ExpandEnvironmentStringsW]
mov r12d, eax
test eax, eax
je 0x140009f81
mov eax, r15d
mul r12
cmovo rax, r13
mov rcx, rax
call fcn.14001930c
mov r15, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140009f81
mov r8d, r12d
mov rdx, rax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_ExpandEnvironmentStringsW]
mov r13d, eax
test eax, eax
je 0x140009f73
cmp dword [rsp + 0xa0], edi
je 0x140009f24
lea rcx, str.Performance_
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
lea r12d, [rax + 1]
add r12d, r13d
lea eax, [rdi + 2]
mul r12
lea rcx, [rdi - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.14001930c
mov rdi, rax
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x140009f73
mov edx, r13d
mov r8, r15
mov rcx, rax
call fcn.14000393c
lea r8, str.Performance_
jmp 0x140009f68
lea r12d, [r13 + 2]
mov eax, 2
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14001930c
mov rdi, rax
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x140009f73
mov r8, r15
mov edx, r12d
mov rcx, rax
call fcn.14000393c
lea r8, [0x14001ed14]
mov rdx, r12
mov rcx, rdi
call fcn.14000389c
mov rcx, r15
call sub.msvcrt.dll_free
and qword [rsp + 0x30], 0
mov rcx, r14
call sub.msvcrt.dll_free
and qword [rsp + 0xb8], 0
jmp 0x140009fa1
test rsi, rsi
je 0x140009faf
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rax, rdi
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14000a28c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov esi, r9d
mov rbp, r8
xor r14d, r14d
mov edi, r14d
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x28], r14
mov qword [r11 - 0x20], r14
mov qword [r11 + 0x10], r14
lea rax, [r11 + 0x10]
mov qword [r11 - 0x48], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWBEMPROVIDERSPerformance
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000a2ff
mov ebx, r14d
mov rdi, qword [rsp + 0x78]
mov qword [rsp + 0x38], rdi
test ebx, ebx
je 0x14000a329
cmp ebx, 5
je 0x14000a325
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x90]
call fcn.14000a090
test eax, eax
cmovns ebx, r14d
mov rdi, qword [rsp + 0x38]
test ebx, ebx
jne 0x14000a34d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbp
mov r9d, 3
xor r8d, r8d
lea rdx, str.Performance_Data
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
test rdi, rdi
je 0x14000a369
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14000a388
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov dword [r11 + 0x18], r8d
push rdi
sub rsp, 0x50
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rdi, rdx
xor ebx, ebx
mov qword [r11 - 0x20], rbx
and qword [r11 - 0x18], rbx
and qword [r11 - 0x10], rbx
and qword [r11 + 0x20], rbx
lea rax, [r11 + 0x20]
mov qword [r11 - 0x38], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWBEMPROVIDERSPerformance
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a3e9
mov rbx, qword [rsp + 0x78]
jmp 0x14000a3ff
cmp eax, 5
je 0x14000a3ff
lea r8, [rsp + 0x38]
xor edx, edx
call fcn.14000a090
mov rbx, qword [rsp + 0x38]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test rbx, rbx
je 0x14000a43f
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret