joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101576a
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 0x1015795
lea ecx, [eax + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ecx
jmp 0x10157a3
cmp ecx, 6
jne 0x10157b8
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 0x101589f
cmp ecx, 6
je 0x10157c2
mov esi, 0xc000000d
jmp 0x10158f2
push 0x38
lea ecx, [eax + 0x38]
mov eax, dword [eax + 8]
pop edx
mov dword [ebp - 0x18], edx
cmp eax, 0x5c
jb 0x10157b8
mov ebx, dword [ecx + 8]
add ebx, edx
cmp eax, ebx
jb 0x10157b8
cmp dword [ecx], esi
jne 0x10157b8
cmp dword [ecx + 0x10], 5
jne 0x10157b8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push ecx
call fcn.010152ae
mov esi, eax
test esi, esi
jl 0x10158d5
cmp dword [ebp - 8], 0x2e
jb 0x10158fb
mov ebx, dword [ebp - 4]
cmp dword [ebx], 3
jne 0x10158fb
mov eax, dword [ebx + 0x14]
add eax, ebx
cmp dword [eax], edi
jne 0x10158fb
add eax, 0x14
mov dword [ebp - 0x14], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
test cx, cx
jne 0x101582c
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 0x1015845
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 0x101587d
mov esi, 0xc0000017
jmp 0x10158d5
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 0x10158ab
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10158b7
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10158c3
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10158cc
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10158d5
mov dword [eax], ebx
cmp dword [ebp - 4], 0
je 0x10158f2
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 0x10158d5
Function at 0x1015cd8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 0x10], 1
je 0x1015cf5
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.01013dfc
pop ebp
ret 0x14
test byte [ebp + 0x10], 2
je 0x1015d0b
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.01013ed4
jmp 0x1015cf1
pop ebp
jmp fcn.010152ae

Function at 0x1016882
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.010193c6

Function at 0x10181d0
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 0x1018200
cmp ebx, edi
jl 0x1018274
mov ebx, 0xc0000001
jmp 0x1018274
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 0x1018223
mov ebx, 0xc000009a
jmp 0x101825b
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0x62
call esi
mov ebx, eax
test ebx, ebx
jl 0x101825b
movzx eax, word [edi]
mov ecx, dword [ebp + 0x10]
add eax, 2
mov dword [ecx], eax
cmp eax, dword [ebp + 0xc]
jbe 0x101824c
mov ebx, 0xc0000023
jmp 0x101825b
push eax
push dword [edi + 4]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
test edi, edi
je 0x1018274
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 0x10185ce
Capabilities:
Access peb ldr_data
Query or enumerate registry key

Disassembly:
push 0x14
push 0x101fed0
call fcn.01009b04
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 0x1018611
cmp eax, ebx
jl 0x101868a
mov dword [ebp - 0x1c], 0xc000000d
jmp 0x101868a
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 0x1018636
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x101868a
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 0x101868a
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 0x101862d
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 0x10186a2
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 0x10186dd
mov dword [ebp - 4], ebx
int3
mov eax, dword [ebp - 0x1c]
call fcn.01009b49
ret 8
Function at 0x1018e60
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
push 0x20
push 0x101ff30
call fcn.01009b04
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 0x1018eb2
lea eax, [ebp - 0x24]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.01018cba
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x1018f6d
jmp 0x1018eb8
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 0x1018f6d
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 0x1018f00
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x1018f6d
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 0x1018f6d
mov eax, dword [edi + 4]
cmp eax, dword [ebp + 0x14]
je 0x1018f2f
mov dword [ebp - 0x1c], 0xc0000024
jmp 0x1018f6d
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 0x1018ef7
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 0x1018f80
cmp eax, esi
je 0x1018f80
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp edi, esi
je 0x1018f98
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 0x1018fcc
mov dword [ebp - 4], esi
int3
mov eax, dword [ebp - 0x1c]
call fcn.01009b49
ret 0x18
Function at 0x10193c6
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.01018380
mov edi, dword [ebp - 4]
test eax, eax
jl 0x1019422
cmp dword [ebp - 8], esi
jbe 0x1019422
lea eax, [ebp + 8]
push eax
push 0xf003f
push dword [edi + esi*4]
push ebx
call fcn.01018cba
test eax, eax
jl 0x101941c
push dword [ebp + 8]
call fcn.010193c6
test eax, eax
jge 0x101941c
push dword [ebp + 8]
call fcn.01018afc
inc esi
cmp esi, dword [ebp - 8]
jb 0x10193f2
test edi, edi
je 0x101943b
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 0x101944f
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1019a8c
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [section..data]
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 0x1019c7a
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 0x1019c7a
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 0x1019b96
push esi
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, esi
jl 0x1019b9e
mov eax, dword [ebp - 0x130]
cmp eax, esi
jge 0x1019c7a
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 0x1019c73
cmp dword [ebp - 0x11c], 5
jne 0x1019c73
cmp dword [ebp - 0x118], esi
jne 0x1019c73
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 0x1019c45
push esi
push esi
push dword [ebp - 0x124]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, esi
jl 0x1019c7a
mov eax, dword [ebp - 0x130]
cmp eax, esi
jl 0x1019c7a
cmp dword [ebp - 0x160], 0x1d
jne 0x1019c6f
cmp dword [ebp - 0x170], 0x3a00
jne 0x1019c6f
cmp dword [ebp - 0x16c], esi
jne 0x1019c6f
cmp dword [ebp - 0x15c], 1
je 0x1019c73
xor eax, eax
jmp 0x1019c78
mov eax, 0xc00000bb
cmp eax, esi
mov edi, dword [sym.imp.ntdll.dll_NtClose]
setge bl
cmp dword [ebp - 0x124], esi
je 0x1019c93
push dword [ebp - 0x124]
call edi
cmp dword [ebp - 0x128], esi
je 0x1019ca3
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.010090b9
leave
ret 4
Function at 0x1019d1c
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 0x1019e77
push esi
lea eax, [ebp - 0x10]
push eax
call edi
xor edi, edi
mov dword [ebp - 8], esi
jmp 0x1019dc3
cmp dword [ebp - 0xc], esi
je 0x1019d9e
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 0x1019e3c
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 0x1019d83
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
jl 0x1019e59
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 0x1019dc3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp + 8], esi
jmp 0x1019e43
mov dword [ebp + 8], 0xc000009a
cmp dword [ebp - 4], esi
je 0x1019e54
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jge 0x1019e74
cmp dword [ebp - 0xc], esi
je 0x1019e74
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 0x1019e84
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 0x1019faa
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x1019faa
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 0x1019ecb
push 0x5c
pop eax
mov word [esi], ax
test ebx, ebx
je 0x1019f92
xor eax, eax
mov word [ebx], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call fcn.01019d1c
test eax, eax
jl 0x1019f8b
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 0x1019efc
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 0x1019f12
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 0x1019fa3
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 0x1019f7e
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 0x1019eb3
cmp byte [ebp - 1], 0
je 0x1019f9c
xor esi, esi
jmp 0x1019faf
mov esi, 0xc0000001
jmp 0x1019faf
mov esi, 0xc0000017
jmp 0x1019faf
mov esi, 0xc000000d
cmp dword [ebp - 8], 0
je 0x1019fcc
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 0x101a8ca
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.0101809a
dec eax
je 0x101a8f9
dec eax
je 0x101a8f2
mov dword [ebp - 8], 0xc00000bb
jmp 0x101a9b9
call fcn.0101bb5a
jmp 0x101a8fe
call fcn.0101bb18
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 4]
push eax
call fcn.0101a72a
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x101a982
mov eax, dword [ebp - 4]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101a918
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 0x101a92e
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 0x101a965
mov dword [ebp - 8], 0xc0000017
jmp 0x101a982
push dword [ebp - 4]
inc esi
push esi
push edi
call fcn.0100952e
push dword [ebp - 0xc]
push esi
push edi
call fcn.010094ac
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 0x101a99f
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 0x101a9b8
cmp edi, ebx
je 0x101a9b8
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 0x101abc2
Capabilities:
Get process heap flags
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [section..data]
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.0101b978
test al, al
jne 0x101abed
xor eax, eax
jmp 0x101ad38
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x101f93c
push 0x101fac0
push esi
call fcn.0101b2f8
mov ebx, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test eax, eax
jl 0x101ad1d
cmp dword [ebp - 0x40], 4
jb 0x101ad1d
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 0x101fa8a
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call fcn.010093d6
add esp, 0x1c
cmp eax, 3
jne 0x101ad1d
cmp dword [ebp - 0x54], esi
jne 0x101ad1d
cmp dword [ebp - 0x4c], esi
jne 0x101ad1d
cmp dword [ebp - 0x48], esi
jne 0x101ad1d
lea eax, [ebp - 0x50]
push eax
push 0x101fa48
call fcn.01019d1c
test eax, eax
jl 0x101ad1d
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.0101b884
cmp eax, esi
pop edi
jge 0x101acd8
cmp eax, 0xc000003a
jmp 0x101acdc
cmp dword [ebp - 0x1c], 7
jne 0x101ad1d
push 0x101fa06
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 0x101ad34
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.010090b9
leave
ret
Function at 0x101ad76
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 0x101fa48
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 0x101adf2
cmp ebx, 0xc0000017
je 0x101ae86
cmp ebx, 0xc000009a
je 0x101ae86
mov ebx, 0xc0000452
jmp 0x101ae86
push dword [ebp - 4]
call fcn.0101ad4a
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 0x101ae2f
cmp ebx, edi
jl 0x101ae86
mov ebx, 0xc0000001
jmp 0x101ae86
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 0x101ae57
mov ebx, 0xc000009a
jmp 0x101ae86
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 0x101ae86
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 0x101ae94
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp ebx, edi
jge 0x101aeb3
cmp dword [ebp - 8], edi
je 0x101aeb3
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