joyce8/EMBER2024-capa huggingface dataset:
Function at 0x508d50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482a63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call 0x536eac
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x4ac0e8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x4aa338
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x484128]
push eax
mov ecx, edi
call 0x53c542
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call 0x53da5e
test eax, eax
je 0x508e6c
mov ecx, dword [esp + 0x3c]
call 0x53c56f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [fcn.004845c4]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x508e30
push edi
mov ecx, esi
call 0x539bd7
mov ecx, esi
call fcn.00508fd0
cmp dword [esp + 0x38], 1
jne 0x508e65
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call 0x539d12
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x50b8b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x50b8e3
push esi
call fcn.0050e9c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x50b8dc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x50b969
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x50b952
mov eax, dword [esi + 8]
test eax, eax
je 0x50b907
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x50b94e
cmp eax, 2
je 0x50b952
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x50b8fa
cmp eax, 3
je 0x50b92d
cmp eax, 1
jne 0x50b8fa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x50b8fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x50b8fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0050b990
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x50b978
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0050b990
add esp, 4
pop esi
ret
Function at 0x11c30
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x24], eax
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, ebx
jl 0x11db9
mov ecx, dword [ebp - 4]
push esi
push edi
push ecx
call fcn.00011ae0
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push str.DeleteFlag
lea edx, [ebp - 0x14]
push edx
call esi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
push str.ErrorControl
lea edx, [ebp - 0x14]
push edx
call esi
mov edx, dword [ebp - 4]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 8], ebx
call edi
push str.Type
lea eax, [ebp - 0x14]
push eax
call esi
mov eax, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push ebx
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 8], 1
call edi
push str.Start
lea ecx, [ebp - 0x14]
push ecx
call esi
mov ecx, dword [ebp - 4]
push 4
lea edx, [ebp + 0x10]
push edx
push 4
push ebx
lea eax, [ebp - 0x14]
push eax
push ecx
call edi
push str.ImagePath
lea edx, [ebp - 0x14]
push edx
call esi
mov edx, dword [ebp + 8]
mov eax, edx
lea ebx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11d20
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
mov edx, dword [ebp - 4]
push 2
push 0
lea ecx, [ebp - 0x14]
push ecx
push edx
call edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push 0x5c
push ecx
call dword [sym.imp.ntoskrnl.exe_wcsrchr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x11da8
add ebx, 2
je 0x11da8
mov eax, ebx
lea edx, [eax + 2]
jmp 0x11d70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11d70
sub eax, edx
push str.DisplayName
lea edx, [ebp - 0x14]
sar eax, 1
push edx
mov dword [ebp + 0xc], eax
call esi
mov eax, dword [ebp + 0xc]
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 4]
push ecx
push ebx
push 1
push 0
lea edx, [ebp - 0x14]
push edx
push eax
call edi
mov esi, eax
jmp 0x11dab
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x11dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push edi
push eax
lea ecx, [ebp - 0x14]
push ecx
call esi
lea eax, [ebp - 0x2c]
push eax
xor edi, edi
push 0x20019
lea ecx, [ebp + 8]
lea edx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, edi
jl 0x11f22
mov edx, dword [ebp + 0xc]
push ebx
push edx
lea eax, [ebp - 0xc]
push eax
call esi
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea ecx, [ebp - 4]
push ecx
push edi
push edi
push 2
lea edx, [ebp - 0xc]
push edx
push eax
call ebx
cmp eax, 0xc0000034
je 0x11f12
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x11f12
push eax
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
call edi
mov esi, eax
test esi, esi
jne 0x11e73
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop ebx
pop edi
mov eax, 0xc000009a
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 4]
push edx
push 0
push esi
call sub.ntoskrnl.exe_memset
mov ecx, dword [ebp - 4]
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
push esi
push 2
lea edx, [ebp - 0xc]
push edx
push eax
call ebx
mov ebx, eax
test ebx, ebx
jge 0x11ea3
mov ecx, dword [ebp + 8]
push ecx
jmp 0x11ef8
cmp dword [esi + 4], 3
jne 0x11eef
mov eax, dword [esi + 8]
cmp eax, 2
jbe 0x11eef
push eax
push 1
call edi
mov edi, eax
test edi, edi
je 0x11ee8
mov edx, dword [esi + 8]
push edx
push 0
push edi
call sub.ntoskrnl.exe_memset
mov eax, dword [esi + 8]
push eax
lea ecx, [esi + 0xc]
push ecx
push edi
call sub.ntoskrnl.exe_memcpy
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [edx], edi
mov eax, dword [esi + 8]
add esp, 0x18
mov dword [ecx], eax
jmp 0x11ef4
mov ebx, 0xc000009a
jmp 0x11ef4
mov ebx, 0xc000003e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc0000034
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x11f30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push eax
lea ecx, [ebp - 0xc]
push ecx
call esi
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x24], edx
push 0xf003f
lea edx, [ebp + 8]
push edx
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
test eax, eax
jl 0x11fcc
mov eax, dword [ebp + 8]
push eax
call fcn.00011ae0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
call esi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push ecx
push 3
push 0
lea edx, [ebp - 0x14]
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ecx, dword [ebp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x122f0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x38
test eax, eax
je 0x12303
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x12310
mov dword [eax], 0
mov eax, dword [ebp + 8]
push 0
push 0
push 0x20
push 1
push 1
push 0x80
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x18], eax
push 0x120089
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0x240
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x1243c
mov eax, dword [ebp + 8]
push esi
push edi
push 5
push 0x18
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 8]
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov edi, eax
test edi, edi
jl 0x1242e
mov eax, dword [ebp - 0x30]
test eax, eax
jbe 0x12429
cmp dword [ebp - 0x2c], 0
jne 0x12429
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
test esi, esi
je 0x12410
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
push 0
push 0
push ecx
push esi
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov edi, eax
test edi, edi
jge 0x123ef
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x10]
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
push ecx
mov dword [eax], edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edi, 0xc000009a
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, 0xc0000028
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x12450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00016390
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 8]
push ecx
call fcn.00016630
xor esi, esi
push esi
push esi
push 0x20
push 5
push 3
push 0x80
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
lea edx, [ebp - 8]
push ecx
mov dword [ebp - 0x28], edx
push 0xc0000000
lea edx, [ebp + 8]
push edx
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, esi
jl 0x124ee
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov edx, dword [ebp + 8]
push edx
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x14b60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x28]
push edi
push 0x40
push 0
push 0x1e4e0
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [esi + 0x28], 0
call sub.ntoskrnl.exe_memset
mov edi, dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
add esp, 0xc
push 0
lea eax, [esi + 8]
push 1
push eax
call edi
push 0
lea eax, [esi + 0x18]
push 1
push eax
call edi
push ebx
push 0x140a0
push 0
push 0
push 0
push 0
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jl 0x14c8e
mov ecx, dword [ebp + 8]
push 0
push esi
push 0
push 0
push 0x1fffff
push ecx
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov edx, dword [ebp + 8]
push edx
mov edi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test edi, edi
jl 0x14c35
push ebx
push 0x14710
push 0
push 0
push 0
push 0
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov edi, eax
test edi, edi
jl 0x14c35
mov ecx, dword [ebp + 8]
push 0
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x1fffff
push ecx
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov edx, dword [ebp + 8]
push edx
mov edi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test edi, edi
jge 0x14c8c
push 0
push 0
lea eax, [esi + 8]
push eax
mov byte [esi + 0x28], 0
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
push 0
push 0
lea ebx, [esi + 0x18]
push ebx
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov eax, dword [esi]
test eax, eax
je 0x14c78
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov ecx, dword [esi]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [esi], 0
push 0
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x14fd0
Capabilities:
Map section object
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x20
xor esi, esi
push 1
lea edx, [ebp - 0x30]
push edx
mov dword [eax], esi
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x40], ecx
push 0x100020
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], 0x240
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
cmp eax, esi
jl 0x150e0
mov edx, dword [ebp - 8]
push edx
push 0x1000000
push 0x10
push esi
lea eax, [ebp - 0x48]
push eax
push 0xf001f
lea ecx, [ebp + 0xc]
push ecx
mov dword [ebp - 0x40], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x150dd
mov ecx, dword [ebp + 0xc]
push 4
push 0x100000
push 1
lea edx, [ebp - 0x10]
push edx
push esi
push 0x400
push esi
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov edx, dword [ebp - 8]
mov edi, eax
push edx
mov dword [ebp - 4], edi
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp edi, esi
jl 0x150dd
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
mov esi, dword [ecx + eax + 0x78]
mov ebx, dword [esi + eax + 0x1c]
mov ecx, dword [esi + eax + 0x20]
mov edx, dword [esi + eax + 0x24]
add esi, eax
add ecx, eax
add ebx, eax
add edx, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x150c0
sub eax, edi
xor edi, edi
mov dword [ebp - 0x24], eax
cmp dword [esi + 0x14], edi
ja 0x150f3
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + edi*4]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + edi*2]
add edx, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebx + edx*4 - 4]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe__strnicmp]
add esp, 0xc
test eax, eax
je 0x15128
inc edi
cmp edi, dword [esi + 0x14]
jb 0x150f0
jmp 0x150d3
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x15150
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
lea eax, [ebp - 8]
push eax
push 0
mov ecx, eax
push ecx
push 0xb
mov byte [ebp - 1], 0
call esi
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov ebx, eax
mov eax, dword [ebp - 8]
push 0
push eax
push ebx
push 0xb
call esi
test eax, eax
jl 0x15244
mov ecx, dword [ebp + 8]
cmp dword [ebx], ecx
jb 0x15244
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x151b0
mov edx, ecx
imul edx, edx, 0x11c
mov edx, dword [edx + ebx + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1522d
mov edx, dword [str.SystemRootSystem32_]
imul ecx, ecx, 0x11c
mov dword [eax], edx
mov edx, dword [0x1c6dc]
mov dword [eax + 4], edx
mov edx, dword [0x1c6e0]
mov dword [eax + 8], edx
mov edx, dword [0x1c6e4]
mov dword [eax + 0xc], edx
mov edx, dword [0x1c6e8]
mov dword [eax + 0x10], edx
mov dx, word [0x1c6ec]
mov word [eax + 0x14], dx
movzx edx, word [ecx + ebx + 0x1e]
add edx, ecx
lea ecx, [edx + ebx + 0x20]
mov esi, ecx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x15201
sub ecx, esi
mov edx, ecx
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x15210
push edi
mov ecx, edx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
pop edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x15240
imul ecx, ecx, 0x11c
mov ecx, dword [ecx + ebx + 0x10]
mov dword [eax], ecx
mov byte [ebp - 1], 1
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x15260
Capabilities:
Enumerate pe sections
Get file attributes
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x20
push 1
push 1
push 0x80
push ebx
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x20], eax
push 0x100020
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 0x240
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jge 0x152bb
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push esi
push edi
push 5
push 0x18
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x10]
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
test eax, eax
jl 0x1532c
mov eax, dword [ebp - 0x38]
test eax, eax
jbe 0x1532c
cmp dword [ebp - 0x34], ebx
jne 0x1532c
push eax
push 0
call edi
mov ebx, eax
test ebx, ebx
je 0x1532c
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
push 0
push 0
push ecx
push ebx
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jge 0x1532c
mov ecx, dword [ebp + 8]
push ecx
call esi
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor ebx, ebx
mov edx, dword [ebp + 8]
push edx
call esi
test ebx, ebx
je 0x153cd
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x153c4
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
jne 0x153c4
mov ecx, dword [esi + 0x50]
push ecx
push 0
call edi
mov dword [ebp - 4], eax
test eax, eax
je 0x153c4
mov edx, dword [esi + 0x54]
push edx
mov edi, eax
push ebx
push edi
call sub.ntoskrnl.exe_memcpy
movzx eax, word [esi + 0x14]
add eax, dword [edi + 0x3c]
xor ecx, ecx
add esp, 0xc
lea edi, [eax + edi + 0x18]
mov dword [ebp - 8], 0
cmp cx, word [esi + 6]
jae 0x153c4
add edi, 0x10
mov eax, dword [edi]
test eax, eax
je 0x153b2
cmp eax, dword [esi + 0x50]
jae 0x153b2
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi - 4]
add eax, dword [ebp - 4]
add edx, ebx
push edx
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov eax, dword [ebp - 8]
movzx ecx, word [esi + 6]
inc eax
add edi, 0x28
mov dword [ebp - 8], eax
cmp eax, ecx
jb 0x15391
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x162c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
xor eax, eax
push esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
xor esi, esi
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x54], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, dword [ebp + 0x10]
push 0x100
push esi
push esi
push esi
push esi
push 0x20
push 1
push eax
mov eax, dword [ebp + 0xc]
push 0x80
push esi
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x2c]
push edx
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntoskrnl.exe_IoCreateFile]
pop esi
test eax, eax
jl 0x16385
mov ecx, dword [ebp - 4]
push 4
push 0x28
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jge 0x16375
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
test byte [ebp - 0x34], 0x10
mov eax, dword [ebp - 4]
je 0x16387
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x176e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
je 0x1772e
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x1772e
mov edx, dword [ecx + 0x3c]
add edx, ecx
cmp dword [edx], 0x4550
jne 0x1772e
cmp dword [edx + 0x74], 4
jbe 0x1772e
mov ecx, dword [edx + 0x98]
test ecx, ecx
je 0x1772e
mov edx, dword [edx + 0x9c]
test edx, edx
je 0x1772e
push esi
mov esi, dword [ebp + 0xc]
cmp ecx, esi
jae 0x1772d
add edx, ecx
cmp edx, esi
ja 0x1772d
mov eax, ecx
pop esi
pop ebp
ret 8