joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7dde7c1a
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 0x7dde7daf
mov eax, dword [ebp + 8]
cmp eax, 2
ja 0x7dde7daf
sub eax, ebx
push esi
push edi
je 0x7dde7d57
dec eax
je 0x7dde7d3a
dec eax
jne 0x7dde7d5e
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x7dde7d5e
cmp dword [ebp + 0x10], ebx
jne 0x7dde7c6b
cmp dword [esi], ebx
ja 0x7dde7d5e
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 0x7dde7c9e
push 8
jmp 0x7dde7d60
lea eax, [ebp - 4]
push eax
push edi
push 7
call fcn.7dd9c723
test eax, eax
jne 0x7dde7cb9
call fcn.7dd711c7
mov ebx, eax
test ebx, ebx
jne 0x7dde7cf7
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.7dde60bc
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 0x7dde7d23
lea eax, [eax + eax + 2]
push eax
push edi
push dword [ebp + 0x10]
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x7dde7d23
cmp ebx, 0xea
jne 0x7dde7d23
and dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
push eax
push 0
call fcn.7dde60bc
mov ebx, eax
test ebx, ebx
jne 0x7dde7d19
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 0x7dde7da9
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x7dde7d5e
cmp dword [ebp + 0x10], ebx
jne 0x7dde7d4a
cmp dword [eax], ebx
ja 0x7dde7d5e
push eax
push dword [ebp + 0x10]
call fcn.7dde60bc
mov ebx, eax
jmp 0x7dde7da9
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jne 0x7dde7d63
push 0x57
pop ebx
jmp 0x7dde7da9
mov eax, dword [esi]
cmp eax, ebx
je 0x7dde7d6f
dec eax
mov dword [ebp - 4], eax
jmp 0x7dde7d72
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push 7
call fcn.7dd9c723
test eax, eax
jne 0x7dde7d8d
call fcn.7dd711c7
mov ebx, eax
jmp 0x7dde7da3
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x7dde7da0
mov edx, dword [ebp - 4]
xor ecx, ecx
mov word [eax + edx*2 + 2], cx
jmp 0x7dde7da3
push 0x1f
pop ebx
mov eax, dword [ebp - 4]
inc eax
mov dword [esi], eax
pop edi
mov eax, ebx
pop esi
jmp 0x7dde7db2
push 0x57
pop eax
pop ebx
leave
ret 0x10
Function at 0x7dde9d6c
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 0x7dde9de7
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 0x7dde9ddb
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 0x7dde9e9c
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 0x7dde9f24
test byte [edi + 3], 2
je 0x7dde9eea
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.7dde9dfa
test eax, eax
jge 0x7dde9f09
jmp 0x7ddea07e
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.7dd7ec74
test eax, eax
jl 0x7ddea07e
mov esi, dword [esi]
test esi, esi
jne 0x7dde9ece
mov eax, dword [ebx + 8]
mov esi, dword [eax + 0x20]
test esi, esi
jne 0x7dde9f3c
mov eax, 0xc0000016
jmp 0x7ddea07e
test byte [edi + 3], 2
je 0x7dde9f52
push 0
push esi
call fcn.7dde9dfa
test eax, eax
jl 0x7ddea07e
test byte [edi + 3], 2
mov esi, dword [esi + 0x20]
je 0x7dde9f6f
test esi, esi
je 0x7dde9f6f
push 0
push esi
call fcn.7dde9dfa
test eax, eax
jl 0x7ddea07e
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push esi
push ebx
call fcn.7dd9222a
xor ecx, ecx
cmp eax, ecx
jl 0x7ddea07e
cmp dword [ebp - 0x208], 0xffffffff
je 0x7ddea07e
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 0x7ddea056
test edi, edi
jl 0x7ddea070
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.7dde9d6c
xor edi, edi
cmp eax, edi
jl 0x7ddea025
push 1
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0x224]
call fcn.7dd7ec74
mov edi, eax
jmp 0x7ddea029
cmp eax, esi
jne 0x7ddea060
test edi, edi
jl 0x7ddea070
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 0x7dde9fcb
push dword [ebp - 0x208]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
jmp 0x7ddea07e
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 0x7ddea094
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 0x7ddea0db
lea eax, [ebp - 0x18]
push eax
push esi
push edi
call fcn.7dd7e93f
test al, al
jne 0x7ddea0d8
mov eax, 0xc000000d
jmp 0x7ddea1d4
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0x20], 0
jne 0x7ddea0f9
push esi
push ebx
call fcn.7dd920a5
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x7ddea0f9
mov eax, 0xc0000016
jmp 0x7ddea1d4
lea eax, [ebp - 0x18]
push eax
push 0
push edi
call fcn.7dd7e911
test al, al
je 0x7ddea0ce
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push edi
call fcn.7dd9222a
xor ebx, ebx
cmp eax, ebx
jl 0x7ddea1d4
cmp dword [ebp - 0x1c], 0xffffffff
je 0x7ddea1d4
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 0x7ddea14f
cmp eax, 0x80000005
jne 0x7ddea165
cmp dword [ebp - 0x10], 1
je 0x7ddea165
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, 0xc0000024
jmp 0x7ddea1d4
mov eax, dword [edi]
cmp eax, 2
je 0x7ddea189
cmp eax, 7
je 0x7ddea189
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov esi, eax
cmp esi, 0xc0000034
jne 0x7ddea1b8
xor esi, esi
jmp 0x7ddea1b8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call fcn.7dd963cd
test al, al
jne 0x7ddea1a3
mov esi, 0xc000000d
jmp 0x7ddea1b8
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 0x7ddea1d2
mov eax, dword [ebp - 0x20]
test byte [eax + 0x18], 1
jne 0x7ddea0ef
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 0x7ddea22f
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 0x7ddea2cc
test byte [ebx + 3], 2
jne 0x7ddea288
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 0x7ddea29d
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.7dde9dfa
test eax, eax
jl 0x7ddea3ce
cmp word [ebp - 0x214], 0
je 0x7ddea2ca
lea eax, [ebp - 0x214]
push eax
push esi
push edi
push dword [ebp - 0x20c]
call fcn.7ddea094
test eax, eax
jge 0x7ddea2ca
cmp eax, 0xc0000016
jne 0x7ddea3ce
mov esi, dword [esi]
test esi, esi
jne 0x7ddea261
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x7ddea2e1
mov eax, 0xc0000016
jmp 0x7ddea3ce
test byte [ebx + 3], 2
je 0x7ddea2f7
push 0
push edi
call fcn.7dde9dfa
test eax, eax
jl 0x7ddea3ce
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x20c]
call fcn.7dd7e911
test al, al
jne 0x7ddea319
mov eax, 0xc000000d
jmp 0x7ddea3ce
lea eax, [ebp - 0x208]
push eax
push 1
push dword [ebp - 0x218]
push edi
push dword [ebp - 0x20c]
call fcn.7dd9222a
test eax, eax
jl 0x7ddea3ce
cmp dword [ebp - 0x208], 0xffffffff
je 0x7ddea3ce
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 0x7ddea3b6
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 0x7ddea3b2
xor esi, esi
test esi, esi
jge 0x7ddea349
cmp esi, 0x8000001a
jne 0x7ddea3c0
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 0x7ddeaff3
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 0x7ddeb030
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sym.KERNEL32.dll_Basep8BitStringToDynamicUnicodeString
test eax, eax
jne 0x7ddeb02b
xor eax, eax
jmp 0x7ddeb15d
mov esi, dword [ebp - 0x10]
jmp 0x7ddeb032
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 0x7ddeb075
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
cmp dword [ebp - 0x10], ebx
je 0x7ddeb024
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
jmp 0x7ddeb024
push edi
push eax
push esi
call fcn.7dd9b6e7
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x7ddeb087
lea ebx, [eax - 1]
xor esi, esi
test ebx, ebx
jbe 0x7ddeb133
mov edi, 0x7ffe
mov eax, ebx
sub eax, esi
mov dword [ebp + 8], edi
cmp eax, edi
jae 0x7ddeb0ab
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 0x7ddeb0d2
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 0x7ddeb10f
shr word [ebp + 8], 1
jmp 0x7ddeb0db
test eax, eax
jl 0x7ddeb129
movzx eax, word [ebp - 0x1c]
add dword [ebp - 4], eax
movzx eax, word [ebp + 8]
add esi, eax
cmp esi, ebx
jae 0x7ddeb133
jmp 0x7ddeb096
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 0x7ddeb15a
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 0x7ddeb614
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 0x7ddeb630
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7ddeb65d
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 0x7ddeb65a
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7ddeb62c
xor eax, eax
inc eax
leave
ret 0xc

Function at 0x7ddeb666
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 0x7ddeb684
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7ddeb6b1
test byte [ebp + 0xc], 3
je 0x7ddeb6ae
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 0x7ddeb6ae
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7ddeb680
xor eax, eax
inc eax
leave
ret 8
Function at 0x7ddebc78
Capabilities:
Get file attributes

Disassembly:
push 0x44
push 0x7ddebeb0
call fcn.7dd715c0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], 0x20
mov dword [ebp - 0x28], ebx
xor edi, edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0xc], ebx
je 0x7ddebcad
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
or eax, 0xffffffff
jmp 0x7ddebe31
cmp dword [ebp + 0x14], ebx
jne 0x7ddebc9d
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x7ddebcc9
push 3
jmp 0x7ddebc9f
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 3
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 - 0x24], eax
cmp eax, ebx
jne 0x7ddebe23
push dword [ebp - 0x28]
call fcn.7ddebc04
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, ebx
jne 0x7ddebd39
mov dword [ebp - 0x24], 0xc000009a
jmp 0x7ddebe23
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x1c], ebx
je 0x7ddebd57
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]
mov esi, dword [ebp - 0x2c]
push esi
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x7ddebd84
mov dword [ebp - 0x24], 0xc000009a
mov edi, dword [ebp - 0x20]
jmp 0x7ddebe23
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 0x7ddebd3c
cmp eax, ebx
jne 0x7ddebe23
cmp dword [ebp - 0x30], ebx
jne 0x7ddebdb9
mov dword [ebp - 0x24], 0xc0000011
jmp 0x7ddebe23
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
mov dword [ebp - 0x1c], ebx
mov esi, dword [edi + 4]
mov ecx, dword [esi + 8]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 4], ecx
mov ebx, dword [esi + 4]
mov eax, 0x24e
cmp ebx, eax
jbe 0x7ddebded
mov ebx, eax
push ebx
lea eax, [esi + 0x18]
push eax
mov eax, dword [ebp + 0x10]
add eax, 8
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
shr ebx, 1
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov word [eax + ebx*2 + 8], cx
cmp dword [esi], ecx
jbe 0x7ddebe18
mov eax, dword [esi]
add eax, dword [edi + 4]
jmp 0x7ddebe1e
mov eax, dword [edi + 4]
add eax, dword [ebp - 0x30]
xor ebx, ebx
mov dword [edi + 8], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddebe43
mov eax, edi
call fcn.7dd71605
ret 0x10
Function at 0x7ddebed1
Capabilities:
Get file attributes

Disassembly:
push 0x40
push 0x7ddec000
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 0x7ddebfb3
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebx]
cmp ecx, esi
je 0x7ddebf6c
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 0x7ddebf92
mov dword [ebp - 0x20], 0xc000009a
jmp 0x7ddebfb3
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 0x7ddebf52
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddebfd1
mov eax, dword [ebp - 0x20]
call fcn.7dd71605
ret 0x10
Function at 0x7ddec021
Capabilities:
Get file attributes

Disassembly:
push 0x44
push 0x7ddec250
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 0x7ddec057
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
or eax, 0xffffffff
jmp 0x7ddec1cf
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 0x7ddec06e
push 3
jmp 0x7ddec049
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 0x7ddec1c1
push dword [ebp - 0x28]
call fcn.7ddebc04
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x7ddec0de
mov dword [ebp - 0x20], 0xc000009a
jmp 0x7ddec1c1
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x1c], ebx
je 0x7ddec0fc
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 0x7ddec12a
mov dword [ebp - 0x20], 0xc000009a
mov esi, dword [ebp - 0x24]
jmp 0x7ddec1c1
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 0x7ddec0e1
cmp eax, ebx
jne 0x7ddec1c1
cmp dword [ebp - 0x30], ebx
jne 0x7ddec160
mov dword [ebp - 0x20], 0xc0000011
jmp 0x7ddec1c1
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.7ddebed1
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x7ddec1c1
add edi, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x1c]
call fcn.7ddebb6b
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x7ddec1c1
cmp dword [edi], ebx
jbe 0x7ddec1b8
mov eax, dword [edi]
mov ecx, dword [esi + 4]
lea eax, [eax + ecx + 8]
jmp 0x7ddec1be
mov eax, dword [esi + 4]
add eax, dword [ebp - 0x30]
mov dword [esi + 8], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddec1e1
mov eax, esi
call fcn.7dd71605
ret 0x10