joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7de18bd4
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalAlloc]
mov eax, 0x520
mov dword [ebp - 4], eax
push eax
jmp 0x7de18c2c
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push ebx
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, dword [ebx]
mov dword [ebp - 8], eax
test eax, eax
jge 0x7de18c3d
push ebx
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
mov eax, 0xc0000004
cmp dword [ebp - 8], eax
jne 0x7de18c84
imul esi, esi, 0x11c
add esi, 4
cmp esi, dword [ebp - 4]
jbe 0x7de18c81
mov dword [ebp - 4], esi
push esi
push 0
call edi
mov ebx, eax
test ebx, ebx
jne 0x7de18bf0
push 0x5aa
jmp 0x7de18c8e
xor eax, eax
test esi, esi
jbe 0x7de18c58
lea ecx, [ebx + 0xc]
mov edx, dword [ecx]
cmp edx, dword [ebp + 8]
je 0x7de18c63
inc eax
add ecx, 0x11c
cmp eax, esi
jb 0x7de18c46
push ebx
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
push 6
jmp 0x7de18c8e
mov edi, dword [ebp + 0xc]
imul eax, eax, 0x11c
push 0x47
pop ecx
lea esi, [eax + ebx + 4]
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
xor eax, eax
inc eax
jmp 0x7de18c96
push eax
jmp 0x7de18c87
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x7de18ca2
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push 0x1c
push 0x7de18dd0
call fcn.7dd715c0
mov ebx, 0x520
push ebx
push 0
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x7de18ccf
push 0x5aa
jmp 0x7de18dc0
lea eax, [ebp - 0x2c]
push eax
push ebx
push esi
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp - 0x20], eax
mov edi, dword [esi]
test eax, eax
jl 0x7de18d8e
mov eax, dword [ebp + 0xc]
shr eax, 2
xor ecx, ecx
cmp ecx, edi
jae 0x7de18d4d
cmp ecx, eax
je 0x7de18d4d
and dword [ebp - 4], 0
mov edx, ecx
imul edx, edx, 0x11c
mov edx, dword [edx + esi + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebx + ecx*4], edx
mov dword [ebp - 4], 0xfffffffe
inc ecx
jmp 0x7de18cf2
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, edi
shl eax, 2
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
push esi
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
mov eax, ebx
jmp 0x7de18dc8
push esi
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
mov eax, 0xc0000004
cmp dword [ebp - 0x20], eax
jne 0x7de18db6
imul edi, edi, 0x11c
add edi, 4
cmp edi, ebx
ja 0x7de18daf
push eax
jmp 0x7de18db9
mov ebx, edi
jmp 0x7de18cb3
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
xor eax, eax
call fcn.7dd71605
ret 0xc
Function at 0x7de18fc2
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a4
cmp dword [ebp + 0xc], 0x38
jae 0x7de18fec
push 0xc0000004
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x7de19159
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor ebx, ebx
push ebx
push 0x2c
lea eax, [ebp - 0x38]
push eax
push ebx
call esi
cmp eax, ebx
jl 0x7de19028
push ebx
push 0x148
lea eax, [ebp - 0x1a4]
push eax
push 2
call esi
cmp eax, ebx
jl 0x7de19028
push ebx
push 0x24
lea eax, [ebp - 0x5c]
push eax
push 0x15
call esi
cmp eax, ebx
jge 0x7de1903d
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x7de19157
push edi
mov edi, 0x1000
push edi
push ebx
mov ebx, dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalAlloc]
mov dword [ebp + 0xc], edi
jmp 0x7de19090
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
push 5
call esi
mov dword [ebp - 0xc], eax
test eax, eax
jge 0x7de190a3
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
cmp dword [ebp - 0xc], 0xc0000004
jne 0x7de19144
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jbe 0x7de19088
mov dword [ebp + 0xc], eax
jmp 0x7de1908b
add dword [ebp + 0xc], edi
push dword [ebp + 0xc]
push 0
call ebx
mov dword [ebp - 8], eax
test eax, eax
jne 0x7de19050
push 0xc000009a
jmp 0x7de19147
and dword [ebp + 0xc], 0
mov eax, dword [ebp - 8]
xor esi, esi
xor edi, edi
mov ecx, 0xb8
jmp 0x7de190ce
mov edx, dword [eax]
inc dword [ebp + 0xc]
add esi, dword [eax + 4]
add edi, dword [eax + 0x4c]
test edx, edx
je 0x7de190d3
cmp edx, dword [ebp - 4]
ja 0x7de190d3
sub dword [ebp - 4], edx
add eax, dword [eax]
cmp dword [ebp - 4], ecx
ja 0x7de190b5
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x174]
mov edx, dword [ebp - 0x134]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x170]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x16c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x178]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x130]
mov dword [eax + 0x24], ecx
lea ebx, [ecx + edx]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax], 0x38
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], edx
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], esi
xor eax, eax
inc eax
jmp 0x7de19156
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x7de19162
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalAlloc]
mov esi, 0x1000
mov ebx, esi
push esi
jmp 0x7de191b7
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 8]
push 0x12
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp - 0xc], eax
test eax, eax
jge 0x7de191c9
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
cmp dword [ebp - 0xc], 0xc0000004
jne 0x7de19232
cmp dword [ebp - 4], ebx
jbe 0x7de191b4
mov ebx, dword [ebp - 4]
jmp 0x7de191b6
add ebx, esi
push ebx
push 0
call edi
mov dword [ebp - 8], eax
test eax, eax
jne 0x7de1917d
push 0xc000009a
jmp 0x7de19235
mov esi, dword [ebp - 8]
jmp 0x7de1921e
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0x14
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
push 0x3a
push dword [esi + 0x14]
call sub.ntdll.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x7de1920e
cmp eax, dword [esi + 0x14]
jbe 0x7de1920e
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x7de19224
cmp eax, dword [ebp - 4]
ja 0x7de19224
sub dword [ebp - 4], eax
add esi, dword [esi]
cmp dword [ebp - 4], 0x18
ja 0x7de191ce
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
xor eax, eax
inc eax
jmp 0x7de19244
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x7de19877
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov eax, 0xc0000034
cmp ecx, edi
je 0x7de198a0
mov dword [ecx], edi
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
je 0x7de198a9
mov dword [ecx], edi
mov ecx, dword [ebp + 0x20]
cmp ecx, edi
je 0x7de198b2
mov dword [ecx], edi
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
je 0x7de198bb
mov dword [ecx], edi
mov ecx, dword [ebp + 0x1c]
cmp ecx, edi
je 0x7de198c4
mov dword [ecx], edi
mov esi, dword [sym.imp.ntdll.dll_NtQueryKey]
cmp dword [ebp + 8], edi
je 0x7de198f3
lea eax, [ebp + 8]
push eax
push 0x28
lea eax, [ebp - 0x38]
push eax
push 4
push dword [ebp + 8]
call esi
cmp eax, edi
jl 0x7de1995a
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], edi
je 0x7de19921
lea eax, [ebp + 8]
push eax
push 0x28
lea eax, [ebp - 0x38]
push eax
push 4
push dword [ebp + 0xc]
call esi
cmp eax, edi
jl 0x7de1995a
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x20], ebx
jbe 0x7de19921
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
je 0x7de1992d
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
je 0x7de19939
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x20]
cmp ecx, edi
je 0x7de19942
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
je 0x7de1994e
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x1c]
cmp ecx, edi
je 0x7de1995a
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x7de19966
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
test byte [ebx], 4
mov dword [ebp - 4], 0xc0000022
mov dword [ebp - 8], edi
je 0x7de19af6
mov eax, dword [ebp + 0x14]
cmp dword [eax], edi
je 0x7de19af6
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, edi
je 0x7de199a6
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [esi], edi
mov eax, dword [ebp + 0x14]
mov esi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [eax], edi
mov eax, dword [ebx + 0x10]
mov ecx, 0x80
add cx, word [eax]
mov eax, dword fs:[0x18]
mov word [ebp - 0xa], cx
movzx ecx, word [ebp - 0xa]
mov eax, dword [eax + 0x30]
push ecx
push edi
push dword [eax + 0x18]
call esi
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x7de199e5
mov eax, 0xc0000017
jmp 0x7de19af9
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.7dd8c42e
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x7de19adb
mov eax, dword [ebp - 0xa]
sub eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov ecx, dword fs:[0x18]
add eax, 2
mov word [ebx + 2], ax
movzx eax, ax
push eax
mov eax, dword [ecx + 0x30]
push edi
push dword [eax + 0x18]
call esi
mov dword [ebx + 4], eax
cmp eax, edi
jne 0x7de19a35
mov dword [ebp - 4], 0xc0000017
jmp 0x7de19adb
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
movzx esi, di
inc esi
mov eax, 0xfffe
sub eax, edi
add word [ebp - 0xc], ax
inc esi
lea eax, [ebp - 0xc]
shr esi, 1
push eax
add esi, esi
add dword [ebp - 8], esi
push ebx
mov word [ebp - 0x14], di
call dword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
sub dword [ebp - 8], esi
xor esi, esi
add edi, 2
add word [ebp - 0xc], di
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 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
lea eax, [ebp - 0x2c]
cmp dword [ebp + 0x18], esi
je 0x7de19aa9
push dword [ebp + 0x18]
push eax
push 0x2000000
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtOpenKeyTransacted]
jmp 0x7de19ab8
push eax
push 0x2000000
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, esi
mov dword [ebp - 4], eax
jge 0x7de19ad9
push dword [ebx + 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [ebx + 4], esi
xor edi, edi
cmp dword [ebp - 8], edi
je 0x7de19af6
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x7de19b05
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
call sym.KERNEL32.dll_RegKrnGetGlobalState
mov esi, dword [ebp + 0xc]
mov ebx, eax
add ebx, 0x9c
cmp word [esi], 0xe
jb 0x7de19c42
push 7
push dword [0x7de40d00]
push dword [esi + 4]
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x7de19b54
cmp word [esi], 0xe
jbe 0x7de19b94
mov eax, dword [esi + 4]
cmp word [eax + 0xe], 0x5c
je 0x7de19b94
cmp word [esi], 0x20
mov dword [ebp - 4], 1
jb 0x7de19c42
push 0x10
push dword [0x7de40d04]
push dword [esi + 4]
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x7de19c42
cmp word [esi], 0x20
jbe 0x7de19b94
mov eax, dword [esi + 4]
cmp word [eax + 0x20], 0x5c
jne 0x7de19c42
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push 0x3e
push 0x7de40fc0
push 3
push dword [eax]
call dword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
jl 0x7de19c42
mov edi, dword [ebp - 4]
add edi, edi
movzx eax, word [edi + 0x7de19c50]
cmp dword [0x7de40fc0], eax
jne 0x7de19c42
movzx eax, word [edi + 0x7de19c4c]
push eax
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x7de40d08]
push 0x7de40fc4
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x7de19c42
cmp dword [ebx], eax
jne 0x7de19c02
push dword [ebp + 0x10]
push ebx
push 0x2000000
push eax
call fcn.7dd8c1c2
test eax, eax
jne 0x7de19c42
movzx eax, word [esi]
movzx ecx, word [edi + 0x7de19c54]
cmp ax, cx
ja 0x7de19c18
xor eax, eax
mov word [esi], ax
jmp 0x7de19c36
sub eax, ecx
mov word [esi], ax
mov ax, word [edi + 0x7de19c54]
sub word [esi + 2], ax
movzx eax, word [edi + 0x7de19c54]
shr eax, 1
add eax, eax
add dword [esi + 4], eax
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x7de19c44
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x7de1a371
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
call sym.KERNEL32.dll_RegKrnGetGlobalState
mov eax, dword [eax + 0x14]
xor ebx, ebx
mov dword [ebp - 8], eax
cmp dword [ebp + 8], ebx
je 0x7de1a4d9
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x7de1a4d9
mov edx, dword [eax + 4]
cmp edx, ebx
je 0x7de1a4d9
movzx ecx, word [eax]
test cl, 1
jne 0x7de1a4d9
cmp cx, bx
jbe 0x7de1a3bd
add ecx, 0xfffffffe
mov word [eax], cx
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push edx
call dword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U]
test al, al
je 0x7de1a4d9
mov eax, dword [ebp - 0x30]
push esi
push edi
mov edi, dword [ebp - 0xc]
cmp ax, bx
je 0x7de1a3ed
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
jmp 0x7de1a3f0
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
push 0x20
lea eax, [ebp - 0x10]
mov dword [ebp - 0x40], eax
push 1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x80100000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, ebx
jl 0x7de1a4ce
test byte [ebp + 8], 2
mov edi, dword [sym.imp.ntdll.dll_NtClose]
je 0x7de1a49d
xor eax, eax
push ebx
mov word [ebp - 0x18], ax
mov word [ebp - 0x16], ax
lea eax, [ebp + 0xc]
push eax
push 0x2000000
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call fcn.7dd8be16
mov esi, eax
cmp esi, ebx
jl 0x7de1a4ae
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtRestoreKey]
push dword [ebp + 0xc]
mov esi, eax
call edi
jmp 0x7de1a4ae
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtRestoreKey]
mov esi, eax
push dword [ebp - 4]
call edi
cmp esi, ebx
jl 0x7de1a4ce
test byte [ebp + 0x10], 1
jne 0x7de1a4ce
cmp dword [ebp - 8], ebx
je 0x7de1a4ce
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [ebp - 8]
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
jmp 0x7de1a4dc
push 0x57
pop eax
pop ebx
leave
ret 0xc
Function at 0x7de1a792
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x14]
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x18], 0
mov ebx, eax
je 0x7de1a816
cmp ebx, 0x80000005
jne 0x7de1a816
mov eax, dword fs:[0x18]
push dword [ebp + 0x10]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x7de1a7e9
mov eax, 0xc0000017
jmp 0x7de1a825
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
jge 0x7de1a81a
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]
test ebx, ebx
jl 0x7de1a823
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x7de1a823
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x7de1af6c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
xor ebx, ebx
push 0x212
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call sub.ntdll.dll_memset
mov dword [ebp - 0x18], ebx
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push esi
mov dword [ebp - 0x24], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
call fcn.7de1aeda
push ebx
push 0x210
mov edi, eax
lea eax, [ebp - 0x25c]
push eax
push 0x2b
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov esi, 0xc0000000
mov ecx, eax
and ecx, esi
cmp ecx, esi
jne 0x7de1aff2
push eax
push 0x7de1b120
jmp 0x7de1b073
push dword [ebp - 0x258]
call fcn.7de1acdd
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x7de1b016
push 0x7de1b104
push ebx
call fcn.7de1ae08
pop ecx
pop ecx
jmp 0x7de1b0a9
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], 0x40
mov dword [ebp - 0x38], 0x7de1b0d4
cmp edi, ebx
jne 0x7de1b039
mov dword [ebp - 0x38], 0x7de1b0cc
lea eax, [ebp - 0x40]
push eax
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x7de1b0a9
push dword [ebp - 0x28]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
mov ecx, eax
and ecx, esi
cmp ecx, esi
jne 0x7de1b07e
push eax
push 0x7de1b0dc
push ebx
call fcn.7de1ae08
add esp, 0xc
jmp 0x7de1b0a9
lea eax, [ebp - 0x20]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x7de1b0a9
cmp dword [ebp - 0x14], 4
jne 0x7de1b0a9
cmp dword [ebp - 0xc], ebx
je 0x7de1b0a9
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x1c], ebx
pop edi
pop esi
pop ebx
je 0x7de1b0b9
push dword [ebp - 0x1c]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
xor ecx, ebp
call fcn.7dd71442
leave
ret 4
Function at 0x7de1d444
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
push 0xe
mov dword [ebp - 8], eax
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.ntdll.dll_NtSetInformationFile
pop edi
leave
ret 8
Function at 0x7de1d4e6
Capabilities:
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push 0x18
pop eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp + 0xc], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
cmp dword [esi], edi
jne 0x7de1d5cd
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push 0x60
push 5
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x120089
push esi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
call sub.ntdll.dll_NtOpenFile
mov ebx, eax
cmp ebx, edi
jge 0x7de1d5cd
cmp ebx, 0xc0000034
je 0x7de1d6c8
cmp ebx, 0xc0000089
je 0x7de1d6c8
cmp ebx, 0xc000008a
je 0x7de1d6c8
cmp ebx, 0xc000008b
je 0x7de1d6c8
cmp ebx, 0xc0000204
je 0x7de1d6c8
cmp ebx, 0xc0150002
je 0x7de1d6c8
cmp ebx, 0xc000000f
je 0x7de1d6c8
push ebx
push dword [ebp - 0x3c]
push 0x7de1d6d4
push 0x7dde3744
push edi
push 0x33
call sub.ntdll.dll_DbgPrintEx
add esp, 0x18
jmp 0x7de1d6c8
push edi
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x8810
push 3
lea eax, [ebp - 0x2c]
push eax
push dword [esi]
call sub.ntdll.dll_LdrResSearchResource
mov ebx, eax
cmp ebx, edi
jl 0x7de1d6c8
mov eax, dword [ebp + 0xc]
cmp eax, 0x800000
jbe 0x7de1d607
mov ebx, 0xc0150022
jmp 0x7de1d6c8
push edi
push 0x8000000
push 4
lea ecx, [ebp - 0x18]
push ecx
push edi
mov dword [ebp - 0x18], eax
lea eax, [esi + 8]
push 6
push eax
mov dword [ebp + 0x10], eax
call sub.ntdll.dll_NtCreateSection
mov ebx, eax
cmp ebx, edi
jl 0x7de1d6c8
push 4
push edi
push 2
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
mov eax, dword [ebp + 0x10]
push dword [eax]
call sub.ntdll.dll_NtMapViewOfSection
mov ebx, eax
cmp ebx, edi
jl 0x7de1d6c8
mov eax, dword [ebp - 4]
push dword [ebp - 8]
cdq
push dword [esi]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.7de1d444
mov ebx, eax
cmp ebx, edi
jl 0x7de1d6c8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [esi + 0x10]
push dword [esi]
call fcn.7de1d478
mov ebx, eax
cmp ebx, edi
jl 0x7de1d6c8
mov edx, dword [ebp + 0xc]
cmp dword [ebp - 0xc], edx
je 0x7de1d692
mov ebx, 0xc000007b
jmp 0x7de1d6c8
mov ecx, dword [esi]
mov eax, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 8]
mov byte [eax + 1], 1
mov byte [eax], 1
mov ecx, dword [ecx]
mov esi, dword [ecx]
mov dword [eax + 4], esi
mov ecx, dword [ecx + 4]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x10]
mov byte [eax + 2], 3
mov ecx, dword [ecx]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edx
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10