joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401302e0
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 [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140130322
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 0x140130369
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 0x1401303c2
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 0x140130380
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140130403
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140180b1a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140180b1b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1401303d0
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 0x140130534
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 0x1401305b8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1401305b8
dec r8
sub rdx, 1
jne 0x14013059e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140131d0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140131d56
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140131d56
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140131d56
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140131d56
cmp dword [rcx + 0x84], 0xe
jbe 0x140131d56
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140131d58
xor al, al
add rsp, 0x28
ret
Function at 0x1400048e8
Capabilities:
Access the windows event log

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
push rdi
push r14
sub rsp, 0x7d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov edi, ecx
mov dword [rsp + 0x50], ecx
lea r8, [rsp + 0x50]
lea rdx, str.Heartbeat_exception_thrown:__d
mov ecx, 2
call fcn.140004a60
mov r11d, edi
mov eax, 0xa0000000
and r11d, eax
cmp r11d, eax
je 0x14000494b
mov ebx, 0x17
jmp 0x140004958
movzx ebx, di
mov eax, 0xb1
cmp ebx, eax
cmovge ebx, eax
mov dword [rsp + 0x50], edi
lea r8, [rsp + 0x50]
lea rdx, str.Subscription_licensing_service_failed:__d
lea rcx, [rsp + 0x400]
call fcn.140003c54
nop
lea rax, [rsp + 0x400]
cmp qword [rsp + 0x418], 8
cmovae rax, qword [rsp + 0x400]
mov qword [rsp + 0x58], rax
mov r14d, 1
xor r8d, r8d
mov edx, r14d
xor esi, esi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov rcx, qword [0x1401793b8]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test edi, edi
jns 0x140004a23
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x274], r14d
mov word [rsp + 0x378], si
mov word [rsp + 0x278], si
mov word [rsp + 0x74], si
lea rcx, [rsp + 0x430]
lea rdx, [rsp + 0x70]
mov r8d, 0x388
call sub.MSVCR100.dll_memcpy
lea rdx, [0x14010c350]
lea rcx, [rsp + 0x430]
call sub.MSVCR100.dll__CxxThrowException
nop
cmp qword [rsp + 0x418], 8
jb 0x140004a3b
mov rcx, qword [rsp + 0x400]
call fcn.14002d25c
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1400056f0
lea r11, [rsp + 0x7d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1400055e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
mov rbp, rsp
push rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400c8590]
movabs rdi, 0x2b992ddfa23249d6
test rax, rax
je 0x140005610
mov rax, qword [0x1400c8590]
cmp rax, rdi
jne 0x1400056d4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rbx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r11d, eax
xor rbx, r11
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r11d, eax
xor rbx, r11
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rsp + 0x50]
mov r11d, eax
xor rbx, r11
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor rbx, qword [rsp + 0x50]
mov edx, 8
lea r9, [rsp + 0x40]
lea rcx, [0x1400c8590]
lea r8d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x40]
test rbx, rbx
cmovne rdi, rbx
lea r9, [rsp + 0x40]
lea rcx, [0x1400c8590]
mov edx, 8
mov qword [0x1400c8590], rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [0x1400c8590]
mov edx, 8
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov r11, qword [0x1400c8590]
not r11
mov qword [0x14012fc30], r11
add rsp, 0x20
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400056f0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400c8590]
jne 0x1400056fb
repz ret
jmp fcn.140005dc4

Function at 0x140005be4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov r11d, dword [r8]
mov rbx, rdx
mov r9, rcx
and r11d, 0xfffffff8
test byte [r8], 4
mov r10, rcx
je 0x140005c12
mov eax, dword [r8 + 8]
movsxd r10, dword [r8 + 4]
neg eax
add r10, rcx
movsxd rcx, eax
and r10, rcx
movsxd rax, r11d
mov rdx, qword [rax + r10]
mov rax, qword [rbx + 0x10]
mov ecx, dword [rax + 8]
add rcx, qword [rbx + 8]
test byte [rcx + 3], 0xf
je 0x140005c36
movzx eax, byte [rcx + 3]
and eax, 0xfffffff0
cdqe
add r9, rax
xor r9, rdx
mov rcx, r9
add rsp, 0x20
pop rbx
jmp fcn.1400056f0

Function at 0x140009b64
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
add rsp, 0x20
pop rbp
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140009b94
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
add rsp, 0x20
pop rbp
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x140009bb0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
add rsp, 0x20
pop rbp
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14000b878
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
add rsp, 0x20
pop rbp
jmp qword [sym.imp.KERNEL32.dll_GetTempPathW]

Function at 0x14000cc50
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
and qword [rax + 0x18], 0
lea r8, [rax + 0x10]
lea rdx, [rax + 0x18]
call fcn.14000cb54
mov ebx, eax
test eax, eax
je 0x14000cc8f
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000cc8b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14000ccb1
mov rbx, qword [rsp + 0x40]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov edi, eax
test rbx, rbx
je 0x14000ccaf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
Function at 0x14000d418
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r13, r9
mov r15d, r8d
mov r14, rcx
xor esi, esi
or edi, 0xffffffff
test esi, esi
jne 0x14000d465
cmp dword [0x140179b08], esi
je 0x14000d606
lea r12d, [rdi + 3]
jmp 0x14000d481
cmp esi, 1
jne 0x14000d606
mov rcx, r14
call fcn.14000e7e8
test al, al
je 0x14000d606
xor r12d, r12d
xor bl, bl
mov byte [rsp + 0x30], bl
cmp dword [0x140179b10], 0
je 0x14000d4a4
mov bl, 1
mov byte [rsp + 0x30], bl
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
and qword [rsp + 0x38], 0
and qword [rsp + 0x40], 0
movzx r9d, word [r14 + 0x18]
shr r9d, 1
and r9d, 0x10
or r9d, r12d
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rcx, qword [r14 + 0x10]
call fcn.14000df5c
test eax, eax
mov edi, eax
jne 0x14000d5ec
mov dword [r13], r15d
mov r15, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x14000d4f8
mov rcx, qword [r15]
mov qword [rsp + 0x28], r13
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rdi, eax
cmp edi, 0x3f2
je 0x14000d530
cmp edi, 0x3fa
je 0x14000d530
cmp edi, 6
jne 0x14000d5aa
mov rcx, rdi
mov edx, 0x1c0454
call fcn.14002ce80
mov edx, 0x1c049f
xor ecx, ecx
call fcn.14002ce80
mov r11, qword [r14 + 0x10]
movzx eax, word [r11 + 0xa]
and eax, 0xf
lea rax, [rax + rax*2]
lea rcx, [0x140131920]
xor edi, edi
mov qword [rcx + rax*8], rdi
mov rdx, r15
lea rcx, [0x140179b20]
call fcn.14000d200
mov qword [rsp + 0x38], rdi
movzx r9d, word [r14 + 0x18]
shr r9d, 1
and r9d, 0x10
or r9d, r12d
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rcx, qword [r14 + 0x10]
call fcn.14000df5c
mov r15d, dword [rbp + 0x20]
jmp 0x14000d4d8
mov rdx, r15
lea rcx, [0x140179b20]
call fcn.14000d0d4
test edi, edi
jne 0x14000d5e8
movzx ecx, word [r14 + 0x18]
mov eax, ecx
and eax, 0xf
cmp dword [rsp + 0x34], eax
je 0x14000d612
cmp dword [rsp + 0x34], 3
jne 0x14000d5e3
cmp dword [r13], 4
jne 0x14000d5e3
and cl, 0xf
cmp cl, 4
je 0x14000d612
mov edi, 2
mov r15d, dword [rbp + 0x20]
cmp dword [0x140179b10], 0
je 0x14000d606
test bl, bl
je 0x14000d606
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc esi
cmp esi, 2
jge 0x14000d63a
jmp 0x14000d44c
mov rax, qword [rbp + 0x38]
mov dword [rax], 1
cmp dword [0x140179b10], 0
je 0x14000d636
test bl, bl
je 0x14000d636
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x14000d63c
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000dc58
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov dil, dl
mov rsi, rcx
cmp rcx, qword [0x140179b18]
jne 0x14000dc8a
xor al, al
jmp 0x14000ddd3
test dil, dil
je 0x14000dc99
xor ecx, ecx
cmp dword [0x140179b08], ecx
jmp 0x14000dca2
call fcn.14000e7e8
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x14000dc83
and qword [rbp + 0x20], 0
and qword [rbp + 0x28], 0
xor bl, bl
mov byte [rsp + 0x70], bl
cmp dword [0x140179b10], 0
je 0x14000dcd6
mov bl, 1
mov byte [rsp + 0x70], bl
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
neg dil
sbb r15d, r15d
and r15d, 2
movzx r9d, word [rsi + 0x18]
shr r9d, 1
and r9d, 0x10
and qword [rsp + 0x20], 0
or r9d, r15d
lea r8, [rbp + 0x28]
lea rdx, [rbp + 0x20]
mov rcx, qword [rsi + 0x10]
call fcn.14000df5c
test eax, eax
mov edi, eax
jne 0x14000ddb0
mov r14, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
jne 0x14000dd20
mov rcx, qword [r14]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rdi, eax
cmp edi, 0x3f2
je 0x14000dd53
cmp edi, 0x3fa
je 0x14000dd53
cmp edi, 6
jne 0x14000dda1
mov rcx, rdi
mov edx, 0x1c0454
call fcn.14002ce80
mov edx, 0x1c04c2
xor ecx, ecx
call fcn.14002ce80
mov r11, qword [rsi + 0x10]
movzx eax, word [r11 + 0xa]
and eax, 0xf
lea rax, [rax + rax*2]
lea rcx, [0x140131920]
and qword [rcx + rax*8], 0
mov rdx, r14
lea rcx, [0x140179b20]
call fcn.14000d200
and qword [rbp + 0x20], 0
jmp 0x14000dce0
mov rdx, r14
lea rcx, [0x140179b20]
call fcn.14000d0d4
test edi, edi
sete dil
cmp dword [0x140179b10], 0
je 0x14000ddd0
test bl, bl
je 0x14000ddd0
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, dil
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e6cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rbp
mov rbp, rsp
push rdi
push r14
sub rsp, 0x40
mov eax, dword [rbp + 0x30]
xor r14d, r14d
mov rsi, r9
mov r10, rdx
mov rdi, rcx
mov dword [r11 + 0x28], eax
test rdx, rdx
jne 0x14000e6fd
mov r10, qword [rcx]
lea rax, [rbp + 0x30]
xor edx, edx
mov rcx, r10
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r9
lea rax, [rsp + 0x68]
mov r9d, 0xffff
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, dword [rsp + 0x68]
mov r8d, 2
mov ebx, eax
cmp dword [rbp + 0x30], r8d
jae 0x14000e745
cmp ecx, 1
je 0x14000e742
cmp ecx, r8d
jne 0x14000e745
mov ebx, r8d
cmp ebx, 0x3f2
je 0x14000e7a8
cmp ebx, 0x3fa
je 0x14000e7a8
cmp ebx, 6
je 0x14000e7a8
test ebx, ebx
jne 0x14000e797
cmp ecx, r8d
je 0x14000e768
cmp ecx, 1
jne 0x14000e778
mov eax, dword [rbp + 0x30]
shr rax, 1
mov word [rsi + rax*2 - 2], r14w
mov ecx, dword [rsp + 0x68]
movzx edx, byte [rbp + 0x38]
cmp ecx, edx
je 0x14000e797
dec ecx
je 0x14000e78f
dec ecx
jne 0x14000e794
cmp edx, 1
jne 0x14000e794
jmp 0x14000e797
cmp edx, r8d
je 0x14000e797
mov ebx, r8d
lea rcx, [0x140179b20]
mov rdx, rdi
call fcn.14000d0d4
jmp 0x14000e7d0
movsxd rcx, ebx
mov edx, 0x1c0454
call fcn.14002ce80
mov edx, 0x1c0491
xor ecx, ecx
call fcn.14002ce80
lea rcx, [0x140179b20]
mov rdx, rdi
call fcn.14000d200
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x14000e850
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rsi, rcx
cmp rcx, qword [0x140179b18]
jne 0x14000e87f
xor eax, eax
jmp 0x14000ea56
xor r13d, r13d
mov dword [rbp + 0x20], r13d
mov edx, r13d
mov dword [rbp + 0x18], edx
mov r14d, r13d
or edi, 0xffffffff
test r14d, r14d
jne 0x14000e8aa
cmp dword [0x140179b08], r13d
je 0x14000e9fc
lea r12d, [rdi + 3]
jmp 0x14000e8c7
cmp r14d, 1
jne 0x14000e9fc
mov rcx, rsi
call fcn.14000e7e8
test al, al
je 0x14000e9fc
mov r12d, r13d
mov qword [rsp + 0x30], r13
mov bl, r13b
mov byte [rbp + 0x10], bl
cmp dword [0x140179b10], r13d
je 0x14000e8ee
mov bl, 1
mov byte [rbp + 0x10], bl
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
movzx r9d, word [rsi + 0x18]
shr r9d, 1
and r9d, 0x10
mov qword [rsp + 0x20], r13
mov qword [rbp + 0x28], r13
or r9d, r12d
lea r8, [rbp + 0x28]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 0x10]
call fcn.14000df5c
test eax, eax
mov edi, eax
jne 0x14000e9df
mov r15, qword [rsp + 0x30]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
jne 0x14000e933
mov rcx, qword [r15]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp dword [rbp + 0x18], 2
jae 0x14000e96a
cmp dword [rbp + 0x20], 1
je 0x14000e965
cmp dword [rbp + 0x20], 2
jne 0x14000e96a
mov edi, 2
cmp edi, 0x3f2
je 0x14000e97f
cmp edi, 0x3fa
je 0x14000e97f
cmp edi, 6
jne 0x14000e9cc
movsxd rcx, edi
mov edx, 0x1c0454
call fcn.14002ce80
mov edx, 0x1c0496
xor ecx, ecx
call fcn.14002ce80
mov r11, qword [rsi + 0x10]
movzx eax, word [r11 + 0xa]
and eax, 0xf
lea rax, [rax + rax*2]
lea rcx, [0x140131920]
mov qword [rcx + rax*8], r13
mov rdx, r15
lea rcx, [0x140179b20]
call fcn.14000d200
mov qword [rsp + 0x30], r13
jmp 0x14000e8ee
mov rdx, r15
lea rcx, [0x140179b20]
call fcn.14000d0d4
test edi, edi
je 0x14000ea0a
cmp dword [0x140179b10], r13d
je 0x14000e9f9
test bl, bl
je 0x14000e9f9
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [rbp + 0x18]
inc r14d
cmp r14d, 2
jge 0x14000ea2e
jmp 0x14000e88f
cmp dword [0x140179b10], r13d
je 0x14000ea29
test bl, bl
je 0x14000ea29
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [rbp + 0x18]
jmp 0x14000ea2e
mov edx, dword [rbp + 0x18]
jmp 0x14000ea32
test edi, edi
jne 0x14000ea4a
cmp dword [rbp + 0x20], 2
je 0x14000ea41
mov al, byte [rsi + 0x18]
and al, 0xf
cmp al, 2
jne 0x14000ea54
mov ecx, edx
call fcn.14000c2f8
jmp 0x14000ea52
mov rcx, rsi
call fcn.14000bc10
mov edx, eax
mov eax, edx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000eb50
Capabilities:
Delete registry value

Disassembly:
push rbp
mov rbp, rsp
push rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r14, rcx
cmp rcx, qword [0x140179b18]
jne 0x14000eb7c
mov eax, 0xa0
jmp 0x14000ecb7
and qword [rsp + 0x78], 0
and qword [rbp + 0x20], 0
xor bl, bl
mov byte [rsp + 0x70], bl
cmp dword [0x140179b10], 0
je 0x14000ebaa
mov bl, 1
mov byte [rsp + 0x70], bl
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
movzx r9d, word [r14 + 0x18]
shr r9d, 1
and r9d, 0x10
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x20]
lea rdx, [rsp + 0x78]
mov rcx, qword [r14 + 0x10]
call fcn.14000df5c
mov edi, eax
test eax, eax
jne 0x14000ec9b
mov rdx, qword [r14]
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rbp + 0x20]
test rdx, rdx
jne 0x14000ebf5
test rcx, rcx
jne 0x14000ebf1
mov rcx, qword [rsi]
xor edx, edx
jmp 0x14000ebfd
test rcx, rcx
jne 0x14000ebfd
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
cmp eax, 0x3f2
je 0x14000ec18
cmp eax, 0x3fa
je 0x14000ec18
cmp eax, 6
jne 0x14000ec89
movsxd rcx, edi
mov edx, 0x1c0454
call fcn.14002ce80
mov edx, 0x1c04c5
xor ecx, ecx
call fcn.14002ce80
mov r11, qword [r14 + 0x10]
movzx eax, word [r11 + 0xa]
and eax, 0xf
lea rax, [rax + rax*2]
lea rcx, [0x140131920]
and qword [rcx + rax*8], 0
mov rdx, rsi
lea rcx, [0x140179b20]
call fcn.14000d200
and qword [rsp + 0x78], 0
cmp dword [0x140179b10], 0
je 0x14000eb87
test bl, bl
je 0x14000eb87
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14000eb87
mov rdx, rsi
lea rcx, [0x140179b20]
call fcn.14000d0d4
nop
jmp 0x14000ec9b
cmp dword [0x140179b10], 0
je 0x14000ecb5
test bl, bl
je 0x14000ecb5
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000ecc4
Capabilities:
Delete registry key

Disassembly:
push rbp
mov rbp, rsp
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rdi, rcx
cmp rcx, qword [0x140179b18]
jne 0x14000ecf8
mov eax, 0xa0
jmp 0x14000ee39
mov rax, qword [rcx + 0x10]
test byte [rax + 0xa], 0xf
jne 0x14000ecee
and qword [rsp + 0x68], 0
xor bl, bl
mov byte [rsp + 0x60], bl
cmp dword [0x140179b10], 0
je 0x14000ed2b
mov bl, 1
mov byte [rsp + 0x60], bl
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
movzx r9d, word [rdi + 0x18]
shr r9d, 1
and r9d, 0x10
mov rcx, qword [rdi + 0x10]
and qword [rsp + 0x20], 0
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rcx + 0xc]
call fcn.14000df5c
mov esi, eax
test eax, eax
jne 0x14000ee1d
mov rdx, qword [rdi + 0x10]
mov rdx, qword [rdx]
mov r14, qword [rsp + 0x68]
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movsxd rsi, eax
cmp esi, 0x3f2
je 0x14000ed89
cmp esi, 0x3fa
je 0x14000ed89
cmp esi, 6
jne 0x14000edfa
mov rcx, rsi
mov edx, 0x1c0454
call fcn.14002ce80
mov edx, 0x1c04c6
xor ecx, ecx
call fcn.14002ce80
mov r11, qword [rdi + 0x10]
movzx eax, word [r11 + 0xa]
and eax, 0xf
lea rax, [rax + rax*2]
lea rcx, [0x140131920]
and qword [rcx + rax*8], 0
mov rdx, r14
lea rcx, [0x140179b20]
call fcn.14000d200
and qword [rsp + 0x68], 0
cmp dword [0x140179b10], 0
je 0x14000ed08
test bl, bl
je 0x14000ed08
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14000ed08
mov rdx, r14
lea rcx, [0x140179b20]
call fcn.14000d0d4
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
lea rcx, [0x140179b20]
call fcn.14000d154
nop
cmp dword [0x140179b10], 0
je 0x14000ee37
test bl, bl
je 0x14000ee37
lea rcx, [0x14017a108]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x14000ee4c
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rdi, r9
mov rsi, r8
mov r14d, edx
mov rbx, rcx
call fcn.14000ea68
test eax, eax
jne 0x14000ee83
mov eax, 2
jmp 0x14000ef02
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14000cb54
mov ebx, eax
test eax, eax
je 0x14000eeb5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000eeb1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14000ef02
mov rax, qword [rbp + 0x48]
mov rbx, qword [rsp + 0x48]
mov r9, rdi
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x40]
mov r8, rsi
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x38]
mov edx, r14d
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test rbx, rbx
je 0x14000ef00
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret