joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4207ef
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.0042097e
cmp eax, 1
je 0x420831
add eax, 0xfffffffe
cmp eax, 1
ja 0x420827
mov dword [ebp - 0xc], 0x408e06
jmp 0x420838
mov esi, 0xc00000bb
jmp 0x420975
mov dword [ebp - 0xc], 0x40eb66
lea ecx, [ebp - 8]
call fcn.00420625
mov esi, eax
test esi, esi
js 0x420927
cmp dword [ebp - 0x14], ebx
je 0x4208ad
mov ecx, dword [ebp - 8]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x420857
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 0x42088f
mov esi, 0xc000009a
jmp 0x420927
push dword [ebp - 8]
mov ebx, dword [ebp - 0x18]
push ebx
push edi
call dword [sym.imp.msvcrt.dll_wcscpy_s]
push 0x402e10
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 0x4208ca
mov esi, 0xc000000d
mov ebx, dword [ebp - 4]
jmp 0x420927
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x420915
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 0x4208fb
mov esi, 0xc000009a
jmp 0x4208c5
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 0x420918
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x420921
mov dword [eax], edi
test ecx, ecx
je 0x420927
mov dword [ecx], ebx
cmp dword [ebp - 8], 0
je 0x420941
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 0x420975
test edi, edi
je 0x42095e
mov eax, dword fs:[0x30]
push edi
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x420960
xor edi, edi
test ebx, ebx
je 0x420975
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 0x42097e
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x42c044]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x42c465], 0
push esi
je 0x4209a1
mov eax, dword [0x42c0c4]
jmp 0x4209d1
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 0x4209c2
mov esi, dword [ebp - 0x18]
cmp esi, 3
jl 0x4209c2
xor esi, esi
mov dword [0x42c0c4], esi
mov eax, esi
mov byte [0x42c465], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042a860
leave
ret

Function at 0x420da2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov dword [eax], esi
mov edi, esi
push edx
lea eax, [ebp - 0x14]
mov dword [ebp - 8], esi
push eax
mov dword [ebx], esi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edx, dword [ebp + 8]
test edx, edx
je 0x420de6
lea eax, [ebp - 8]
push eax
push ecx
call fcn.00420c28
mov esi, eax
test esi, esi
js 0x420e9f
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, 0xc0000023
je 0x420e17
test esi, esi
js 0x420e9f
mov esi, 0xc0000001
jmp 0x420e9f
push dword [ebp - 4]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x420e38
mov esi, 0xc000009a
jmp 0x420e9f
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push edi
push 2
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
js 0x420e9f
cmp dword [edi + 4], 1
je 0x420e62
mov esi, 0xc0000024
jmp 0x420e9f
mov eax, dword [ebp - 4]
sub eax, 0xc
push eax
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [ebx], ecx
test ecx, ecx
je 0x420e31
push dword [ebp - 4]
lea eax, [edi + 0xc]
push eax
push ecx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov eax, dword [ebp - 4]
xor esi, esi
mov dword [ecx], eax
cmp dword [ebp - 8], 0
je 0x420eae
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x420ec4
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 0x10
Function at 0x420ecd
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
push ecx
lea eax, [esp + 0x24]
xor esi, esi
push eax
mov ebx, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
push 1
lea eax, [esp + 0x18]
mov dword [esp + 0x34], esi
push eax
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
test eax, eax
js 0x42104e
push esi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, esi
mov dword [esp + 0x14], esi
jmp 0x420f8b
cmp dword [esp + 0x1c], 0
je 0x420f61
push dword [esp + 0x1c]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x14]
mov word [esp + 0x1a], 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 [esp + 0x1c], eax
test eax, eax
je 0x421055
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov esi, eax
cmp esi, 0xc0000023
je 0x420f45
push dword [esp + 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
test esi, esi
js 0x421036
movzx ecx, word [esp + 0x18]
xor edx, edx
shr ecx, 1
xor esi, esi
mov word [eax + ecx*2], dx
lea eax, [esp + 0x18]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
push 1
lea eax, [esp + 0x18]
mov word [esp + 0x22], di
push eax
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
test eax, eax
jns 0x420f8b
mov eax, dword [esp + 0x1c]
mov dword [ebx], eax
cmp dword [esp + 0x10], 0
je 0x421032
push dword [esp + 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
test esi, esi
jns 0x42104c
test eax, eax
je 0x42104c
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
mov esp, ebp
pop ebp
ret
mov esi, 0xc000009a
jmp 0x421018
Function at 0x4225cf
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 esi, ecx
lea edx, [ebp - 4]
push edi
and esi, 0xfffffffd
push eax
mov ecx, esi
call fcn.0042287b
mov ebx, dword [ebp - 4]
test eax, eax
js 0x422630
xor edi, edi
cmp dword [ebp - 0xc], edi
jbe 0x422630
mov edx, dword [ebx + edi*4]
lea eax, [ebp - 8]
push eax
push 0xf003f
mov ecx, esi
call fcn.00422661
test eax, eax
js 0x42262a
mov ecx, dword [ebp - 8]
call fcn.004225cf
test eax, eax
jns 0x42262a
mov ecx, dword [ebp - 8]
call fcn.004223fa
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x4225ff
test ebx, ebx
je 0x422646
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push esi
call dword [sym.imp.ntdll.dll_ZwDeleteKey]
mov edi, eax
test edi, edi
js 0x42265a
push esi
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422afb
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Query or enumerate registry key

Disassembly:
push 0x20
push 0x42b0b0
call fcn.0042ad98
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], ecx
xor edi, edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x24]
and eax, 0xfffffffd
mov dword [ebp - 0x24], eax
mov ebx, edi
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x20]
push ecx
push edi
push edi
push edi
push eax
call dword [sym.imp.ntdll.dll_ZwQueryKey]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xc0000023
je 0x422b4d
test esi, esi
js 0x422bcb
mov esi, 0xc000000d
mov dword [ebp - 0x1c], esi
jmp 0x422bcb
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 0x422b6d
mov esi, 0xc000009a
jmp 0x422b48
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push ebx
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_ZwQueryKey]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
js 0x422bcb
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 0x422b66
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 0x422be0
push ebx
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0xc000017d
jne 0x422c1c
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 0x422d0e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
push 0x42b0d0
call fcn.0042ad98
mov dword [ebp - 0x34], edx
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x30], edi
mov ebx, edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and esi, 0xfffffffd
mov dword [ebp - 0x2c], esi
mov edx, dword [ebp + 8]
test edx, edx
je 0x422d6b
lea eax, [ebp - 0x28]
push eax
push 0x20019
mov ecx, esi
call fcn.00422661
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jns 0x422d6e
jmp 0x422e28
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x24]
push eax
push edi
push edi
push 2
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xc0000023
jne 0x422e28
push dword [ebp - 0x24]
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 0x422db7
mov esi, 0xc000009a
mov dword [ebp - 0x20], esi
jmp 0x422e28
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x24]
push ebx
push 2
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
js 0x422e28
mov eax, dword [ebx + 4]
cmp eax, dword [ebp + 0xc]
je 0x422de6
mov esi, 0xc0000024
jmp 0x422db2
mov eax, dword [ebp - 0x24]
sub eax, 0xc
mov dword [ebp - 0x24], eax
push eax
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
test edx, edx
je 0x422dad
push dword [ebp - 0x24]
lea eax, [ebx + 0xc]
push eax
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov esi, edi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
je 0x422e3b
test eax, eax
je 0x422e3b
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
test ebx, ebx
je 0x422e50
push ebx
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0xc000017d
jne 0x422e8f
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 0x10
Function at 0x423b72
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 0x40d91c
push esi
mov dword [ebp - 4], ebx
mov edi, ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x423d1b
lea eax, [esi + 0x2c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x423d1b
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 0x423be8
mov edi, 0xc000009a
jmp 0x423d20
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 0x423c05
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 0x423c1a
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 0x423c60
mov edi, 0xc000009a
jmp 0x423ced
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 0x423c86
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 0x423cbb
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 0x423d20
test esi, esi
je 0x423d20
mov eax, dword fs:[0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x423d20
mov edi, 0xc000000d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x424e04
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 0x424e27
call fcn.0041ddad
jmp 0x424e2f
push dword [ebp + 0xc]
call fcn.00423d29
mov esi, eax
test esi, esi
js 0x424ec5
mov ecx, dword [ebp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x424e3f
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 0x424e82
mov esi, 0xc000009a
xor ebx, ebx
jmp 0x424ec5
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 0x424ee1
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 0x425186
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 0x4252d7
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, esi
mov dword [ebp - 8], esi
jmp 0x42522e
cmp dword [ebp - 0xc], 0
je 0x425207
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 0x4252dc
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 0x4251ed
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 0x4252bf
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 0x42522e
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
cmp dword [ebp - 4], 0
je 0x4252bb
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 0x4252d5
test eax, eax
je 0x4252d5
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 0x4252a5
Function at 0x42570e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x42c044]
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 0x425875
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 0x425875
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 0x425870
cmp dword [ebp - 0x144], 5
jne 0x425870
cmp dword [ebp - 0x140], esi
jne 0x425870
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 0x425875
cmp dword [ebp - 0x18], 0x1d
jne 0x42586c
cmp dword [ebp - 0x28], 0x3a00
jne 0x42586c
cmp dword [ebp - 0x24], esi
jne 0x42586c
cmp dword [ebp - 0x14], 1
je 0x425870
mov ebx, esi
jmp 0x425875
mov ebx, 0xc00000bb
shr ebx, 0x1f
xor bl, 1
cmp dword [ebp - 0x14c], esi
je 0x42588f
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.0042a860
leave
ret
Function at 0x425fc5
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42c044]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x42c468], 0
jne 0x426020
lea edx, [ebp - 0x20]
mov ecx, 0x40dddc
call fcn.004259e2
test eax, eax
js 0x426016
push 0
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 0x8f
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
test eax, eax
js 0x426016
mov ecx, dword [ebp - 0x20]
mov edx, 0x42c46c
xor eax, eax
lock cmpxchg dword [edx], ecx
xor eax, eax
mov ecx, 0x42c468
inc eax
xchg dword [ecx], eax
cmp dword [0x42c46c], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.0042a860
leave
ret