joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7dd8ed31
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call sym.KERNEL32.dll_RegKrnGetGlobalState
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
cmp esi, edx
je 0x7dd8edba
movzx eax, word [esi]
cmp ax, 2
jb 0x7dd8edba
test al, 1
jne 0x7dd8edba
cmp dword [esi + 4], edx
je 0x7dd8edba
mov edi, dword [ebp + 8]
add eax, 0xfffffffe
mov word [esi], ax
cmp ecx, edx
jne 0x7ddb0c1c
mov ebx, edi
and ebx, 2
jne 0x7ddb0c25
cmp dword [ebp - 8], 0
jne 0x7ddb0c48
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_NtDeleteValueKey]
call edi
mov dword [ebp + 0xc], eax
test ebx, ebx
jne 0x7ddb0c5a
mov eax, dword [ebp - 8]
test eax, eax
jne 0x7ddb0c87
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [esi + 4], edx
jne 0x7ddb0ca7
jmp 0x7ddb0c00
movzx eax, word [esi]
cmp ax, 2
jne 0x7ddb0ca7
cmp word [esi + 2], dx
je 0x7dd8ed64
jmp 0x7ddb0ca7
push esi
push edi
call ecx
jmp 0x7dd8ed75
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x2000000
push edi
push 0
call fcn.7dd8c30a
test eax, eax
jge 0x7dd8ed80
push eax
jmp 0x7dd8edad
cmp dword [ebp - 4], 0
je 0x7dd8ed8a
mov edi, dword [ebp - 8]
jmp 0x7dd8ed8a
cmp eax, 0xc0000034
jne 0x7dd8ed9f
cmp dword [ebp - 8], 0
je 0x7dd8edaa
cmp dword [ebp - 4], 0
je 0x7dd8ed9f
push esi
push dword [ebp - 4]
call edi
mov dword [ebp + 0xc], eax
jmp 0x7dd8ed9f
cmp dword [ebp - 4], 0
je 0x7dd8edaa
cmp eax, dword [ebp + 8]
je 0x7ddb0c99
push eax
jmp 0x7ddb0c9c
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x7dd8edaa
push 0x57
pop eax
jmp 0x7dd8edb3

Function at 0x7dd8f02d
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x7dd8f03a
jmp dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_SetFileAttributesA]
Function at 0x7dd90079
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
call sym.KERNEL32.dll_RegKrnGetGlobalState
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
movzx eax, word [esi]
cmp ax, 2
jb 0x7dd98dd9
mov ecx, dword [esi + 4]
xor ebx, ebx
cmp ecx, ebx
je 0x7dd98dd9
test al, 1
jne 0x7dd98dd9
movzx edx, ax
shr edx, 1
cmp word [ecx + edx*2 - 2], bx
jne 0x7dd98dd9
cmp dword [ebp + 0x14], ebx
jne 0x7dd98dd9
add eax, 0xfffffffe
test byte [ebp + 8], 2
push edi
mov edi, dword [ebp + 0x18]
mov word [esi], ax
jne 0x7dd98da3
call sym.KERNEL32.dll_RegKrnGetGlobalState
test byte [eax + 0x24], 2
jne 0x7ddb0bc6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x24]
cmp edi, ebx
jne 0x7ddb0bd6
push eax
mov eax, dword [ebp + 0x10]
and eax, 0x300
or eax, 0x10000
push eax
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov edi, eax
cmp dword [ebp - 4], ebx
jne 0x7ddb0bf5
cmp edi, ebx
jl 0x7dd9015e
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
push edi
mov dword [esi + 4], eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
pop ebx
leave
ret 0x14
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
and eax, 0x300
or eax, 0x2000000
push eax
push ebx
push esi
push dword [ebp + 8]
call fcn.7dd8be16
mov edi, eax
cmp edi, ebx
jge 0x7dd9013d
jmp 0x7dd9015e
test eax, eax
je 0x7dd900fa
jmp 0x7dd98da3
push 0x57
pop eax
jmp 0x7dd90171
push edi
push esi
lea eax, [ebp + 8]
push eax
call fcn.7de19b05
jmp 0x7dd98dcf
push edi
push eax
mov eax, dword [ebp + 0x10]
and eax, 0x300
or eax, 0x10000
push eax
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKeyTransacted]
jmp 0x7dd9013b
push dword [ebp + 0xc]
call dword [ebp - 4]
jmp 0x7dd90146

Function at 0x7dd901f5
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and dword [0x7de40044], 0
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
cmp dword [0x7de40088], 0x7de40088
push edi
jne 0x7dd90223
mov byte [0x7de40001], 0
push dword [esi + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0
push dword [eax + 0x18]
call edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x7dd9035a
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
movzx ecx, word [ebx]
movzx eax, cx
lea edx, [eax + 2]
push esi
push edi
cmp edx, eax
jb 0x7dd90446
test cl, 1
jne 0x7dd90446
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x18
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x7dda4e91
mov ax, word [ebx]
add ax, 2
lea edi, [esi + 8]
mov word [edi], ax
mov word [esi + 0xa], ax
mov eax, dword fs:[0x18]
movzx ecx, word [edi]
mov eax, dword [eax + 0x30]
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0xc], eax
test eax, eax
je 0x7dda4e98
movzx ecx, word [ebx]
push ecx
push dword [ebx + 4]
push eax
call sub.ntdll.dll_memcpy
movzx eax, word [edi]
mov ecx, dword [esi + 0xc]
add esp, 0xc
push 0x5c
pop edx
shr eax, 1
mov ebx, 0x7de40314
push ebx
mov word [ecx + eax*2 - 2], dx
call dword [sym.imp.ntdll.dll_RtlAcquireSRWLockExclusive]
push edi
call fcn.7dd90455
push ebx
test eax, eax
jne 0x7dda4eae
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov al, byte [ebp + 0x10]
mov byte [esi + 0x14], al
mov eax, dword [0x7de4008c]
mov dword [esi], 0x7de40088
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [0x7de4008c], esi
mov byte [0x7de40001], 1
call dword [sym.imp.ntdll.dll_RtlReleaseSRWLockExclusive]
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0xc000000d
jmp 0x7dda4ee3
push 0xc000009a
jmp 0x7dda4ee3
push esi
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x7dda4e91
call dword [sym.imp.ntdll.dll_RtlReleaseSRWLockExclusive]
push dword [esi + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0
push dword [eax + 0x18]
call edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
push 0xc00000bd
call sym.KERNEL32.dll_BaseSetLastNTError
xor al, al
jmp 0x7dd9043f
Function at 0x7dd90cf5
Capabilities:
Delete file

Disassembly:
cmp dword [ebp - 0x25c], 0xffffffff
je 0x7dd90d0a
push dword [ebp - 0x25c]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 0x260], 0xffffffff
je 0x7dd90d1f
push dword [ebp - 0x260]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword fs:[0x18]
push dword [ebp - 0x2a0]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
call edi
mov eax, dword fs:[0x18]
push dword [ebp - 0x2b4]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
mov eax, dword fs:[0x18]
push dword [ebp - 0x28c]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
mov eax, dword fs:[0x18]
push dword [ebp - 0x2b0]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
mov eax, dword fs:[0x18]
push dword [ebp - 0x288]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
mov eax, dword [ebp - 0x270]
cmp eax, esi
je 0x7dd90dc3
cmp eax, dword [ebp - 0x298]
je 0x7dd90dc3
cmp dword [ebp - 0x2a4], esi
jne 0x7dd90dae
push eax
call fcn.7dd725e0
mov eax, dword fs:[0x18]
push dword [ebp - 0x270]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
ret
Function at 0x7dd9253b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x214], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
mov esi, dword [ebx + 0x18]
push edi
mov dword [ebp - 0x20c], eax
xor edi, edi
cmp esi, edi
jne 0x7dd9e56f
mov ebx, dword [ebx + 0x20]
cmp ebx, edi
je 0x7dd9e5d4
mov eax, dword [ebp - 0x20c]
test byte [eax + 3], 2
jne 0x7dd9e5de
lea eax, [ebp - 0x208]
push eax
push edi
push dword [ebp - 0x214]
call fcn.7dd7e911
test al, al
je 0x7dd9e5ea
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x208]
push ebx
push dword [ebp - 0x214]
call fcn.7dd9222a
cmp eax, edi
jl 0x7dd926a3
cmp dword [ebp - 0x210], 0xffffffff
je 0x7dd926a3
mov esi, dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
lea eax, [ebp - 0x228]
push eax
mov ebx, 0x200
push ebx
lea eax, [ebp - 0x204]
push eax
push edi
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x20c], edi
call esi
mov edi, 0x8000001a
mov dword [ebp - 0x208], eax
cmp eax, edi
je 0x7dd92695
cmp dword [ebp - 0x208], 0
jl 0x7dd9e5f4
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x220], eax
mov ax, word [ebp - 0x1fc]
push 1
mov word [ebp - 0x224], ax
mov word [ebp - 0x222], ax
lea eax, [ebp - 0x224]
push eax
push 0
push dword [ebp - 0x214]
call fcn.7dd7ec74
mov dword [ebp - 0x208], eax
test eax, eax
jl 0x7dd9e5f4
inc dword [ebp - 0x20c]
lea eax, [ebp - 0x228]
push eax
push ebx
lea eax, [ebp - 0x204]
push eax
push 0
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call esi
jmp 0x7dd9260f
push dword [ebp - 0x210]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 8
cmp eax, edi
jge 0x7dd92596
jmp 0x7dd926a3
mov eax, dword [ebp - 0x20c]
test byte [eax + 3], 2
je 0x7dd9e591
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.7dde9dfa
cmp eax, edi
jge 0x7dd9e5b0
jmp 0x7dd926a3
mov ax, word [esi + 8]
mov word [ebp - 0x21c], ax
mov ax, word [esi + 0xa]
mov word [ebp - 0x21a], ax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x218], eax
push 1
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0x214]
call fcn.7dd7ec74
cmp eax, edi
jl 0x7dd926a3
mov esi, dword [esi]
jmp 0x7dd92573
mov eax, 0xc0000016
jmp 0x7dd926a3
push edi
push ebx
call fcn.7dde9dfa
jmp 0x7dd926b4
mov eax, 0xc000000d
jmp 0x7dd926a3
push dword [ebp - 0x210]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x208]
jmp 0x7dd926a3
Function at 0x7dd92898
Capabilities:
Check for peb beingdebugged flag
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebx + ebx + 2]
push edi
mov word [ebp - 6], ax
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov ecx, dword fs:[0x18]
movzx edx, word [ebp - 6]
mov eax, dword [eax + 0x2c]
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edx
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call edi
mov dword [ebp - 4], eax
test eax, eax
je 0x7dda4240
push esi
push eax
movzx eax, word [ebp - 6]
dec eax
dec eax
shr eax, 1
push eax
call sym.KERNEL32.dll_GetTempPathW
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
add eax, eax
mov word [ebp - 8], ax
mov eax, dword [ebp - 6]
add eax, 0xfffffffe
cmp word [ebp - 8], ax
ja 0x7dda4251
mov eax, dword [ebp + 0xc]
inc ebx
mov dword [ebp - 0xc], eax
mov word [ebp - 0xe], bx
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x1c]
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
call eax
push dword [ebp - 4]
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call esi
test edi, edi
jl 0x7dda42f5
movzx eax, word [ebp - 0x10]
pop esi
pop edi
pop ebx
leave
ret 8
push 0xc0000017
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7dd92948
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call esi
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov ecx, dword fs:[0x18]
movzx edx, word [ebp - 8]
mov eax, dword [eax + 0x2c]
inc edx
inc edx
push edx
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call edi
mov dword [ebp - 4], eax
test eax, eax
jne 0x7dda4291
push 0xc0000017
jmp 0x7dda42f6
push eax
movzx eax, word [ebp - 8]
shr eax, 1
push eax
call sym.KERNEL32.dll_GetTempPathW
add eax, eax
mov word [ebp - 8], ax
movzx eax, ax
push eax
push dword [ebp - 4]
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeToMultiByteSize]
mov edi, eax
test edi, edi
jge 0x7dda42d0
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call esi
jmp 0x7dda42f5
cmp ebx, dword [ebp + 8]
ja 0x7dd92907
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call esi
mov eax, dword [ebp + 8]
inc eax
jmp 0x7dd92947
push edi
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7dd92947
Function at 0x7dd93c92
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x7de40034], 0
je 0x7dd95047
mov ecx, dword [ebp - 4]
mov eax, dword [0x7de40c90]
xor ecx, ebp
call fcn.7dd71442
leave
ret
push esi
push 0x7dd95098
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x7dd9508a
lea eax, [ebp - 0x20]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
push 0x7dd950b0
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jge 0x7dd9fb63
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x7de40034], esi
pop esi
jmp 0x7dd93cb1
cmp dword [ebp - 0x14], 4
jne 0x7dd95081
cmp dword [ebp - 0x10], 4
jne 0x7dd95081
cmp dword [ebp - 0xc], 0
jne 0x7dd95081
mov dword [0x7de40c90], esi
jmp 0x7dd95081
Function at 0x7dd9431f
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0x18]
push 0x23
push 8
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jl 0x7dd9f6a9
test dword [esi], 0x400
jne 0x7dd9f6c2
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 1
pop esi
leave
ret 0x18
cmp eax, 0xc000000d
je 0x7dd9f6bb
cmp eax, 0xc0000002
jne 0x7dd94359
xor eax, eax
jmp 0x7dd94350
mov esi, dword [esi + 4]
cmp esi, 0xa0000003
je 0x7dd9f6e3
cmp esi, 0xa000000c
jne 0x7dd94359
cmp dword [ebp + 0x1c], 0
je 0x7dd94359
mov ecx, dword [ebp + 0xc]
jmp 0x7dd94353
Function at 0x7dd95609
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
cmp dword [0x7de40038], eax
je 0x7dd9564b
mov eax, dword [0x7de40c94]
mov ecx, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [0x7de40c98]
pop edi
mov dword [ebx], eax
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 8
mov dword [edi], eax
push 0x7dd956c0
mov dword [ebx], eax
push 1
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x7dd956b1
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
lea eax, [ebp - 0x20]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
push 0x7dd956d8
push dword [ebp - 0x1c]
call esi
test eax, eax
jge 0x7dd9fb8c
lea eax, [ebp - 0x20]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
push 0x7dd956e0
push dword [ebp - 0x1c]
call esi
pop esi
test eax, eax
jge 0x7dd9fbad
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x7de40038], 1
jmp 0x7dd9562d
cmp dword [ebp - 0x14], 4
jne 0x7dd95689
cmp dword [ebp - 0x10], 4
jne 0x7dd95689
mov eax, dword [ebp - 0xc]
mov dword [0x7de40c94], eax
jmp 0x7dd95689
cmp dword [ebp - 0x14], 4
jne 0x7dd956a8
cmp dword [ebp - 0x10], 4
jne 0x7dd956a8
mov eax, dword [ebp - 0xc]
mov dword [0x7de40c98], eax
jmp 0x7dd956a8
Function at 0x7dd95f33
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
mov ebx, dword [ebp + 0x10]
movzx ecx, word [ebx + 2]
push edi
push ecx
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp + 0x10], eax
cmp eax, edi
je 0x7ddb106c
mov dword [ebp - 8], eax
mov ax, word [ebx + 2]
push esi
mov word [ebp - 0xa], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
cmp dword [ebp + 0x14], edi
je 0x7dd96034
call fcn.7dd8bc59
mov esi, eax
cmp esi, edi
jl 0x7ddb1076
mov eax, dword [ebp - 8]
mov si, word [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov word [ebp - 0x14], si
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x2c]
cmp dword [ebp + 0x18], edi
jne 0x7ddb1093
push eax
push 0x2000000
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x7dd96014
mov ecx, dword [ebp - 8]
sub word [ebp - 0xc], si
movzx eax, si
shr eax, 1
lea eax, [ecx + eax*2]
push 0x5c
pop ecx
mov dword [ebp - 8], eax
cmp cx, word [eax]
jne 0x7dd96009
mov ecx, 0xfffe
add word [ebp - 0xc], cx
inc eax
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
push dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret 0x14
call fcn.7dd8c42e
jmp 0x7dd95f8a
mov eax, 0xc000009a
jmp 0x7dd9602e
push dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
jmp 0x7dd9602d
push dword [ebp + 0x18]
push eax
push 0x2000000
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtOpenKeyTransacted]
jmp 0x7dd95fda
Function at 0x7dd96a57
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push 0x1c
push 0x7dd96ab8
call fcn.7dd715c0
mov esi, 0x8000
mov dword [ebp - 0x1c], esi
push esi
push 0
mov edi, dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalAlloc]
call edi
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x7ddb087f
push 0
push dword [ebp - 0x1c]
push ebx
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp - 0x24], eax
cmp eax, 0xc0000004
jne 0x7dd96ae0
push ebx
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
add dword [ebp - 0x1c], esi
push dword [ebp - 0x1c]
push 0
call edi
mov ebx, eax
mov dword [ebp - 0x20], eax
jmp 0x7dd96a7b
test eax, eax
jl 0x7ddb0816
xor edx, edx
mov eax, dword [ebp + 0xc]
shr eax, 2
xor esi, esi
cmp esi, eax
jae 0x7dd96b0c
and dword [ebp - 4], 0
mov ecx, dword [edx + ebx + 0x44]
mov edi, dword [ebp + 8]
mov dword [edi + esi*4], ecx
mov dword [ebp - 4], 0xfffffffe
inc esi
mov ecx, dword [edx + ebx]
add edx, ecx
test ecx, ecx
jne 0x7dd96af2
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov eax, esi
shl eax, 2
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
push ebx
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
mov eax, edi
call fcn.7dd71605
ret 0xc
push ebx
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
jmp 0x7ddb087f
xor eax, eax
jmp 0x7dd96b35
Function at 0x7dd96f03
Capabilities:
Get disk information

Disassembly:
push 0x34
push 0x7dd96fc0
call fcn.7dd715c0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x7dda4199
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call sym.KERNEL32.dll_Basep8BitStringToDynamicUnicodeString
test eax, eax
je 0x7dd96fb3
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
xor eax, eax
mov word [ebp - 0x22], ax
mov word [ebp - 0x2a], ax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
mov word [ebp - 0x3a], ax
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x30], edx
mov ebx, dword [ebp + 0x24]
lea edx, [ebx + 1]
mov word [ebp - 0x32], dx
mov dword [ebp - 4], esi
cmp ecx, esi
jne 0x7dda41a5
cmp dword [ebp + 0x20], esi
jne 0x7dd990cf
push ebx
push dword [ebp - 0x28]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x40]
call fcn.7dd8c87d
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x7dd96fa4
cmp dword [ebp + 0xc], esi
jne 0x7dda41e8
cmp dword [ebp + 0x20], esi
jne 0x7dd9910e
mov dword [ebp - 4], 0xfffffffe
call fcn.7dd96fe1
mov eax, dword [ebp - 0x1c]
call fcn.7dd71605
ret 0x20
movzx eax, word [ebp - 0x32]
add eax, eax
mov word [ebp - 0x2a], ax
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov dword [ebp + 0x10], eax
mov eax, dword fs:[0x18]
movzx ecx, word [ebp - 0x2a]
push ecx
push dword [ebp + 0x10]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x28], eax
cmp eax, esi
jne 0x7dd96f72
jmp 0x7dda41de
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x1c]
push esi
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x34]
push ecx
call eax
cmp eax, esi
jge 0x7dd96fa4
jmp 0x7dda4210
mov dword [ebp + 8], 0x7ddb3468
jmp 0x7dd96f1a
movzx eax, ax
add eax, eax
mov word [ebp - 0x22], ax
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword fs:[0x18]
movzx ecx, word [ebp - 0x22]
push ecx
push dword [ebp + 8]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x7dd96f69
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7dda4216
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x1c]
push esi
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
call eax
cmp eax, esi
jge 0x7dd96f9b
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
mov dword [ebp - 0x1c], esi
jmp 0x7dd96fa4