joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7de04524
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp edi, ebx
je 0x7de046d3
cmp word [edi], bx
je 0x7de046d3
push 0x1c
push 0x42
call fcn.7dd751d3
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x7de0456a
mov dword [ebp - 4], 8
jmp 0x7de046da
push eax
call sym.KERNEL32.dll_GlobalLock
mov esi, eax
cmp esi, ebx
jne 0x7de04582
mov dword [ebp - 4], 8
jmp 0x7de046c9
lea eax, [ebp - 0x14]
push eax
push 0x7fffffff
push edi
call fcn.7de0102a
cmp eax, ebx
jge 0x7de045a2
and eax, 0xffff
mov dword [ebp - 4], eax
jmp 0x7de046c1
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 0x14]
mov dword [esi + 0x14], ebx
call fcn.7dd836d6
test eax, eax
jl 0x7de046ba
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push 2
pop ecx
mul ecx
push edx
push eax
call fcn.7ddff5e9
test eax, eax
jl 0x7de046ba
push dword [ebp - 0x10]
push 0x42
call fcn.7dd751d3
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x7de045f3
mov dword [ebp - 4], 8
jmp 0x7de046c1
push eax
call sym.KERNEL32.dll_GlobalLock
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x7de0460c
mov dword [ebp - 4], 8
jmp 0x7de046a3
push edi
push dword [ebp - 0xc]
push eax
call fcn.7dd73da0
push dword [esi + 0x18]
mov edi, eax
call sym.KERNEL32.dll_GlobalUnlock
cmp edi, ebx
jge 0x7de0462f
and edi, 0xffff
mov dword [ebp - 4], edi
jmp 0x7de046a3
push dword [ebp - 0x14]
call sub.API_MS_Win_Core_File_L1_1_0.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x7de04651
call fcn.7dd711c7
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x7de046a3
mov dword [ebp - 4], 2
jmp 0x7de046a3
test al, 0x17
je 0x7de0465e
mov dword [ebp - 4], 0x13
jmp 0x7de046a3
push 3
push ebx
push dword [ebp + 8]
call fcn.7dd747f8
mov edi, eax
cmp edi, ebx
jne 0x7de04684
call fcn.7dd711c7
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x7de046a3
mov dword [ebp - 4], 0xc1
jmp 0x7de046a3
cmp dword [ebp + 0xc], ebx
jne 0x7de04698
push ebx
push 0x10
push esi
push 0x7de044fc
push edi
call sym.KERNEL32.dll_EnumResourceTypesExW
push edi
call fcn.7dd724bc
cmp dword [esi + 0x14], ebx
je 0x7de046ad
push dword [esi + 0x18]
call fcn.7dd75f50
jmp 0x7de046c1
push dword [ebp - 8]
call sym.KERNEL32.dll_GlobalUnlock
mov eax, dword [ebp - 8]
jmp 0x7de046e5
mov dword [ebp - 4], 0x216
push dword [ebp - 8]
call sym.KERNEL32.dll_GlobalUnlock
push dword [ebp - 8]
call fcn.7dd75f50
jmp 0x7de046da
mov dword [ebp - 4], 0x57
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x7de07179
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlNormalizeString]
mov edi, eax
test edi, edi
jge 0x7de071dc
push esi
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
push eax
call esi
call fcn.7dd711c7
cmp eax, 2
jne 0x7de071c0
push 0x57
call esi
pop esi
cmp edi, 0xc0000023
je 0x7de071d5
cmp edi, 0xc0000717
je 0x7de071d5
xor eax, eax
jmp 0x7de071e7
mov eax, dword [ebp + 0x18]
neg eax
jmp 0x7de071e7
push 0
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x14

Function at 0x7de071f1
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
lea eax, [ebp + 0x13]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlIsNormalizedString]
test eax, eax
jge 0x7de07231
push esi
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
push eax
call esi
call fcn.7dd711c7
cmp eax, 2
jne 0x7de0722c
push 0x57
call esi
xor eax, eax
pop esi
jmp 0x7de0723a
xor eax, eax
cmp byte [ebp + 0x13], 1
sete al
pop ebp
ret 0xc
Function at 0x7de07bbe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xf8], ebx
lea edi, [ebp - 0xf4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xb9
stosd dword es:[edi], eax
lea eax, [ebp - 0xbf]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xcc], ebx
mov byte [ebp - 0xc0], bl
call sub.ntdll.dll_memset
xor eax, eax
mov word [ebp - 0xd8], ax
lea edi, [ebp - 0xd6]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0xe0], ax
lea edi, [ebp - 0xde]
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x7de07e10
lea eax, [ebp - 0xe0]
push eax
call edi
cmp esi, ebx
jne 0x7de07c60
mov eax, 0xc000000d
jmp 0x7de07daa
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlSizeHeap]
cmp eax, 0xffffffff
je 0x7de07c56
cmp eax, 0xac
jb 0x7de07c56
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf8]
push eax
push 0x20019
lea eax, [ebp - 0xc8]
push eax
mov dword [ebp - 0xf8], 0x18
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xec], 0x40
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, ebx
mov dword [ebp - 0xc4], eax
jl 0x7de07d90
push 0x7de07ddc
lea eax, [ebp - 0xd8]
push eax
call edi
mov ebx, dword [sym.imp.ntdll.dll_NtQueryValueKey]
lea eax, [ebp - 0xcc]
push eax
mov esi, 0xba
push esi
lea eax, [ebp - 0xc0]
push eax
push 2
lea eax, [ebp - 0xd8]
push eax
push dword [ebp - 0xc8]
call ebx
mov dword [ebp - 0xc4], eax
test eax, eax
jge 0x7de07d74
cmp eax, 0xc0000034
jne 0x7de07d8e
push esi
lea eax, [ebp - 0xc0]
push 0
push eax
call sub.ntdll.dll_memset
and dword [ebp - 0xcc], 0
add esp, 0xc
push 0x7de07dbc
lea eax, [ebp - 0xd8]
push eax
call edi
lea eax, [ebp - 0xcc]
push eax
push esi
lea eax, [ebp - 0xc0]
push eax
push 2
lea eax, [ebp - 0xd8]
push eax
push dword [ebp - 0xc8]
call ebx
mov dword [ebp - 0xc4], eax
test eax, eax
jl 0x7de07d8e
push dword [ebp - 0xd0]
lea eax, [ebp - 0xc0]
push dword [ebp + 8]
call fcn.7de07b76
mov dword [ebp - 0xc4], eax
xor ebx, ebx
cmp dword [ebp - 0xc8], ebx
je 0x7de07da4
push dword [ebp - 0xc8]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 4
Function at 0x7de155c1
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 4]
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
cmp esi, ebx
je 0x7de155df
mov dword [esi], ebx
test dword [ebp + 8], 0xfffffffc
je 0x7de155f2
mov edi, 0xc00000ef
jmp 0x7de156a4
cmp esi, ebx
jne 0x7de15600
mov edi, 0xc00000f2
jmp 0x7de156a4
push ebx
push 8
lea eax, [ebp - 8]
push eax
push 1
push ebx
push ebx
push 1
call dword [sym.imp.ntdll.dll_RtlQueryInformationActivationContext]
mov edi, eax
cmp edi, ebx
jge 0x7de15632
push edi
push 0x7de15708
push 0x7de156c0
push ebx
push 0x33
call dword [sym.imp.ntdll.dll_DbgPrintEx]
add esp, 0x14
jmp 0x7de156a4
test byte [ebp - 4], 1
je 0x7de15644
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_RtlReleaseActivationContext]
mov dword [ebp - 8], ebx
test byte [ebp + 8], 2
je 0x7de1564f
cmp dword [ebp - 8], ebx
je 0x7de156a2
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
push 0x10
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi], eax
cmp eax, ebx
jne 0x7de1567a
mov edi, 0xc0000017
jmp 0x7de156a4
test byte [ebp + 8], 1
mov dword [eax], ebx
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
mov dword [eax + 0xc], ecx
mov dword [ebp - 8], ebx
je 0x7de15692
mov eax, dword [esi]
or dword [eax], 1
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
xor edi, edi
cmp dword [ebp - 8], ebx
je 0x7de156b2
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_RtlReleaseActivationContext]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x7de15841
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp eax, edi
je 0x7de1589b
push 9
push 0x210
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x654]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
cmp eax, edi
jl 0x7de1589b
mov eax, dword [ebp - 0x214]
shr eax, 1
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x7de15948
cmp esi, edi
je 0x7de1594b
mov eax, 0xfffe
add word [esi], ax
lea eax, [ebp - 0x64c]
push eax
push 1
lea eax, [ebp - 0x628]
push eax
mov dword [ebp - 0x64c], 0x18
mov dword [ebp - 0x648], edi
mov dword [ebp - 0x640], 0x40
mov dword [ebp - 0x644], esi
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x638], edi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
add word [esi], 2
cmp eax, edi
jl 0x7de1594b
lea eax, [ebp - 0x624]
mov dword [ebp - 0x62c], eax
xor eax, eax
mov word [ebp - 0x630], ax
mov eax, 0x410
mov word [ebp - 0x62e], ax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x630]
push eax
push dword [ebp - 0x628]
mov dword [ebp - 0x634], edi
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
push dword [ebp - 0x628]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp esi, edi
jl 0x7de1594b
xor edi, edi
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.7dd71442
leave
ret 8
Function at 0x7de18974
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 0x7de189cc
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 0x7de189dd
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 0x7de18a24
imul esi, esi, 0x11c
add esi, 4
cmp esi, dword [ebp - 4]
jbe 0x7de18a21
mov dword [ebp - 4], esi
push esi
push 0
call edi
mov ebx, eax
test ebx, ebx
jne 0x7de18990
push 0x5aa
jmp 0x7de18a2e
xor eax, eax
test esi, esi
jbe 0x7de189f8
lea ecx, [ebx + 0xc]
mov edx, dword [ecx]
cmp edx, dword [ebp + 8]
je 0x7de18a03
inc eax
add ecx, 0x11c
cmp eax, esi
jb 0x7de189e6
push ebx
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
push 6
jmp 0x7de18a2e
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 0x7de18a36
push eax
jmp 0x7de18a27
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 0x7de18a42
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push 0x1c
push 0x7de18b70
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 0x7de18a6f
push 0x5aa
jmp 0x7de18b60
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 0x7de18b2e
mov eax, dword [ebp + 0xc]
shr eax, 2
xor ecx, ecx
cmp ecx, edi
jae 0x7de18aed
cmp ecx, eax
je 0x7de18aed
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 0x7de18a92
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 0x7de18b68
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 0x7de18b56
imul edi, edi, 0x11c
add edi, 4
cmp edi, ebx
ja 0x7de18b4f
push eax
jmp 0x7de18b59
mov ebx, edi
jmp 0x7de18a53
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 0x7de18d62
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 0x7de18d8c
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 0x7de18ef9
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 0x7de18dc8
push ebx
push 0x148
lea eax, [ebp - 0x1a4]
push eax
push 2
call esi
cmp eax, ebx
jl 0x7de18dc8
push ebx
push 0x24
lea eax, [ebp - 0x5c]
push eax
push 0x15
call esi
cmp eax, ebx
jge 0x7de18ddd
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 0x7de18ef7
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 0x7de18e30
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 0x7de18e43
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
cmp dword [ebp - 0xc], 0xc0000004
jne 0x7de18ee4
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jbe 0x7de18e28
mov dword [ebp + 0xc], eax
jmp 0x7de18e2b
add dword [ebp + 0xc], edi
push dword [ebp + 0xc]
push 0
call ebx
mov dword [ebp - 8], eax
test eax, eax
jne 0x7de18df0
push 0xc000009a
jmp 0x7de18ee7
and dword [ebp + 0xc], 0
mov eax, dword [ebp - 8]
xor esi, esi
xor edi, edi
mov ecx, 0xb8
jmp 0x7de18e6e
mov edx, dword [eax]
inc dword [ebp + 0xc]
add esi, dword [eax + 4]
add edi, dword [eax + 0x4c]
test edx, edx
je 0x7de18e73
cmp edx, dword [ebp - 4]
ja 0x7de18e73
sub dword [ebp - 4], edx
add eax, dword [eax]
cmp dword [ebp - 4], ecx
ja 0x7de18e55
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 0x7de18ef6
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 0x7de18f02
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 0x7de18f57
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 0x7de18f69
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
cmp dword [ebp - 0xc], 0xc0000004
jne 0x7de18fd2
cmp dword [ebp - 4], ebx
jbe 0x7de18f54
mov ebx, dword [ebp - 4]
jmp 0x7de18f56
add ebx, esi
push ebx
push 0
call edi
mov dword [ebp - 8], eax
test eax, eax
jne 0x7de18f1d
push 0xc000009a
jmp 0x7de18fd5
mov esi, dword [ebp - 8]
jmp 0x7de18fbe
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 0x7de18fae
cmp eax, dword [esi + 0x14]
jbe 0x7de18fae
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 0x7de18fc4
cmp eax, dword [ebp - 4]
ja 0x7de18fc4
sub dword [ebp - 4], eax
add esi, dword [esi]
cmp dword [ebp - 4], 0x18
ja 0x7de18f6e
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
xor eax, eax
inc eax
jmp 0x7de18fe4
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 0x7de19617
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 0x7de19640
mov dword [ecx], edi
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
je 0x7de19649
mov dword [ecx], edi
mov ecx, dword [ebp + 0x20]
cmp ecx, edi
je 0x7de19652
mov dword [ecx], edi
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
je 0x7de1965b
mov dword [ecx], edi
mov ecx, dword [ebp + 0x1c]
cmp ecx, edi
je 0x7de19664
mov dword [ecx], edi
mov esi, dword [sym.imp.ntdll.dll_NtQueryKey]
cmp dword [ebp + 8], edi
je 0x7de19693
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 0x7de196fa
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 0x7de196c1
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 0x7de196fa
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 0x7de196c1
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
je 0x7de196cd
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
je 0x7de196d9
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x20]
cmp ecx, edi
je 0x7de196e2
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
je 0x7de196ee
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x1c]
cmp ecx, edi
je 0x7de196fa
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x7de19706
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 0x7de19896
mov eax, dword [ebp + 0x14]
cmp dword [eax], edi
je 0x7de19896
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, edi
je 0x7de19746
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 0x7de19785
mov eax, 0xc0000017
jmp 0x7de19899
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.7dd8c456
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x7de1987b
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 0x7de197d5
mov dword [ebp - 4], 0xc0000017
jmp 0x7de1987b
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 0x7de19849
push dword [ebp + 0x18]
push eax
push 0x2000000
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtOpenKeyTransacted]
jmp 0x7de19858
push eax
push 0x2000000
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, esi
mov dword [ebp - 4], eax
jge 0x7de19879
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 0x7de19896
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