joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011e510
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [0x140174020]
mov rdi, rax
test rax, rax
jne 0x14011e552
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14011e599
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14011e5f2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14011e5b0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14011e633
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14014d072]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14014d073]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14011e600
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14011f66c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011f6b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011f6b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011f6b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011f6b6
cmp dword [rcx + 0x84], 0xe
jbe 0x14011f6b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14011f6b8
xor al, al
add rsp, 0x28
ret
Function at 0x140054728
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x40
xor eax, eax
lea r8, [r11 + 0x10]
and dword [rcx + 8], eax
mov rsi, rcx
and qword [r11 + 0x10], rax
lea rcx, str.D:PAI_A_OICI_FA___WD_
xor r9d, r9d
mov qword [r11 - 0x28], rax
lea edx, [rax + 1]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
xor ebx, ebx
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x1400547a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140054788
mov edi, 0x80004005
jmp 0x140054796
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.1400790f8
jmp 0x140054865
mov rax, qword [rsp + 0x58]
lea r8, str.Global552FFA80_3393_423d_8671_7BA046BB5906
and dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
jne 0x1400547fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14005482a
lea r8, str.Global552FFA80_3393_423d_8671_7BA046BB5906
xor edx, edx
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rbx, rax
test rax, rax
je 0x140054777
mov edx, 0x2710
mov rcx, rbx
mov rbp, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14005484b
cmp eax, 0x80
je 0x140054841
cmp eax, 0x102
jne 0x140054852
mov edi, 0x800705b4
jmp 0x140054796
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x140054865
jmp 0x140054796
mov edi, 0x8000ffff
jmp 0x140054796
mov dword [rsi + 8], 1
mov rcx, qword [rsi]
xor ebx, ebx
test rcx, rcx
je 0x140054862
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rbp
mov ecx, edi
call fcn.140079118
test rbx, rbx
je 0x14005487a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005488a
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140055428
Capabilities:
Get token membership

Disassembly:
push rbp
push rbx
push rsi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x28
lea rax, str.S_1_5_80_123231216_2592883651_3715271367_3753151631_4175906628
xor ecx, ecx
mov qword [rbp + 0x50], rax
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
cmp eax, 0x6bd
jne 0x14005545a
xor ebx, ebx
jmp 0x14005561f
test eax, eax
je 0x14005548c
mov ecx, eax
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
movzx ebx, ax
mov r12d, 0x80004005
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, r12d
mov ecx, ebx
call fcn.1400790f8
jmp 0x14005561f
and dword [rbp + 0x38], 0
lea rdx, [rbp + 0x38]
call fcn.1400688cc
lea rdx, [0x140428ac0]
mov ebx, eax
lea rcx, [0x14040aba8]
call fcn.1400e977c
test ebx, ebx
jns 0x1400554d1
mov ecx, ebx
call fcn.1400790f8
lea rdx, [0x140427980]
lea rcx, [0x140412008]
call fcn.1400e90f0
jmp 0x140055617
cmp dword [rbp + 0x38], 0
je 0x1400554de
xor ebx, ebx
jmp 0x140055617
cmp dword [0x14042eb74], 0
je 0x14005560b
xor r14d, r14d
lea r15, [rbp + 0x50]
mov r12d, 0x80004005
mov rcx, qword [r15]
lea rdx, [rbp + 0x48]
xor esi, esi
xor ebx, ebx
and qword [rbp + 0x48], rsi
and dword [rbp + 0x40], ebx
mov dword [rbp + 0x38], esi
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x14005553d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140055526
mov ebx, r12d
jmp 0x140055534
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.1400790f8
jmp 0x140055557
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140055517
mov esi, dword [rbp + 0x40]
mov dword [rbp + 0x38], esi
mov ecx, ebx
call fcn.140079118
lea rcx, [rbp + 0x48]
call fcn.140069668
test ebx, ebx
js 0x140055649
test esi, esi
jne 0x1400554d7
inc r14d
add r15, 8
cmp r14d, 1
jb 0x1400554f8
lea r8, [rbp + 0x38]
lea edx, [rsi + 0x12]
call fcn.14006e9a8
lea rdx, [0x1404295c0]
mov ebx, eax
lea rcx, [0x14040b588]
call fcn.1400e9438
test ebx, ebx
js 0x140055610
cmp dword [rbp + 0x38], esi
jne 0x1400554d7
lea r8, [rbp + 0x38]
lea edx, [rsi + 0x13]
call fcn.14006e9a8
mov ebx, eax
test eax, eax
jns 0x1400555cc
mov ecx, eax
jmp 0x140055612
cmp dword [rbp + 0x38], 0
jne 0x1400554d7
lea r8, [rbp + 0x38]
mov edx, SafeArrayUnaccessData
call fcn.14006e9a8
mov ebx, eax
test eax, eax
js 0x1400555c8
cmp dword [rbp + 0x38], 0
jne 0x1400554d7
lea rcx, [rbp + 0x38]
call fcn.140055244
test eax, eax
js 0x14005560b
cmp dword [rbp + 0x38], 0
jne 0x1400554d7
mov ebx, 0xc004f025
mov ecx, ebx
call fcn.1400790f8
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
mov ecx, ebx
call fcn.140079118
lea rdx, [0x1404271d4]
lea rcx, [0x140414f40]
call fcn.1400e8db8
mov eax, ebx
add rsp, 0x28
pop r15
pop r14
pop r12
pop rsi
pop rbx
pop rbp
ret
mov ecx, ebx
call fcn.1400790f8
lea rdx, [0x1404289a4]
lea rcx, [0x14041a908]
call fcn.1400e9ac8
jmp 0x140055617
Function at 0x14005a750
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
and qword [rbp + 0x1f], 0
xorps xmm0, xmm0
and qword [rbp + 0x47], 0
mov rdi, rdx
mov rbx, rcx
movdqa xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x27], xmm0
lea rdx, [0x140429128]
movdqa xmmword [rbp + 0x37], xmm1
lea rcx, [0x14040b174]
call fcn.1400e8a6c
lea rax, [0x140004f38]
mov qword [rbp - 0x29], 3
mov qword [rbp - 0x21], rax
lea rdx, [0x14042bf98]
lea rax, [rbp + 0x67]
mov qword [rbp - 9], rbx
mov qword [rbp - 0x19], rax
lea rcx, [0x1404057e8]
lea rax, [rbp + 7]
mov qword [rbp - 0x11], rax
call fcn.1400ea158
xor r9d, r9d
lea rdx, [rbp - 0x29]
mov ecx, 0xb9
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x67]
test ebx, ebx
jns 0x14005a7fe
mov ecx, ebx
call fcn.1400790f8
jmp 0x14005a867
lea rdx, [0x140425e70]
lea rcx, [0x140410a7c]
call fcn.1400e9e10
mov rcx, qword [rbp + 0x37]
mov rdx, rdi
call fcn.140078fc0
mov ebx, eax
test eax, eax
jns 0x14005a827
mov ecx, eax
jmp 0x14005a7f7
mov rcx, qword [rbp + 0x3f]
lea rdx, [rdi + 8]
call fcn.140078fc0
mov ebx, eax
test eax, eax
js 0x14005a823
mov rcx, qword [rbp + 0x47]
lea rdx, [rdi + 0x10]
call fcn.140078fc0
mov ebx, eax
test eax, eax
jns 0x14005a867
mov ecx, eax
call fcn.1400790f8
lea rdx, [0x140428a68]
lea rcx, [0x14041aa48]
call fcn.1400ea7f4
mov ecx, ebx
call fcn.140079118
lea rcx, [rbp + 7]
call fcn.14005a3f4
lea rdx, [0x14042d888]
lea rcx, [0x14040f440]
call fcn.1400ea4ac
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14005ba1c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
xor ebx, ebx
mov r13, rdx
mov rdi, rcx
mov qword [rbp - 0x31], rbx
lea rdx, [0x14042ba4c]
mov qword [rbp - 1], rbx
lea rcx, [0x14040d79c]
mov esi, ebx
mov r14d, ebx
mov r15, r9
mov r12, r8
call fcn.1400ea7f4
xorps xmm0, xmm0
mov qword [rbp + 0x17], rbx
xor edx, edx
lea r8d, [rbx + 0x30]
lea rcx, [rbp - 1]
movdqu xmmword [rbp + 7], xmm0
call sub.msvcrt.dll_memset
test r15, r15
jne 0x14005ba9e
mov ebx, 0x80070057
mov ecx, ebx
call fcn.1400790f8
jmp 0x14005bb7e
mov rbx, qword [0x14042eab0]
lea rdx, [0x14042bb38]
lea rcx, [0x14040d840]
lea rsi, [rbx + 8]
call fcn.1400e8a6c
test rsi, rsi
je 0x14005bad2
mov r14d, 1
mov rcx, rsi
mov edx, r14d
call fcn.140071b04
lea rax, [0x140002838]
mov qword [rbp + 0x1f], rdi
mov qword [rbp - 0x21], rax
lea rdx, [0x140429374]
lea rax, [rbp + 0x7f]
mov qword [rbp + 0x27], rbx
lea rcx, [0x1404027dc]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x29], 3
call fcn.1400e9e10
xor r9d, r9d
lea rax, [rbp - 1]
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x29]
lea rax, [rbp - 0x31]
mov ecx, 0xb9
mov qword [rbp - 9], rax
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x7f]
test ebx, ebx
js 0x14005ba92
mov rbx, qword [rbp - 0x31]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [0x1403af620]
lea r9, [rbp - 0x39]
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rdi
lea rdx, [0x14042c674]
mov ebx, eax
lea rcx, [0x14040e308]
call fcn.1400ea4ac
test ebx, ebx
js 0x14005ba92
mov eax, dword [rbp - 0x39]
mov dword [r15], eax
mov ecx, ebx
call fcn.140079118
lea rdx, [0x14042a96c]
lea rcx, [0x140414ba8]
call fcn.1400ea158
lea rcx, [rbp - 1]
call fcn.140057570
lea rcx, [rbp - 0x31]
call fcn.1400574c4
test rsi, rsi
je 0x14005bbbc
test r14d, r14d
je 0x14005bbbc
mov rcx, rsi
call fcn.1400719a0
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140060590
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
xor ebx, ebx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 8]
mov qword [rbp + 0x48], rbx
call fcn.14006a26c
mov r14, qword [rbp - 0x10]
mov edi, eax
test eax, eax
jns 0x1400605d6
mov ecx, eax
jmp 0x14006071f
mov rsi, qword [rbp - 8]
mov rdx, r14
mov rcx, rsi
call fcn.140068268
mov edi, eax
test eax, eax
js 0x1400605cf
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14006066f
lea rdx, [rbp + 0x48]
call fcn.140078fc0
mov edi, eax
test eax, eax
jns 0x140060613
mov ecx, eax
call fcn.1400790f8
mov rbx, qword [rbp + 0x48]
jmp 0x140060724
mov rbx, qword [rbp + 0x48]
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140077c68
mov edi, eax
test eax, eax
jns 0x140060630
mov ecx, eax
call fcn.1400790f8
mov r15d, dword [rbp + 0x38]
mov ecx, edi
call fcn.140079118
test edi, edi
jns 0x140060643
mov ecx, edi
jmp 0x14006065e
mov r9, rbx
mov dword [rsp + 0x20], r15d
mov rdx, r14
mov rcx, rsi
call fcn.14006e200
mov edi, eax
test eax, eax
jns 0x140060663
mov ecx, eax
call fcn.1400790f8
mov ecx, edi
call fcn.140079118
jmp 0x140060719
and qword [rbp - 0x10], rbx
lea rax, [rbp + 0x48]
and qword [rbp + 0x48], rbx
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, 0x80070000
test eax, eax
jne 0x1400606d9
xor edi, edi
mov rsi, qword [rbp + 0x48]
and qword [rbp + 0x48], rbx
mov qword [rbp - 0x10], rsi
mov ecx, edi
call fcn.140079118
lea rcx, [rbp + 0x48]
call fcn.1400695f4
test edi, edi
js 0x140060702
lea rdx, str.ReferralId
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1400606f3
xor edi, edi
jmp 0x140060709
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
test edi, edi
je 0x1400606a1
mov ecx, edi
call fcn.1400790f8
xor esi, esi
jmp 0x1400606ad
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
test edi, edi
je 0x140060709
mov ecx, edi
call fcn.1400790f8
mov ecx, edi
call fcn.140079118
lea rcx, [rbp - 0x10]
call fcn.1400695f4
test edi, edi
jns 0x140060724
mov ecx, edi
call fcn.1400790f8
mov ecx, edi
call fcn.140079118
test rbx, rbx
je 0x14006074c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079118
test r14, r14
je 0x14006076d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r14 - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079118
mov rbx, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400657ac
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
mov rdi, r8
and dword [rcx], ebx
mov rsi, rcx
cmp qword [rcx + 0x18], rbx
jne 0x1400657e0
mov edi, 0xc004f07a
mov ecx, edi
call fcn.1400790f8
jmp 0x14006589e
xor ecx, ecx
call fcn.140079118
xor ecx, ecx
call fcn.140079118
mov eax, 0x40
mov edx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x14006580c
mov edi, 0x8007000e
jmp 0x1400657d4
movups xmm0, xmmword [rdi]
mov dword [rbp + 0x20], 0x10000
mov edx, 4
movups xmm1, xmmword [rdi + 0x10]
mov dword [rax], edx
lea rcx, [0x140008338]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rbx + 8], rax
lea r8d, [rdx + 0x38]
movups xmmword [rbx + 0x10], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x20], xmm1
movups xmmword [rbx + 0x30], xmm0
mov rax, qword [rsi + 0x18]
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 0x38], rcx
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x14], rax
lea rax, [rsi + 4]
mov qword [rbp - 0x30], rcx
lea ecx, [r8 + 0x7d]
mov dword [rbp - 0x20], edx
lea rdx, [rbp - 0x40]
mov qword [rbp - 0xc], rax
mov dword [rbp + 0x28], SafeArrayUnaccessData
mov qword [rbp - 0x1c], rbx
mov qword [rbp - 0x40], 3
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x38]
test edi, edi
js 0x1400657d4
mov ecx, dword [rbp + 0x28]
mov dword [rsi], ecx
mov ecx, edi
call fcn.140079118
test rbx, rbx
je 0x1400658b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x90]
mov eax, edi
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400680c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
lea rax, [rbp - 0x20]
and qword [rbp - 0x10], rdi
mov r14, r9
xor ebx, ebx
mov qword [rbp - 0x18], rdi
and qword [rbp - 0x20], rbx
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [r11 - 0x48], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006813e
xor esi, esi
mov rdi, qword [rbp - 0x20]
and qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rdi
mov ecx, esi
call fcn.140079118
lea rcx, [rbp - 0x20]
call fcn.1400695f4
test esi, esi
jns 0x140068159
mov ecx, esi
jmp 0x140068211
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
je 0x140068117
mov ecx, esi
call fcn.1400790f8
jmp 0x140068123
and dword [rbp + 0x30], ebx
lea rax, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rdx, str.VLActivationType
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140068197
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x140068137
test rbx, rbx
jne 0x1400681d5
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x1400681cb
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14006815c
mov esi, 0x8007000e
jmp 0x140068137
mov esi, 0x8000ffff
jmp 0x140068137
cmp dword [rbp + 0x20], 4
je 0x1400681e5
mov esi, 0x8007000d
jmp 0x140068137
xor edi, edi
cmp dword [rbp + 0x30], 4
je 0x1400681fd
mov esi, 0x8007000d
mov ecx, esi
mov edi, esi
call fcn.1400790f8
jmp 0x140068202
mov eax, dword [rbx]
mov dword [r14], eax
mov ecx, edi
call fcn.140079118
mov esi, edi
test edi, edi
jns 0x140068216
mov ecx, edi
call fcn.1400790f8
mov ecx, esi
call fcn.140079118
test rbx, rbx
je 0x140068236
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rbp - 0x10]
call fcn.1400695f4
lea rcx, [rbp - 0x18]
call fcn.1400695f4
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140068464
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
xor ebx, ebx
and qword [rbp - 8], rdi
mov r15, r9
mov qword [rbp - 0x10], rdi
mov r12, r8
mov r14, rdx
mov rsi, rcx
cmp rcx, 0xffffffff80000001
jne 0x1400684a5
xor ecx, ecx
call fcn.140079118
and qword [rbp - 0x18], rbx
lea rax, [rbp - 0x18]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, 0x80070000
test eax, eax
jne 0x1400684ff
xor esi, esi
mov rdi, qword [rbp - 0x18]
and qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rdi
mov ecx, esi
call fcn.140079118
lea rcx, [rbp - 0x18]
call fcn.1400695f4
test esi, esi
jns 0x140068517
mov ecx, esi
call fcn.1400790f8
jmp 0x1400685c3
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
test esi, esi
je 0x1400684d3
mov ecx, esi
call fcn.1400790f8
jmp 0x1400684df
and dword [rbp + 0x30], ebx
lea rax, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x20]
mov rdx, r12
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14006854e
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x1400684f3
test rbx, rbx
jne 0x14006858c
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140068582
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14006851a
mov esi, 0x8007000e
jmp 0x1400684f3
mov esi, 0x8000ffff
jmp 0x1400684f3
cmp dword [rbp - 0x20], 1
je 0x14006859c
mov esi, 0x8007000d
jmp 0x1400684f3
mov edx, dword [rbp + 0x30]
lea r9, [rbp - 0x1c]
mov r8, r15
mov rcx, rbx
call fcn.140077918
mov esi, eax
test eax, eax
jns 0x1400685bb
mov ecx, eax
jmp 0x1400684f5
cmp dword [rbp - 0x1c], 0
je 0x1400685c3
xor ebx, ebx
mov ecx, esi
call fcn.140079118
test rbx, rbx
je 0x1400685e3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rbp - 8]
call fcn.1400695f4
lea rcx, [rbp - 0x10]
call fcn.1400695f4
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140068618
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
xor ebx, ebx
and qword [rbp - 8], rdi
mov r15, r9
mov qword [rbp - 0x10], rdi
mov r12, r8
mov r14, rdx
mov rsi, rcx
cmp rcx, 0xffffffff80000001
jne 0x140068659
xor ecx, ecx
call fcn.140079118
and qword [rbp - 0x18], rbx
lea rax, [rbp - 0x18]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, 0x80070000
test eax, eax
jne 0x1400686ae
xor esi, esi
mov rdi, qword [rbp - 0x18]
and qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rdi
mov ecx, esi
call fcn.140079118
lea rcx, [rbp - 0x18]
call fcn.1400695f4
test esi, esi
jns 0x1400686c6
mov ecx, esi
jmp 0x140068777
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
test esi, esi
je 0x140068687
mov ecx, esi
call fcn.1400790f8
jmp 0x140068693
and dword [rbp + 0x30], ebx
lea rax, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x20]
mov rdx, r12
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400686fd
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x1400686a7
test rbx, rbx
jne 0x14006873b
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140068731
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1400686c9
mov esi, 0x8007000e
jmp 0x1400686a7
mov esi, 0x8000ffff
jmp 0x1400686a7
cmp dword [rbp - 0x20], 4
je 0x14006874b
mov esi, 0x8007000d
jmp 0x1400686a7
xor edi, edi
cmp dword [rbp + 0x30], 4
je 0x140068763
mov esi, 0x8007000d
mov ecx, esi
mov edi, esi
call fcn.1400790f8
jmp 0x140068768
mov eax, dword [rbx]
mov dword [r15], eax
mov ecx, edi
call fcn.140079118
mov esi, edi
test edi, edi
jns 0x14006877c
mov ecx, edi
call fcn.1400790f8
mov ecx, esi
call fcn.140079118
test rbx, rbx
je 0x14006879c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rbp - 8]
call fcn.1400695f4
lea rcx, [rbp - 0x10]
call fcn.1400695f4
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret