joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462ae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x462b01
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x462b5b
inc edi
cmp edi, esi
jl 0x462af5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x462b90
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x462b4a
cmp byte [eax], bl
je 0x462b65
cmp byte [eax + 1], bl
je 0x462b6e
cmp byte [eax + 2], bl
je 0x462b78
cmp byte [eax + 3], bl
je 0x462b84
add eax, 4
cmp eax, edi
jb 0x462b21
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x462f20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x462f52
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], pe_nt_image_headers32
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x462fb2
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x462f89
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x463060
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x4630fc
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x46308b
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret

Function at 0x473f9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x473fde
call fcn.004772f0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473fde
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x473fd5
xor eax, eax
jmp 0x473fe6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473fec
pop edi
pop esi
pop ebx
ret 4
Function at 0x474f77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x478b98
call fcn.00466f90
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004772f0
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x474fb6
call fcn.004772f0
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x474fc4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x474fd2
or eax, 0xffffffff
jmp 0x4750ba
mov ecx, esi
call fcn.00474eed
mov dword [ebp - 0x14], eax
call fcn.004725e3
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x475009
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x475009
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00472597
push dword [ebp - 0x14]
call fcn.004720c9
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00474c85
cmp eax, edi
je 0x47507c
test byte [esi + 0x24], 0x10
je 0x47504a
push 4
mov ecx, esi
pop ebx
call fcn.00471ac9
test ah, 1
je 0x475042
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004740ee
cmp dword [esi + 0x1c], edi
je 0x47507c
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00471afd
jmp 0x47507c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x475090
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4750a9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4750a9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00474f27
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x476e5d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x476e8b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x476ea9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00476dc3
jmp 0x476ea9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x476ea9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00476dc3
test edi, edi
mov eax, edi
jne 0x476e93
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x132ca
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
mov ebx, 0xc0000001
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
jbe 0x133c3
push edi
mov edi, 0x62525249
jmp 0x132f1
xor esi, esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push 1
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
mov ebx, eax
cmp ebx, esi
jge 0x13327
cmp ebx, 0xc0000023
je 0x13327
push ebx
push 0x15a1c
push esi
call fcn.00014eba
add esp, 0xc
jmp 0x133b3
mov eax, dword [ebp - 8]
push edi
push eax
push 1
mov dword [ebp - 0xc], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
jne 0x13347
push ebx
push 0x159da
push 0
jmp 0x1331a
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
push 1
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
mov ebx, eax
test ebx, ebx
jge 0x13373
push edi
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push ebx
push 0x15998
jmp 0x13343
mov ax, word [esi + 0x10]
mov word [ebp - 0x12], ax
mov word [ebp - 0x14], ax
lea eax, [esi + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov ebx, eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x15958
push 0
call fcn.00014eba
add esp, 0x10
push edi
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
dec dword [ebp - 4]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x132ef
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x136c0
Capabilities:
Delete registry key

Disassembly:
push 0x240
push 0x112c8
call fcn.000107bc
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x228], 0xc0000001
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
xor edi, edi
push edi
lea eax, [ebp - 0x222]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 4], edi
cmp esi, edi
je 0x1386c
push esi
mov ebx, dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
call ebx
test al, al
je 0x1386c
add esi, 8
cmp esi, edi
je 0x1386c
push esi
call ebx
test al, al
je 0x1386c
xor eax, eax
mov word [ebp - 0x230], ax
mov eax, 0x208
mov word [ebp - 0x22e], ax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], eax
push dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
push 0x15b1a
lea eax, [ebp - 0x230]
push eax
call fcn.000104e0
mov dword [ebp - 0x228], eax
cmp eax, edi
jge 0x13798
push eax
lea eax, [ebp - 0x230]
push eax
push 0x15cac
jmp 0x1382d
push esi
lea eax, [ebp - 0x230]
push eax
call fcn.000104e0
mov dword [ebp - 0x228], eax
cmp eax, edi
jge 0x137cb
push eax
push esi
lea eax, [ebp - 0x230]
push eax
push 0x15c62
push edi
call fcn.00014eba
add esp, 0x14
jmp 0x1386c
mov dword [ebp - 0x250], 0x18
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x244], 0x240
lea eax, [ebp - 0x230]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
lea eax, [ebp - 0x250]
push eax
push 0xf003f
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [ebp - 0x228], eax
cmp eax, edi
jge 0x13838
push eax
lea eax, [ebp - 0x230]
push eax
push 0x15c26
push edi
call fcn.00014eba
add esp, 0x10
jmp 0x1386c
push dword [ebp - 0x234]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov dword [ebp - 0x228], eax
push eax
lea eax, [ebp - 0x230]
push eax
push 0x15be6
push edi
call fcn.00014eba
add esp, 0x10
push dword [ebp - 0x234]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 4], 0xfffffffe
call fcn.00013886
mov eax, dword [ebp - 0x228]
call fcn.00010804
ret 8
Function at 0x1388c
Capabilities:
Delete registry value

Disassembly:
push 0x24c
push 0x112e8
call fcn.000107bc
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x228], 0xc0000001
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
xor edi, edi
push edi
lea eax, [ebp - 0x222]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 4], edi
cmp esi, edi
je 0x13a80
push esi
mov ebx, dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
call ebx
test al, al
je 0x13a80
lea eax, [esi + 8]
mov dword [ebp - 0x238], eax
cmp eax, edi
je 0x13a80
push eax
call ebx
test al, al
je 0x13a80
add esi, 0x80c
cmp esi, edi
je 0x13a80
push esi
call ebx
test al, al
je 0x13a80
xor eax, eax
mov word [ebp - 0x230], ax
mov eax, 0x208
mov word [ebp - 0x22e], ax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], eax
push dword [ebp - 0x23c]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
push 0x15b1a
lea eax, [ebp - 0x230]
push eax
call fcn.000104e0
mov dword [ebp - 0x228], eax
cmp eax, edi
jge 0x1398c
push eax
lea eax, [ebp - 0x230]
push eax
push 0x15dc6
push edi
call fcn.00014eba
add esp, 0x10
jmp 0x13a80
push dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
call fcn.000104e0
mov dword [ebp - 0x228], eax
cmp eax, edi
jge 0x139c9
push eax
push dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
push 0x15d7a
push edi
call fcn.00014eba
add esp, 0x14
jmp 0x13a80
push esi
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x25c], 0x18
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x250], 0x240
lea eax, [ebp - 0x230]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
lea eax, [ebp - 0x25c]
push eax
push 0xf003f
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [ebp - 0x228], eax
cmp eax, edi
jge 0x13a3e
push eax
lea eax, [ebp - 0x230]
push eax
push 0x15d3c
jmp 0x1397e
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov dword [ebp - 0x228], eax
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x230]
push eax
push 0x15cf0
push edi
call fcn.00014eba
add esp, 0x14
push dword [ebp - 0x234]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 4], 0xfffffffe
call fcn.00013a9a
mov eax, dword [ebp - 0x228]
call fcn.00010804
ret 8
Function at 0x13aa0
Capabilities:
Set registry value

Disassembly:
push 0x248
push 0x11308
call fcn.000107bc
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x228], 0xc0000001
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push eax
lea eax, [ebp - 0x222]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
and dword [ebp - 4], 0
test esi, esi
je 0x13ce0
push esi
mov edi, dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
call edi
test al, al
je 0x13ce0
lea eax, [esi + 8]
test eax, eax
je 0x13ce0
push eax
call edi
test al, al
je 0x13ce0
lea eax, [esi + 0x80c]
test eax, eax
je 0x13ce0
push eax
call edi
test al, al
je 0x13ce0
lea ebx, [esi + 0x100c]
cmp dword [ebx], 0
je 0x13ce0
push ebx
call edi
test al, al
je 0x13ce0
lea eax, [esi + 0x1010]
push eax
call edi
test al, al
jne 0x13b69
push 0x15f2a
push 0
call fcn.00014eba
pop ecx
pop ecx
jmp 0x13ce0
xor eax, eax
mov word [ebp - 0x230], ax
mov eax, 0x208
mov word [ebp - 0x22e], ax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
push 0x15b1a
lea eax, [ebp - 0x230]
push eax
call fcn.000104e0
mov dword [ebp - 0x228], eax
xor edi, edi
cmp eax, edi
jge 0x13bcc
push eax
lea eax, [ebp - 0x230]
push eax
push 0x15ee2
jmp 0x13c6f
lea eax, [esi + 8]
mov dword [ebp - 0x234], eax
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.000104e0
mov dword [ebp - 0x228], eax
cmp eax, edi
jge 0x13c0d
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push 0x15e96
push edi
call fcn.00014eba
add esp, 0x14
jmp 0x13ce0
mov dword [ebp - 0x258], 0x18
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x24c], 0x240
lea eax, [ebp - 0x230]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], edi
lea eax, [ebp - 0x258]
push eax
push 0xf003f
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [ebp - 0x228], eax
cmp eax, edi
jge 0x13c7a
push eax
lea eax, [ebp - 0x230]
push eax
push 0x15e56
push edi
call fcn.00014eba
add esp, 0x10
jmp 0x13ce0
lea eax, [esi + 0x80c]
push eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push dword [ebx]
lea eax, [esi + 0x1010]
push eax
push dword [esi + 0x808]
push edi
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov dword [ebp - 0x228], eax
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x230]
push eax
push 0x15e0c
push edi
call fcn.00014eba
add esp, 0x14
push dword [ebp - 0x238]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 4], 0xfffffffe
call fcn.00013cfa
mov eax, dword [ebp - 0x228]
call fcn.00010804
ret 8
Function at 0x13d00
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x30
push 0x11328
call fcn.000105f8
mov dword [ebp - 0x1c], 0xc0000001
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 0x240
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x40]
push eax
push 0xf003f
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jge 0x13d6a
push eax
push ebx
push 0x1609c
push esi
call fcn.00014eba
add esp, 0x10
jmp 0x13e4e
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push 2
push dword [ebp + 8]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryKey]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, esi
jge 0x13d9f
cmp eax, 0xc0000023
je 0x13d9f
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push dword [ebp - 0x1c]
push ebx
push 0x16060
jmp 0x13d5c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
push 0x62525249
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x13dce
push ebx
push 0x16018
push esi
call fcn.00014eba
add esp, 0xc
jmp 0x13e4e
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x28]
push eax
push 2
push dword [ebp + 8]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, esi
jge 0x13dfb
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push dword [ebp - 0x1c]
push ebx
push 0x15fdc
jmp 0x13d5c
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x20]
cmp eax, esi
je 0x13e21
push eax
push dword [ebp + 8]
call fcn.000132ca
mov dword [ebp - 0x1c], eax
push eax
push ebx
push 0x15f9e
push esi
call fcn.00014eba
add esp, 0x10
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x13e45
push eax
push ebx
push dword [ebp + 8]
call fcn.000133d0
mov dword [ebp - 0x1c], eax
push eax
push ebx
push 0x15f66
push esi
call fcn.00014eba
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 4], 0xfffffffe
call fcn.00013e67
mov eax, dword [ebp - 0x1c]
call fcn.0001063d
ret 4
Function at 0x142ee
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40
push 0x113b0
call fcn.000105f8
mov dword [ebp - 0x24], 0xc0000001
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], ebx
push 0x1636e
lea eax, [ebp - 0x38]
push eax
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
call edi
mov dword [ebp - 0x50], 0x18
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], 0x240
lea eax, [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x50]
push eax
push 0xf003f
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jl 0x144c1
push 0x16356
lea eax, [ebp - 0x30]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
call edi
mov dword [ebp - 0x24], eax
cmp eax, ebx
jge 0x143a7
cmp eax, 0xc0000023
je 0x14392
cmp eax, 0x80000005
jne 0x144b8
push 0x62525249
push dword [ebp - 0x20]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x144b8
cmp dword [ebp - 0x20], ebx
je 0x144b8
push dword [ebp - 0x20]
push ebx
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0x24], eax
cmp eax, ebx
jl 0x144b8
lea eax, [esi + 0xc]
cmp eax, ebx
je 0x144b1
cmp dword [esi + 8], ebx
je 0x144b1
push 0x208
push ebx
mov edi, 0x12908
push edi
call sub.ntoskrnl.exe_memset
push 0x104
push 0x1634c
push edi
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
push dword [esi + 8]
lea eax, [esi + 0xc]
push eax
push edi
mov ebx, dword [sym.imp.ntoskrnl.exe_wcsncat]
call ebx
add esp, 0x24
mov eax, dword [esi + 8]
lea eax, [eax + esi + 8]
push 0x104
cmp word [eax], 0x5c
jne 0x14445
push 0x16330
jmp 0x1444a
push 0x16312
push edi
call ebx
add esp, 0xc
push 0x208
push 0
mov edi, 0x12700
push edi
call sub.ntoskrnl.exe_memset
push 0x104
push 0x1634c
push edi
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
push dword [esi + 8]
lea eax, [esi + 0xc]
push eax
push edi
call ebx
add esp, 0x24
mov eax, dword [esi + 8]
lea eax, [eax + esi + 8]
push 0x104
cmp word [eax], 0x5c
jne 0x14499
push 0x162e6
jmp 0x1449e
push 0x162b8
push edi
call ebx
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor ebx, ebx
jmp 0x144c1
mov dword [ebp - 0x24], 0x80000005
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 4], 0xfffffffe
call fcn.000144db
mov eax, dword [ebp - 0x24]
call fcn.0001063d
ret
Function at 0x144f4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40
push 0x113d0
call fcn.000105f8
mov dword [ebp - 0x24], 0xc0000001
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
push 0x1636e
lea eax, [ebp - 0x38]
push eax
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
call esi
mov dword [ebp - 0x50], 0x18
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x44], 0x240
lea eax, [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
lea eax, [ebp - 0x50]
push eax
push 0xf003f
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [ebp - 0x24], eax
cmp eax, edi
jl 0x1467f
push 0x163f0
lea eax, [ebp - 0x30]
push eax
call esi
lea eax, [ebp - 0x28]
push eax
push edi
push edi
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
call esi
mov dword [ebp - 0x24], eax
cmp eax, edi
jge 0x145b1
cmp eax, 0xc0000023
je 0x14596
cmp eax, 0x80000005
jne 0x14676
push 0x62525249
push dword [ebp - 0x28]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x14676
mov ebx, dword [ebp - 0x20]
cmp ebx, edi
je 0x14676
cmp dword [ebp - 0x28], edi
je 0x14676
push dword [ebp - 0x28]
push edi
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
push ebx
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x24], eax
cmp eax, edi
jl 0x14676
lea eax, [ebx + 0xc]
cmp eax, edi
je 0x14664
cmp dword [ebx + 8], edi
je 0x14664
push 0x208
push edi
mov esi, 0x12b10
push esi
call sub.ntoskrnl.exe_memset
mov ebx, 0x104
push ebx
mov edi, 0x16298
push edi
push esi
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
mov eax, dword [ebp - 0x20]
push dword [eax + 8]
add eax, 0xc
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_wcsncat]
push ebx
push edi
push esi
call dword [sym.imp.ntoskrnl.exe__wcsnicmp]
add esp, 0x30
test eax, eax
jne 0x14657
push 0x208
push eax
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 0x24], 0x80000005
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor edi, edi
jmp 0x1467f
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 0x24], 0x80000005
jmp 0x1467f
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 4], 0xfffffffe
call fcn.00014696
mov eax, dword [ebp - 0x24]
call fcn.0001063d
ret