joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016f43
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x1016f72
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.010127c8
add esp, 0x14
jmp 0x101705c
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x101705c
test al, 0x40
jne 0x101705c
test al, 2
je 0x1016f94
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x101705c
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x1016f54
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x101704c
cmp eax, 1
je 0x101704c
cmp eax, 0xffffffff
je 0x101704c
test byte [esi + 0xc], 0x82
jne 0x101701e
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x1017009
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x1017009
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x101700e
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x101701e
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x101703c
mov eax, dword [esi + 0xc]
test al, 8
je 0x101703c
test eax, 0x400
jne 0x101703c
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
jmp 0x1017061
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
mov eax, 0xffff
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1017c60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x1017cf3
movzx eax, word [ebx]
cmp ax, 2
jb 0x1017cf3
mov ecx, dword fs:[0x18]
movzx eax, ax
mov esi, eax
add eax, 2
push eax
mov eax, dword [ecx + 0x30]
push edi
push dword [eax + 0x18]
shr esi, 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x1017caa
mov ebx, 0xc0000017
jmp 0x1017cf8
xor eax, eax
mov word [edi + esi*2], ax
movzx eax, word [ebx]
push eax
push dword [ebx + 4]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
call fcn.0101db0a
test eax, eax
mov eax, dword [ebp - 4]
jge 0x1017cd3
mov eax, edi
push eax
call fcn.0101e6c2
mov ebx, eax
test ebx, ebx
jl 0x1017cf8
call fcn.01017ad8
mov ebx, eax
test ebx, ebx
jge 0x1017cf8
push 0
call fcn.0101e6c2
jmp 0x1017cf8
mov ebx, 0xc000000d
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
je 0x1017d13
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call esi
cmp dword [ebp - 4], 0
je 0x1017d2c
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1017f32
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0101cc56

Function at 0x1018a52
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010192b4
mov esi, eax
test esi, esi
jl 0x1018afe
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1018a7e
sub eax, ecx
push ebx
sar eax, 1
push edi
lea edi, [eax + eax + 2]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
lea ebx, [eax + edi + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x1018abe
mov esi, 0xc000009a
jmp 0x1018afc
mov dword [esi], 1
mov dword [esi + 8], 5
mov dword [esi + 4], ebx
mov eax, dword [ebp - 4]
push dword [eax + 8]
push eax
lea eax, [esi + 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push edi
push dword [ebp + 0x10]
lea eax, [eax + esi + 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [eax], esi
xor esi, esi
pop edi
pop ebx
cmp dword [ebp - 4], 0
je 0x1018b1b
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]
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x1018f7e
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ecx, 0x10239bc
xor esi, esi
mov eax, ecx
push edi
mov dword [ebp - 8], esi
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
cmp di, si
jne 0x1018f98
mov edi, dword [ebp + 8]
sub eax, edx
sar eax, 1
mov ebx, eax
push ebx
push ecx
push edi
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x1019124
lea eax, [edi + ebx*2]
push 0x5c
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1019124
mov ecx, dword fs:[0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
sub eax, edi
sar eax, 1
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
mov eax, dword [ecx + 0x30]
push 0
push dword [eax + 0x18]
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x101900b
mov dword [ebp - 8], 0xc000009a
jmp 0x10190e0
push edi
push dword [ebp + 8]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax], cx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1019024
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 0x16]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x101903c
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 0x2e]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add ecx, edi
push ecx
push 0
push dword [eax + 0x18]
mov dword [ebp + 8], ecx
call ebx
mov esi, eax
test esi, esi
je 0x1018fff
push dword [ebp + 8]
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea ebx, [edi + esi]
mov dword [esi], 3
mov dword [esi + 0x14], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x101908a
push dword [ebp - 0xc]
sub eax, ecx
sar eax, 1
inc eax
push eax
lea eax, [esi + 0x18]
push eax
call fcn.01012a9c
mov eax, dword [ebp - 4]
add esp, 0xc
push 2
pop edx
mov dword [ebx], edx
lea ecx, [eax + 2]
mov di, word [eax]
add eax, edx
test di, di
jne 0x10190b4
push dword [ebp - 4]
sub eax, ecx
sar eax, 1
inc eax
push eax
add ebx, 0x14
push ebx
call fcn.01012a9c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [eax], ecx
cmp dword [ebp - 4], 0
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
je 0x10190ff
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
cmp dword [ebp - 8], 0
jge 0x101911a
test esi, esi
je 0x101911a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov dword [ebp - 8], 0xc000000d
jmp 0x101911a
Function at 0x1019a8c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x1025050]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x5c], ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x3c], ebx
call fcn.0101a26e
mov esi, eax
cmp esi, ebx
jl 0x1019c89
push ebx
push 0x18
lea eax, [ebp - 0xa4]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, ebx
jl 0x1019c89
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
xor byte [edx + 0x6a], ch
Function at 0x101a26e
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
push edi
push 2
xor esi, esi
pop edi
xor edx, edx
xor ebx, ebx
mov dword [ebp - 4], esi
cmp ecx, edi
jne 0x101a299
lea ecx, [eax + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ecx
jmp 0x101a2a7
cmp ecx, 6
jne 0x101a2bc
lea ecx, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ecx
add ecx, 0x10
mov dword [ebp + 8], ecx
mov ecx, dword [ecx]
cmp ecx, esi
je 0x101a3a3
cmp ecx, 6
je 0x101a2c6
mov esi, 0xc000000d
jmp 0x101a3f6
push 0x38
lea ecx, [eax + 0x38]
mov eax, dword [eax + 8]
pop edx
mov dword [ebp - 0x18], edx
cmp eax, 0x5c
jb 0x101a2bc
mov ebx, dword [ecx + 8]
add ebx, edx
cmp eax, ebx
jb 0x101a2bc
cmp dword [ecx], esi
jne 0x101a2bc
cmp dword [ecx + 0x10], 5
jne 0x101a2bc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push ecx
call fcn.01019db2
mov esi, eax
test esi, esi
jl 0x101a3d9
cmp dword [ebp - 8], 0x2e
jb 0x101a3ff
mov ebx, dword [ebp - 4]
cmp dword [ebx], 3
jne 0x101a3ff
mov eax, dword [ebx + 0x14]
add eax, ebx
cmp dword [eax], edi
jne 0x101a3ff
add eax, 0x14
mov dword [ebp - 0x14], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
test cx, cx
jne 0x101a330
sub eax, edx
sar eax, 1
add ebx, 0x18
lea esi, [eax + eax]
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, edi
test dx, dx
jne 0x101a349
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 dword [ebp - 8], eax
test eax, eax
jne 0x101a381
mov esi, 0xc0000017
jmp 0x101a3d9
push esi
push dword [ebp - 0x14]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 8]
push edi
add esi, eax
push ebx
push esi
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
add esp, 0x18
xor esi, esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101a3af
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x101a3bb
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x101a3c7
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x101a3d0
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x101a3d9
mov dword [eax], ebx
cmp dword [ebp - 4], 0
je 0x101a3f6
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
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
mov esi, 0xc000000d
jmp 0x101a3d9
Function at 0x101a7dc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 0x10], 1
je 0x101a7f9
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.01018900
pop ebp
ret 0x14
test byte [ebp + 0x10], 2
je 0x101a80f
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.010189d8
jmp 0x101a7f5
pop ebp
jmp fcn.01019db2
Function at 0x101c046
Capabilities:
Access peb ldr_data
Query or enumerate registry key

Disassembly:
push 0x14
push 0x1023fa8
call fcn.01013074
xor ebx, ebx
mov dword [ebp - 0x24], ebx
xor esi, esi
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_NtQueryKey]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xc0000023
je 0x101c089
cmp eax, ebx
jl 0x101c102
mov dword [ebp - 0x1c], 0xc000000d
jmp 0x101c102
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
jne 0x101c0ae
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x101c102
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jl 0x101c102
mov eax, dword fs:[0x18]
mov ecx, dword [esi + 0xc]
inc ecx
inc ecx
push ecx
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
je 0x101c0a5
push dword [esi + 0xc]
lea eax, [esi + 0x10]
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0xc]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
cmp esi, ebx
je 0x101c11a
mov eax, dword fs:[0x18]
push esi
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x1c], 0xc000017d
jne 0x101c155
mov dword [ebp - 4], ebx
int3
mov eax, dword [ebp - 0x1c]
call fcn.010130b9
ret 8
Function at 0x101c6f0
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
push 0x20
push 0x1024008
call fcn.01013074
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 0x101c742
lea eax, [ebp - 0x24]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0101c54a
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x101c7fd
jmp 0x101c748
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 0x101c7fd
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 0x101c790
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x101c7fd
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 0x101c7fd
mov eax, dword [edi + 4]
cmp eax, dword [ebp + 0x14]
je 0x101c7bf
mov dword [ebp - 0x1c], 0xc0000024
jmp 0x101c7fd
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 0x101c787
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 0x101c810
cmp eax, esi
je 0x101c810
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp edi, esi
je 0x101c828
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 0x101c85c
mov dword [ebp - 4], esi
int3
mov eax, dword [ebp - 0x1c]
call fcn.010130b9
ret 0x18
Function at 0x101cc56
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.0101bdf8
mov edi, dword [ebp - 4]
test eax, eax
jl 0x101ccb2
cmp dword [ebp - 8], esi
jbe 0x101ccb2
lea eax, [ebp + 8]
push eax
push 0xf003f
push dword [edi + esi*4]
push ebx
call fcn.0101c54a
test eax, eax
jl 0x101ccac
push dword [ebp + 8]
call fcn.0101cc56
test eax, eax
jge 0x101ccac
push dword [ebp + 8]
call fcn.0101c38c
inc esi
cmp esi, dword [ebp - 8]
jb 0x101cc82
test edi, edi
je 0x101cccb
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 0x101ccdf
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x101cef6
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.0101e4b8
dec eax
je 0x101cf25
dec eax
je 0x101cf1e
mov dword [ebp - 8], 0xc00000bb
jmp 0x101cfe5
call fcn.0101e760
jmp 0x101cf2a
call fcn.0101e71e
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 4]
push eax
call fcn.0101cd56
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x101cfae
mov eax, dword [ebp - 4]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101cf44
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 0x101cf5a
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 0x101cf91
mov dword [ebp - 8], 0xc0000017
jmp 0x101cfae
push dword [ebp - 4]
inc esi
push esi
push edi
call fcn.01012a9c
push dword [ebp - 0xc]
push esi
push edi
call fcn.01012a1a
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 0x101cfcb
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 0x101cfe4
cmp edi, ebx
je 0x101cfe4
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 0x101d28a
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1025050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 1
push 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x8c]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQueryVolumeInformationFile]
mov ebx, 0x80000005
test eax, eax
jge 0x101d2cb
cmp eax, ebx
jne 0x101d2ff
push 0x12
push 0x68
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x8c]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jge 0x101d2ec
cmp eax, ebx
jne 0x101d2ff
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x40]
xor eax, eax
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010125ff
leave
ret 8
Function at 0x101d87a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x1025050]
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 0x101da68
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 0x101da68
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 0x101d984
push esi
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, esi
jl 0x101d98c
mov eax, dword [ebp - 0x130]
cmp eax, esi
jge 0x101da68
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 0x101da61
cmp dword [ebp - 0x11c], 5
jne 0x101da61
cmp dword [ebp - 0x118], esi
jne 0x101da61
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 0x101da33
push esi
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, esi
jl 0x101da68
mov eax, dword [ebp - 0x130]
cmp eax, esi
jl 0x101da68
cmp dword [ebp - 0x160], 0x1d
jne 0x101da5d
cmp dword [ebp - 0x170], 0x3a00
jne 0x101da5d
cmp dword [ebp - 0x16c], esi
jne 0x101da5d
cmp dword [ebp - 0x15c], 1
je 0x101da61
xor eax, eax
jmp 0x101da66
mov eax, 0xc00000bb
cmp eax, esi
mov edi, dword [sym.imp.ntdll.dll_NtClose]
setge bl
cmp dword [ebp - 0x124], esi
je 0x101da81
push dword [ebp - 0x124]
call edi
cmp dword [ebp - 0x128], esi
je 0x101da91
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.010125ff
leave
ret 4