joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ddebafc
Capabilities:
Get file attributes

Disassembly:
push 0x44
push 0x7ddebd28
call fcn.7dd715c0
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], 0x20
mov dword [ebp - 0x28], esi
xor edi, edi
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], esi
je 0x7ddebb34
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
or eax, 0xffffffff
jmp 0x7ddebcac
cmp dword [ebp + 0x14], esi
jne 0x7ddebb24
push esi
push esi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x7ddebb50
push 3
jmp 0x7ddebb26
mov dword [ebp - 0x54], 0x18
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], 0x40
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], esi
push esi
push esi
push 0x200020
push 1
push 3
push 0x80
push esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x100080
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov dword [ebp - 0x24], eax
cmp eax, esi
jne 0x7ddebc9e
push dword [ebp - 0x28]
call fcn.7ddeba88
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, esi
jne 0x7ddebbc0
mov dword [ebp - 0x24], 0xc000009a
jmp 0x7ddebc9e
mov dword [ebp - 0x28], esi
jmp 0x7ddebbc7
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x7ddebbe2
mov eax, dword fs:[0x18]
push dword [ebp - 0x1c]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x2c]
push esi
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x7ddebc10
mov dword [ebp - 0x24], 0xc000009a
mov edi, dword [ebp - 0x20]
jmp 0x7ddebc9c
push 0x16
push esi
push eax
lea eax, [ebp - 0x34]
push eax
mov edi, dword [ebp - 0x20]
push dword [edi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x24], eax
lea ecx, [esi + esi]
mov dword [ebp - 0x2c], ecx
cmp eax, 0x80000005
je 0x7ddebbc5
test eax, eax
jne 0x7ddebc9c
cmp dword [ebp - 0x30], eax
jne 0x7ddebc45
mov dword [ebp - 0x24], 0xc0000011
jmp 0x7ddebc9c
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x10], eax
and dword [ebp - 0x1c], 0
mov esi, dword [edi + 4]
mov eax, dword [esi + 8]
mov dword [ebx], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 4], eax
push dword [esi + 4]
lea eax, [esi + 0x18]
push eax
lea eax, [ebx + 8]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 4]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2 + 8], cx
cmp dword [esi], ecx
jbe 0x7ddebc93
mov eax, dword [esi]
add eax, dword [edi + 4]
jmp 0x7ddebc99
mov eax, dword [edi + 4]
add eax, dword [ebp - 0x30]
mov dword [edi + 8], eax
xor esi, esi
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddebcbe
mov eax, edi
call fcn.7dd71605
ret 0x10
Function at 0x7ddebd49
Capabilities:
Get file attributes

Disassembly:
push 0x40
push 0x7ddebe78
call fcn.7dd715c0
or dword [ebp - 0x1c], 0xffffffff
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x200
mov dword [ebp - 4], esi
lea eax, [ebp + 0xc]
mov dword [ebp - 0x2c], eax
push 8
pop eax
mov word [ebp - 0x2e], ax
mov word [ebp - 0x30], ax
mov dword [ebp - 0x50], 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], 0x40
lea eax, [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
push esi
push esi
push 0x2020
push 1
push esi
push 0x80
push esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x100080
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov dword [ebp - 0x20], eax
cmp eax, esi
jl 0x7ddebe2b
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebx]
cmp ecx, esi
je 0x7ddebde4
mov eax, dword fs:[0x18]
push ecx
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword fs:[0x18]
mov edi, dword [ebp - 0x24]
push edi
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebx], eax
cmp eax, esi
jne 0x7ddebe0a
mov dword [ebp - 0x20], 0xc000009a
jmp 0x7ddebe2b
push 9
push edi
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x20], eax
lea ecx, [edi + edi]
mov dword [ebp - 0x24], ecx
cmp eax, 0x80000005
je 0x7ddebdca
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddebe49
mov eax, dword [ebp - 0x20]
call fcn.7dd71605
ret 0x10
Function at 0x7ddebe99
Capabilities:
Get file attributes

Disassembly:
push 0x44
push 0x7ddec0c8
call fcn.7dd715c0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], 0x60
or dword [ebp - 0x28], 0xffffffff
xor esi, esi
mov dword [ebp - 0x24], esi
cmp dword [ebp + 0xc], ebx
je 0x7ddebecf
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
or eax, 0xffffffff
jmp 0x7ddec047
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
cmp al, bl
jne 0x7ddebee6
push 3
jmp 0x7ddebec1
mov dword [ebp - 0x54], 0x18
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], 0x40
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
push 0x200020
push 1
push 7
push 0x80
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x100080
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x7ddec039
push dword [ebp - 0x28]
call fcn.7ddeba88
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x7ddebf56
mov dword [ebp - 0x20], 0xc000009a
jmp 0x7ddec039
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x1c], ebx
je 0x7ddebf74
mov eax, dword fs:[0x18]
push dword [ebp - 0x1c]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword fs:[0x18]
push dword [ebp - 0x2c]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
jne 0x7ddebfa2
mov dword [ebp - 0x20], 0xc000009a
mov esi, dword [ebp - 0x24]
jmp 0x7ddec039
push 0x2e
push dword [ebp - 0x2c]
push edi
lea eax, [ebp - 0x34]
push eax
mov esi, dword [ebp - 0x24]
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x20], eax
mov ecx, dword [edi]
mov dword [ebp - 0x2c], ecx
cmp eax, 0x80000005
je 0x7ddebf59
cmp eax, ebx
jne 0x7ddec039
cmp dword [ebp - 0x30], ebx
jne 0x7ddebfd8
mov dword [ebp - 0x20], 0xc0000011
jmp 0x7ddec039
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x10], eax
mov dword [ebp - 0x1c], ebx
mov edi, dword [esi + 4]
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x14]
push dword [edi + 0x10]
push dword [esi]
call fcn.7ddebd49
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x7ddec039
add edi, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x1c]
call fcn.7ddeb9ef
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x7ddec039
cmp dword [edi], ebx
jbe 0x7ddec030
mov eax, dword [edi]
mov ecx, dword [esi + 4]
lea eax, [eax + ecx + 8]
jmp 0x7ddec036
mov eax, dword [esi + 4]
add eax, dword [ebp - 0x30]
mov dword [esi + 8], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddec059
mov eax, esi
call fcn.7dd71605
ret 0x10
Function at 0x7ddec31f
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQueryInformationFile]
push edi
push 0x2c
push 0x14
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call esi
xor edi, edi
cmp eax, edi
jge 0x7ddec353
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddec3ea
cmp dword [ebp - 0x10], edi
jne 0x7ddec36c
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
push 1
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7ddec34c
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x7ddec384
cmp dword [ebp + 0x10], edi
je 0x7ddec384
push 0x57
jmp 0x7ddec364
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov al, byte [ebp + 0x14]
push 0x2c
mov byte [ebp - 0x13], al
push 0x14
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x14], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
cmp eax, edi
jl 0x7ddec346
cmp dword [ebp + 0x10], edi
jne 0x7ddec3be
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
jmp 0x7ddec3e7
push 0x2c
push 0x14
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call esi
cmp eax, edi
jl 0x7ddec346
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0x18

Function at 0x7ddec3f5
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x2c
push 0x14
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jge 0x7ddec420
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddec44f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x1c]
imul ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
movzx eax, byte [ebp - 0x13]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
inc eax
leave
ret 0x18
Function at 0x7ddec458
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and eax, 0x10000003
cmp eax, 3
jne 0x7ddec47d
push 0xc0000008
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddec558
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x7ddec494
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7ddec557
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddec499
sub eax, edx
sar eax, 1
push edi
jne 0x7ddec4af
push 8
pop edi
jmp 0x7ddec4c6
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddec4b4
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 6]
push esi
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
push edi
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x7ddec4f4
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7ddec54e
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddec4f9
sub eax, edx
sar eax, 1
add eax, eax
mov dword [esi], eax
shr eax, 1
inc eax
push ebx
push eax
lea eax, [esi + 4]
push eax
call sub.ntdll.dll_wcscpy_s
add esp, 0xc
push 0x28
push edi
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
jge 0x7ddec552
push edi
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddec555
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x7ddec5f8
Capabilities:
Set file attributes

Disassembly:
push 0xc
push 0x7ddec678
call fcn.7dd715c0
cmp dword [ebp + 0x10], 0xffffffff
je 0x7ddec65e
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x7ddec65e
call sub.ntdll.dll_RtlGetCurrentTransaction
test eax, eax
je 0x7ddec62a
push 0x1a45
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
mov dword [ebp - 0x1c], esi
jmp 0x7ddec66d
push dword [ebp + 0x10]
call sub.ntdll.dll_RtlSetCurrentTransaction
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.API_MS_Win_Core_File_L1_1_0.dll_SetFileAttributesW
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddec656
jmp 0x7ddec66d
push 0x1a2c
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
call fcn.7dd71605
ret 0xc
Function at 0x7ddec8a9
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0x1a8
push 0x7ddecb00
call fcn.7dd725e8
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x17c], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [ebp - 0x170], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x188], 0x10
lea ecx, [ebp - 0x188]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push ebx
push eax
call fcn.7dde62c3
cmp eax, edi
je 0x7ddec8fd
mov dword [ebp - 0x44], edi
jmp 0x7ddec995
xor eax, eax
mov word [ebp - 0x178], ax
mov eax, 0x104
mov word [ebp - 0x176], ax
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
mov dword [ebp - 0x170], eax
cmp eax, edi
jl 0x7ddecadd
cmp word [ebp - 0x178], 0x1e
jbe 0x7ddec96b
mov dword [ebp - 0x170], 0x80000005
jmp 0x7ddecadd
movzx edi, word [ebp - 0x178]
push edi
push dword [ebp - 0x174]
lea eax, [ebp - 0x40]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov byte [ebp + edi - 0x40], 0
movzx eax, word [ebp - 0x178]
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ebx
push 0x24
push 0x2c
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [esi]
mov ebx, dword [sym.imp.ntdll.dll_NtSetInformationFile]
call ebx
mov dword [ebp - 0x170], eax
cmp eax, 0xc0000022
jne 0x7ddecadd
push dword [esi]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
push 0x20
push 7
lea eax, [ebp - 0x184]
push eax
push dword [ebp - 0x17c]
push 0x100180
push esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov dword [ebp - 0x170], eax
test eax, eax
jge 0x7ddec9f8
or dword [esi], 0xffffffff
jmp 0x7ddecadd
push 4
push 0x28
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x170], eax
test eax, eax
jl 0x7ddecadd
mov edx, dword [ebp - 0x198]
mov dword [ebp - 0x174], edx
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x1b8]
rep stosd dword es:[edi], eax
and edx, 0xfffffffe
mov dword [ebp - 0x198], edx
push 4
push 0x28
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [esi]
call ebx
mov dword [ebp - 0x170], eax
test eax, eax
jl 0x7ddecadd
push 0x20
push 7
lea eax, [ebp - 0x184]
push eax
push dword [ebp - 0x17c]
push 0x40100000
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov dword [ebp - 0x170], eax
test eax, eax
jl 0x7ddecabb
push dword [esi]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x17c]
mov dword [esi], eax
push 0x24
push 0x2c
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x184]
push ecx
push eax
call ebx
mov dword [ebp - 0x170], eax
test eax, eax
jge 0x7ddecadd
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x198], eax
push 4
push 0x28
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [esi]
call ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddecafc
mov eax, dword [ebp - 0x170]
call fcn.7dd72630
ret 0x10
Function at 0x7ddecb21
Capabilities:
Get file attributes

Disassembly:
push 0x30
push 0x7ddeccb0
call fcn.7dd715c0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov edi, dword [ebp + 0xc]
mov word [edi + 2], ax
mov word [edi], ax
mov dword [edi + 4], ebx
mov esi, dword [ebp + 0x10]
mov dword [esi], ebx
lea eax, [ebp - 0x40]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U]
movzx eax, al
cmp eax, ebx
jne 0x7ddecb6e
mov dword [ebp - 0x1c], 0xc000003a
jmp 0x7ddecc7e
mov dword [ebp - 0x20], 1
mov eax, dword [edi + 4]
mov dword [esi], eax
mov eax, dword [ebp - 0x40]
cmp ax, bx
je 0x7ddecb8c
mov dword [edi], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 4], eax
jmp 0x7ddecb8f
mov dword [ebp - 0x38], ebx
mov esi, dword [ebp + 0x18]
mov dword [esi], 0x18
mov eax, dword [ebp - 0x38]
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0x40
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
or dword [ebp + 0x24], 0x4020
mov eax, dword [ebp + 0x20]
or eax, 3
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x24]
or ecx, 0x200000
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push esi
mov edi, dword [ebp + 0x1c]
mov eax, edi
or eax, 0x100080
push eax
push dword [ebp + 0x14]
mov ebx, dword [sym.imp.ntdll.dll_NtOpenFile]
call ebx
mov dword [ebp - 0x1c], eax
test eax, eax
jge 0x7ddecc0d
cmp eax, 0xc000000d
jne 0x7ddecc7e
push dword [ebp + 0x24]
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
push esi
or edi, 0x100000
push edi
push dword [ebp + 0x14]
jmp 0x7ddecc79
push 0x23
push 8
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x1c], eax
test eax, eax
jge 0x7ddecc39
cmp eax, 0xc0000002
je 0x7ddecc39
cmp eax, 0xc000000d
jne 0x7ddecc7e
cmp dword [ebp - 0x1c], 0
jl 0x7ddecc7e
test dword [ebp - 0x30], 0x400
je 0x7ddecc7e
cmp dword [ebp - 0x2c], 0xa0000003
je 0x7ddecc7e
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp + 0x14]
or dword [ecx], 0xffffffff
push dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
or eax, 5
push eax
lea eax, [ebp - 0x28]
push eax
push esi
or edi, 0x100000
push edi
push ecx
call ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddecc9a
mov eax, dword [ebp - 0x1c]
call fcn.7dd71605
ret 0x20
Function at 0x7ddecfcb
Capabilities:
Get file attributes
Get file size
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x34]
push ecx
xor esi, esi
push esi
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U]
test al, al
jne 0x7dded00d
push 3
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
or eax, 0xffffffff
jmp 0x7dded0ef
mov eax, dword [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x20]
push edi
cmp ax, si
je 0x7dded025
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
jmp 0x7dded028
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
push 0x4000
lea eax, [ebp - 0x24]
mov dword [ebp - 0x44], eax
push 7
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x80
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov edi, eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp edi, esi
jge 0x7dded095
push edi
call sym.KERNEL32.dll_BaseSetLastNTError
or eax, 0xffffffff
jmp 0x7dded0ed
push 0x1c
push 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jge 0x7dded0c8
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.7dd7194b
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
jmp 0x7dded0ed
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x7dded0dd
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0xffffffff
jne 0x7dded0ea
push esi
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.7dd71442
leave
ret 8
Function at 0x7ddee1b1
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 [0x7de40d14], 0
jne 0x7ddee229
push esi
push 0x7ddee23c
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x7ddee222
lea eax, [ebp - 0x20]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
push 0x7ddee254
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x7ddee219
cmp dword [ebp - 0x14], 4
jne 0x7ddee219
cmp dword [ebp - 0x10], 4
jne 0x7ddee219
cmp dword [ebp - 0xc], esi
jne 0x7ddee219
mov dword [0x7de40d10], esi
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x7de40d14], esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [0x7de40d10]
xor ecx, ebp
call fcn.7dd71442
leave
ret

Function at 0x7ddee4e1
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x30
test eax, eax
jne 0x7ddee50b
and dword [ebp - 0x10], eax
push 4
push 0x28
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov eax, dword [ebp - 0x10]
push esi
mov esi, dword [sym.imp.ntdll.dll_NtSetInformationFile]
test al, 1
je 0x7ddee53a
push edi
push 0xa
pop ecx
xor eax, eax
push 4
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], 0x80
call esi
pop edi
push 0xd
push 1
lea eax, [ebp + 0xf]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov byte [ebp + 0xf], 1
call esi
pop esi
leave
ret 8