joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107488a
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 0x10748b5
lea ecx, [eax + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ecx
jmp 0x10748c3
cmp ecx, 6
jne 0x10748d8
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 0x10749bf
cmp ecx, 6
je 0x10748e2
mov esi, 0xc000000d
jmp 0x1074a12
push 0x38
lea ecx, [eax + 0x38]
mov eax, dword [eax + 8]
pop edx
mov dword [ebp - 0x18], edx
cmp eax, 0x5c
jb 0x10748d8
mov ebx, dword [ecx + 8]
add ebx, edx
cmp eax, ebx
jb 0x10748d8
cmp dword [ecx], esi
jne 0x10748d8
cmp dword [ecx + 0x10], 5
jne 0x10748d8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push ecx
call fcn.010743ce
mov esi, eax
test esi, esi
jl 0x10749f5
cmp dword [ebp - 8], 0x2e
jb 0x1074a1b
mov ebx, dword [ebp - 4]
cmp dword [ebx], 3
jne 0x1074a1b
mov eax, dword [ebx + 0x14]
add eax, ebx
cmp dword [eax], edi
jne 0x1074a1b
add eax, 0x14
mov dword [ebp - 0x14], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
test cx, cx
jne 0x107494c
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 0x1074965
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 0x107499d
mov esi, 0xc0000017
jmp 0x10749f5
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 0x10749cb
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10749d7
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10749e3
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10749ec
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10749f5
mov dword [eax], ebx
cmp dword [ebp - 4], 0
je 0x1074a12
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 0x10749f5
Function at 0x1074df8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 0x10], 1
je 0x1074e15
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.01072f1c
pop ebp
ret 0x14
test byte [ebp + 0x10], 2
je 0x1074e2b
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.01072ff4
jmp 0x1074e11
pop ebp
jmp fcn.010743ce

Function at 0x1075a3e
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x111027c]
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 0x1075a7f
cmp eax, ebx
jne 0x1075ab3
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 0x1075aa0
cmp eax, ebx
jne 0x1075ab3
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.0106f798
leave
ret 8
Function at 0x107602e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x111027c]
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 0x107621c
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 0x107621c
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 0x1076138
push esi
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, esi
jl 0x1076140
mov eax, dword [ebp - 0x130]
cmp eax, esi
jge 0x107621c
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 0x1076215
cmp dword [ebp - 0x11c], 5
jne 0x1076215
cmp dword [ebp - 0x118], esi
jne 0x1076215
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 0x10761e7
push esi
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, esi
jl 0x107621c
mov eax, dword [ebp - 0x130]
cmp eax, esi
jl 0x107621c
cmp dword [ebp - 0x160], 0x1d
jne 0x1076211
cmp dword [ebp - 0x170], 0x3a00
jne 0x1076211
cmp dword [ebp - 0x16c], esi
jne 0x1076211
cmp dword [ebp - 0x15c], 1
je 0x1076215
xor eax, eax
jmp 0x107621a
mov eax, 0xc00000bb
cmp eax, esi
mov edi, dword [sym.imp.ntdll.dll_NtClose]
setge bl
cmp dword [ebp - 0x124], esi
je 0x1076235
push dword [ebp - 0x124]
call edi
cmp dword [ebp - 0x128], esi
je 0x1076245
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.0106f798
leave
ret 4
Function at 0x10762be
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 0x1076419
push esi
lea eax, [ebp - 0x10]
push eax
call edi
xor edi, edi
mov dword [ebp - 8], esi
jmp 0x1076365
cmp dword [ebp - 0xc], esi
je 0x1076340
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 0x10763de
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 0x1076325
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
jl 0x10763fb
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 0x1076365
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp + 8], esi
jmp 0x10763e5
mov dword [ebp + 8], 0xc000009a
cmp dword [ebp - 4], esi
je 0x10763f6
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jge 0x1076416
cmp dword [ebp - 0xc], esi
je 0x1076416
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 0x1076426
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 0x107654c
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x107654c
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 0x107646d
push 0x5c
pop eax
mov word [esi], ax
test ebx, ebx
je 0x1076534
xor eax, eax
mov word [ebx], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call fcn.010762be
test eax, eax
jl 0x107652d
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 0x107649e
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 0x10764b4
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 0x1076545
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 0x1076520
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 0x1076455
cmp byte [ebp - 1], 0
je 0x107653e
xor esi, esi
jmp 0x1076551
mov esi, 0xc0000001
jmp 0x1076551
mov esi, 0xc0000017
jmp 0x1076551
mov esi, 0xc000000d
cmp dword [ebp - 8], 0
je 0x107656e
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 0x1076a6e
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0107286e
Function at 0x10776e8
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 0x1077718
cmp ebx, edi
jl 0x107778c
mov ebx, 0xc0000001
jmp 0x107778c
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 0x107773b
mov ebx, 0xc000009a
jmp 0x1077773
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0x62
call esi
mov ebx, eax
test ebx, ebx
jl 0x1077773
movzx eax, word [edi]
mov ecx, dword [ebp + 0x10]
add eax, 2
mov dword [ecx], eax
cmp eax, dword [ebp + 0xc]
jbe 0x1077764
mov ebx, 0xc0000023
jmp 0x1077773
push eax
push dword [edi + 4]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
test edi, edi
je 0x107778c
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 0x1077ae2
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 0x1007164
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.010771de
mov esi, eax
cmp esi, edi
jl 0x1077bed
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x24000001
push dword [ebp - 8]
call fcn.010758fc
mov esi, eax
cmp esi, 0xc0000225
jne 0x1077b33
mov dword [ebp + 8], edi
jmp 0x1077b3b
cmp esi, edi
jl 0x1077bed
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
shr eax, 4
push ebx
mov dword [ebp - 0xc], edi
cmp eax, edi
jbe 0x1077b70
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 0x1077b97
add edx, 0x10
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
jb 0x1077b55
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 0x1077b9d
mov esi, 0xc0000017
jmp 0x1077bd4
xor esi, esi
xor edi, edi
jmp 0x1077bec
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.010758b8
mov esi, eax
xor edi, edi
cmp ebx, edi
je 0x1077bec
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 0x1077c08
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 0x1077c15
push dword [ebp - 8]
call fcn.01076a7e
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x1078d5c
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 0x1078d7f
mov dword [ebp + 8], 0xc000003a
jmp 0x1078ece
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
add eax, esi
jmp 0x1078da9
cmp cl, 4
jne 0x1078d9a
cmp byte [eax + 1], cl
je 0x1078db5
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 0x1078d90
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 0x1078de8
mov dword [ebp + 8], 0xc000009a
jmp 0x1078eb3
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.01078224
mov dword [ebp + 8], eax
test eax, eax
jl 0x1078e96
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 0x1078e64
mov dword [ebp + 8], 0xc000009a
jmp 0x1078e96
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 0x1078eb3
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 0x1078ece
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 0x107a1e8
Capabilities:
Get process heap flags
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x111027c]
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.0107b45a
test al, al
jne 0x107a213
xor eax, eax
jmp 0x107a35e
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x11054f0
push 0x11057d4
push esi
call fcn.0107ac72
mov ebx, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test eax, eax
jl 0x107a343
cmp dword [ebp - 0x40], 4
jb 0x107a343
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 0x110579e
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call sub.msvcrt.dll__snwscanf_s
add esp, 0x1c
cmp eax, 3
jne 0x107a343
cmp dword [ebp - 0x54], esi
jne 0x107a343
cmp dword [ebp - 0x4c], esi
jne 0x107a343
cmp dword [ebp - 0x48], esi
jne 0x107a343
lea eax, [ebp - 0x50]
push eax
push 0x110575c
call fcn.010762be
test eax, eax
jl 0x107a343
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.0107b366
cmp eax, esi
pop edi
jge 0x107a2fe
cmp eax, 0xc000003a
jmp 0x107a302
cmp dword [ebp - 0x1c], 7
jne 0x107a343
push 0x110571a
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 0x107a35a
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.0106f798
leave
ret
Function at 0x107a39c
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 0x110575c
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 0x107a418
cmp ebx, 0xc0000017
je 0x107a4ac
cmp ebx, 0xc000009a
je 0x107a4ac
mov ebx, 0xc0000452
jmp 0x107a4ac
push dword [ebp - 4]
call fcn.0107a370
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 0x107a455
cmp ebx, edi
jl 0x107a4ac
mov ebx, 0xc0000001
jmp 0x107a4ac
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 0x107a47d
mov ebx, 0xc000009a
jmp 0x107a4ac
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 0x107a4ac
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 0x107a4ba
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp ebx, edi
jge 0x107a4d9
cmp dword [ebp - 8], edi
je 0x107a4d9
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