joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77cf1898
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
push ebx
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x10], 1
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x218], edi
je 0x77cf18d2
mov edi, 0xc000000d
jmp 0x77cf1aae
push esi
push dword [edi + 0x220]
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x224]
push eax
call esi
add edi, 0x20
push edi
lea eax, [ebp - 0x234]
push eax
call esi
cmp word [ebp - 0x234], 0x200
jae 0x77cf1aa8
xor esi, esi
cmp word [ebp - 0x224], si
je 0x77cf1aa8
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x22c]
push eax
push ebx
push 0x77ce09d8
push dword [ebx + 0x14]
mov word [ebp - 0x22c], si
mov word [ebp - 0x22a], 0x208
call fcn.77cf27f5
mov edi, eax
cmp edi, esi
jl 0x77cf1aad
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x2001f
push eax
push dword [0x77d1e6a8]
push dword [ebx + 0x18]
call fcn.77cbeaa7
mov edi, eax
cmp edi, esi
jl 0x77cf1aad
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea eax, [ebp - 0x23c]
push eax
push 0xb
push esi
mov esi, dword [sym.imp.ntdll.dll_NtSetValueKey]
push 0x77cf1ac0
push dword [ebp - 0x214]
call esi
mov edi, eax
test edi, edi
jl 0x77cf1a9a
movzx eax, word [ebp - 0x232]
push eax
push dword [ebp - 0x230]
push 1
push 0
push 0x77cf1ac8
push dword [ebp - 0x214]
call esi
mov edi, eax
test edi, edi
jl 0x77cf1a9a
mov eax, dword [ebp - 0x218]
mov eax, dword [eax + 0x224]
push 4
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push 4
push 0
push 0x77cf1ad0
push dword [ebp - 0x214]
call esi
mov edi, eax
test edi, edi
jl 0x77cf1a9a
mov eax, dword [ebp - 0x218]
push 0x25
push dword [eax + 0x220]
call sub.ntdll.dll_wcschr
pop ecx
test eax, eax
movzx eax, word [ebp - 0x222]
pop ecx
push eax
push dword [ebp - 0x220]
setne byte [ebp - 0x20d]
xor eax, eax
cmp byte [ebp - 0x20d], al
setne al
inc eax
push eax
push 0
push 0x77cf1ad8
push dword [ebp - 0x214]
call esi
mov edi, eax
test edi, edi
jl 0x77cf1a9a
cmp dword [ebp + 0x14], 0
je 0x77cf1a98
lea esi, [ebx + 0x24]
push esi
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
push esi
lea eax, [ebp - 0x224]
push eax
push 1
call dword [sym.imp.ntdll.dll_RtlDuplicateUnicodeString]
mov edi, eax
test edi, edi
jl 0x77cf1a9a
movzx eax, byte [ebp - 0x20d]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebx + 0x2c], eax
xor edi, edi
push dword [ebp - 0x214]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x77cf1aad
mov edi, 0xc000000d
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0x10
Function at 0x77cf1f9d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [esi + 0x10], 3
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], edi
je 0x77cf1fd9
mov ebx, 0xc000000d
jmp 0x77cf20ee
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
push eax
push esi
push 0x77ce0a28
push dword [esi + 0x14]
mov word [ebp - 0x220], di
mov word [ebp - 0x21e], 0x208
call fcn.77cf27f5
mov ebx, eax
cmp ebx, edi
jl 0x77cf20ee
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x2001f
push eax
push dword [0x77d1e6a8]
push dword [esi + 0x18]
call fcn.77cbeaa7
mov ebx, eax
cmp ebx, edi
jl 0x77cf20ee
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea eax, [ebp - 0x228]
push eax
push 0xb
push edi
mov edi, dword [sym.imp.ntdll.dll_NtSetValueKey]
push 0x77cf2104
push dword [ebp - 0x210]
call edi
mov ebx, eax
test ebx, ebx
jl 0x77cf20e2
mov eax, dword [ebp - 0x214]
mov eax, dword [eax + 0x24]
push 4
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x218]
push eax
push 4
push 0
push 0x77cf210c
push dword [ebp - 0x210]
call edi
mov ebx, eax
test ebx, ebx
jl 0x77cf20e2
mov eax, dword [ebp - 0x218]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x214]
push 4
add eax, 0x20
push eax
push 4
push 0
push 0x77cf2114
push dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
call edi
mov ebx, eax
test ebx, ebx
jl 0x77cf20e2
mov eax, dword [ebp - 0x214]
mov eax, dword [eax]
mov dword [esi + 0x20], eax
xor ebx, ebx
push dword [ebp - 0x210]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0xc
Function at 0x77cf235f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x214]
push ecx
push eax
call fcn.77cb7375
mov esi, eax
test esi, esi
jl 0x77cf2578
mov eax, dword [ebp - 0x214]
push ebx
push dword [eax + 4]
push 0x77d1a860
call fcn.77cb5bfd
mov ebx, eax
test ebx, ebx
jne 0x77cf23b7
mov esi, 0xc0000008
jmp 0x77cf2577
mov eax, dword [ebp - 0x214]
mov esi, dword [eax + 8]
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 0x218], esi
jle 0x77cf2572
cmp eax, 2
jle 0x77cf2572
cmp eax, 4
jle 0x77cf2424
cmp eax, 5
je 0x77cf2572
cmp eax, 0xe
je 0x77cf2572
cmp eax, 0xf
jne 0x77cf2572
and dword [ebp - 0x210], 0
sub eax, 3
je 0x77cf252c
dec eax
je 0x77cf2525
sub eax, 0xb
je 0x77cf24ad
mov esi, 0xc0000003
jmp 0x77cf255b
cmp byte [ebx + 4], 0
je 0x77cf2434
mov esi, 0xc0000022
jmp 0x77cf2577
and word [ebp - 0x228], 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x228]
push eax
mov word [ebp - 0x226], 0x208
push dword [ebx]
call fcn.77cf276d
mov esi, eax
test esi, esi
jl 0x77cf2577
lea eax, [ebp - 0x210]
push eax
push 1
push 0x20006
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [0x77d1e6a8]
xor ecx, ecx
test eax, eax
setne cl
push eax
lea ecx, [ecx + ecx + 1]
push ecx
call fcn.77cbeaa7
mov esi, eax
test esi, esi
jl 0x77cf2577
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x218]
jmp 0x77cf2401
test edi, edi
jne 0x77cf24bb
mov esi, 0xc0000005
jmp 0x77cf255b
mov eax, dword [ebp + 0x14]
cmp eax, 0x20
jb 0x77cf251e
cmp eax, dword [edi + 4]
jb 0x77cf251e
lea eax, [edi + 8]
push eax
push 0x77d1a820
call fcn.77cb7a4b
test eax, eax
jne 0x77cf24e4
push edi
push ebx
push esi
call fcn.77cf218b
jmp 0x77cf2559
cmp dword [edi], 0
mov ecx, dword [eax + 0x14]
jne 0x77cf2505
cmp ecx, dword [ebx]
jne 0x77cf24fe
cmp dword [eax + 0x18], esi
jne 0x77cf24fe
push eax
push ebx
call fcn.77cf1795
jmp 0x77cf2559
mov esi, 0xc0000225
jmp 0x77cf255b
cmp ecx, dword [ebx]
jne 0x77cf2517
cmp dword [eax + 0x18], esi
jne 0x77cf2517
push edi
push eax
call fcn.77cf2121
jmp 0x77cf2559
mov esi, 0xc0000035
jmp 0x77cf255b
mov esi, 0xc0000004
jmp 0x77cf255b
push 0x77ce0a00
jmp 0x77cf2531
push 0x77ce09e4
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push dword [ebp + 0x14]
lea eax, [ebp - 0x220]
push edi
push 1
push 0
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
cmp dword [ebp - 0x210], 0
je 0x77cf2577
push dword [ebp - 0x210]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x77cf2577
mov esi, 0xc0000003
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.77cc744e
leave
ret 0x10
Function at 0x77cf25fb
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x77cf2653
cmp dword [eax + 4], ebx
je 0x77cf2653
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push 0x30019
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, ebx
jl 0x77cf2763
mov byte [ebp + 0xb], 1
jmp 0x77cf265c
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov byte [ebp + 0xb], bl
mov ecx, dword fs:[0x18]
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov eax, 0x100
push eax
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x30]
push ebx
push dword [eax + 0x18]
call edi
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtEnumerateKey]
cmp eax, 0xc0000023
je 0x77cf26a0
cmp eax, 0x80000005
jne 0x77cf26f5
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jbe 0x77cf272e
cmp esi, ebx
je 0x77cf26c4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
mov esi, eax
cmp esi, ebx
je 0x77cf2746
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtEnumerateKey]
cmp eax, 0x8000001a
je 0x77cf272e
cmp eax, ebx
jl 0x77cf272e
cmp esi, ebx
je 0x77cf2746
lea eax, [esi + 0x10]
mov dword [ebp - 0xc], eax
mov ax, word [esi + 0xc]
mov word [ebp - 0xe], ax
mov ax, word [esi + 0xc]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call fcn.77cf25fb
test eax, eax
jge 0x77cf267f
cmp esi, ebx
je 0x77cf2746
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
cmp byte [ebp + 0xb], bl
mov esi, eax
je 0x77cf275f
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x77cf2ad9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x14]
movzx eax, si
shr eax, 4
inc eax
push eax
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x77cf2b4a
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x77cf2b4a
and esi, 0xf
movzx ecx, word [eax]
lea eax, [eax + 2]
je 0x77cf2b24
lea eax, [eax + ecx*2]
movzx ecx, word [eax]
dec esi
inc eax
inc eax
test esi, esi
jne 0x77cf2b17
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
lea eax, [ecx + ecx]
mov word [ebp - 6], ax
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
push 1
call dword [sym.imp.ntdll.dll_RtlDuplicateUnicodeString]
test eax, eax
jl 0x77cf2b4a
xor eax, eax
inc eax
jmp 0x77cf2b4c
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x77cf2feb
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp word [ebx], di
mov eax, ebx
je 0x77cf303d
movzx esi, word [eax]
cmp si, 0x2d
jne 0x77cf302b
lea ecx, [eax + 2]
cmp word [ecx], 0x2a
jne 0x77cf302b
movzx edx, word [eax + 4]
test dx, dx
je 0x77cf3021
cmp dx, si
jne 0x77cf302b
test edi, edi
jne 0x77cf305e
mov edi, ecx
mov eax, ecx
jmp 0x77cf3031
cmp si, 0x2a
je 0x77cf305e
inc eax
inc eax
cmp word [eax], 0
jne 0x77cf3001
test edi, edi
jne 0x77cf3068
mov eax, dword [ebp + 0xc]
or dword [eax + 4], 0xffffffff
push eax
push ebx
call sym.ADVAPI32.dll_ConvertStringSidToSidW
neg eax
sbb eax, eax
and eax, 0x3fffffff
add eax, 0xc0000001
jmp 0x77cf3170
mov eax, 0xc0000078
jmp 0x77cf3170
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x77cf306d
mov ecx, dword fs:[0x18]
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 2]
mov eax, dword [ecx + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
mov dword [ebp - 8], eax
je 0x77cf316b
push esi
push ebx
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
sub edi, ebx
mov ebx, dword [ebp - 8]
lea eax, [ebp + 8]
sar edi, 1
push eax
lea esi, [ebx + edi*2]
push ebx
mov word [esi], 0x30
call sym.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x77cf3111
lea eax, [ebp - 4]
push eax
push ebx
mov word [esi], 0x31
call sym.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x77cf3108
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + 1]
xor esi, esi
test eax, eax
jbe 0x77cf30ff
mov edi, dword [ebp - 4]
lea edx, [ecx + 8]
sub edi, ecx
mov ebx, dword [edx]
cmp ebx, dword [edi + edx]
jne 0x77cf3118
inc esi
add edx, 4
cmp esi, eax
jb 0x77cf30f0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, 0xc0000001
jmp 0x77cf3150
sub eax, esi
lea eax, [eax*4 - 4]
push eax
lea eax, [ecx + esi*4 + 0xc]
push eax
lea eax, [ecx + esi*4 + 8]
push eax
call sub.ntdll.dll_memmove
mov eax, dword [ebp + 8]
add esp, 0xc
dec byte [eax + 1]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 4]
mov dword [eax], ecx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
jmp 0x77cf3170
mov eax, 0xc0000017
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x77cf317c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x58], eax
push 0x77cbec9c
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x54], edi
call esi
lea eax, [ebp - 0x68]
push eax
push 0x4b
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x60]
push eax
push edi
mov edi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
call edi
test eax, eax
jge 0x77cf31f1
cmp eax, 0x80000005
jne 0x77cf31e0
mov eax, 0xc0000001
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0x10
cmp dword [ebp - 0x50], 3
jne 0x77cf31db
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x77cf31db
cmp eax, 0x40
ja 0x77cf31db
cmp eax, dword [ebx]
jbe 0x77cf320e
mov eax, 0x80000005
jmp 0x77cf31e0
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x64]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov dword [ebx], eax
push 0x77cf3274
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x68]
push eax
push 0x4b
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x54]
call edi
test eax, eax
jl 0x77cf31e0
cmp dword [ebp - 0x50], 4
jne 0x77cf31db
cmp dword [ebp - 0x4c], 4
jne 0x77cf31db
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
and eax, 0xe000
sub eax, 0x8000
neg eax
sbb eax, eax
and eax, 0xc0000001
jmp 0x77cf31e0
Function at 0x77cf33d3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x77d1a0a8], 0
push esi
jne 0x77cf33ef
mov esi, 0xc0000001
jmp 0x77cf34f9
push 0x77d1a480
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x77d1e6a8], 0
je 0x77cf3413
cmp dword [ebp + 8], 3
je 0x77cf341f
mov esi, 0xc0000030
jmp 0x77cf34ee
cmp dword [ebp + 8], 1
je 0x77cf341f
cmp dword [ebp + 8], 2
jmp 0x77cf3407
cmp byte [0x77d1a0c0], 0
je 0x77cf3437
call fcn.77cbfb39
mov esi, eax
test esi, esi
jl 0x77cf34ee
lea eax, [ebp - 4]
push eax
push 1
push 0x2001b
push 0x77cbea80
push dword [0x77d1e6a8]
push dword [ebp + 8]
call fcn.77cbeaa7
mov esi, eax
test esi, esi
jl 0x77cf34ee
mov esi, 0x77d1a860
push esi
call dword [sym.imp.ntdll.dll_RtlIsGenericTableEmpty]
test al, al
je 0x77cf3476
mov esi, 0xc0000225
jmp 0x77cf34e5
cmp dword [ebp + 0xc], 4
push edi
jb 0x77cf349d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x77cf349d
mov eax, dword [eax]
push eax
push esi
mov dword [ebp - 8], eax
call fcn.77cb5bfd
mov edi, eax
test edi, edi
jne 0x77cf349f
mov esi, 0xc0000225
jmp 0x77cf34e4
xor edi, edi
push 0x77cbff3c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
test esi, esi
jl 0x77cf34e4
cmp dword [ebp + 8], 2
jne 0x77cf34d9
mov dword [0x77d1e6a0], edi
jmp 0x77cf34df
mov dword [0x77d1e69c], edi
call fcn.77cbece1
pop edi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
push 0x77d1a480
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x77cf3505
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x77d1a0a8], 0
push esi
jne 0x77cf3520
mov esi, 0xc0000001
jmp 0x77cf3636
cmp dword [ebp + 0xc], 4
push ebx
jb 0x77cf3630
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x77cf3630
mov eax, dword [ebx]
cmp eax, 0x1000
je 0x77cf354e
cmp eax, 0x2000
je 0x77cf354e
test eax, eax
jne 0x77cf3630
push edi
mov edi, 0x77d1a480
push edi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x77d1e6a8], 0
je 0x77cf3574
cmp dword [ebp + 8], 3
je 0x77cf3580
mov esi, 0xc0000030
jmp 0x77cf3626
cmp dword [ebp + 8], 1
je 0x77cf3580
cmp dword [ebp + 8], 2
jmp 0x77cf3568
cmp byte [0x77d1a0c0], 0
je 0x77cf3598
call fcn.77cbfb39
mov esi, eax
test esi, esi
jl 0x77cf3626
lea eax, [ebp + 0x10]
push eax
push 1
push 0x2001b
push 0x77cbea80
push dword [0x77d1e6a8]
push dword [ebp + 8]
call fcn.77cbeaa7
mov esi, eax
test esi, esi
jl 0x77cf3626
push 0x77d1a860
call dword [sym.imp.ntdll.dll_RtlIsGenericTableEmpty]
test al, al
je 0x77cf35d2
mov esi, 0xc0000225
jmp 0x77cf361d
push 0x77cbfd7c
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [ebx]
push 4
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 4
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
test esi, esi
jl 0x77cf361d
cmp dword [ebp + 8], 2
mov eax, dword [ebp + 0xc]
jne 0x77cf3613
mov dword [0x77d1e694], eax
jmp 0x77cf3618
mov dword [0x77d1e690], eax
call fcn.77cbece1
push dword [ebp + 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
push edi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
pop edi
jmp 0x77cf3635
mov esi, 0xc00000f1
pop ebx
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x77cf3642
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
or dword [ebp - 0x214], 0xffffffff
push ebx
push esi
xor ebx, ebx
cmp byte [0x77d1a0a8], bl
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x21c], eax
jne 0x77cf3681
mov esi, 0xc0000001
jmp 0x77cf37b3
push 0x77d1a480
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x77d1e6a8], ebx
je 0x77cf36a4
cmp dword [ebp + 8], 3
je 0x77cf36aa
mov esi, 0xc0000030
jmp 0x77cf37a8
cmp dword [ebp + 8], 1
jmp 0x77cf3698
cmp byte [0x77d1a0c0], bl
je 0x77cf36c1
call fcn.77cbfb39
mov esi, eax
cmp esi, ebx
jl 0x77cf37a8
cmp byte [ebp + 0x18], bl
jne 0x77cf3778
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x20019
push 0x77cbea80
push dword [0x77d1e6a8]
push dword [ebp + 8]
call fcn.77cbeaa7
mov esi, eax
cmp esi, ebx
jl 0x77cf37a8
push 0x77ce0c30
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x228]
push eax
push 0x20c
lea eax, [ebp - 0x210]
push eax
push 1
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, ebx
jl 0x77cf3760
cmp dword [ebp - 0x20c], 4
jne 0x77cf375b
cmp dword [ebp - 0x204], 4
jne 0x77cf375b
mov eax, dword [ebp - 0x208]
mov eax, dword [ebp + eax - 0x210]
mov dword [ebp - 0x214], eax
jmp 0x77cf3760
mov esi, 0xc0000225
push dword [ebp - 0x218]
call dword [sym.imp.ntdll.dll_NtClose]
cmp esi, ebx
jl 0x77cf37a8
mov eax, dword [ebp - 0x214]
jmp 0x77cf3783
xor eax, eax
cmp byte [0x77d1e5bc], bl
setne al
cmp edi, ebx
je 0x77cf3793
cmp dword [ebp + 0xc], 4
jb 0x77cf3793
mov dword [edi], eax
xor esi, esi
jmp 0x77cf3798
mov esi, 0xc0000023
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x77cf37a8
mov dword [eax], 4
push 0x77d1a480
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0x14
Function at 0x77cf37ec
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp byte [0x77d1a0a8], bl
jne 0x77cf380b
mov dword [ebp - 4], 0xc0000001
jmp 0x77cf3914
push 0x77d1a480
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x77d1e6a8], ebx
je 0x77cf3830
cmp dword [ebp + 8], 3
je 0x77cf3836
mov dword [ebp - 4], 0xc0000030
jmp 0x77cf3909
cmp dword [ebp + 8], 1
jmp 0x77cf3822
cmp byte [0x77d1a0c0], bl
je 0x77cf384e
call fcn.77cbfb39
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x77cf3909
lea eax, [ebp - 8]
push eax
push 1
push 0x2001b
push 0x77cbea80
push dword [0x77d1e6a8]
push dword [ebp + 8]
call fcn.77cbeaa7
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x77cf3909
cmp dword [ebp + 0xc], 4
push esi
push edi
jb 0x77cf38f7
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x77cf38f7
push 0x77ce0c30
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 4
push esi
push 4
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x77cf38fe
cmp dword [esi], ebx
setne al
cmp byte [0x77d1e5bc], al
je 0x77cf38fe
cmp dword [0x77d1e6a8], ebx
mov byte [0x77d1e5bc], al
jne 0x77cf38fe
mov esi, 0x77d1a820
push esi
call fcn.77cb5747
push ebx
push 1
push esi
mov edi, 0x77d1a860
push edi
call fcn.77cbf711
cmp byte [0x77d1e5bc], bl
je 0x77cf38fe
push ebx
push 2
push esi
push edi
call fcn.77cbf711
jmp 0x77cf38fe
mov dword [ebp - 4], 0xc0000023
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
pop esi
push 0x77d1a480
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc

Function at 0x77cf3921
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x77d1a0a8], 0
push esi
jne 0x77cf393d
mov esi, 0xc0000001
jmp 0x77cf39ce
push edi
mov edi, 0x77d1a480
push edi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword [0x77d1e6a8]
test eax, eax
je 0x77cf3960
cmp dword [ebp + 8], 3
je 0x77cf3966
mov esi, 0xc0000030
jmp 0x77cf39c6
cmp dword [ebp + 8], 1
jmp 0x77cf3957
lea ecx, [ebp - 4]
push ecx
push 1
push 0x2001b
push 0x77cbea80
push eax
push dword [ebp + 8]
call fcn.77cbeaa7
mov esi, eax
test esi, esi
jl 0x77cf39c6
cmp dword [ebp + 0x10], 4
jb 0x77cf39b8
cmp dword [ebp + 0x14], 0
je 0x77cf39b8
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 4
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push 4
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
jmp 0x77cf39bd
mov esi, 0xc0000023
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
push edi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
pop edi
mov eax, esi
pop esi
leave
ret 0x10