joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101930c
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
push 0x20
push 0x101f5d8
call fcn.0100b984
xor esi, esi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0x1c]
mov dword [eax], esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp + 0x10], esi
je 0x101935e
lea eax, [ebp - 0x24]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.01019166
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x1019419
jmp 0x1019364
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [ebp - 0x1c], eax
cmp eax, 0xc0000023
jne 0x1019419
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, esi
jne 0x10193ac
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x1019419
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
push edi
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x1019419
mov eax, dword [edi + 4]
cmp eax, dword [ebp + 0x14]
je 0x10193db
mov dword [ebp - 0x1c], 0xc0000024
jmp 0x1019419
sub dword [ebp - 0x20], 0xc
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, esi
je 0x10193a3
push dword [ebp - 0x20]
lea ecx, [edi + 0xc]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 8]
je 0x101942c
cmp eax, esi
je 0x101942c
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp edi, esi
je 0x1019444
mov eax, dword fs:[0x18]
push edi
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x1c], 0xc000017d
jne 0x1019478
mov dword [ebp - 4], esi
int3
mov eax, dword [ebp - 0x1c]
call fcn.0100b9c9
ret 0x18
Function at 0x10197d8
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push ebx
mov dword [ebp - 4], esi
call fcn.0101882c
mov edi, dword [ebp - 4]
test eax, eax
jl 0x1019834
cmp dword [ebp - 8], esi
jbe 0x1019834
lea eax, [ebp + 8]
push eax
push 0xf003f
push dword [edi + esi*4]
push ebx
call fcn.01019166
test eax, eax
jl 0x101982e
push dword [ebp + 8]
call fcn.010197d8
test eax, eax
jge 0x101982e
push dword [ebp + 8]
call fcn.01018fa8
inc esi
cmp esi, dword [ebp - 8]
jb 0x1019804
test edi, edi
je 0x101984d
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]
push ebx
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov esi, eax
test esi, esi
jl 0x1019861
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1019e9e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x1021480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x150]
xor esi, esi
push eax
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], esi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x150]
mov dword [ebp - 0x140], eax
xor eax, eax
lea edi, [ebp - 0x130]
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
push 3
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x148]
push eax
push 0x80000000
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x148], 0x18
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x13c], 0x40
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x134], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
cmp eax, esi
jl 0x101a08c
push esi
push esi
push esi
push 0x1f0003
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.ntdll.dll_NtCreateEvent]
cmp eax, esi
jl 0x101a08c
mov ebx, dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
push esi
push esi
push esi
xor eax, eax
push esi
lea edi, [ebp - 0x130]
stosd dword es:[edi], eax
push 0x560028
stosd dword es:[edi], eax
lea eax, [ebp - 0x130]
push eax
push esi
push esi
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call ebx
cmp eax, 0x103
jne 0x1019fa8
push esi
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, esi
jl 0x1019fb0
mov eax, dword [ebp - 0x130]
cmp eax, esi
jge 0x101a08c
mov edi, 0x11c
push edi
lea eax, [ebp - 0x120]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], edi
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
jl 0x101a085
cmp dword [ebp - 0x11c], 5
jne 0x101a085
cmp dword [ebp - 0x118], esi
jne 0x101a085
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ntdll.dll_NtResetEvent]
xor eax, eax
push 0x20
lea edi, [ebp - 0x130]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x170]
push eax
push esi
push esi
push 0x74004
lea eax, [ebp - 0x130]
push eax
push esi
push esi
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call ebx
cmp eax, 0x103
jne 0x101a057
push esi
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, esi
jl 0x101a08c
mov eax, dword [ebp - 0x130]
cmp eax, esi
jl 0x101a08c
cmp dword [ebp - 0x160], 0x1d
jne 0x101a081
cmp dword [ebp - 0x170], 0x3a00
jne 0x101a081
cmp dword [ebp - 0x16c], esi
jne 0x101a081
cmp dword [ebp - 0x15c], 1
je 0x101a085
xor eax, eax
jmp 0x101a08a
mov eax, 0xc00000bb
cmp eax, esi
mov edi, dword [sym.imp.ntdll.dll_NtClose]
setge bl
cmp dword [ebp - 0x124], esi
je 0x101a0a5
push dword [ebp - 0x124]
call edi
cmp dword [ebp - 0x128], esi
je 0x101a0b5
push dword [ebp - 0x128]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0100b7c7
leave
ret 4
Function at 0x101a12e
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call edi
mov ebx, dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call ebx
cmp eax, esi
jl 0x101a289
push esi
lea eax, [ebp - 0x10]
push eax
call edi
xor edi, edi
mov dword [ebp - 8], esi
jmp 0x101a1d5
cmp dword [ebp - 0xc], esi
je 0x101a1b0
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 8]
lea edi, [eax + 2]
mov word [ebp - 0xe], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x101a24e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov dword [ebp + 8], eax
cmp eax, 0xc0000023
je 0x101a195
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
jl 0x101a26b
movzx eax, word [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shr eax, 1
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov word [ebp - 0xe], di
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jge 0x101a1d5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp + 8], esi
jmp 0x101a255
mov dword [ebp + 8], 0xc000009a
cmp dword [ebp - 4], esi
je 0x101a266
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jge 0x101a286
cmp dword [ebp - 0xc], esi
je 0x101a286
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101a296
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
cmp ecx, esi
je 0x101a3bc
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x101a3bc
mov dword [eax], esi
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], 0
push 0x5c
push dword [ebp - 0xc]
call sub.msvcrt.dll_wcsrchr
pop ecx
pop ecx
mov ebx, eax
test esi, esi
je 0x101a2dd
push 0x5c
pop eax
mov word [esi], ax
test ebx, ebx
je 0x101a3a4
xor eax, eax
mov word [ebx], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call fcn.0101a12e
test eax, eax
jl 0x101a39d
push 0x5c
pop eax
mov word [ebx], ax
mov eax, dword [ebp - 8]
mov byte [ebp - 1], 1
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x101a30e
sub eax, ecx
sar eax, 1
lea esi, [eax + eax]
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x101a324
sub eax, ecx
sar eax, 1
lea edi, [eax + eax + 2]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [edi + esi]
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
je 0x101a3b5
push esi
push dword [ebp - 8]
push eax
call sub.msvcrt.dll_memcpy
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
add eax, esi
push ebx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0x18
cmp eax, dword [ebp + 8]
je 0x101a390
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [edi]
lea ebx, [esi + eax]
mov dword [ebp - 0xc], eax
xor eax, eax
mov word [ebx], ax
mov esi, ebx
jmp 0x101a2c5
cmp byte [ebp - 1], 0
je 0x101a3ae
xor esi, esi
jmp 0x101a3c1
mov esi, 0xc0000001
jmp 0x101a3c1
mov esi, 0xc0000017
jmp 0x101a3c1
mov esi, 0xc000000d
cmp dword [ebp - 8], 0
je 0x101a3de
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]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x101aac8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
call fcn.0101a9dc
dec eax
je 0x101aaf7
dec eax
je 0x101aaf0
mov dword [ebp - 8], 0xc00000bb
jmp 0x101abb7
call fcn.0101adf2
jmp 0x101aafc
call fcn.0101adb8
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 4]
push eax
call fcn.0101a952
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x101ab80
mov eax, dword [ebp - 4]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101ab16
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x101ab2c
sub eax, ecx
sar eax, 1
add esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [esi + esi + 2]
push ecx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
jne 0x101ab63
mov dword [ebp - 8], 0xc0000017
jmp 0x101ab80
push dword [ebp - 4]
inc esi
push esi
push edi
call sub.msvcrt.dll_wcscpy_s
push dword [ebp - 0xc]
push esi
push edi
call sub.msvcrt.dll_wcscat_s
mov eax, dword [ebp + 8]
add esp, 0x18
mov dword [eax], edi
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 4], ebx
je 0x101ab9d
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
cmp dword [ebp - 8], ebx
jge 0x101abb6
cmp edi, ebx
je 0x101abb6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call esi
pop esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 4

Function at 0x101acb4
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push edi
push 0x62
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x101ace4
cmp ebx, edi
jl 0x101ad58
mov ebx, 0xc0000001
jmp 0x101ad58
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x101ad07
mov ebx, 0xc000009a
jmp 0x101ad3f
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0x62
call esi
mov ebx, eax
test ebx, ebx
jl 0x101ad3f
movzx eax, word [edi]
mov ecx, dword [ebp + 0x10]
add eax, 2
mov dword [ecx], eax
cmp eax, dword [ebp + 0xc]
jbe 0x101ad30
mov ebx, 0xc0000023
jmp 0x101ad3f
push eax
push dword [edi + 4]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
test edi, edi
je 0x101ad58
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]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x101b07a
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x1007be0
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.01017eb4
mov esi, eax
cmp esi, edi
jl 0x101b185
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x24000001
push dword [ebp - 8]
call fcn.010179a2
mov esi, eax
cmp esi, 0xc0000225
jne 0x101b0cb
mov dword [ebp + 8], edi
jmp 0x101b0d3
cmp esi, edi
jl 0x101b185
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
shr eax, 4
push ebx
mov dword [ebp - 0xc], edi
cmp eax, edi
jbe 0x101b108
mov ecx, dword [ebp + 0xc]
add ecx, 8
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp - 0x10]
push 4
pop ecx
mov edi, edx
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
je 0x101b12f
add edx, 0x10
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
jb 0x101b0ed
xor edi, edi
mov eax, dword fs:[0x18]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x30]
add ecx, 0x10
push ecx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
cmp ebx, edi
jne 0x101b135
mov esi, 0xc0000017
jmp 0x101b16c
xor esi, esi
xor edi, edi
jmp 0x101b184
mov esi, dword [ebp + 0xc]
add esi, 8
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp + 8]
lea eax, [ebx + 0x10]
push dword [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, 0x10
push eax
push ebx
push 0x24000001
push dword [ebp - 8]
call fcn.0101795e
mov esi, eax
xor edi, edi
cmp ebx, edi
je 0x101b184
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop ebx
cmp dword [ebp - 4], edi
je 0x101b1a0
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]
cmp dword [ebp - 8], edi
je 0x101b1ad
push dword [ebp - 8]
call fcn.01017a58
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x101c2b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi]
and al, 0x7f
cmp al, 0x7f
jne 0x101c2d3
mov dword [ebp + 8], 0xc000003a
jmp 0x101c422
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
add eax, esi
jmp 0x101c2fd
cmp cl, 4
jne 0x101c2ee
cmp byte [eax + 1], cl
je 0x101c309
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
add eax, ecx
mov cl, byte [eax]
mov dl, cl
and dl, 0x7f
cmp dl, 0x7f
jne 0x101c2e4
push ebx
sub eax, esi
push edi
add eax, 4
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ebx, [edi + 0xc]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x101c33c
mov dword [ebp + 8], 0xc000009a
jmp 0x101c407
add edi, 0xfffffffc
push edi
push dword [ebp + 8]
lea eax, [esi + 0xc]
push eax
mov dword [esi], 1
mov dword [esi + 4], ebx
mov dword [esi + 8], 4
call sub.msvcrt.dll_memcpy
lea eax, [edi + esi + 0xc]
add esp, 0xc
mov byte [eax], 0x7f
mov byte [eax + 1], 0xff
mov byte [eax + 2], 4
mov byte [eax + 3], 0
lea eax, [ebp - 4]
push eax
push 3
push esi
call fcn.0101b7bc
mov dword [ebp + 8], eax
test eax, eax
jl 0x101c3ea
mov eax, dword [ebp - 4]
mov edi, dword [eax + 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
sub edi, 0xc
lea ecx, [edi + 0x14]
push ecx
push 0
push dword [eax + 0x18]
mov dword [ebp - 8], ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x101c3b8
mov dword [ebp + 8], 0xc000009a
jmp 0x101c3ea
push dword [ebp - 8]
push 0
push ebx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 4]
add eax, 0xc
push edi
push eax
lea eax, [ebx + 0x14]
push eax
mov dword [ebx], 2
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov dword [eax], ecx
cmp dword [ebp - 4], 0
je 0x101c407
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop ebx
test esi, esi
je 0x101c422
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]
mov eax, dword [ebp + 8]
pop esi
leave
ret 0xc
Function at 0x101d5ca
Capabilities:
Get process heap flags
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1021480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], esi
call fcn.0101e3a4
test al, al
jne 0x101d5f5
xor eax, eax
jmp 0x101d740
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x101ed54
push 0x101f050
push esi
call fcn.0101dd00
mov ebx, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test eax, eax
jl 0x101d725
cmp dword [ebp - 0x40], 4
jb 0x101d725
push dword [ebp - 0x3c]
shr dword [ebp - 0x40], 1
call sub.msvcrt.dll__wcslwr
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x101f01a
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call sub.msvcrt.dll__snwscanf_s
add esp, 0x1c
cmp eax, 3
jne 0x101d725
cmp dword [ebp - 0x54], esi
jne 0x101d725
cmp dword [ebp - 0x4c], esi
jne 0x101d725
cmp dword [ebp - 0x48], esi
jne 0x101d725
lea eax, [ebp - 0x50]
push eax
push 0x101efd8
call fcn.0101a12e
test eax, eax
jl 0x101d725
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [ebp - 0x3c]
push esi
push dword [eax + 0x18]
call ebx
mov edx, dword [ebp - 0x50]
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xa
stosd dword es:[edi], eax
pop ecx
xor eax, eax
push 0x28
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.0101e2b0
cmp eax, esi
pop edi
jge 0x101d6e0
cmp eax, 0xc000003a
jmp 0x101d6e4
cmp dword [ebp - 0x1c], 7
jne 0x101d725
push 0x101ef96
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
push 0x20001
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x6c], 0x18
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp dword [ebp - 0x3c], esi
je 0x101d73c
push dword [ebp - 0x3c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call ebx
mov eax, dword [ebp - 0x44]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100b7c7
leave
ret
Function at 0x101d77e
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
push 0x101efd8
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x20001
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_NtOpenSymbolicLinkObject]
mov ebx, eax
cmp ebx, edi
jge 0x101d7fa
cmp ebx, 0xc0000017
je 0x101d88e
cmp ebx, 0xc000009a
je 0x101d88e
mov ebx, 0xc0000452
jmp 0x101d88e
push dword [ebp - 4]
call fcn.0101d752
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], edi
call esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x101d837
cmp ebx, edi
jl 0x101d88e
mov ebx, 0xc0000001
jmp 0x101d88e
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
add ecx, 2
push ecx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x101d85f
mov ebx, 0xc000009a
jmp 0x101d88e
mov dword [ebp - 0x10], eax
mov ax, word [ebp - 0xc]
mov word [ebp - 0x12], ax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, edi
jl 0x101d88e
movzx ecx, word [ebp - 0x14]
mov eax, dword [ebp - 8]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 4], edi
je 0x101d89c
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp ebx, edi
jge 0x101d8bb
cmp dword [ebp - 8], edi
je 0x101d8bb
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]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4