joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ddec4a7
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 0x7ddec4db
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddec572
cmp dword [ebp - 0x10], edi
jne 0x7ddec4f4
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 0x7ddec4d4
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x7ddec50c
cmp dword [ebp + 0x10], edi
je 0x7ddec50c
push 0x57
jmp 0x7ddec4ec
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 0x7ddec4ce
cmp dword [ebp + 0x10], edi
jne 0x7ddec546
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
jmp 0x7ddec56f
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 0x7ddec4ce
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 0x7ddec57d
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 0x7ddec5a8
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddec5d7
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 0x7ddec5e0
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 0x7ddec605
push 0xc0000008
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddec6e0
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x7ddec61c
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7ddec6df
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddec621
sub eax, edx
sar eax, 1
push edi
jne 0x7ddec637
push 8
pop edi
jmp 0x7ddec64e
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddec63c
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 0x7ddec67c
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7ddec6d6
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddec681
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 0x7ddec6da
push edi
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddec6dd
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x7ddec780
Capabilities:
Set file attributes

Disassembly:
push 0xc
push 0x7ddec800
call fcn.7dd715c0
cmp dword [ebp + 0x10], 0xffffffff
je 0x7ddec7e6
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x7ddec7e6
call sub.ntdll.dll_RtlGetCurrentTransaction
test eax, eax
je 0x7ddec7b2
push 0x1a45
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
mov dword [ebp - 0x1c], esi
jmp 0x7ddec7f5
push dword [ebp + 0x10]
call sub.ntdll.dll_RtlSetCurrentTransaction
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.7dd8d524
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddec7de
jmp 0x7ddec7f5
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 0x7ddeca31
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0x1a8
push 0x7ddecc88
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.7dde6435
cmp eax, edi
je 0x7ddeca85
mov dword [ebp - 0x44], edi
jmp 0x7ddecb1d
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 0x7ddecc65
cmp word [ebp - 0x178], 0x1e
jbe 0x7ddecaf3
mov dword [ebp - 0x170], 0x80000005
jmp 0x7ddecc65
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 0x7ddecc65
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 0x7ddecb80
or dword [esi], 0xffffffff
jmp 0x7ddecc65
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 0x7ddecc65
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 0x7ddecc65
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 0x7ddecc43
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 0x7ddecc65
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.7ddecc84
mov eax, dword [ebp - 0x170]
call fcn.7dd72630
ret 0x10
Function at 0x7ddecca9
Capabilities:
Get file attributes

Disassembly:
push 0x30
push 0x7ddece38
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 0x7ddeccf6
mov dword [ebp - 0x1c], 0xc000003a
jmp 0x7ddece06
mov dword [ebp - 0x20], 1
mov eax, dword [edi + 4]
mov dword [esi], eax
mov eax, dword [ebp - 0x40]
cmp ax, bx
je 0x7ddecd14
mov dword [edi], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 4], eax
jmp 0x7ddecd17
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 0x7ddecd95
cmp eax, 0xc000000d
jne 0x7ddece06
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 0x7ddece01
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 0x7ddecdc1
cmp eax, 0xc0000002
je 0x7ddecdc1
cmp eax, 0xc000000d
jne 0x7ddece06
cmp dword [ebp - 0x1c], 0
jl 0x7ddece06
test dword [ebp - 0x30], 0x400
je 0x7ddece06
cmp dword [ebp - 0x2c], 0xa0000003
je 0x7ddece06
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.7ddece22
mov eax, dword [ebp - 0x1c]
call fcn.7dd71605
ret 0x20
Function at 0x7dded151
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 0x7dded193
push 3
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
or eax, 0xffffffff
jmp 0x7dded275
mov eax, dword [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x20]
push edi
cmp ax, si
je 0x7dded1ab
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
jmp 0x7dded1ae
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 0x7dded21b
push edi
call sym.KERNEL32.dll_BaseSetLastNTError
or eax, 0xffffffff
jmp 0x7dded273
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 0x7dded24e
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 0x7dded273
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x7dded263
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0xffffffff
jne 0x7dded270
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 0x7ddee339
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 0x7ddee3b1
push esi
push 0x7ddee3c4
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x7ddee3aa
lea eax, [ebp - 0x20]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
push 0x7ddee3dc
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x7ddee3a1
cmp dword [ebp - 0x14], 4
jne 0x7ddee3a1
cmp dword [ebp - 0x10], 4
jne 0x7ddee3a1
cmp dword [ebp - 0xc], esi
jne 0x7ddee3a1
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 0x7ddee669
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 0x7ddee693
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 0x7ddee6c2
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
Function at 0x7ddee6e1
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
mov edi, 0x4000
push edi
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor esi, esi
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x7ddee727
push 0xc0000017
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddee80e
push ebx
push edi
mov edi, dword [sym.imp.ntdll.dll_NtFsControlFile]
push eax
push esi
push esi
push 0x900a8
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
mov ebx, 0x103
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x7ddee77a
push esi
push 1
push dword [ebp + 0x10]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov dword [ebp + 8], eax
cmp eax, 0x101
je 0x7ddee751
cmp eax, esi
jl 0x7ddee771
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0x101
je 0x7ddee751
cmp dword [ebp + 8], esi
jge 0x7ddee79a
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp + 8]
jmp 0x7ddee801
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 4]
push esi
push esi
add ecx, 8
push ecx
push eax
push 0x900a4
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
mov edi, eax
cmp edi, ebx
jne 0x7ddee7e6
push esi
push 1
push dword [ebp + 0x10]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
cmp edi, 0x101
je 0x7ddee7c1
cmp edi, esi
jl 0x7ddee7de
mov edi, dword [ebp - 0xc]
cmp edi, 0x101
je 0x7ddee7c1
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp edi, esi
jge 0x7ddee80a
push edi
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddee80d
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x7ddeebfe
Capabilities:
Delete file

Disassembly:
cmp dword [ebp - 0x20], 0xffffffff
je 0x7ddeec0c
push dword [ebp - 0x20]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
cmp dword [ebp - 0x28], esi
je 0x7ddeec1a
push dword [ebp - 0x28]
call dword [sym.imp.ntdll.dll_RtlReleasePrivilege]
cmp dword [ebp - 0x1c], esi
jge 0x7ddeec2d
cmp dword [ebp - 0x44], 2
jne 0x7ddeec2d
push dword [ebp + 0x10]
call fcn.7dd725e0
mov eax, dword fs:[0x18]
push dword [ebp - 0x48]
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 - 0x40]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
mov eax, dword fs:[0x18]
push dword [ebp - 0x24]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
ret
Function at 0x7ddef76c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xffffffff
je 0x7ddef77d
pop ebp
jmp sym.KERNEL32.dll_GlobalLock
pop ebp
ret 4

Function at 0x7ddef7a0
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp sym.KERNEL32.dll_GlobalLock

Function at 0x7ddef802
Capabilities:
Get process heap force flags
Get system information on windows

Disassembly:
push 0x1c
push 0x7ddef918
call fcn.7dd715c0
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 0x10]
lea esi, [ebx + 0x10]
mov dword [ebp - 0x28], esi
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
push esi
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x7ddef8c8
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 4], edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
push esi
push 0x4c
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jge 0x7ddef877
cmp eax, 0xc0000023
jne 0x7ddef87d
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x20], ecx
cmp eax, edi
jl 0x7ddef8cf
cmp dword [ebp + 0xc], edi
je 0x7ddef8cf
mov dword [ebp - 4], 1
push dword [esi + 0xc]
lea eax, [esi + 0x10]
push eax
push dword [ebp + 0xc]
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
jmp 0x7ddef8cf
mov dword [ebp - 0x1c], 0xc000009a
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddef8f0
mov eax, dword [ebp - 0x20]
call fcn.7dd71605
ret 0xc
Function at 0x7ddef945
Capabilities:
Get process heap force flags
Get system information on windows

Disassembly:
push 0x18
push 0x7ddefa58
call fcn.7dd715c0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov edi, dword [ebp + 0x14]
lea ebx, [edi + 0x10]
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
push ebx
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp + 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x7ddefa0b
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
xor edi, edi
inc edi
mov dword [esi + 4], edi
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
push 0x4c
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp - 0x1c], eax
test eax, eax
jge 0x7ddef9bc
cmp eax, 0xc0000023
jne 0x7ddef9c2
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x20], ecx
test eax, eax
jl 0x7ddefa12
cmp dword [ebp + 0x10], 0
je 0x7ddefa12
mov dword [ebp - 4], edi
push dword [esi + 0xc]
lea eax, [esi + 0x10]
push eax
push dword [ebp + 0x10]
call sub.ntdll.dll_memcpy
add esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
jmp 0x7ddefa12
mov dword [ebp - 0x1c], 0xc000009a
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddefa31
mov eax, dword [ebp - 0x20]
call fcn.7dd71605
ret 0x10
Function at 0x7ddf008b
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push 0x1a
push 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jge 0x7ddf00b6
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddf011e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x7ddf00c2
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x7ddf00ce
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x7ddf00da
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x7ddf011a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x7ddf00f6
cmp ecx, 0xffffffff
jne 0x7ddf00f6
or dword [esi], ecx
jmp 0x7ddf011a
neg ecx
push 0
adc eax, 0
push 0x2710
neg eax
push eax
push ecx
call dword [sym.imp.ntdll.dll_RtlExtendedLargeIntegerDivide]
test edx, edx
jne 0x7ddf0114
mov dword [esi], eax
jmp 0x7ddf011a
mov dword [esi], 0xfffffffe
xor eax, eax
inc eax
pop esi
leave
ret 0x14

Function at 0x7ddf0127
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
or eax, 0xffffffff
sub esp, 0x10
cmp dword [ebp + 0xc], eax
jne 0x7ddf013c
mov dword [ebp - 4], eax
jmp 0x7ddf014f
push eax
push 0xffffd8f0
push 0
push dword [ebp + 0xc]
call sub.ntdll.dll__allmul
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
push 0x1b
lea eax, [ebp - 8]
mov dword [ebp + 0xc], eax
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jge 0x7ddf017b
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7ddf017e
xor eax, eax
inc eax
leave
ret 8