joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7dd99de0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sym.KERNEL32.dll_Basep8BitStringToDynamicUnicodeString
test eax, eax
je 0x7dda4194
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call sym.KERNEL32.dll_Basep8BitStringToDynamicUnicodeString
test eax, eax
je 0x7dda419b
push esi
mov eax, 0x208
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]
push edx
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor edi, edi
mov dword [ebp - 4], eax
cmp eax, edi
je 0x7dda41a7
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call fcn.7dd9bc23
mov esi, eax
cmp esi, edi
je 0x7dd99e95
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, 0x104
mov word [ebp - 0x1e], ax
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x1c]
push edi
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x20]
push ecx
call eax
cmp eax, edi
jl 0x7dda41b4
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, esi
mov esi, dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
lea eax, [ebp - 0x18]
push eax
call esi
lea eax, [ebp - 0x10]
push eax
call esi
mov eax, edi
pop edi
pop esi
leave
ret 0x10
xor eax, eax
jmp 0x7dd99ec3
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
jmp 0x7dda4194
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7dd99ead
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor esi, esi
jmp 0x7dd99e95
Function at 0x7dd9a4f8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp eax, ecx
jne 0x7dd9a79c
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
xor eax, eax
inc eax
pop ebp
ret 0x18
cmp dword [ebp + 0x14], ecx
jge 0x7dd9a7cf
lea edx, [eax + 1]
jmp 0x7dd9a7b3
cmp esi, dword [ebx]
jne 0x7dda8000
jmp 0x7dda8019
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x7dd9a7b3
sub eax, edx
lea ecx, [ebp + 0x14]
push ecx
inc eax
push eax
call fcn.7dd9a61a
test eax, eax
jl 0x7dda7fb2
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebx]
push edi
test esi, esi
je 0x7dda7fc1
push 0x7f
pop edi
cmp dword [ebp + 0x14], edi
jg 0x7dda7fc1
cmp dword [ebp + 0x14], 0
je 0x7dda7fee
push edi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNELBASE.dll_SpecialMBToWC
test eax, eax
je 0x7dd9a7a6
cmp eax, edi
jg 0x7dd9a7a6
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, dword [ebp + 0x1c]
mov dword [ebx], esi
mov dword [ecx], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
jmp 0x7dd9a517
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7dd9a517
mov eax, dword fs:[0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax + 0x30]
mov edi, dword [ebp + 0x14]
lea ecx, [ecx + ecx + 2]
push ecx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x7dd9a7eb
push 0xe
jmp 0x7dda801b
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx], esi
and dword [eax], 0
jmp 0x7dd9a81d
test esi, esi
je 0x7dda8019
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]
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7dd9a820
Function at 0x7dd9ab82
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x7dd9ac16
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x7dd9ac16
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dd9ab9e
mov esi, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
inc eax
mov dword [ebp + 0x10], eax
cmp dword [edi], eax
jae 0x7dd9ac0b
mov ecx, dword [esi]
test ecx, ecx
jne 0x7dda396f
add eax, 0x10
mov dword [edi], eax
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov ecx, dword fs:[0x18]
push dword [edi]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi], eax
test eax, eax
je 0x7dda398f
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [edi]
push dword [esi]
call dword [sym.imp.ntdll.dll_RtlUnicodeToMultiByteN]
pop edi
pop esi
pop ebp
ret 0xc
cmp dword [esi], 0
je 0x7dda398f
jmp 0x7dd9abf1
mov eax, 0xc000000d
jmp 0x7dd9ac05
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [esi], 0
mov eax, dword [ebp + 0x10]
jmp 0x7dd9abc1
mov eax, 0xc0000017
jmp 0x7dd9ac05
Function at 0x7dd9acdb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x1c]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
cmp eax, esi
jne 0x7ddae60d
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push dword [esi]
call sub.ntdll.dll_memset
mov edi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
xor ebx, ebx
push dword [esi]
inc ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call edi
mov dword [ebp + 0x14], eax
cmp eax, 0x80000005
je 0x7ddae614
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, 0xc000014c
cmp eax, edx
je 0x7dd9ad57
mov edi, dword [esi]
cmp dword [edi + 4], eax
jne 0x7ddae676
mov esi, dword [esi]
cmp dword [esi + 4], ebx
jne 0x7dd9ad79
mov eax, dword [esi + 0xc]
test bl, al
jne 0x7dd9ad8b
cmp eax, 2
jb 0x7dd9ad8b
mov edi, dword [esi + 8]
shr eax, 1
lea eax, [edi + eax*2]
cmp word [eax + esi - 2], dx
jne 0x7dd9ad8b
cmp dword [ebp + 0x14], edx
jl 0x7ddae67e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x18
mov dword [ebp + 0x14], ecx
jmp 0x7dd9ad79
mov dword [eax], esi
jmp 0x7dd9acf6
cmp dword [ebp + 0x1c], 0
je 0x7dd9ad3e
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 4], eax
test eax, eax
jne 0x7ddae646
mov eax, 0xc0000017
jmp 0x7dd9ad84
push dword [ebp + 0xc]
mov dword [esi], eax
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push dword [esi]
push ebx
push eax
push dword [ebp + 8]
call edi
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
jmp 0x7dd9ad3e
mov dword [ebp + 0x14], ecx
jmp 0x7dd9ad57
mov eax, dword [ebp + 0x1c]
cmp eax, edx
je 0x7ddae6aa
cmp dword [eax], edx
je 0x7ddae6aa
cmp dword [ebp - 4], edx
je 0x7ddae6a4
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0x1c]
and dword [eax], 0
mov eax, dword [ebp + 0x14]
jmp 0x7dd9ad84
Function at 0x7dd9aea4
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x7dd9aeb1
push 0x3c
push 0x7dd9af80
call fcn.7dd715c0
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x7ddae274
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], 1
mov eax, dword fs:[0x18]
push 0x10
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, esi
je 0x7ddae28f
mov dword [ebx], edi
cmp dword [ebp + 0x14], esi
je 0x7ddae296
push 0xa
pop ecx
mov esi, dword [ebp + 0x14]
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x34]
mov dword [ebx + 4], eax
mov dword [ebp - 0x34], 0x7dd9b00c
cmp dword [ebp - 0x44], esi
je 0x7dd9af34
mov eax, dword [ebp - 0x40]
cmp eax, esi
jne 0x7ddae2c5
mov dword [ebx + 8], esi
mov dword [ebx], edi
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x4c]
push eax
push ebx
push 0x7dd9afd3
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_TpAllocIoCompletion]
cmp eax, esi
jl 0x7ddae2da
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x24], 0
call fcn.7dd9afa1
mov eax, dword [ebp - 0x1c]
call fcn.7dd71605
ret 0x10
push 0x57
call sym.KERNEL32.dll_SetLastError
push esi
push esi
push esi
push 0xc000000d
call fcn.7dd751eb
xor eax, eax
jmp 0x7dd9af74
push 0xc0000017
jmp 0x7ddae2de
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0x28
jmp 0x7dd9af17
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x7de14c09
jmp 0x7dd9af37
mov dword [ebp - 0x1c], esi
push eax
call dword [sym.imp.ntdll.dll_RtlSetLastWin32ErrorAndNtStatusFromNtStatus]
jmp 0x7dd9af5e

Function at 0x7dd9b1ae
Capabilities:
Check processdebugport

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x7dd9b1ee
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x7dd9b1ee
push 0
push 4
lea eax, [ebp + 8]
push eax
push 7
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jl 0x7dd9e24f
xor eax, eax
cmp dword [ebp + 8], eax
setne al
mov dword [esi], eax
xor eax, eax
inc eax
pop esi
pop ebp
ret 8
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7dd9e255
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7dd9b1e9
Function at 0x7dde3d17
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp byte [esi + 0x448], bl
je 0x7dde3dbf
mov edi, dword [esi + 0x444]
add edi, dword [esi + 0x43c]
push 8
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
pop eax
add ecx, eax
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 9
mov dword [esi + 0x10], ebx
mov dword [esi + 0x42c], 0x1c
adc edx, ebx
mov dword [esi + 0xc], edx
mov ecx, dword [edi]
lea eax, [esi + 0x418]
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x18], eax
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ecx
mov byte [esi + 0x448], bl
mov eax, dword [edi + 4]
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi]
push dword [ebp + 8]
call fcn.7dd7168a
mov dword [ebp - 8], eax
cmp eax, dword [edi]
jne 0x7dde3daf
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 4]
je 0x7dde3dba
mov byte [esi + 0x45f], 1
xor eax, eax
jmp 0x7dde3e2d
xor eax, eax
inc eax
jmp 0x7dde3e2d
mov edx, dword [esi + 0x424]
mov eax, dword [esi + 0x42c]
xor ecx, ecx
cmp edx, ecx
jg 0x7dde3ddd
jl 0x7dde3dba
mov ecx, dword [esi + 0x420]
cmp ecx, eax
jb 0x7dde3dba
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push dword [edi + 8]
push esi
call fcn.7dde3c56
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [edi]
push dword [ebp + 8]
call sub.API_MS_Win_Core_File_L1_1_0.dll_ReadFile
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], ebx
je 0x7dde3e13
push dword [ebp + 0xc]
push edi
push esi
call fcn.7dde3c9c
jmp 0x7dde3e2a
cmp eax, ebx
je 0x7dde3e2a
cmp dword [ebp + 0x10], ebx
je 0x7dde3e2a
push 0x45d
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x7dde413a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [esi + 0x448], bl
je 0x7dde41cf
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x418], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x41c], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
cmp byte [esi + 0x449], bl
je 0x7dde417c
mov eax, dword [esi + 0x430]
jmp 0x7dde417f
mov eax, dword [ebp + 8]
push ebx
lea edx, [ebp - 8]
push edx
push ecx
push eax
call fcn.7dd7168a
mov dword [ebp - 0xc], eax
cmp eax, dword [esi + 0x418]
jne 0x7dde41a1
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x41c]
je 0x7dde41a5
xor eax, eax
jmp 0x7dde4216
cmp dword [esi + 8], 8
jne 0x7dde41c9
cmp dword [esi + 0xc], ebx
jne 0x7dde41c9
cmp byte [esi + 0x449], bl
je 0x7dde41c0
mov eax, dword [esi + 0x430]
jmp 0x7dde41c3
mov eax, dword [ebp + 8]
push eax
call fcn.7dd8ce8b
mov byte [esi + 0x448], bl
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push dword [edi + 8]
push esi
call fcn.7dde3c56
test eax, eax
je 0x7dde4215
cmp byte [esi + 0x449], bl
je 0x7dde41f4
mov eax, dword [esi + 0x430]
jmp 0x7dde41f7
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [edi]
push eax
call sub.API_MS_Win_Core_File_L1_1_0.dll_WriteFile
push dword [ebp - 4]
mov ebx, eax
push edi
push esi
call fcn.7dde3c9c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x7dde4221
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp byte [esi + 0x45d], bl
je 0x7dde4295
test byte [esi + 4], 8
push ebx
je 0x7dde425a
push ebx
push ebx
push ebx
push 0x900c4
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtFsControlFile]
jmp 0x7dde428f
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.7dd7168a
push dword [ebp + 8]
call fcn.7dd8ce8b
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.7dd7168a
mov byte [esi + 0x45d], bl
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push dword [edi + 8]
push esi
call fcn.7dde3c56
test eax, eax
je 0x7dde42c9
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [edi]
push dword [ebp + 8]
call sub.API_MS_Win_Core_File_L1_1_0.dll_WriteFile
push dword [ebp - 4]
mov ebx, eax
push edi
push esi
call fcn.7dde3c9c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x7dde4595
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
mov edi, 0x1000
mov dword [ebp - 8], edi
mov byte [ebp - 1], bl
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [esi + 0x440], ebx
mov dword [esi + 0x444], ebx
mov byte [esi + 0x448], bl
call fcn.7dd7194b
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push edi
jmp 0x7dde463f
mov eax, dword [esi + 0x440]
mov ecx, dword [esi + 0x438]
sub ecx, eax
push ecx
mov ecx, dword [esi + 0x43c]
add ecx, eax
push ecx
push 0x10
lea eax, [ebp - 0x28]
push eax
push 0x940cf
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntdll.dll_NtFsControlFile]
cmp eax, 0x80000005
je 0x7dde4624
cmp eax, ebx
jl 0x7dde4633
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x7dde46bf
mov byte [ebp - 1], 1
cmp dword [ebp - 8], 0x10
jae 0x7dde4655
add dword [ebp - 8], edi
push dword [ebp - 8]
lea eax, [esi + 0x434]
push eax
call fcn.7dde4457
test eax, eax
jne 0x7dde45e3
mov dword [esi + 0x440], ebx
cmp byte [ebp - 1], bl
je 0x7dde4662
mov eax, dword [ebp - 0x10]
or eax, dword [ebp - 0xc]
jne 0x7dde466f
cmp dword [esi + 0x440], 0x10
jb 0x7dde4706
mov ecx, dword [esi + 0x43c]
cmp byte [ebp - 1], bl
jne 0x7dde4691
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jne 0x7dde4691
mov eax, dword [ecx + 8]
cmp eax, dword [ebp - 0x10]
jne 0x7dde4691
mov eax, dword [ecx + 0xc]
cmp eax, dword [ebp - 0xc]
je 0x7dde4706
add dword [esi + 0x440], 0x10
mov eax, dword [esi + 0x440]
lea eax, [eax + ecx - 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
xor eax, eax
mov byte [esi + 0x448], 1
inc eax
jmp 0x7dde470e
add dword [esi + 0x440], eax
mov ecx, dword [esi + 0x43c]
mov eax, dword [esi + 0x440]
lea eax, [eax + ecx - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 8]
add dword [ebp - 0x28], ecx
mov eax, dword [eax + 0xc]
adc dword [ebp - 0x24], eax
mov eax, dword [esi + 0x440]
add eax, 0x10
cmp eax, dword [esi + 0x438]
ja 0x7dde4639
jmp 0x7dde4655
mov dword [esi + 0x440], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x7dde471a
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [esi + 0x45d], bl
je 0x7dde47d2
mov eax, dword [esi + 0x460]
test eax, 0x4000
je 0x7dde4749
xor eax, eax
inc eax
jmp 0x7dde47de
test al, 0x10
jne 0x7dde4741
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.7dd7194b
mov ecx, eax
or ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
je 0x7dde4741
cmp eax, 0xffffffff
jne 0x7dde4775
call fcn.7dd711c7
test eax, eax
je 0x7dde4775
xor eax, eax
jmp 0x7dde47de
push dword [ebp + 0x10]
mov dword [esi], 1
push esi
push dword [ebp + 8]
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x42c], 0x14
mov byte [esi + 0x45d], bl
call fcn.7dde4595
test eax, eax
je 0x7dde47b0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 4], 8
jmp 0x7dde4741
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
push ebx
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.7dd7168a
jmp 0x7dde4741
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.7dde3d17
pop esi
pop ebx
leave
ret 0xc
Function at 0x7dde4a71
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp byte [esi + 0x45d], bl
je 0x7dde4b2b
lea edi, [esi + 0x434]
push 1
push ebx
push ebx
push ebx
push ebx
push dword [edi]
lea eax, [ebp - 8]
push dword [esi + 0x43c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryEaFile]
cmp eax, ebx
jl 0x7dde4ab8
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jne 0x7dde4b00
cmp eax, 0x80000005
je 0x7dde4aca
cmp eax, 0xc0000023
jne 0x7dde4b50
push 7
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jl 0x7dde4b50
mov eax, dword [ebp + 0xc]
imul eax, eax, 5
shr eax, 2
push eax
push edi
call fcn.7dde4457
test eax, eax
jne 0x7dde4a92
mov byte [esi + 0x45f], 1
jmp 0x7dde4b53
mov byte [esi + 0x45c], 1
mov dword [esi], 2
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x42c], 0x14
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
mov byte [esi + 0x45d], bl
jmp 0x7dde4b50
mov ecx, dword [esi + 0x424]
cmp ecx, ebx
mov eax, dword [esi + 0x42c]
jl 0x7dde4b50
jg 0x7dde4b47
mov ecx, dword [esi + 0x420]
cmp ecx, eax
jb 0x7dde4b50
push dword [ebp + 0x10]
push esi
call fcn.7dde3cc8
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x7dde550f
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
call fcn.7dde51ec
dec eax
je 0x7dde5539
dec eax
je 0x7dde5531
xor eax, eax
jmp 0x7dde563e
xor eax, eax
inc eax
jmp 0x7dde563e
and dword [ebp + 0x10], 0
mov eax, dword [esi + 0x43c]
push ebx
push edi
push 2
xor edi, edi
pop ebx
jmp 0x7dde555d
cmp cx, 0x5c
jne 0x7dde5559
inc dword [ebp + 0x10]
mov edi, eax
xor ebx, ebx
inc eax
inc eax
inc ebx
inc ebx
movzx ecx, word [eax]
test cx, cx
jne 0x7dde554c
lea eax, [ebx + 0x10]
push eax
mov dword [ebp - 8], eax
call fcn.7dde4425
mov esi, eax
test esi, esi
jne 0x7dde5586
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7dde563c
lea eax, [edi + 2]
push ebx
push eax
mov dword [ebp - 4], eax
lea eax, [esi + 0xc]
push eax
call sub.ntdll.dll_memcpy
add ebx, 0xfffffffe
add esp, 0xc
cmp dword [ebp + 0x10], 1
mov dword [esi + 8], ebx
jle 0x7dde55ab
push 0x5c
pop ebx
jmp 0x7dde55b1
movzx ebx, word [edi]
mov edi, dword [ebp - 4]
xor eax, eax
push eax
push 0x2000080
push 3
push eax
push 7
mov word [edi], ax
mov eax, dword [ebp + 0xc]
push 0xc0000000
push dword [eax + 0x43c]
call sub.API_MS_Win_Core_File_L1_1_0.dll_CreateFileW
mov dword [esi + 4], eax
mov word [edi], bx
xor ebx, ebx
inc ebx
cmp dword [esi + 4], 0xffffffff
mov byte [esi], 1
jne 0x7dde55f0
push 2
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7dde561b
push 0xb
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push dword [esi + 4]
mov edi, eax
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
or dword [esi + 4], 0xffffffff
test edi, edi
jge 0x7dde561f
push edi
call sym.KERNEL32.dll_BaseSetLastNTError
xor ebx, ebx
jmp 0x7dde5634
cmp dword [ebp - 8], 3
jne 0x7dde562c
push 0xb7
jmp 0x7dde562e
push 0
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
push esi
call fcn.7dd985ef
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x7dde5970
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x2001f
lea eax, [ebp - 4]
push eax
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
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, edi
jl 0x7dde5a11
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call esi
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x7dde59d1
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 1
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
cmp esi, edi
jl 0x7dde5a06
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop edi
pop esi
leave
ret 0xc

Function at 0x7dde5a1c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0xc]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call edi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
push esi
lea eax, [ebp - 0x2c]
push eax
push 0x2001f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_NtCreateKey]
cmp eax, esi
jl 0x7dde5aab
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call edi
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push dword [ebp + 0x10]
push 7
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov edi, eax
cmp edi, esi
jl 0x7dde5aa0
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
pop edi
pop esi
leave
ret 0x10