joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e358
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x12000004
push ebx
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.010113c1
cmp eax, esi
mov dword [ebp - 0xc], eax
jl 0x100e442
push esi
lea eax, [ebp - 8]
push eax
push sym.imp.KERNEL32.dll_GetModuleFileNameW
push 0x800
call fcn.0101222d
cmp eax, esi
mov dword [ebp - 0xc], eax
jl 0x100e442
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x100e3b3
mov ecx, dword [ebp - 4]
sub eax, edx
sar eax, 1
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [ebp - 4]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, esi
jne 0x100e3f1
mov dword [ebp - 0xc], 0xc000009a
jmp 0x100e429
push dword [ebp - 4]
push esi
push edi
call fcn.01012644
push dword [ebp - 8]
push dword [ebp - 0x10]
push 0x10018fc
push dword [ebp - 4]
push edi
call fcn.0100e0ff
add esp, 0x20
cmp eax, esi
mov dword [ebp - 0xc], eax
jl 0x100e429
push dword [ebp - 4]
push edi
push ebx
push dword [ebp + 8]
call fcn.0101b2be
mov dword [ebp - 0xc], eax
cmp edi, esi
je 0x100e441
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
cmp dword [ebp - 8], esi
je 0x100e45d
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x10], esi
je 0x100e478
push dword [ebp - 0x10]
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 - 0xc]
pop esi
pop ebx
leave
ret 4
Function at 0x100f58f
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
inc eax
mov byte [ebp - 1], 0
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
cmp dword [ebp + 8], eax
jbe 0x100f6cc
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + eax*4]
movzx ecx, word [ecx]
cmp cx, 0x2f
je 0x100f5da
cmp cx, 0x2d
je 0x100f5da
inc eax
mov byte [ebp - 1], 1
cmp eax, dword [ebp + 8]
jb 0x100f5b6
jmp 0x100f6e3
cmp eax, dword [ebp + 8]
jae 0x100f6dd
lea ecx, [esi + eax*4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ecx]
movzx ecx, word [ecx]
cmp cx, 0x2f
je 0x100f5fe
cmp cx, 0x2d
jne 0x100f6bd
and dword [ebp + 0x10], 0
inc eax
mov dword [ebp - 0x10], eax
mov edi, eax
jmp 0x100f620
mov eax, dword [esi + edi*4]
movzx eax, word [eax]
cmp ax, 0x2f
je 0x100f625
cmp ax, 0x2d
je 0x100f625
inc dword [ebp + 0x10]
inc edi
cmp edi, dword [ebp + 8]
jb 0x100f60a
mov ecx, dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [ecx*4 + 0x10]
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x100f6d4
mov eax, dword [ebp + 0x10]
lea eax, [eax*4 + 0x10]
push eax
push 0
push esi
call fcn.01012644
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add esp, 0xc
inc eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
test eax, eax
je 0x100f6a3
mov edi, dword [ebp - 0x10]
cmp edi, dword [ebp + 8]
jae 0x100f6a3
lea edx, [esi + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + edi*4]
movzx ecx, word [eax]
cmp cx, 0x2f
je 0x100f6a3
cmp cx, 0x2d
je 0x100f6a3
mov dword [edx], eax
add edx, 4
inc edi
cmp edi, dword [ebp + 8]
jb 0x100f683
mov eax, dword [ebx + 4]
cmp edi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], ebx
mov dword [eax], esi
mov dword [ebx + 4], esi
mov esi, dword [ebp + 0xc]
mov eax, edi
jmp 0x100f5dd
mov dword [ebp - 8], 0xc000000d
push ebx
call fcn.0100f4f8
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0xc
mov dword [ebp - 8], 0xc000009a
jmp 0x100f6c4
cmp byte [ebp - 1], 0
je 0x100f6ff
push 0x1001498
call fcn.0100f4b7
test al, al
jne 0x100f6ff
push 0x100148c
call fcn.0100f4b7
test al, al
je 0x100f6bd
cmp dword [ebp + 8], 1
jbe 0x100f6ca
mov eax, dword [esi + 4]
movzx eax, word [eax]
cmp ax, 0x2f
je 0x100f6ca
cmp ax, 0x2d
je 0x100f6ca
push 0x1001498
call fcn.0100f4b7
test al, al
jne 0x100f733
push 0x100148c
call fcn.0100f4b7
test al, al
je 0x100f6ca
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x10
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
test ecx, ecx
je 0x100f6d4
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
and dword [ecx + 0xc], 0
mov dword [ecx + 8], eax
mov eax, dword [ebx]
mov dword [ecx], eax
mov dword [ecx + 4], ebx
mov dword [eax + 4], ecx
mov dword [ebx], ecx
jmp 0x100f6ca
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 fcn.01012650
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 fcn.01012650
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push edi
push dword [ebp + 0x10]
lea eax, [eax + esi + 0xc]
push eax
call fcn.01012650
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 fcn.01012614
add esp, 0xc
test eax, eax
jne 0x1019124
lea eax, [edi + ebx*2]
push 0x5c
push eax
call fcn.01012638
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 fcn.01012650
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 fcn.01012644
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 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 fcn.01012650
mov eax, dword [ebp - 8]
push edi
add esi, eax
push ebx
push esi
call fcn.01012650
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 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 fcn.01012650
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 fcn.01012650
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 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 fcn.01012644
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
Function at 0x101dc72
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 0x101dd98
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x101dd98
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 0x101dcb9
push 0x5c
pop eax
mov word [esi], ax
test ebx, ebx
je 0x101dd80
xor eax, eax
mov word [ebx], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call fcn.0101db0a
test eax, eax
jl 0x101dd79
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 0x101dcea
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 0x101dd00
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 0x101dd91
push esi
push dword [ebp - 8]
push eax
call fcn.01012650
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
add eax, esi
push ebx
push eax
call fcn.01012650
mov eax, dword [ebp - 0xc]
add esp, 0x18
cmp eax, dword [ebp + 8]
je 0x101dd6c
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 0x101dca1
cmp byte [ebp - 1], 0
je 0x101dd8a
xor esi, esi
jmp 0x101dd9d
mov esi, 0xc0000001
jmp 0x101dd9d
mov esi, 0xc0000017
jmp 0x101dd9d
mov esi, 0xc000000d
cmp dword [ebp - 8], 0
je 0x101ddba
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