joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4154c1
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
lea eax, [esp + 0xc]
xor esi, esi
and dword [esp + 0xc], esi
mov edx, 0x47000006
push eax
push esi
push ecx
mov ebx, ecx
call fcn.00413776
mov edi, eax
cmp edi, 0xc0000023
jne 0x415524
push dword [esp + 0xc]
mov eax, dword fs:[0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x41550f
add edi, 0xfffffff4
jmp 0x41554e
lea eax, [esp + 0xc]
mov edx, 0x47000006
push eax
push esi
push ecx
mov ecx, ebx
call fcn.00413776
mov edi, eax
test edi, edi
jns 0x415540
test esi, esi
je 0x41554e
mov eax, dword fs:[0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x41554e
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4156f7
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 0x62
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, 0xc0000023
je 0x41572b
test esi, esi
js 0x415797
mov esi, 0xc0000001
jmp 0x415797
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 0x41574b
mov esi, 0xc000009a
jmp 0x415797
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0x62
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test esi, esi
js 0x415785
movzx ecx, word [edi]
mov eax, dword [ebp + 8]
add ecx, 2
mov dword [eax], ecx
cmp ecx, dword [ebp - 8]
jbe 0x415778
mov esi, 0xc0000023
jmp 0x415785
push ecx
push dword [edi + 4]
push ebx
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
mov esp, ebp
pop ebp
ret 4

Function at 0x415dc8
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
push edi
push eax
lea edx, [ebp - 4]
mov edi, ecx
call fcn.00416064
mov ebx, dword [ebp - 4]
test eax, eax
js 0x415e24
xor esi, esi
cmp dword [ebp - 0xc], esi
jbe 0x415e24
mov edx, dword [ebx + esi*4]
lea eax, [ebp - 8]
push eax
push 0xf003f
mov ecx, edi
call fcn.00415e5c
test eax, eax
js 0x415e1e
mov ecx, dword [ebp - 8]
call fcn.00415dc8
test eax, eax
jns 0x415e1e
mov ecx, dword [ebp - 8]
call fcn.00415bf6
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x415df3
test ebx, ebx
je 0x415e3a
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push edi
call dword [sym.imp.ntdll.dll_ZwDeleteKey]
mov esi, eax
test esi, esi
js 0x415e4e
push edi
call dword [sym.imp.ntdll.dll_ZwClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4162db
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Query or enumerate registry key

Disassembly:
push 0x20
push 0x41f7c8
call fcn.0041f5a8
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], ecx
xor edi, edi
mov dword [ebp - 0x28], edi
mov ebx, edi
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_ZwQueryKey]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xc0000023
je 0x416326
test esi, esi
js 0x4163a4
mov esi, 0xc000000d
mov dword [ebp - 0x1c], esi
jmp 0x4163a4
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 0x416346
mov esi, 0xc000009a
jmp 0x416321
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 0x4163a4
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 0x41633f
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 0x4163b9
push ebx
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0xc000017d
jne 0x4163f5
mov dword [ebp - 4], edi
int3
mov eax, esi
call fcn.0041f5ed
ret
Function at 0x4164ed
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
push 0x41f7e8
call fcn.0041f5a8
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], 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]
mov edx, dword [ebp + 8]
test edx, edx
je 0x416546
lea eax, [ebp - 0x28]
push eax
push 0x20019
mov ecx, dword [ebp - 0x2c]
call fcn.00415e5c
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jns 0x41654c
jmp 0x416606
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
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 0x416606
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 0x416595
mov esi, 0xc000009a
mov dword [ebp - 0x20], esi
jmp 0x416606
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 0x416606
mov eax, dword [ebx + 4]
cmp eax, dword [ebp + 0xc]
je 0x4165c4
mov esi, 0xc0000024
jmp 0x416590
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 0x41658b
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 0x416619
test eax, eax
je 0x416619
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
test ebx, ebx
je 0x41662e
push ebx
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0xc000017d
jne 0x41666a
mov dword [ebp - 4], edi
int3
mov eax, esi
call fcn.0041f5ed
ret 0x10
Function at 0x416db2
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor eax, eax
mov dword [ebp - 0x10], edx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call fcn.00416f40
cmp eax, 1
je 0x416df0
add eax, 0xfffffffe
cmp eax, 1
ja 0x416de6
mov edi, 0x402cbc
jmp 0x416df5
mov esi, 0xc00000bb
jmp 0x416f30
mov edi, 0x40686c
lea ecx, [ebp - 8]
call fcn.00416c23
mov esi, eax
test esi, esi
js 0x416ee0
cmp dword [ebp - 0x14], ebx
je 0x416e6e
mov ecx, dword [ebp - 8]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x416e14
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 2]
mov dword [ebp - 0xc], eax
add eax, eax
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 0x416e4f
mov esi, 0xc000009a
mov edi, dword [ebp - 4]
jmp 0x416ee2
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy_s]
push 0x401058
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.msvcrt.dll_wcscat_s]
add esp, 0x18
add edi, 2
push 0x5c
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x416e8c
mov esi, 0xc000000d
jmp 0x416e47
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x416ecc
sub edi, dword [ebp - 0xc]
sar edi, 1
inc edi
lea eax, [edi + edi]
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x416e42
lea eax, [edi - 1]
push eax
push dword [ebp - 0xc]
push edi
push ecx
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x416ed5
mov dword [ecx], ebx
mov edi, dword [ebp - 4]
test eax, eax
je 0x416ee2
mov dword [eax], edi
jmp 0x416ee2
mov edi, ebx
cmp dword [ebp - 8], 0
je 0x416efc
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 0x416f30
test ebx, ebx
je 0x416f19
mov eax, dword fs:[0x30]
push ebx
xor ebx, ebx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x416f1b
xor ebx, ebx
test edi, edi
je 0x416f30
mov eax, dword fs:[0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416f40
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4203b4], 0
push esi
je 0x416f63
mov eax, dword [0x420020]
jmp 0x416f93
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 0x416f84
mov esi, dword [ebp - 0x18]
cmp esi, 3
jl 0x416f84
xor esi, esi
mov dword [0x420020], esi
mov eax, esi
mov byte [0x4203b4], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041ef80
mov esp, ebp
pop ebp
ret
Function at 0x417da4
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 0x4065f8
push esi
mov dword [ebp - 4], ebx
mov edi, ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417f4d
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 0x417f4d
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 0x417e1a
mov edi, 0xc000009a
jmp 0x417f52
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 0x417e37
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 0x417e4c
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 0x417e92
mov edi, 0xc000009a
jmp 0x417f1f
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 0x417eb8
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 0x417eed
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 0x417f52
test esi, esi
je 0x417f52
mov eax, dword fs:[0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x417f52
mov edi, 0xc000000d
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418dff
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call fcn.00417f62
mov esi, eax
test esi, esi
js 0x418ead
mov ecx, dword [ebp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x418e28
mov eax, dword [ebp - 4]
sub ecx, edx
sar ecx, 1
push edi
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 0x418e6b
mov esi, 0xc000009a
xor ebx, ebx
jmp 0x418eac
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 sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
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
pop edi
cmp dword [ebp - 4], 0
je 0x418ec6
push dword [ebp - 4]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419233
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 0x419384
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, esi
mov dword [ebp - 8], esi
jmp 0x4192db
cmp dword [ebp - 0xc], 0
je 0x4192b4
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 0x41938b
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 0x41929a
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 0x41936c
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 0x4192db
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
cmp dword [ebp - 4], 0
je 0x419368
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 0x419382
test eax, eax
je 0x419382
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 0x419352
Function at 0x4198c2
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
lea eax, [ebp - 0x190]
xor edi, edi
push eax
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x14c], edi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x18
pop esi
push edi
lea eax, [ebp - 0x190]
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x158]
push 3
push eax
lea eax, [ebp - 0x170]
mov dword [ebp - 0x16c], edi
push eax
push 0x80000000
lea eax, [ebp - 0x150]
mov dword [ebp - 0x164], 0x40
push eax
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x154], edi
call dword [sym.imp.ntdll.dll_ZwOpenFile]
test eax, eax
js 0x419ace
push edi
push edi
lea eax, [ebp - 0x188]
mov dword [ebp - 0x188], esi
push eax
push 0x1f0003
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x184], edi
push eax
mov dword [ebp - 0x17c], 0x200
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x174], edi
call dword [sym.imp.ntdll.dll_ZwCreateEvent]
test eax, eax
js 0x419ace
push edi
push edi
push edi
push edi
push 0x560028
lea eax, [ebp - 0x158]
mov dword [ebp - 0x158], edi
push eax
push edi
push edi
push dword [ebp - 0x14c]
mov dword [ebp - 0x154], edi
push dword [ebp - 0x150]
call dword [sym.imp.ntdll.dll_ZwDeviceIoControlFile]
mov ebx, 0x103
cmp eax, ebx
jne 0x4199fa
push edi
push edi
push dword [ebp - 0x14c]
call dword [sym.imp.ntdll.dll_ZwWaitForSingleObject]
test eax, eax
js 0x419a02
mov eax, dword [ebp - 0x158]
test eax, eax
jns 0x419ace
mov esi, 0x11c
lea eax, [ebp - 0x148]
push esi
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x148], esi
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x419ac7
cmp dword [ebp - 0x144], 5
jne 0x419ac7
cmp dword [ebp - 0x140], edi
jne 0x419ac7
push edi
push dword [ebp - 0x14c]
call dword [sym.imp.ntdll.dll_ZwResetEvent]
push 0x20
lea eax, [ebp - 0x28]
mov dword [ebp - 0x158], edi
push eax
push edi
push edi
push 0x74004
lea eax, [ebp - 0x158]
mov dword [ebp - 0x154], edi
push eax
push edi
push edi
push dword [ebp - 0x14c]
push dword [ebp - 0x150]
call dword [sym.imp.ntdll.dll_ZwDeviceIoControlFile]
cmp eax, ebx
jne 0x419aa5
push edi
push edi
push dword [ebp - 0x14c]
call dword [sym.imp.ntdll.dll_ZwWaitForSingleObject]
test eax, eax
js 0x419ace
mov eax, dword [ebp - 0x158]
test eax, eax
js 0x419ace
cmp dword [ebp - 0x18], 0x1d
jne 0x419ac3
cmp dword [ebp - 0x28], 0x3a00
jne 0x419ac3
cmp dword [ebp - 0x24], edi
jne 0x419ac3
cmp dword [ebp - 0x14], 1
je 0x419ac7
mov eax, edi
jmp 0x419acc
mov eax, 0xc00000bb
test eax, eax
setns bl
cmp dword [ebp - 0x14c], edi
je 0x419ae5
push dword [ebp - 0x14c]
call dword [sym.imp.ntdll.dll_ZwClose]
cmp dword [ebp - 0x150], edi
je 0x419af9
push dword [ebp - 0x150]
call dword [sym.imp.ntdll.dll_ZwClose]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ef80
mov esp, ebp
pop ebp
ret
Function at 0x419cd7
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4203bc], 0
jne 0x419d32
lea edx, [ebp - 0x20]
mov ecx, 0x4066a8
call fcn.00416fcc
test eax, eax
js 0x419d28
push 0
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 0x8f
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
test eax, eax
js 0x419d28
mov ecx, dword [ebp - 0x20]
mov edx, 0x4203b8
xor eax, eax
lock cmpxchg dword [edx], ecx
xor eax, eax
mov ecx, 0x4203bc
inc eax
xchg dword [ecx], eax
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x4203b8], eax
setne al
xor ecx, ebp
call fcn.0041ef80
mov esp, ebp
pop ebp
ret

Function at 0x419e11
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov eax, edx
xor ecx, ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], ecx
mov ebx, ecx
mov dword [eax], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edi
call fcn.00419f74
mov esi, eax
test esi, esi
js 0x419e90
mov ecx, dword [esp + 0xc]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x419e4d
lea eax, [esp + 0x20]
sub ecx, edx
push eax
lea eax, [esp + 0x28]
sar ecx, 1
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea esi, [ecx + 1]
push 0x4066c0
push esi
push dword [esp + 0x24]
call dword [sym.imp.msvcrt.dll__snwscanf_s]
add esp, 0x1c
cmp eax, 4
je 0x419eb6
mov esi, 0xc0000001
xor edi, edi
cmp dword [esp + 0xc], 0
je 0x419ead
push dword [esp + 0xc]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x14], ebx
jne 0x419f2d
cmp dword [esp + 0x18], ebx
jne 0x419f2d
add esi, 0xa
xor edi, edi
lea eax, [esi + esi]
push eax
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x419ee8
mov esi, 0xc000009a
jmp 0x419e92
push dword [esp + 0xc]
push 0x406710
push 0x40171c
push esi
push ebx
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x14
lea edx, [esp + 0x10]
mov ecx, ebx
call fcn.0041a236
mov edi, dword [esp + 0x10]
mov esi, eax
test esi, esi
js 0x419f36
push ecx
push ecx
mov ecx, edi
call fcn.0041a09b
mov esi, eax
test esi, esi
js 0x419f36
mov eax, dword [esp + 0x1c]
mov dword [eax], edi
jmp 0x419f32
mov esi, 0xc0000001
test esi, esi
jns 0x419f4f
test edi, edi
je 0x419f4f
mov eax, dword fs:[0x30]
push edi
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x419f51
xor edi, edi
test ebx, ebx
je 0x419e92
mov eax, dword fs:[0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x419e92