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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dde5fb6
sub eax, edx
sar eax, 1
mov ebx, eax
lea esi, [ebx + ebx]
push esi
push edi
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeToMultiByteSize]
test eax, eax
jl 0x7dde60ca
cmp dword [ebp + 8], 0
je 0x7dde60ca
cmp dword [ebp + 8], 0xf
ja 0x7dde60ca
push 0x7ddb2fb8
push edi
call sub.ntdll.dll_wcscspn
pop ecx
pop ecx
cmp eax, ebx
jb 0x7dde60ca
cmp word [edi], 0x20
je 0x7dde60ca
cmp word [esi + edi - 2], 0x20
je 0x7dde60ca
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x7ddb3028
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
xor ebx, ebx
push 0x2001f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, 0xc0000034
jne 0x7dde606a
push 0x1f
jmp 0x7dde60cc
push 0x7dd81f90
lea eax, [ebp - 0x14]
push eax
call esi
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x7dde607a
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
cmp eax, ebx
jge 0x7dde60b3
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x7dde60d2
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
inc eax
jmp 0x7dde60d4
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x7dde6ca1
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
and dword [ebp - 4], esi
push esi
push dword [ebp + 8]
call fcn.7dd9c733
test eax, eax
jne 0x7dde6d19
call fcn.7dd711c7
cmp eax, 0xea
jne 0x7dde6d19
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov ecx, dword fs:[0x18]
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
add edx, edx
push edx
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x7dde6d19
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call fcn.7dd9c733
test eax, eax
jne 0x7dde6d19
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]
xor esi, esi
mov eax, esi
pop esi
leave
ret 4
Function at 0x7dde6d25
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
and dword [ebp - 8], edi
test eax, eax
jl 0x7dde6eab
push esi
push 2
pop esi
cmp eax, esi
jle 0x7dde6ea2
cmp eax, 3
je 0x7dde6d67
jle 0x7dde6eaa
cmp eax, 6
jle 0x7dde6ea2
cmp eax, 7
jne 0x7dde6eaa
push 1
call fcn.7dde6d25
push esi
mov dword [ebp + 8], eax
call fcn.7dde6d25
cmp dword [ebp + 8], 0
mov edi, eax
mov dword [ebp - 4], edi
jne 0x7dde6d96
test edi, edi
je 0x7dde6eaa
push 1
call fcn.7dde6ca1
mov dword [ebp + 8], eax
jmp 0x7dde6da5
test edi, edi
jne 0x7dde6da5
push esi
call fcn.7dde6ca1
mov dword [ebp - 4], eax
mov edi, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x7dde6dc0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, esi
test cx, cx
jne 0x7dde6daf
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
mov ebx, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
je 0x7dde6e84
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, esi
test cx, cx
jne 0x7dde6dd3
sub eax, edx
sar eax, 1
je 0x7dde6e84
mov esi, dword [ebp - 8]
test esi, esi
je 0x7dde6e84
cmp eax, 1
jne 0x7dde6e13
cmp word [edi], 0x2e
jne 0x7dde6e13
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call ebx
xor eax, eax
mov dword [ebp - 4], eax
lea esi, [eax + esi + 2]
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
lea edx, [esi + esi]
push edx
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x7dde6e69
push dword [ebp + 8]
push esi
push edi
call sub.ntdll.dll_wcscpy_s
push 0x7ddb3240
push esi
push edi
call sub.ntdll.dll_wcscat_s
add esp, 0x18
cmp dword [ebp - 4], 0
je 0x7dde6e69
push dword [ebp - 4]
push esi
push edi
call sub.ntdll.dll_wcscat_s
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x7dde6e87
push dword [ebp + 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call ebx
jmp 0x7dde6e87
mov edi, dword [ebp + 8]
cmp dword [ebp - 4], 0
je 0x7dde6eaa
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call ebx
jmp 0x7dde6eaa
push eax
call fcn.7dde6bdf
mov edi, eax
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 4

Function at 0x7dde6eb8
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.7dde6d25
test eax, eax
je 0x7dde6ee4
cmp word [eax], 0
jne 0x7dde6eea
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop ebp
jmp fcn.7dde6ca1
pop ebp
ret 4
Function at 0x7dde70b4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x7dde70c8
xor eax, eax
jmp 0x7dde7160
push ebx
push 0x7ddb3240
push esi
call sub.ntdll.dll_wcscspn
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
mov ebx, eax
jne 0x7dde70e2
mov esi, ebx
jmp 0x7dde7115
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dde70e7
sub eax, edx
sar eax, 1
cmp ebx, eax
jne 0x7dde70fd
xor esi, esi
jmp 0x7dde7115
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dde7102
sub eax, edx
sar eax, 1
sub eax, ebx
dec eax
mov esi, eax
push edi
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
lea edx, [esi + esi + 2]
push edx
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x7dde715e
push esi
inc esi
cmp dword [ebp + 0xc], 0
jne 0x7dde714a
push dword [ebp + 8]
jmp 0x7dde7152
mov eax, dword [ebp + 8]
lea eax, [eax + ebx*2 + 2]
push eax
push esi
push edi
call sub.ntdll.dll_wcsncpy_s
add esp, 0x10
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret 8
Function at 0x7dde7aaa
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
jne 0x7dde7c3f
mov eax, dword [ebp + 8]
cmp eax, 2
ja 0x7dde7c3f
sub eax, ebx
push esi
push edi
je 0x7dde7be7
dec eax
je 0x7dde7bca
dec eax
jne 0x7dde7bee
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x7dde7bee
cmp dword [ebp + 0x10], ebx
jne 0x7dde7afb
cmp dword [esi], ebx
ja 0x7dde7bee
mov eax, dword [esi]
mov dword [ebp - 4], eax
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov ecx, dword fs:[0x18]
mov edx, dword [esi]
mov eax, dword [eax + 0x2c]
add edx, edx
push edx
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x7dde7b2e
push 8
jmp 0x7dde7bf0
lea eax, [ebp - 4]
push eax
push edi
push 7
call fcn.7dd9c733
test eax, eax
jne 0x7dde7b49
call fcn.7dd711c7
mov ebx, eax
test ebx, ebx
jne 0x7dde7b87
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
sub ecx, eax
dec ecx
mov dword [ebp + 0x14], ecx
lea ecx, [ebp + 0x14]
push ecx
lea eax, [edi + eax*2 + 2]
push eax
call fcn.7dde5f4a
mov ecx, dword [ebp + 0x14]
mov ebx, eax
mov eax, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [esi], eax
test ebx, ebx
jne 0x7dde7bb3
lea eax, [eax + eax + 2]
push eax
push edi
push dword [ebp + 0x10]
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x7dde7bb3
cmp ebx, 0xea
jne 0x7dde7bb3
and dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
push eax
push 0
call fcn.7dde5f4a
mov ebx, eax
test ebx, ebx
jne 0x7dde7ba9
mov ebx, 0xea
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
add ecx, eax
mov dword [esi], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x7dde7c39
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x7dde7bee
cmp dword [ebp + 0x10], ebx
jne 0x7dde7bda
cmp dword [eax], ebx
ja 0x7dde7bee
push eax
push dword [ebp + 0x10]
call fcn.7dde5f4a
mov ebx, eax
jmp 0x7dde7c39
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jne 0x7dde7bf3
push 0x57
pop ebx
jmp 0x7dde7c39
mov eax, dword [esi]
cmp eax, ebx
je 0x7dde7bff
dec eax
mov dword [ebp - 4], eax
jmp 0x7dde7c02
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push 7
call fcn.7dd9c733
test eax, eax
jne 0x7dde7c1d
call fcn.7dd711c7
mov ebx, eax
jmp 0x7dde7c33
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x7dde7c30
mov edx, dword [ebp - 4]
xor ecx, ecx
mov word [eax + edx*2 + 2], cx
jmp 0x7dde7c33
push 0x1f
pop ebx
mov eax, dword [ebp - 4]
inc eax
mov dword [esi], eax
pop edi
mov eax, ebx
pop esi
jmp 0x7dde7c42
push 0x57
pop eax
pop ebx
leave
ret 0x10
Function at 0x7dde9bfc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push 0x80000000
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x28], ecx
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x7dde9c77
push edi
lea eax, [ebp - 0x34]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov edi, eax
cmp edi, 0x80000005
jne 0x7dde9c6b
xor edi, edi
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.7dd71442
leave
ret 8
Function at 0x7dde9d2c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax + 0x30]
mov eax, dword [ebx + 8]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x224], ebx
jmp 0x7dde9db4
test byte [edi + 3], 2
je 0x7dde9d7a
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.7dde9c8a
test eax, eax
jge 0x7dde9d99
jmp 0x7dde9f0e
mov ax, word [esi + 8]
mov word [ebp - 0x214], ax
mov ax, word [esi + 0xa]
mov word [ebp - 0x212], ax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x210], eax
push 1
lea eax, [ebp - 0x214]
push eax
push 0
push ebx
call fcn.7dd7eca4
test eax, eax
jl 0x7dde9f0e
mov esi, dword [esi]
test esi, esi
jne 0x7dde9d5e
mov eax, dword [ebx + 8]
mov esi, dword [eax + 0x20]
test esi, esi
jne 0x7dde9dcc
mov eax, 0xc0000016
jmp 0x7dde9f0e
test byte [edi + 3], 2
je 0x7dde9de2
push 0
push esi
call fcn.7dde9c8a
test eax, eax
jl 0x7dde9f0e
test byte [edi + 3], 2
mov esi, dword [esi + 0x20]
je 0x7dde9dff
test esi, esi
je 0x7dde9dff
push 0
push esi
call fcn.7dde9c8a
test eax, eax
jl 0x7dde9f0e
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push esi
push ebx
call fcn.7dd92252
xor ecx, ecx
cmp eax, ecx
jl 0x7dde9f0e
cmp dword [ebp - 0x208], 0xffffffff
je 0x7dde9f0e
mov ebx, dword [sym.imp.ntdll.dll_NtEnumerateKey]
lea eax, [ebp - 0x220]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push ecx
push ecx
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], ecx
call ebx
mov esi, 0x8000001a
jmp 0x7dde9ee6
test edi, edi
jl 0x7dde9f00
lea eax, [ebp - 0x1f4]
mov dword [ebp - 0x218], eax
mov ax, word [ebp - 0x1f8]
mov word [ebp - 0x21c], ax
mov word [ebp - 0x21a], ax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x208]
call fcn.7dde9bfc
xor edi, edi
cmp eax, edi
jl 0x7dde9eb5
push 1
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0x224]
call fcn.7dd7eca4
mov edi, eax
jmp 0x7dde9eb9
cmp eax, esi
jne 0x7dde9ef0
test edi, edi
jl 0x7dde9f00
inc dword [ebp - 0x20c]
lea eax, [ebp - 0x220]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0
push dword [ebp - 0x20c]
push dword [ebp - 0x208]
call ebx
mov edi, eax
cmp edi, esi
jne 0x7dde9e5b
push dword [ebp - 0x208]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
jmp 0x7dde9f0e
push dword [ebp - 0x208]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 4
Function at 0x7dde9f24
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x7dde9f6b
lea eax, [ebp - 0x18]
push eax
push esi
push edi
call fcn.7dd7e96f
test al, al
jne 0x7dde9f68
mov eax, 0xc000000d
jmp 0x7ddea064
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0x20], 0
jne 0x7dde9f89
push esi
push ebx
call fcn.7dd920cd
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x7dde9f89
mov eax, 0xc0000016
jmp 0x7ddea064
lea eax, [ebp - 0x18]
push eax
push 0
push edi
call fcn.7dd7e941
test al, al
je 0x7dde9f5e
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push edi
call fcn.7dd92252
xor ebx, ebx
cmp eax, ebx
jl 0x7ddea064
cmp dword [ebp - 0x1c], 0xffffffff
je 0x7ddea064
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
cmp eax, ebx
jge 0x7dde9fdf
cmp eax, 0x80000005
jne 0x7dde9ff5
cmp dword [ebp - 0x10], 1
je 0x7dde9ff5
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, 0xc0000024
jmp 0x7ddea064
mov eax, dword [edi]
cmp eax, 2
je 0x7ddea019
cmp eax, 7
je 0x7ddea019
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov esi, eax
cmp esi, 0xc0000034
jne 0x7ddea048
xor esi, esi
jmp 0x7ddea048
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call fcn.7dd963ed
test al, al
jne 0x7ddea033
mov esi, 0xc000000d
jmp 0x7ddea048
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push 1
push ebx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtClose]
cmp esi, ebx
jl 0x7ddea062
mov eax, dword [ebp - 0x20]
test byte [eax + 0x18], 1
jne 0x7dde9f7f
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 0x10
Function at 0x7ddea0bf
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20c], eax
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x30]
mov esi, dword [edi + 0x18]
jmp 0x7ddea15c
test byte [ebx + 3], 2
jne 0x7ddea118
mov ax, word [esi + 8]
mov word [ebp - 0x214], ax
mov ax, word [esi + 0xa]
mov word [ebp - 0x212], ax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x210], eax
jmp 0x7ddea12d
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.7dde9c8a
test eax, eax
jl 0x7ddea25e
cmp word [ebp - 0x214], 0
je 0x7ddea15a
lea eax, [ebp - 0x214]
push eax
push esi
push edi
push dword [ebp - 0x20c]
call fcn.7dde9f24
test eax, eax
jge 0x7ddea15a
cmp eax, 0xc0000016
jne 0x7ddea25e
mov esi, dword [esi]
test esi, esi
jne 0x7ddea0f1
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x7ddea171
mov eax, 0xc0000016
jmp 0x7ddea25e
test byte [ebx + 3], 2
je 0x7ddea187
push 0
push edi
call fcn.7dde9c8a
test eax, eax
jl 0x7ddea25e
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x20c]
call fcn.7dd7e941
test al, al
jne 0x7ddea1a9
mov eax, 0xc000000d
jmp 0x7ddea25e
lea eax, [ebp - 0x208]
push eax
push 1
push dword [ebp - 0x218]
push edi
push dword [ebp - 0x20c]
call fcn.7dd92252
test eax, eax
jl 0x7ddea25e
cmp dword [ebp - 0x208], 0xffffffff
je 0x7ddea25e
lea eax, [ebp - 0x224]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push dword [ebp - 0x208]
call dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov esi, eax
test esi, esi
jl 0x7ddea246
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x21c], eax
mov ax, word [ebp - 0x1fc]
mov word [ebp - 0x220], ax
mov word [ebp - 0x21e], ax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov esi, eax
cmp esi, 0xc0000034
jne 0x7ddea242
xor esi, esi
test esi, esi
jge 0x7ddea1d9
cmp esi, 0x8000001a
jne 0x7ddea250
xor esi, esi
push dword [ebp - 0x208]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 8
Function at 0x7ddeae83
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor eax, eax
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
xor ebx, ebx
stosw word es:[edi], ax
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x7ddeaec0
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sym.KERNEL32.dll_Basep8BitStringToDynamicUnicodeString
test eax, eax
jne 0x7ddeaebb
xor eax, eax
jmp 0x7ddeafed
mov esi, dword [ebp - 0x10]
jmp 0x7ddeaec2
xor esi, esi
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov edi, dword [ebp + 0x10]
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
lea edx, [edi + edi]
push edx
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x7ddeaf05
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
cmp dword [ebp - 0x10], ebx
je 0x7ddeaeb4
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
jmp 0x7ddeaeb4
push edi
push eax
push esi
call fcn.7dd9b6f7
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x7ddeaf17
lea ebx, [eax - 1]
xor esi, esi
test ebx, ebx
jbe 0x7ddeafc3
mov edi, 0x7ffe
mov eax, ebx
sub eax, esi
mov dword [ebp + 8], edi
cmp eax, edi
jae 0x7ddeaf3b
mov eax, ebx
sub eax, esi
movzx eax, ax
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [ebp - 0x18], eax
xor eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [ebp + 0x10]
sub eax, ecx
mov ecx, 0xffff
mov word [ebp - 0x1a], cx
cmp eax, ecx
ja 0x7ddeaf62
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 8]
lea eax, [eax + esi*2]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
add eax, eax
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x24]
add eax, 2
mov word [ebp - 0x22], ax
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x1c]
push 0
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
call eax
cmp eax, 0xc00000f0
jne 0x7ddeaf9f
shr word [ebp + 8], 1
jmp 0x7ddeaf6b
test eax, eax
jl 0x7ddeafb9
movzx eax, word [ebp - 0x1c]
add dword [ebp - 4], eax
movzx eax, word [ebp + 8]
add esi, eax
cmp esi, ebx
jae 0x7ddeafc3
jmp 0x7ddeaf26
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
and dword [ebp - 0xc], 0
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]
cmp dword [ebp - 0x10], 0
je 0x7ddeafea
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x7ddeb4a4
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
cmp eax, 0x14
jae 0x7ddeb4c0
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7ddeb4ed
mov ecx, dword [ebp + 0xc]
push 0x2a
mov dword [ebp - 4], eax
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jge 0x7ddeb4ea
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7ddeb4bc
xor eax, eax
inc eax
leave
ret 0xc

Function at 0x7ddeb4f6
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, 0xfffffffc
je 0x7ddeb514
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7ddeb541
test byte [ebp + 0xc], 3
je 0x7ddeb53e
push 0x29
mov dword [ebp + 0xc], eax
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jge 0x7ddeb53e
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7ddeb510
xor eax, eax
inc eax
leave
ret 8