joyce8/EMBER2024-capa huggingface dataset:
Function at 0x16d00
Capabilities:
Access pe header

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x16d23
mov eax, 0xc000003e
pop esi
add esp, 0x10
ret 8
mov ecx, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0xa0]
add ecx, esi
cmp ecx, esi
jbe 0x16d17
mov eax, dword [eax + 0x50]
add eax, esi
cmp ecx, eax
jae 0x16d17
push ebx
mov eax, ecx
add ecx, 4
cmp dword [ecx], 0
push ebp
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
je 0x16ddc
nop
mov ebx, dword [eax]
cmp ebx, 0x100000
jb 0x16dc9
mov edx, dword [ecx]
sub edx, 8
shr edx, 1
xor edi, edi
lea esi, [eax + 8]
test edx, edx
jle 0x16dc9
lea ebx, [ebx]
movzx ecx, word [esi]
mov ebp, ecx
and ebp, 0xf000
cmp ebp, 0x3000
jne 0x16dbd
mov ebp, dword [esp + 0x18]
and ecx, 0xfff
add ecx, ebx
add ecx, dword [esp + 0x24]
mov eax, dword [ecx]
sub eax, dword [ebp + 0x34]
cmp eax, dword [esp + 0x1c]
jne 0x16db9
mov eax, 0x5c7
cmp word [ecx - 2], ax
je 0x16deb
mov eax, dword [esp + 0x10]
inc edi
add esi, 2
cmp edi, edx
jl 0x16d80
mov ecx, dword [esp + 0x14]
add eax, dword [ecx]
cmp dword [eax + 4], 0
lea ecx, [eax + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jne 0x16d60
pop edi
pop ebp
pop ebx
mov eax, 0xc000003e
pop esi
add esp, 0x10
ret 8
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x28]
mov edx, ebp
sub ecx, dword [edx + 0x34]
add ecx, eax
mov dword [0x2a608], ecx
cmp ecx, eax
jbe 0x16ddc
mov edx, dword [edx + 0x50]
add edx, eax
cmp ecx, edx
jae 0x16ddc
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x10
ret 8
Function at 0x16fc0
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x289e0
push 0x28930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0x14]
mov esi, ecx
push esi
call dword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov edi, eax
test edi, edi
jne 0x17010
mov eax, 0xc000000d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.000183c0
test eax, eax
je 0x170c9
cmp eax, esi
jbe 0x170c9
mov ecx, dword [edi + 0x50]
lea edx, [ecx + esi]
cmp eax, edx
jae 0x170c9
cmp byte [eax], 0xb8
jne 0x170c9
mov ecx, dword [eax + 1]
cmp ecx, 0x10000000
ja 0x170c9
cmp ecx, 0xffffffff
je 0x170c9
test ebx, ebx
je 0x17057
mov dword [ebx], ecx
mov dword [ebp - 4], 0
mov eax, dword [0x2a608]
sub eax, dword [ebp + 8]
add eax, esi
cmp eax, esi
jbe 0x170aa
cmp eax, edx
jae 0x170aa
mov eax, dword [eax + ecx*4]
sub eax, dword [edi + 0x34]
add eax, esi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, esi
jbe 0x170aa
cmp eax, edx
jae 0x170aa
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 4], 0xffffffff
mov eax, 0xc000003e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0xc0000034
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x179f0
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x28ab0
push 0x28930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
push 0x33
push esi
lea eax, [ebp - 0x64]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, esi
je 0x17b74
mov edi, dword [ebx + 0x34]
mov dword [ebp - 0x28], edi
mov edx, dword [ebx + 0x50]
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
lea esi, [ebp - 0x64]
call fcn.000189c0
add esp, 4
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x17a9f
test esi, esi
jne 0x17abb
mov eax, 0xc000003e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x20]
add eax, esi
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp + 0x14]
jb 0x17ade
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor dl, dl
mov cl, byte [ebp - 0x4d]
test byte [ebp - 0x5e], 4
jne 0x17aee
cmp cl, 0xa1
jne 0x17b0e
mov eax, dword [ebp - 0x41]
cmp eax, edi
jbe 0x17b0e
mov esi, dword [ebp - 0x24]
add esi, edi
cmp eax, esi
mov esi, dword [ebp - 0x1c]
jae 0x17b0e
mov edx, dword [ebp + 8]
sub edx, dword [ebx + 0x34]
add eax, edx
mov dword [ebp - 0x41], eax
mov dl, 1
cmp cl, 0x3d
je 0x17b2c
cmp cl, 0x81
je 0x17b2c
cmp cl, 0xb8
jb 0x17b22
cmp cl, 0xbf
jbe 0x17b2c
cmp cl, 0xc7
je 0x17b2c
cmp cl, 0x68
jne 0x17b49
mov eax, dword [ebp - 0x39]
cmp eax, edi
jbe 0x17b49
mov ecx, dword [ebp - 0x24]
add ecx, edi
cmp eax, ecx
jae 0x17b49
mov edx, dword [ebp + 8]
sub edx, dword [ebx + 0x34]
add eax, edx
mov dword [ebp - 0x39], eax
jmp 0x17b4d
test dl, dl
je 0x17b63
lea ecx, [ebp - 0x64]
mov edi, dword [ebp + 0xc]
call fcn.00019490
cmp esi, eax
jne 0x17aa3
mov edi, dword [ebp - 0x28]
add dword [ebp + 0xc], esi
jmp 0x17a60
mov dword [ebp - 4], 0xffffffff
mov eax, 0xc000000d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x17d30
Capabilities:
Access pe header

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push esi
xor eax, eax
xor esi, esi
push ebx
mov dword [esp + 0x18], 0xc0000001
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], esi
call dword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov ecx, eax
mov dword [esp + 0x10], ecx
cmp ecx, esi
jne 0x17d73
pop esi
mov eax, 0xc000003e
pop ebx
add esp, 0x20
ret 0x14
mov eax, dword [ecx + 0xa0]
mov edx, dword [ecx + 0xa4]
add eax, ebx
add edx, eax
push edi
mov dword [esp + 0x1c], edx
cmp eax, ebx
jbe 0x17e88
mov edi, dword [ecx + 0x50]
add edi, ebx
cmp eax, edi
jae 0x17e88
cmp ebx, edx
ja 0x17e88
mov edi, eax
add eax, 4
mov dword [esp + 0x30], eax
cmp dword [eax], esi
je 0x17e7b
push ebp
cmp edi, edx
jae 0x17e7a
mov eax, dword [esp + 0x34]
mov esi, dword [eax]
sub esi, 8
shr esi, 1
lea ebp, [edi + 8]
mov dword [esp + 0x14], 0
test esi, esi
jle 0x17e4d
lea esp, [esp]
movzx eax, word [ebp]
mov edx, eax
and edx, 0xf000
cmp edx, 0x3000
jne 0x17e35
and eax, 0xfff
add eax, dword [edi]
mov edx, dword [eax + ebx]
sub edx, dword [ecx + 0x34]
add eax, ebx
cmp edx, dword [esp + 0x3c]
jne 0x17e35
mov ecx, dword [esp + 0x44]
inc dword [esp + 0x10]
test ecx, ecx
je 0x17e35
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x30], ebx
call ecx
test al, al
jne 0x17e72
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
add ebp, 2
cmp eax, esi
mov dword [esp + 0x14], eax
jl 0x17de0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
add edi, dword [eax]
cmp dword [edi + 4], 0
lea eax, [edi + 4]
mov dword [esp + 0x34], eax
jne 0x17db7
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret 0x14
mov dword [esp + 0x1c], 0
pop ebp
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
add esp, 0x20
ret 0x14
pop edi
pop esi
mov eax, 0xc000003e
pop ebx
add esp, 0x20
ret 0x14
Function at 0x183c0
Capabilities:
Access pe header

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebx
mov dword [esp + 0x14], 0
call dword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test eax, eax
jne 0x183e4
xor eax, eax
pop ebx
add esp, 8
ret 8
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x183db
cmp dword [eax + 0x7c], 0
je 0x183db
add ecx, ebx
mov dword [esp + 8], ecx
je 0x183db
mov eax, dword [ecx + 0x24]
push ebp
mov ebp, dword [ecx + 0x20]
push esi
push edi
mov edi, dword [ecx + 0x18]
add eax, ebx
add ebp, ebx
sub edi, 1
mov dword [esp + 0x10], eax
js 0x18472
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea esi, [edi + eax]
sar esi, 1
mov eax, dword [ebp + esi*4]
add eax, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x18445
test dl, dl
je 0x18441
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x18445
add ecx, 2
add eax, 2
test dl, dl
jne 0x18425
xor eax, eax
jmp 0x1844a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jge 0x18453
lea edi, [esi - 1]
jmp 0x1845a
jle 0x1846c
inc esi
mov dword [esp + 0x1c], esi
cmp edi, dword [esp + 0x1c]
jge 0x18412
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
cmp edi, dword [esp + 0x1c]
jge 0x1847e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
movzx edx, word [ecx + esi*2]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1c]
pop edi
lea edx, [ecx + edx*4]
mov eax, dword [edx + ebx]
pop esi
pop ebp
add eax, ebx
pop ebx
add esp, 8
ret 8
Function at 0x186a0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push esi
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x187b1
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x187b1
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push 0x1fffff
push ebx
push 0x200
push eax
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
jl 0x1876c
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1876c
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push 0x1d
push eax
call dword [sym.imp.ntoskrnl.exe_NtQueryInformationProcess]
test eax, eax
jl 0x1876c
cmp byte [esp + 0x14], bl
je 0x1876c
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x20]
push eax
push 0x1d
push ecx
mov dword [esp + 0x2c], ebx
call sub.ntoskrnl.exe_NtSetInformationProcess
test eax, eax
jge 0x1876c
mov edx, 0x115c8
call fcn.0001a3f0
mov esi, eax
cmp esi, ebx
je 0x1876c
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
push ebx
push ebx
push ebx
call esi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [0x2a678]
cmp eax, ebx
je 0x18781
mov edx, dword [esp + 0xc]
push ebx
push edx
call eax
mov esi, eax
jmp 0x1879b
mov eax, dword [0x2a3ec]
cmp eax, ebx
je 0x18796
mov ecx, dword [esp + 0xc]
push ebx
push ecx
call eax
mov esi, eax
jmp 0x1879b
mov esi, 0xc000003e
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x187a9
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0xc000000d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x187c0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 5
mov byte [esp + 0x23], 0
mov dword [esp + 0x24], 0
call edi
mov esi, eax
cmp esi, 0xc0000004
jne 0x188b4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x188b2
push 0x65746474
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
test ebx, ebx
je 0x188b2
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push edx
push ebx
push 5
call edi
mov edi, eax
test edi, edi
jl 0x1889b
mov esi, ebx
mov eax, dword [esi + 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x18886
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x18886
movzx eax, word [esi + 0x38]
mov cx, word [ebp + 8]
cmp ax, cx
movzx eax, ax
jbe 0x18864
movzx eax, cx
mov ecx, dword [esi + 0x3c]
movzx edx, ax
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
call sub.ntoskrnl.exe__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x18886
mov ecx, dword [esi + 0x44]
call fcn.000186a0
mov edi, eax
cmp byte [esp + 0x13], 0
jne 0x1889b
add esi, dword [esi]
cmp dword [esi], 0
jne 0x18835
mov byte [esp + 0x13], 1
jmp 0x18835
push 0x65746474
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1a480
Capabilities:
Get system information on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xb
mov dword [esp + 0x24], 0
call edi
mov ecx, dword [esp + 0x14]
push 0x6d61736b
add ecx, 0x400
push ecx
push 0
mov ebx, eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
je 0x1a506
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
add eax, 0x400
push eax
push esi
push 0xb
call edi
mov edi, eax
test edi, edi
jl 0x1a4f4
test ebp, ebp
je 0x1a4e7
mov ecx, dword [esi + 0xc]
mov dword [ebp], ecx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1a4f4
mov edx, dword [esi + 0x10]
mov dword [eax], edx
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 8
Function at 0x1a510
Capabilities:
Get system information on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
push edi
xor eax, eax
lea edx, [esp + 0x24]
push edx
push eax
push eax
xor ecx, ecx
push 0xb
mov dword [esp + 0x34], eax
xor edi, edi
mov word [esp + 0x20], cx
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
call esi
test eax, eax
jge 0x1a5b4
cmp eax, 0xc0000004
jne 0x1a66a
mov eax, dword [esp + 0x24]
add eax, 0x400
push 0x65786b72
push eax
push 1
mov dword [esp + 0x30], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1a589
mov eax, 0xc0000017
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
push 0xb
call esi
mov esi, eax
mov eax, dword [esp + 0x1c]
test esi, esi
jl 0x1a65f
cmp dword [eax], 1
jae 0x1a5c3
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc00000bb
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
test ebp, ebp
je 0x1a5cd
mov ecx, dword [eax + 0xc]
mov dword [ebp], ecx
add eax, 0x20
mov dword [esp + 0x14], eax
je 0x1a656
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1a5e0
sub eax, edx
mov word [esp + 0x10], ax
mov word [esp + 0x12], ax
cmp ax, 1
jb 0x1a656
push 0
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov esi, eax
test esi, esi
jl 0x1a65b
mov eax, dword [ebx + 4]
test eax, eax
je 0x1a656
cmp word [ebx], 2
jb 0x1a656
push 0xb
push 0x11680
push eax
call sub.ntoskrnl.exe__wcsnicmp
add esp, 0xc
test eax, eax
je 0x1a6d1
movzx edx, word [ebx]
mov eax, edx
mov esi, 1
shr eax, 1
cmp eax, esi
jbe 0x1a656
mov ecx, dword [ebx + 4]
add ecx, 2
cmp word [ecx], 0x5c
je 0x1a674
inc esi
add ecx, 2
cmp esi, eax
jb 0x1a648
mov esi, 0xc0000001
mov eax, dword [esp + 0x1c]
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
test esi, esi
je 0x1a656
mov ecx, dword [ebx + 4]
lea eax, [esi + esi]
sub edx, eax
push edx
add eax, ecx
push eax
add ecx, 0x16
push ecx
call sub.ntoskrnl.exe_memmove
mov ecx, dword [0x11680]
mov eax, dword [ebx + 4]
mov dword [eax], ecx
mov edx, dword [0x11684]
mov dword [eax + 4], edx
mov ecx, dword [0x11688]
mov dword [eax + 8], ecx
mov edx, dword [0x1168c]
mov dword [eax + 0xc], edx
mov ecx, dword [0x11690]
mov dword [eax + 0x10], ecx
mov dx, word [0x11694]
mov edi, 0xb
add esp, 0xc
mov word [eax + 0x14], dx
sub edi, esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1a6e5
mov ecx, dword [esp + 0x1c]
movzx edx, word [ecx + 0x1e]
add edx, edi
mov dword [eax], edx
xor esi, esi
jmp 0x1a65b
Function at 0x1a6f0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 8
cmp dword [esp + 0x10], 0
mov dword [esp], 0
je 0x1a84d
cmp dword [esp + 0x14], 0
je 0x1a84d
cmp dword [esp + 0xc], 0
je 0x1a84d
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0xb
call edi
test eax, eax
jl 0x1a73f
mov eax, 0xc00000bb
pop edi
add esp, 8
ret 0xc
cmp eax, 0xc0000004
jne 0x1a7bf
mov eax, dword [esp + 4]
push esi
add eax, 0x400
push 0x65786b72
push eax
push 1
mov dword [esp + 0x14], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
jne 0x1a775
pop esi
mov eax, 0xc0000017
pop edi
add esp, 8
ret 0xc
mov ecx, dword [esp + 8]
push ebx
push ecx
push 0
push esi
call sub.ntoskrnl.exe_memset
mov eax, dword [esp + 0x18]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push eax
push esi
push 0xb
call edi
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jl 0x1a839
xor ecx, ecx
mov word [esi + 2], cx
mov eax, dword [esi]
cmp eax, 1
jae 0x1a7c6
push ecx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop ebx
mov eax, 0xc00000bb
pop esi
pop edi
add esp, 8
ret 0xc
xor edi, edi
test eax, eax
jbe 0x1a839
push ebp
xor ebx, ebx
lea ebp, [esi + 0x1e]
movzx edx, word [ebp]
mov ecx, dword [esp + 0x1c]
add edx, ebx
lea eax, [edx + esi + 0x20]
push ecx
push eax
call sub.ntoskrnl.exe__stricmp
add esp, 8
test eax, eax
je 0x1a818
inc edi
add ebx, 0x11c
add ebp, 0x11c
cmp edi, dword [esi]
jb 0x1a7d2
mov ebx, dword [esp + 0x14]
pop ebp
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
pop ebx
pop esi
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
imul edi, edi, 0x11c
mov edx, dword [edi + esi + 0xc]
mov ecx, dword [edi + esi + 0x10]
mov ebx, dword [esp + 0x14]
add edi, esi
mov dword [eax], edx
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
pop ebp
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
pop ebx
pop esi
pop edi
add esp, 8
ret 0xc
mov eax, 0xc0000001
add esp, 8
ret 0xc
Function at 0x1a860
Capabilities:
Access pe header
Map section object
Read file on windows

Disassembly:
sub esp, 0x40
push ebx
push esi
xor eax, eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
push ecx
xor esi, esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x60
push 7
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x2c]
push ecx
mov dword [esp + 0x48], edx
push 0x80000000
lea edx, [esp + 0x64]
mov ebx, 0x240
push edx
mov dword [esp + 0x48], 0x18
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
cmp eax, esi
jl 0x1aa11
mov edx, dword [esp + 0x50]
push esi
lea eax, [esp + 0x1c]
push eax
push 0x400
push 0x2ab20
lea ecx, [esp + 0x38]
push ecx
push esi
push esi
push esi
push edx
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov edi, eax
cmp edi, esi
jge 0x1a90c
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
push 0x2ab20
call dword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test eax, eax
jne 0x1a934
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
mov edx, dword [esp + 0x50]
push edx
push 0x1000000
push 2
push esi
lea eax, [esp + 0x40]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov edx, dword [esp + 0x50]
mov ebx, dword [sym.imp.ntoskrnl.exe_ZwClose]
push edx
mov edi, eax
call ebx
cmp edi, esi
jl 0x1a901
mov edx, dword [esp + 0xc]
push 2
push esi
push 2
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea ecx, [esp + 0x2c]
push ecx
push 0xffffffffffffffff
push edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov edi, eax
cmp edi, esi
jge 0x1a9c5
mov eax, dword [esp + 0xc]
push eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
push 0x65786b72
push 0xc
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ecx, dword [esp + 0x10]
cmp eax, esi
jne 0x1a9f9
push ecx
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov edx, dword [esp + 0xc]
push edx
call ebx
mov eax, 0xc0000017
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
mov dword [eax + 4], ecx
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x54]
mov dword [eax + 8], ecx
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
Function at 0x1aa50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
xor eax, eax
push edi
lea ecx, [esp + 0x18]
push ecx
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push 0xf003f
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x18
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0x240
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x1abab
push 0x62736374
push 0x1000
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp esi, ebx
jne 0x1aae9
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc0000001
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x14
mov edx, dword [esp + 0x38]
mov ebp, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea ecx, [esp + 0x14]
push ecx
push 0x1000
push esi
push 2
push edx
push eax
call ebp
mov edi, eax
cmp edi, 0xc0000023
je 0x1ab16
cmp edi, 0x80000005
jne 0x1ab66
mov edi, dword [esp + 0x14]
push 0x62736374
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0x62736374
push edi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ecx, dword [esp + 0x10]
mov esi, eax
cmp esi, ebx
jne 0x1ab53
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc0000001
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x14
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
push edi
push esi
push 2
push eax
push ecx
call ebp
mov edi, eax
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp edi, ebx
jl 0x1ab9d
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
cmp dword [esp + 0x40], eax
jb 0x1ab98
push eax
mov eax, dword [esp + 0x40]
lea edx, [esi + 0xc]
push edx
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
jmp 0x1ab9d
mov edi, 0xc0000023
push 0x62736374
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x14