joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bdba4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov rbp, rdx
mov r14, rcx
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
lea r13, [0x140127458]
cmp rcx, rax
je 0x1400bdbfd
test byte [rcx + 0x1c], 1
je 0x1400bdbfd
cmp byte [rcx + 0x19], 5
jb 0x1400bdbfd
mov rcx, qword [rcx + 0x10]
mov edx, 0x4a
mov r9, rbp
mov r8, r13
call fcn.140003638
mov rcx, qword [r14]
lea rax, [rsp + 0x70]
xor r15d, r15d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov dword [rsp + 0x70], r15d
mov rdx, rbp
mov dword [rsp + 0x88], r15d
mov edi, r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400bdc5a
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
jbe 0x1400bdc4a
lea ebx, [r15 + 0xd]
jmp 0x1400bdc5a
mov edi, dword [rsp + 0x70]
mov ebx, r15d
shr edi, 1
mov dword [rsp + 0x88], edi
mov r10, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp r10, rax
je 0x1400bdc96
test byte [r10 + 0x1c], 2
je 0x1400bdc96
cmp byte [r10 + 0x19], 4
jb 0x1400bdc96
mov rcx, qword [r10 + 0x10]
mov edx, 0x4b
mov r9d, ebx
mov r8, r13
call fcn.1400036d4
mov r10, qword [0x14014dd40]
test ebx, ebx
jne 0x1400bdd8b
mov rax, qword [rsi]
lea ecx, [rbx + 1]
lea edx, [rdi + 2]
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or ecx, eax
jge 0x1400bdcbb
mov rcx, rsi
call fcn.140005158
mov r8, qword [rsi]
lea r9, [rsp + 0x88]
mov rdx, rbp
mov rcx, r14
call fcn.14001ccd0
mov ebx, eax
mov rcx, qword [0x14014dd40]
lea rdi, [0x14014dd40]
cmp rcx, rdi
je 0x1400bdd06
test byte [rcx + 0x1c], 2
je 0x1400bdd06
cmp byte [rcx + 0x19], 4
jb 0x1400bdd06
mov rcx, qword [rcx + 0x10]
mov edx, 0x4c
mov r9d, eax
mov r8, r13
call fcn.1400036d4
mov eax, ebx
neg eax
sbb ecx, ecx
or rax, 0xffffffffffffffff
neg ecx
dec ecx
cmp ecx, eax
jne 0x1400bdd32
mov rcx, qword [rsi]
test rcx, rcx
jne 0x1400bdd25
mov ecx, r15d
jmp 0x1400bdd3a
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1400bdd25
mov rcx, rax
test ecx, ecx
js 0x1400bdde2
mov rax, qword [rsi]
cmp ecx, dword [rax - 0xc]
jg 0x1400bdde2
mov dword [rax - 0x10], ecx
mov rax, qword [rsi]
movsxd rcx, ecx
mov word [rax + rcx*2], r15w
mov r10, qword [0x14014dd40]
cmp r10, rdi
je 0x1400bddc7
test byte [r10 + 0x1c], 2
je 0x1400bdd92
cmp byte [r10 + 0x19], 4
jb 0x1400bdd92
mov r9, qword [rsi]
mov edx, 0x4d
mov rcx, qword [r10 + 0x10]
mov r8, r13
call fcn.140003638
mov r10, qword [0x14014dd40]
jmp 0x1400bdd92
lea rdi, [0x14014dd40]
cmp r10, rdi
je 0x1400bddc7
test byte [r10 + 0x1c], 1
je 0x1400bddc7
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x1400bddc7
mov rcx, qword [r10 + 0x10]
mov edx, 0x4e
mov r9d, ebx
mov r8, r13
call fcn.1400036d4
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.140005300
int3
Function at 0x1400be5e4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x38
mov rax, qword [0x14014e920]
xor esi, esi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
and qword [rsp + 0x78], rsi
lea rdx, str.SOFTWAREMicrosoftWindows_Media_Player_NSS3.0
mov rbx, rax
mov r9d, 0x20119
lea rax, [rsp + 0x78]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400be6a4
mov rdi, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
and dword [rsp + 0x60], esi
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, str.AllowRMESharingOnDomainForTest
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400be696
cmp dword [rsp + 0x70], 4
jne 0x1400be696
test eax, eax
jne 0x1400be696
cmp dword [rsp + 0x60], esi
lea eax, [rsi + 1]
cmovne esi, eax
test rdi, rdi
je 0x1400be6a4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, rbx
or ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400be6cf
mov rdi, qword [rbx]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, r14
mov rcx, rdi
call rbx
mov eax, esi
add rsp, 0x38
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400be6e4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
mov rbp, rsp
sub rsp, 0x50
and dword [rbp + 0x38], 0
and dword [rbp + 0x40], 0
and qword [rbp - 8], 0
mov dword [rbp + 0x48], 4
mov rcx, qword [0x14014dd40]
lea r15, [0x14014dd40]
mov ebx, 1
cmp rcx, r15
je 0x1400be736
test byte [rcx + 0x1c], bl
je 0x1400be736
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x68]
lea r8, [0x140127458]
call fcn.140003614
xor edi, edi
lea r8, [rbp + 0x30]
and qword [rbp - 0x10], rdi
lea rdx, [rbp - 0x10]
and dword [rbp + 0x30], edi
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetGetJoinInformation]
mov esi, eax
mov rcx, qword [0x14014dd40]
cmp rcx, r15
je 0x1400be78c
test byte [rcx + 0x1c], 2
je 0x1400be78c
cmp byte [rcx + 0x19], 4
jb 0x1400be78c
mov eax, dword [rbp + 0x30]
mov r9d, esi
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], rax
call fcn.1400bc058
mov rcx, qword [0x14014dd40]
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x1400be7a5
mov rcx, rax
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov rcx, qword [0x14014dd40]
test esi, esi
jne 0x1400be806
cmp dword [rbp + 0x30], 3
jne 0x1400be7de
cmp rcx, r15
je 0x1400be7da
test byte [rcx + 0x1c], 2
je 0x1400be7da
cmp byte [rcx + 0x19], 4
jb 0x1400be7da
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x6b]
lea r8, [0x140127458]
call fcn.140003614
mov rcx, qword [0x14014dd40]
mov edi, ebx
jmp 0x1400be836
cmp rcx, r15
je 0x1400be862
test byte [rcx + 0x1c], 2
je 0x1400be836
cmp byte [rcx + 0x19], 4
jb 0x1400be836
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127458]
mov edx, WSAGetLastError
call fcn.140003614
jmp 0x1400be82f
cmp rcx, r15
je 0x1400be862
test byte [rcx + 0x1c], 2
je 0x1400be836
cmp byte [rcx + 0x19], 2
jb 0x1400be836
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127458]
mov edx, WSAGetLastError
mov r9d, esi
call fcn.1400036d4
mov rcx, qword [0x14014dd40]
cmp rcx, r15
je 0x1400be85e
test byte [rcx + 0x1c], bl
je 0x1400be85e
cmp byte [rcx + 0x19], 5
jb 0x1400be85e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127458]
mov edx, WSAGetLastError
mov r9d, edi
call fcn.1400036d4
test edi, edi
jne 0x1400be864
xor ebx, ebx
lea rax, [rbp - 8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetControlLsa
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400be8e8
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, str.AllowOnlineID
lea rax, [rbp + 0x40]
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x28], rax
lea rdx, str.Pku2u
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1400be8d9
cmp dword [rbp + 0x38], 4
jne 0x1400be8d9
xor ebx, ebx
cmp dword [rbp + 0x40], ebx
sete bl
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1400be8e8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400be8fc
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor eax, eax
mov rdi, rcx
mov rcx, qword [rcx]
mov r9d, 0x2001f
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400bea9d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400be978
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x1400bea9d
jmp 0x1400be9aa
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400be8fc
mov ebx, eax
test eax, eax
jne 0x1400bea9d
mov rcx, qword [rsp + 0x48]
xor ebx, ebx
mov dword [rsp + 0x40], pe_nt_image_headers64
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400be98c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400be9f8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
cmp qword [rdi + 8], rbx
jne 0x1400bea57
cmp qword [rdi + 0x10], rbx
jne 0x1400bea57
lea rcx, str.API_MS_Win_Core_LocalRegistry_L1_1_0.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400bea2c
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 8], rax
jmp 0x1400bea57
xor r8d, r8d
lea rcx, str.advapi32.dll
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x1400bea57
lea rdx, str.RegDeleteKeyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x10], rax
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400bea79
mov rcx, rbx
call qword [fcn.140009050]
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
call rbx
jmp 0x1400bea9b
mov rbx, qword [rdi + 0x10]
test rbx, rbx
je 0x1400bea95
mov rcx, rbx
call qword [fcn.140009050]
mov rcx, qword [rdi]
mov rdx, rsi
call rbx
jmp 0x1400bea9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400beaad
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140106ed0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bec40
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rbp, rdx
mov rsi, rcx
mov rcx, qword [0x14014dd40]
lea r15, [0x14014dd40]
lea r12, [0x140127510]
mov r14d, 5
cmp rcx, r15
je 0x1400beca0
test byte [rcx + 0x1c], 1
je 0x1400beca0
cmp byte [rcx + 0x19], r14b
jb 0x1400beca0
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 5]
mov r9, rsi
mov qword [rsp + 0x20], rbp
mov r8, r12
call fcn.1400325dc
xor edx, edx
mov r8d, 0x80
mov rcx, rbp
xor ebx, ebx
call sub.msvcrt.dll_memset
and qword [rsp + 0xa0], rbx
lea r8d, [rbx + 0x2c]
xor edx, edx
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x30], 4
mov rcx, qword [0x14014dd40]
lea edi, [rbx + 2]
cmp rcx, r15
je 0x1400becff
test byte [rcx + 0x1c], dil
je 0x1400becff
cmp byte [rcx + 0x19], r14b
jb 0x1400becff
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xb]
mov r9, rsi
mov r8, r12
call fcn.140003638
lea r9, [rsp + 0xa0]
xor edx, edx
lea r8, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov r8d, eax
test eax, eax
je 0x1400bed7f
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov rcx, qword [0x14014dd40]
cmp rcx, r15
je 0x1400bedfd
test byte [rcx + 0x1c], dil
je 0x1400bedfd
movzx edx, byte [rcx + 0x19]
test ebx, ebx
mov eax, edi
cmovns eax, r14d
cmp edx, eax
jl 0x1400bedfd
mov rcx, qword [rcx + 0x10]
mov edx, SafeArrayGetDim
mov dword [rsp + 0x20], r8d
mov r9d, ebx
mov r8, r12
call fcn.14000574c
jmp 0x1400bedfd
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x10]
cmp r9, 0x80
jbe 0x1400bedbc
mov rcx, qword [0x14014dd40]
cmp rcx, r15
je 0x1400bedb5
test byte [rcx + 0x1c], dil
je 0x1400bedb5
cmp byte [rcx + 0x19], dil
jb 0x1400bedb5
mov rcx, qword [rcx + 0x10]
call fcn.1400bead8
mov ebx, 0x80004005
jmp 0x1400bedfd
mov rcx, qword [0x14014dd40]
cmp rcx, r15
je 0x1400bede5
test byte [rcx + 0x1c], dil
je 0x1400bede5
cmp byte [rcx + 0x19], r14b
jb 0x1400bede5
mov rcx, qword [rcx + 0x10]
mov edx, reloc.Cabinet.dll_FCIDestroy
mov r8, r12
call fcn.140003710
mov rdx, qword [rsp + 0xa0]
mov rcx, rbp
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov rcx, qword [0x14014dd40]
cmp rcx, r15
je 0x1400bee51
test byte [rcx + 0x1c], 1
je 0x1400bee51
movzx eax, byte [rcx + 0x19]
test ebx, ebx
cmovns edi, r14d
cmp eax, edi
jl 0x1400bee51
test ebx, ebx
js 0x1400bee35
movzx eax, word [rbp]
jmp 0x1400bee38
or eax, 0xffffffff
mov rcx, qword [rcx + 0x10]
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov r9d, ebx
mov word [rsp + 0x20], ax
mov r8, r12
call fcn.1400bebf4
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400bee74
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x460
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r14, r8
mov ebp, edx
mov rsi, rcx
mov rax, qword [0x14014dd40]
lea rcx, [0x14014dd40]
mov edx, 5
cmp rax, rcx
je 0x1400beee7
test byte [rax + 0x1c], 1
je 0x1400beee7
cmp byte [rax + 0x19], dl
jb 0x1400beee7
mov rcx, qword [rax + 0x10]
lea r8, [0x140127510]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rsp + 0x20], ebp
mov r9, rsi
call fcn.140026264
mov rax, qword [0x14014dd40]
xor ebx, ebx
lea edi, [rbx + 2]
lea r12d, [rbx + 0x17]
cmp di, word [rsi]
je 0x1400bef05
cmp r12w, word [rsi]
je 0x1400bef05
mov ebx, 0x80070057
jmp 0x1400befdc
mov dword [rsp + 0x30], edi
lea r8, [rsp + 0x40]
and dword [rsp + 0x28], ebx
mov r9d, 0x401
and qword [rsp + 0x20], rbx
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x1400bef91
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
movzx ebx, ax
mov r9d, eax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov rax, qword [0x14014dd40]
lea rsi, [0x14014dd40]
cmp rax, rsi
je 0x1400bf020
test byte [rax + 0x1c], dil
je 0x1400befe3
cmp byte [rax + 0x19], dil
jb 0x1400befe3
mov rcx, qword [rax + 0x10]
lea r8, [0x140127510]
mov edx, SafeArrayUnlock
call fcn.1400036d4
mov rax, qword [0x14014dd40]
jmp 0x1400befe3
test ebp, ebp
je 0x1400befc8
cmp r12w, word [rsi]
jne 0x1400befc8
mov edx, 0x25
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x1400befb2
mov byte [rax], bl
lea r8, [rsp + 0x40]
mov rcx, r14
lea rdx, str.__hs_
call fcn.14000916c
jmp 0x1400befd5
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140036068
mov rax, qword [0x14014dd40]
lea rsi, [0x14014dd40]
cmp rax, rsi
je 0x1400bf020
test byte [rax + 0x1c], 1
je 0x1400bf020
movzx ecx, byte [rax + 0x19]
test ebx, ebx
mov edx, 5
cmovns edi, edx
cmp ecx, edi
jl 0x1400bf020
mov rcx, qword [r14]
lea r8, [0x140127510]
mov qword [rsp + 0x20], rcx
mov edx, SafeArrayAccessData
mov rcx, qword [rax + 0x10]
mov r9d, ebx
call fcn.14000ab30
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140106ed0
mov rbx, qword [rsp + 0x498]
add rsp, 0x460
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bf108
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov rcx, qword [0x14014dd40]
lea rbp, [0x14014dd40]
mov ebx, 1
cmp rcx, rbp
je 0x1400bf141
test byte [rcx + 0x1c], bl
je 0x1400bf141
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x16]
lea r8, [0x140127510]
call fcn.140003614
lea rax, [rsp + 0x78]
xor esi, esi
and qword [rsp + 0x78], rsi
lea rdx, str.SOFTWAREPoliciesMicrosoftWindowsMediaPlayer
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400bf1f4
mov rdi, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
and dword [rsp + 0x60], esi
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, str.PreventLibrarySharing
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400bf1f4
cmp dword [rsp + 0x70], 4
jne 0x1400bf1f4
test eax, eax
jne 0x1400bf1f4
cmp dword [rsp + 0x60], ebx
jne 0x1400bf1f4
mov esi, ebx
mov rcx, qword [0x14014dd40]
cmp rcx, rbp
je 0x1400bf229
test byte [rcx + 0x1c], 2
je 0x1400bf1fb
cmp byte [rcx + 0x19], 3
jb 0x1400bf1fb
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x18]
lea r8, [0x140127510]
call fcn.140003614
mov rcx, qword [0x14014dd40]
cmp rcx, rbp
je 0x1400bf229
test byte [rcx + 0x1c], bl
je 0x1400bf229
cmp byte [rcx + 0x19], 5
jb 0x1400bf229
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127510]
xor r9d, r9d
mov edx, DispGetParam
test esi, esi
sete r9b
call fcn.1400036d4
xor ebx, ebx
test esi, esi
sete bl
test rdi, rdi
je 0x1400bf23e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400c3cf4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov r12, r9
mov r14, r8
mov rdi, rdx
mov r15, rcx
lea rbx, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rbx
je 0x1400c3d62
test byte [rcx + 0x1c], 1
je 0x1400c3d62
cmp byte [rcx + 0x19], 5
jb 0x1400c3d62
mov edx, 0x54
mov qword [rax - 0x58], r8
mov r9, rdi
lea r8, [0x1401275f0]
mov rcx, qword [rcx + 0x10]
call fcn.14000abd8
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.140004d1c
nop
lea rcx, [rbp - 0x28]
call fcn.140036144
mov r8, qword [rbp - 0x28]
lea rdx, [rbp - 0x18]
mov rcx, r15
call fcn.1400c5cd4
mov esi, eax
test eax, eax
jne 0x1400c3e18
mov dword [rbp - 0x30], 4
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x2c]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1400c3dd9
cmp dword [rbp - 0x2c], 4
je 0x1400c3dd7
lea esi, [rax + 0xd]
jmp 0x1400c3e44
xor esi, esi
cmp esi, 2
jne 0x1400c3e44
mov esi, 0x490
mov r10, qword [0x14014dd40]
cmp r10, rbx
je 0x1400c3e85
test byte [r10 + 0x1c], 2
je 0x1400c3e4b
cmp byte [r10 + 0x19], 4
jb 0x1400c3e4b
mov edx, 0x55
lea r8, [0x1401275f0]
mov rcx, qword [r10 + 0x10]
call fcn.140003614
jmp 0x1400c3e44
cmp eax, 2
jne 0x1400c3e44
mov rax, qword [r15]
mov rbx, qword [rax + 0x38]
mov rcx, rbx
call qword [fcn.140009050]
mov r9, r12
mov r8, r14
mov rdx, rdi
mov rcx, r15
call rbx
mov esi, eax
lea rbx, [0x14014dd40]
mov r10, qword [0x14014dd40]
cmp r10, rbx
je 0x1400c3e85
test byte [r10 + 0x1c], 1
je 0x1400c3e85
movzx edx, byte [r10 + 0x19]
mov eax, esi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x1400c3e85
mov edx, 0x56
mov r9d, esi
lea r8, [0x1401275f0]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
nop
mov r14, qword [rbp - 0x28]
or eax, 0xffffffff
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x1400c3eb5
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400c3ec4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400ca3c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rsi, r9
mov dword [rax + 0x10], ebp
mov rdi, r8
mov eax, dword [rsp + 0x70]
add eax, eax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x70], eax
test rdx, rdx
je 0x1400ca502
cmp word [rdx], bp
je 0x1400ca502
test r8, r8
je 0x1400ca4e2
cmp word [r8], bp
je 0x1400ca4e2
test r9, r9
jne 0x1400ca441
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca530
test byte [rcx + 0x1c], 1
je 0x1400ca530
lea edx, [rbp + 0xc]
jmp 0x1400ca520
lea rax, [rsp + 0x30]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400ca4ce
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400ca4ce
mov r8d, dword [rsp + 0x58]
cmp r8d, 1
je 0x1400ca4ce
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
mov ebx, reloc.Cabinet.dll_FCIFlushCabinet
cmp rcx, rax
je 0x1400ca4ce
test byte [rcx + 0x1c], 1
je 0x1400ca4ce
mov rcx, qword [rcx + 0x10]
mov edx, ebx
mov dword [rsp + 0x20], r8d
mov r9, rdi
lea r8, [0x140127ce0]
call fcn.1400056b0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400ca4de
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400ca535
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca530
test byte [rcx + 0x1c], 1
je 0x1400ca530
mov edx, reloc.WSOCK32.dll_inet_ntoa
jmp 0x1400ca520
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca530
test byte [rcx + 0x1c], 1
je 0x1400ca530
mov edx, 0xa
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127ce0]
call fcn.140003614
mov eax, 0x57
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret