joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10154e2
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 0x1015511
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01012698
add esp, 0x14
jmp 0x10155ef
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x10155ef
test al, 0x40
jne 0x10155ef
test al, 2
je 0x1015533
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x10155ef
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x10154f3
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 0x10155df
cmp eax, 0xffffffff
je 0x10155df
test byte [esi + 0xc], 0x82
jne 0x10155b4
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x101559f
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x101559f
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 0x10155a4
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x10155b4
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x10155d2
mov eax, dword [esi + 0xc]
test al, 8
je 0x10155d2
test eax, 0x400
jne 0x10155d2
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x10155f2
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1016e13
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 0x1016e42
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01012698
add esp, 0x14
jmp 0x1016f2c
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x1016f2c
test al, 0x40
jne 0x1016f2c
test al, 2
je 0x1016e64
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x1016f2c
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x1016e24
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 0x1016f1c
cmp eax, 1
je 0x1016f1c
cmp eax, 0xffffffff
je 0x1016f1c
test byte [esi + 0xc], 0x82
jne 0x1016eee
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x1016ed9
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x1016ed9
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 0x1016ede
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x1016eee
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x1016f0c
mov eax, dword [esi + 0xc]
test al, 8
je 0x1016f0c
test eax, 0x400
jne 0x1016f0c
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 0x1016f31
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 0x1017b30
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 0x1017bc3
movzx eax, word [ebx]
cmp ax, 2
jb 0x1017bc3
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 0x1017b7a
mov ebx, 0xc0000017
jmp 0x1017bc8
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.0101d9da
test eax, eax
mov eax, dword [ebp - 4]
jge 0x1017ba3
mov eax, edi
push eax
call fcn.0101e592
mov ebx, eax
test ebx, ebx
jl 0x1017bc8
call fcn.010179a8
mov ebx, eax
test ebx, ebx
jge 0x1017bc8
push 0
call fcn.0101e592
jmp 0x1017bc8
mov ebx, 0xc000000d
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
je 0x1017be3
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 0x1017bfc
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 0x1017e02
Capabilities:
Delete registry key

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

Function at 0x1018922
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.01019184
mov esi, eax
test esi, esi
jl 0x10189ce
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x101894e
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 0x101898e
mov esi, 0xc000009a
jmp 0x10189cc
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 0x10189eb
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 0x1018e4e
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ecx, 0x1023868
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 0x1018e68
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 0x1018ff4
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 0x1018ff4
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 0x1018edb
mov dword [ebp - 8], 0xc000009a
jmp 0x1018fb0
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 0x1018ef4
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 0x1018f0c
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 0x1018ecf
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 0x1018f5a
push dword [ebp - 0xc]
sub eax, ecx
sar eax, 1
inc eax
push eax
lea eax, [esi + 0x18]
push eax
call fcn.0101296c
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 0x1018f84
push dword [ebp - 4]
sub eax, ecx
sar eax, 1
inc eax
push eax
add ebx, 0x14
push ebx
call fcn.0101296c
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 0x1018fcf
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 0x1018fea
test esi, esi
je 0x1018fea
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 0x1018fea
Function at 0x101995c
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.0101a13e
mov esi, eax
cmp esi, ebx
jl 0x1019b59
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 0x1019b59
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x6a
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x10199ea
mov eax, 0xc0000017
jmp 0x1019b91
push edi
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0xa4], ebx
jbe 0x1019b3d
Function at 0x101a13e
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 0x101a169
lea ecx, [eax + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ecx
jmp 0x101a177
cmp ecx, 6
jne 0x101a18c
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 0x101a273
cmp ecx, 6
je 0x101a196
mov esi, 0xc000000d
jmp 0x101a2c6
push 0x38
lea ecx, [eax + 0x38]
mov eax, dword [eax + 8]
pop edx
mov dword [ebp - 0x18], edx
cmp eax, 0x5c
jb 0x101a18c
mov ebx, dword [ecx + 8]
add ebx, edx
cmp eax, ebx
jb 0x101a18c
cmp dword [ecx], esi
jne 0x101a18c
cmp dword [ecx + 0x10], 5
jne 0x101a18c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push ecx
call fcn.01019c82
mov esi, eax
test esi, esi
jl 0x101a2a9
cmp dword [ebp - 8], 0x2e
jb 0x101a2cf
mov ebx, dword [ebp - 4]
cmp dword [ebx], 3
jne 0x101a2cf
mov eax, dword [ebx + 0x14]
add eax, ebx
cmp dword [eax], edi
jne 0x101a2cf
add eax, 0x14
mov dword [ebp - 0x14], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
test cx, cx
jne 0x101a200
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 0x101a219
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 0x101a251
mov esi, 0xc0000017
jmp 0x101a2a9
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 0x101a27f
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x101a28b
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x101a297
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x101a2a0
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x101a2a9
mov dword [eax], ebx
cmp dword [ebp - 4], 0
je 0x101a2c6
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 0x101a2a9
Function at 0x101a6ac
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 0x10], 1
je 0x101a6c9
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.010187d0
pop ebp
ret 0x14
test byte [ebp + 0x10], 2
je 0x101a6df
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.010188a8
jmp 0x101a6c5
pop ebp
jmp fcn.01019c82
Function at 0x101bf16
Capabilities:
Access peb ldr_data
Query or enumerate registry key

Disassembly:
push 0x14
push 0x1023e50
call fcn.01012f44
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 0x101bf59
cmp eax, ebx
jl 0x101bfd2
mov dword [ebp - 0x1c], 0xc000000d
jmp 0x101bfd2
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 0x101bf7e
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x101bfd2
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 0x101bfd2
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 0x101bf75
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 0x101bfea
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 0x101c025
mov dword [ebp - 4], ebx
int3
mov eax, dword [ebp - 0x1c]
call fcn.01012f89
ret 8
Function at 0x101c5c0
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
push 0x20
push 0x1023eb0
call fcn.01012f44
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 0x101c612
lea eax, [ebp - 0x24]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0101c41a
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x101c6cd
jmp 0x101c618
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 0x101c6cd
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 0x101c660
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x101c6cd
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 0x101c6cd
mov eax, dword [edi + 4]
cmp eax, dword [ebp + 0x14]
je 0x101c68f
mov dword [ebp - 0x1c], 0xc0000024
jmp 0x101c6cd
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 0x101c657
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 0x101c6e0
cmp eax, esi
je 0x101c6e0
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp edi, esi
je 0x101c6f8
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 0x101c72c
mov dword [ebp - 4], esi
int3
mov eax, dword [ebp - 0x1c]
call fcn.01012f89
ret 0x18
Function at 0x101cb26
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.0101bcc8
mov edi, dword [ebp - 4]
test eax, eax
jl 0x101cb82
cmp dword [ebp - 8], esi
jbe 0x101cb82
lea eax, [ebp + 8]
push eax
push 0xf003f
push dword [edi + esi*4]
push ebx
call fcn.0101c41a
test eax, eax
jl 0x101cb7c
push dword [ebp + 8]
call fcn.0101cb26
test eax, eax
jge 0x101cb7c
push dword [ebp + 8]
call fcn.0101c25c
inc esi
cmp esi, dword [ebp - 8]
jb 0x101cb52
test edi, edi
je 0x101cb9b
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 0x101cbaf
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x101cdc6
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.0101e388
dec eax
je 0x101cdf5
dec eax
je 0x101cdee
mov dword [ebp - 8], 0xc00000bb
jmp 0x101ceb5
call fcn.0101e630
jmp 0x101cdfa
call fcn.0101e5ee
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 4]
push eax
call fcn.0101cc26
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x101ce7e
mov eax, dword [ebp - 4]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101ce14
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 0x101ce2a
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 0x101ce61
mov dword [ebp - 8], 0xc0000017
jmp 0x101ce7e
push dword [ebp - 4]
inc esi
push esi
push edi
call fcn.0101296c
push dword [ebp - 0xc]
push esi
push edi
call fcn.010128ea
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 0x101ce9b
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 0x101ceb4
cmp edi, ebx
je 0x101ceb4
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 0x101d15a
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 0x101d19b
cmp eax, ebx
jne 0x101d1cf
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 0x101d1bc
cmp eax, ebx
jne 0x101d1cf
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.010124d0
leave
ret 8
Function at 0x101d74a
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 0x101d938
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 0x101d938
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 0x101d854
push esi
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, esi
jl 0x101d85c
mov eax, dword [ebp - 0x130]
cmp eax, esi
jge 0x101d938
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 0x101d931
cmp dword [ebp - 0x11c], 5
jne 0x101d931
cmp dword [ebp - 0x118], esi
jne 0x101d931
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 0x101d903
push esi
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, esi
jl 0x101d938
mov eax, dword [ebp - 0x130]
cmp eax, esi
jl 0x101d938
cmp dword [ebp - 0x160], 0x1d
jne 0x101d92d
cmp dword [ebp - 0x170], 0x3a00
jne 0x101d92d
cmp dword [ebp - 0x16c], esi
jne 0x101d92d
cmp dword [ebp - 0x15c], 1
je 0x101d931
xor eax, eax
jmp 0x101d936
mov eax, 0xc00000bb
cmp eax, esi
mov edi, dword [sym.imp.ntdll.dll_NtClose]
setge bl
cmp dword [ebp - 0x124], esi
je 0x101d951
push dword [ebp - 0x124]
call edi
cmp dword [ebp - 0x128], esi
je 0x101d961
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.010124d0
leave
ret 4