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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor eax, eax
mov dword [ebp - 0x10], edx
push esi
mov ebx, eax
mov dword [ebp - 0x14], ecx
push edi
mov dword [ebp - 4], ebx
mov edi, eax
mov dword [ebp - 8], eax
call fcn.00422e87
cmp eax, 1
je 0x422d3a
add eax, 0xfffffffe
cmp eax, 1
ja 0x422d30
mov dword [ebp - 0xc], 0x4094be
jmp 0x422d41
mov esi, 0xc00000bb
jmp 0x422e7e
mov dword [ebp - 0xc], 0x40a0d6
lea ecx, [ebp - 8]
call fcn.00422b2e
mov esi, eax
test esi, esi
js 0x422e30
cmp dword [ebp - 0x14], ebx
je 0x422db6
mov ecx, dword [ebp - 8]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x422d60
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
add eax, eax
push eax
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x422d98
mov esi, 0xc000009a
jmp 0x422e30
push dword [ebp - 8]
mov ebx, dword [ebp - 0x18]
push ebx
push edi
call dword [sym.imp.msvcrt.dll_wcscpy_s]
push 0x404dd0
push ebx
push edi
call dword [sym.imp.msvcrt.dll_wcscat_s]
add esp, 0x18
push 0x5c
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x422dd3
mov esi, 0xc000000d
mov ebx, dword [ebp - 4]
jmp 0x422e30
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x422e1e
sub ebx, dword [ebp - 0xc]
sar ebx, 1
lea eax, [ebx + 1]
add eax, eax
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 4], eax
test edi, edi
jne 0x422e04
mov esi, 0xc000009a
jmp 0x422dce
push ebx
push dword [ebp - 0xc]
lea eax, [ebx + 1]
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
jmp 0x422e21
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x422e2a
mov dword [eax], edi
test ecx, ecx
je 0x422e30
mov dword [ecx], ebx
cmp dword [ebp - 8], 0
je 0x422e4a
push dword [ebp - 8]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test esi, esi
jns 0x422e7e
test edi, edi
je 0x422e67
mov eax, dword fs:[0x30]
push edi
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x422e69
xor edi, edi
test ebx, ebx
je 0x422e7e
mov eax, dword fs:[0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x422e87
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x43b3e5], 0
push esi
je 0x422eaa
mov eax, dword [0x43b03c]
jmp 0x422eda
push 0
push 0x20
lea eax, [ebp - 0x28]
xor esi, esi
push eax
push 0x5a
inc esi
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
test eax, eax
js 0x422ecb
mov esi, dword [ebp - 0x18]
cmp esi, 3
jl 0x422ecb
xor esi, esi
mov dword [0x43b03c], esi
mov eax, esi
mov byte [0x43b3e5], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00437a70
leave
ret

Function at 0x4235dd
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push ebx
push esi
mov ebx, ecx
lea edx, [ebp - 4]
push edi
and ebx, 0xfffffffd
push eax
mov ecx, ebx
call fcn.00423898
mov edi, dword [ebp - 4]
test eax, eax
js 0x42363e
xor esi, esi
cmp dword [ebp - 0xc], esi
jbe 0x42363e
mov edx, dword [edi + esi*4]
lea eax, [ebp - 8]
push eax
push 0xf003f
mov ecx, ebx
call fcn.0042368a
test eax, eax
js 0x423638
mov ecx, dword [ebp - 8]
call fcn.004235dd
test eax, eax
jns 0x423638
mov ecx, dword [ebp - 8]
call fcn.004233d7
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x42360d
test edi, edi
je 0x423654
mov eax, dword fs:[0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test bl, 1
je 0x42366f
mov eax, ebx
push 0
and eax, 0xfffffffe
push eax
call sym.bcdedit.exe__ORDeleteKey_8
mov ecx, eax
call fcn.004243cd
jmp 0x423676
push ebx
call dword [sym.imp.ntdll.dll_ZwDeleteKey]
mov esi, eax
test esi, esi
js 0x423683
mov ecx, ebx
call fcn.004243b6
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423b9a
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0x20
push 0x438240
call fcn.00437fb8
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], ecx
xor edi, edi
mov dword [ebp - 0x28], edi
mov ecx, dword [ebp - 0x24]
and ecx, 0xfffffffd
mov dword [ebp - 0x24], ecx
mov ebx, edi
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x20]
push eax
push edi
push edi
xor edx, edx
call fcn.00424223
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xc0000023
je 0x423beb
test esi, esi
js 0x423c69
mov esi, 0xc000000d
mov dword [ebp - 0x1c], esi
jmp 0x423c69
push dword [ebp - 0x20]
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x423c0b
mov esi, 0xc000009a
jmp 0x423be6
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push ebx
xor edx, edx
mov ecx, dword [ebp - 0x24]
call fcn.00424223
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
js 0x423c69
mov eax, dword [ebx + 0xc]
add eax, 2
push eax
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x423c04
push dword [ebx + 0xc]
lea eax, [ebx + 0x10]
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0xc]
shr eax, 1
xor edx, edx
mov ecx, dword [ebp - 0x2c]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x30]
mov dword [eax], ecx
test ebx, ebx
je 0x423c7e
push ebx
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0xc000017d
jne 0x423cba
mov dword [ebp - 4], edi
int3
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x424223
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, edx
mov edx, ecx
push edi
test dl, 1
je 0x4242b0
and edx, 0xfffffffe
cmp esi, 2
jne 0x424294
xor edi, edi
lea eax, [ebp - 8]
push edi
push edi
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push edx
call sym.bcdedit.exe__ORQueryInfoKey_44
mov ecx, eax
call fcn.004243cd
mov esi, eax
test esi, esi
js 0x4242c3
push dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], 0x30
jb 0x42428d
mov eax, dword [ebp - 4]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 8]
lea eax, [eax*2 + 2]
mov dword [edi + 0x18], eax
jmp 0x4242c3
mov esi, 0xc000000d
jmp 0x4242c3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
mov dword [ecx], eax
push esi
push edx
call sym.bcdedit.exe__ORQueryInfoKeyEx_16
mov ecx, eax
call fcn.004243cd
jmp 0x4242c1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push edx
call dword [sym.imp.ntdll.dll_ZwQueryKey]
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x4242cb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, edx
mov edx, ecx
test dl, 1
je 0x42434f
cmp eax, 0xc
lea ecx, [eax - 0xc]
sbb esi, esi
not esi
and esi, dword [ebp + 0xc]
cmp eax, 0xc
sbb eax, eax
not eax
and eax, ecx
mov ecx, esi
mov dword [ebp - 4], eax
neg ecx
lea eax, [ebp - 4]
push eax
sbb ecx, ecx
lea eax, [esi + 0xc]
and ecx, eax
and edx, 0xfffffffe
push ecx
lea eax, [ebp - 8]
push eax
push dword [edi + 4]
push 0
push edx
call sym.bcdedit.exe__ORGetValue_24
cmp eax, 0xea
je 0x424326
test esi, esi
jne 0x424329
push 0x7a
pop eax
mov ecx, eax
call fcn.004243cd
mov edx, eax
mov eax, dword [ebp - 4]
test edx, edx
js 0x424345
mov ecx, dword [ebp - 8]
and dword [esi], 0
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
lea ecx, [eax + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
jmp 0x424362
push dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push 2
push edi
push edx
call dword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov edx, eax
pop edi
mov eax, edx
pop esi
leave
ret 0x10

Function at 0x4245dc
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0xc], 0x40
mov dword [ebp - 0x10], ecx
call dword [sym.imp.ntdll.dll_ZwDeleteFile]
mov esi, eax
test esi, esi
jns 0x424621
push esi
push 0x408ca0
push 4
call fcn.0041df4b
add esp, 0xc
mov eax, esi
pop esi
leave
ret

Function at 0x424626
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
push 0x18
lea eax, [ebp - 0x20]
mov edi, ecx
push eax
lea eax, [ebp - 0x30]
mov esi, edx
push eax
push edi
call dword [sym.imp.ntdll.dll_ZwQueryVolumeInformationFile]
mov ecx, eax
mov ebx, 0x80000005
test ecx, ecx
jns 0x424661
cmp ecx, ebx
jne 0x424691
push 6
push 8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.ntdll.dll_ZwQueryInformationFile]
mov ecx, eax
test ecx, ecx
jns 0x42467e
cmp ecx, ebx
jne 0x424691
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [esi], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437a70
leave
ret
Function at 0x424b3a
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x43b3e8], 0
jne 0x424b95
lea edx, [ebp - 0x20]
mov ecx, 0x4091c4
call fcn.00424494
test eax, eax
js 0x424b8b
push 0
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 0x8f
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
test eax, eax
js 0x424b8b
mov ecx, dword [ebp - 0x20]
mov edx, 0x43b3ec
xor eax, eax
lock cmpxchg dword [edx], ecx
xor eax, eax
mov ecx, 0x43b3e8
inc eax
xchg dword [ecx], eax
cmp dword [0x43b3ec], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.00437a70
leave
ret

Function at 0x424f1b
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], edx
push eax
xor edi, edi
mov ebx, ecx
push edi
push edi
push ebx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, 0xc0000023
je 0x424f4e
test esi, esi
js 0x424fbb
mov esi, 0xc0000001
jmp 0x424fbb
push dword [ebp - 4]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x424f6e
mov esi, 0xc000009a
jmp 0x424fbb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test esi, esi
js 0x424fa9
movzx ecx, word [edi]
mov eax, dword [ebp + 0xc]
add ecx, 2
mov dword [eax], ecx
cmp ecx, dword [ebp + 8]
jbe 0x424f9a
mov esi, 0xc0000023
jmp 0x424fa9
push ecx
push dword [edi + 4]
push dword [ebp - 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword fs:[0x30]
push edi
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 0x4257d7
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x16
mov esi, ecx
mov dword [ebp - 0x14], edx
xor ebx, ebx
push 0x40922c
push esi
mov dword [ebp - 4], ebx
mov edi, ebx
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x42597e
lea eax, [esi + 0x2c]
push 0x5c
push eax
call sub.msvcrt.dll_wcschr
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x42597e
sub eax, esi
sar eax, 1
add eax, eax
mov dword [ebp - 8], eax
add eax, 2
push eax
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x42584b
mov edi, 0xc000009a
jmp 0x425983
push dword [ebp - 8]
push esi
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 8]
xor ecx, ecx
add esp, 0xc
xor esi, esi
mov word [eax + ebx], cx
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x425868
sub ecx, edx
mov edx, dword [ebp - 0xc]
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 4]
jne 0x42587d
sub edx, esi
sar edx, 1
lea eax, [edx*2 + 0x2e]
mov dword [ebp - 8], eax
lea eax, [eax + ecx*2]
add eax, 0x16
push eax
mov dword [ebp - 0x10], eax
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x4258c3
mov edi, 0xc000009a
jmp 0x425950
push dword [ebp - 0x10]
xor eax, eax
push eax
push esi
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, edx
mov dword [esi + 0x14], eax
mov dword [esi], 3
lea eax, [ecx + 2]
mov dword [ebp - 0xc], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x4258e9
sub ecx, dword [ebp - 0xc]
sar ecx, 1
push edx
lea eax, [ecx + 1]
push eax
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
mov edx, dword [ebp - 8]
mov ecx, ebx
add esp, 0xc
lea eax, [ecx + 2]
mov dword [edx + esi], 2
mov dword [ebp - 0xc], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x42591e
sub ecx, dword [ebp - 0xc]
sar ecx, 1
push ebx
lea eax, [ecx + 1]
push eax
lea eax, [edx + 0x14]
add eax, esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword fs:[0x30]
push ebx
xor ebx, ebx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
jns 0x425983
test esi, esi
je 0x425983
mov eax, dword fs:[0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x425983
mov edi, 0xc000000d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x426a67
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
xor ebx, ebx
lea eax, [esp + 8]
cmp dword [ecx], 6
push edi
mov dword [esp + 0xc], ebx
push eax
jne 0x426a8a
call fcn.00420eff
jmp 0x426a92
push dword [ebp + 0xc]
call fcn.0042598c
mov esi, eax
test esi, esi
js 0x426b28
mov ecx, dword [ebp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x426aa2
mov eax, dword [esp + 0xc]
sub ecx, edx
sar ecx, 1
mov ebx, dword [eax + 8]
mov eax, dword fs:[0x30]
lea edi, [ecx*2 + 2]
add ebx, 0xc
add ebx, edi
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x426ae5
mov esi, 0xc000009a
xor ebx, ebx
jmp 0x426b28
mov dword [esi], 1
mov dword [esi + 8], 5
mov dword [esi + 4], ebx
mov eax, dword [esp + 0xc]
push dword [eax + 8]
push eax
lea eax, [esi + 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x18]
push edi
push dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xc
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0x18
xor ebx, ebx
mov dword [eax], esi
mov esi, ebx
cmp dword [esp + 0xc], 0
je 0x426b44
push dword [esp + 0xc]
mov ecx, dword fs:[0x30]
push ebx
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426de9
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push ecx
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov ebx, edx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
mov dword [ebp - 0x2c], esi
push eax
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntdll.dll_ZwOpenSymbolicLinkObject]
test eax, eax
js 0x426f3a
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, esi
mov dword [ebp - 8], esi
jmp 0x426e91
cmp dword [ebp - 0xc], 0
je 0x426e6a
push dword [ebp - 0xc]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 8]
mov word [ebp - 0xe], ax
lea edi, [eax + 2]
mov eax, dword fs:[0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x426f3f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwQuerySymbolicLinkObject]
mov esi, eax
cmp esi, 0xc0000023
je 0x426e50
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwClose]
and dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
test esi, esi
js 0x426f22
movzx ecx, word [ebp - 0x10]
xor edx, edx
shr ecx, 1
xor esi, esi
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
mov word [ebp - 0xe], di
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 dword [sym.imp.ntdll.dll_ZwOpenSymbolicLinkObject]
test eax, eax
jns 0x426e91
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
cmp dword [ebp - 4], 0
je 0x426f1e
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwClose]
and dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
test esi, esi
jns 0x426f38
test eax, eax
je 0x426f38
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
mov esi, 0xc000009a
jmp 0x426f08
Function at 0x427371
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push ecx
lea eax, [ebp - 0x174]
xor esi, esi
push eax
mov dword [ebp - 0x14c], esi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x20
lea eax, [ebp - 0x174]
mov dword [ebp - 0x16c], 0x18
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x154]
push 3
push eax
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x168], esi
push eax
push 0x80100000
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x160], 0x40
push eax
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x150], esi
call dword [sym.imp.ntdll.dll_ZwOpenFile]
mov ebx, eax
test ebx, ebx
js 0x4274d8
push esi
push esi
push esi
push esi
push 0x560028
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], esi
push eax
push esi
push esi
push esi
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], esi
call dword [sym.imp.ntdll.dll_ZwDeviceIoControlFile]
mov ebx, eax
test ebx, ebx
jns 0x4274d8
push 0x118
lea eax, [ebp - 0x144]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x4274d3
cmp dword [ebp - 0x144], 5
jne 0x4274d3
cmp dword [ebp - 0x140], esi
jne 0x4274d3
push 0x20
lea eax, [ebp - 0x28]
mov dword [ebp - 0x154], esi
push eax
push esi
push esi
push 0x74004
lea eax, [ebp - 0x154]
mov dword [ebp - 0x150], esi
push eax
push esi
push esi
push esi
push dword [ebp - 0x14c]
call dword [sym.imp.ntdll.dll_ZwDeviceIoControlFile]
mov ebx, eax
test ebx, ebx
js 0x4274d8
cmp dword [ebp - 0x18], 0x1d
jne 0x4274cf
cmp dword [ebp - 0x28], 0x3a00
jne 0x4274cf
cmp dword [ebp - 0x24], esi
jne 0x4274cf
cmp dword [ebp - 0x14], 1
je 0x4274d3
mov ebx, esi
jmp 0x4274d8
mov ebx, 0xc00000bb
shr ebx, 0x1f
xor bl, 1
cmp dword [ebp - 0x14c], esi
je 0x4274f2
push dword [ebp - 0x14c]
call dword [sym.imp.ntdll.dll_ZwClose]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00437a70
leave
ret
Function at 0x429c07
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 0x10], edx
mov al, byte [esi]
and al, 0x7f
cmp al, 0x7f
jne 0x429c27
mov eax, 0xc000003a
jmp 0x429d46
movzx edx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
add edx, esi
push ebx
xor ebx, ebx
mov cl, byte [edx]
mov al, cl
and al, 0x7f
cmp al, 0x7f
je 0x429d40
cmp cl, 4
jne 0x429c68
cmp byte [edx + 1], cl
jne 0x429c68
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
cmp ecx, 4
jb 0x429cb2
add ebx, 0xfffffffc
add ebx, ecx
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
add edx, ecx
mov cl, byte [edx]
mov al, cl
and al, 0x7f
cmp al, 0x7f
jne 0x429c47
test ebx, ebx
je 0x429d40
mov eax, dword fs:[0x30]
add ebx, 2
push ebx
push 0
mov dword [ebp - 8], ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x429cbc
mov eax, 0xc000009a
jmp 0x429d45
mov eax, 0xc0000095
jmp 0x429d45
push edi
movzx edi, byte [esi + 3]
mov ecx, eax
movzx eax, byte [esi + 2]
shl edi, 8
or edi, eax
mov dword [ebp - 4], ecx
add edi, esi
mov dl, byte [edi]
mov al, dl
and al, 0x7f
cmp al, 0x7f
je 0x429d29
mov ebx, ecx
cmp dl, 4
jne 0x429d07
cmp byte [edi + 1], dl
jne 0x429d07
movzx esi, byte [edi + 3]
movzx eax, byte [edi + 2]
shl esi, 8
or esi, eax
lea eax, [edi + 4]
sub esi, 4
push esi
push eax
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
add ebx, esi
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
add edi, ecx
mov dl, byte [edi]
mov al, dl
and al, 0x7f
cmp al, 0x7f
jne 0x429cdd
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
pop edi
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
xor eax, eax
jmp 0x429d45
mov eax, 0xc0000225
pop ebx
pop esi
leave
ret 4