joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009392
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000942f
push ebx
push esi
call fcn.1000935b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100092ef
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100093dc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000942e
push edi
push eax
call fcn.100073d2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100093fc
call fcn.10007e37
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000942d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100092ef
add esp, 0x20
test eax, eax
jne 0x1000941b
push edi
call fcn.10007e37
jmp 0x10009423
push ebx
call fcn.10007e37
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000969c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010570
push 0x10010568
push str.FlsAlloc
push 0x1f
call fcn.100095b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100096d0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f148]
call esi
jmp 0x100096d6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000971a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010580
push 0x10010578
push str.FlsGetValue
push 0x21
call fcn.100095b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009751
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10009759
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010588
push 0x10010580
push str.FlsSetValue
push 0x22
call fcn.100095b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009793
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000f148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000ed50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ed7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ed7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..pdata
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0xca55911
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..pdata_1
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5e950181
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x5d424846
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x3d4f53f6
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10d60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1c928
push 0x1b470
mov eax, dword fs:[0]
push eax
add esp, 0xffffff94
push ebx
push esi
push edi
mov eax, dword [0x1dc84]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0xc0000001
mov dword [ebp - 0x50], 0x1dca8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x40], 0x64
mov dword [0x1dca8], 0
mov eax, 0x10d10
sub eax, 0x10b50
mov dword [ebp - 0x38], eax
push 0x40
push 0x3000
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0x1dca8
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov edx, dword [ebp - 0x38]
push edx
push 0x10b50
mov eax, dword [0x1dca8]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov ecx, dword [0x1dca8]
mov dword [ebp - 0x54], ecx
push 0x12c
push 0
mov edx, dword [0x1dca8]
add edx, 0x16
push edx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x5c]
mov al, byte [edx]
mov byte [ebp - 0x61], al
add dword [ebp - 0x5c], 1
cmp byte [ebp - 0x61], 0
jne 0x10e4d
mov ecx, dword [ebp - 0x5c]
sub ecx, dword [ebp - 0x60]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x1dca8]
add ecx, 0x16
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov edx, dword [0x1dca8]
mov eax, dword [0x1e700]
mov dword [edx + 0x101], eax
mov ecx, dword [0x1dca8]
add ecx, 3
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x54]
add edx, 0x101
mov eax, dword [ebp - 0x48]
mov dword [eax], edx
mov ecx, dword [0x1dca8]
add ecx, 0xb
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x54]
add edx, 0x16
mov eax, dword [ebp - 0x48]
mov dword [eax], edx
mov eax, dword [0x1dca8]
jmp 0x11025
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x11040
Capabilities:
Map section object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1c948
push 0x1b470
mov eax, dword fs:[0]
push eax
add esp, 0xffffff80
mov eax, dword [0x1dc84]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ecx, 0xb
mov esi, 0x1b800
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x74], 0xc0000001
mov dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x6c], 0x18
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x20]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x6c]
push eax
push 4
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwOpenSection]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x111ef
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
mov edx, dword [ebp - 0x88]
and edx, 0xfffff000
mov eax, dword [ebp - 0x84]
and eax, 0
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], 0x1000
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x78], 0
push 4
push 0
push 1
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
push 0
lea edx, [ebp - 0x78]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x111d2
mov ecx, dword [ebp - 0x88]
and ecx, 0xfffff000
mov edx, dword [ebp - 0x84]
and edx, 0
mov eax, dword [ebp + 8]
sub eax, ecx
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x78]
add ecx, dword [ebp - 0x8c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
push 0x1b7d0
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x10
mov edx, dword [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x78]
push edx
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
jmp 0x111e3
mov eax, dword [ebp - 0x74]
push eax
push 0x1b7a0
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x111fc
push 0x1b780
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov dword [ebp - 4], 0xfffffffe
jmp 0x11222
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0001b3e8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x11250
Capabilities:
Map section object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1c968
push 0x1b470
mov eax, dword fs:[0]
push eax
add esp, 0xffffff80
mov eax, dword [0x1dc84]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ecx, 0xb
mov esi, 0x1b800
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x74], 0xc0000001
mov dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x6c], 0x18
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x20]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x6c]
push eax
push 4
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwOpenSection]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x113db
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
mov edx, dword [ebp - 0x88]
and edx, 0xfffff000
mov eax, dword [ebp - 0x84]
and eax, 0
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], 0x1000
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x78], 0
push 4
push 0
push 1
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
push 0
lea edx, [ebp - 0x78]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x113be
mov ecx, dword [ebp - 0x88]
and ecx, 0xfffff000
mov edx, dword [ebp - 0x84]
and edx, 0
mov eax, dword [ebp + 8]
sub eax, ecx
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x8c]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x78]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
jmp 0x113cf
mov edx, dword [ebp - 0x74]
push edx
push 0x1b7a0
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x113e8
push 0x1b780
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov dword [ebp - 4], 0xfffffffe
jmp 0x1140e
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0001b3e8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x11440
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x1b830
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x10
mov eax, dword [ebp + 0x10]
and eax, 0
je 0x114e2
mov ecx, dword [ebp + 8]
shr ecx, 0x16
and ecx, 0x3ff
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
shr edx, 0xc
and edx, 0x3ff
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
and eax, 0xfff
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x10]
push ecx
push 4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*4]
push ecx
call fcn.00011040
mov edx, dword [ebp - 0x10]
and edx, 0xfffff000
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x10]
push eax
push 4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx*4]
push eax
call fcn.00011040
mov ecx, dword [ebp - 0x10]
and ecx, 0xfffff000
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
jmp 0x11582
mov eax, dword [ebp + 8]
shr eax, 0x1e
and eax, 3
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
shr ecx, 0x15
and ecx, 0x1ff
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
shr edx, 0xc
and edx, 0x1ff
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
and eax, 0xfff
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x10]
push ecx
push 4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*8]
push ecx
call fcn.00011040
mov edx, dword [ebp - 0x10]
and edx, 0xfffff000
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x10]
push eax
push 4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx*8]
push eax
call fcn.00011040
mov ecx, dword [ebp - 0x10]
and ecx, 0xfffff000
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x10]
push edx
push 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax*8]
push edx
call fcn.00011040
mov eax, dword [ebp - 0x10]
and eax, 0xfffff000
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x16280
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0x4000
mov dword [ebp - 8], 0
push 0x6b6444
mov eax, dword [ebp - 4]
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x162c8
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [ebp - 0xc], eax
jmp 0x162cc
xor eax, eax
jmp 0x16313
cmp dword [ebp - 0xc], 0xc0000004
jne 0x162ec
push 0x6b6444
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [ebp - 4]
shl edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 0xc0000004
je 0x16296
cmp dword [ebp - 0xc], 0
jl 0x16302
mov eax, dword [ebp - 8]
jmp 0x16313
push 0x6b6444
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x166c0
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call fcn.00016690
lea eax, [ebp - 4]
push eax
call fcn.00016320
push eax
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x166ef
mov eax, dword [ebp - 8]
jmp 0x168cf
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov edx, dword [0x1e6bc]
mov eax, dword [edx + 0x18]
shl eax, 2
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [0x1e880], eax
cmp dword [0x1e880], 0
je 0x1675b
mov dword [ebp - 0xc], 0
jmp 0x1672e
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [0x1e6bc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x16759
mov ecx, dword [0x1e6bc]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x1e880]
mov esi, dword [ebp - 0xc]
mov edx, dword [edx + esi*4]
mov dword [ecx + eax*4], edx
jmp 0x16725
jmp 0x16765
mov eax, 0xc0000001
jmp 0x168cf
nop
mov eax, dword [0x1e6bc]
mov ecx, dword [eax + 0x10]
mov edx, dword [0x1ef30]
mov eax, dword [ecx + edx*4]
mov dword [0x1e68c], eax
mov ecx, dword [0x1e6bc]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x1e7a0]
mov ecx, dword [edx + eax*4]
mov dword [0x1e8dc], ecx
mov edx, dword [0x1e6bc]
mov eax, dword [edx + 0x10]
mov ecx, dword [0x1e738]
mov edx, dword [eax + ecx*4]
mov dword [0x1e704], edx
mov eax, dword [0x1e6bc]
mov ecx, dword [eax + 0x10]
mov edx, dword [0x1e6fc]
mov eax, dword [ecx + edx*4]
mov dword [0x1e8e8], eax
mov ecx, dword [0x1e6bc]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x1e730]
mov ecx, dword [edx + eax*4]
mov dword [0x1eef8], ecx
mov edx, dword [0x1e6bc]
mov eax, dword [edx + 0x10]
mov ecx, dword [0x1eefc]
mov edx, dword [eax + ecx*4]
mov dword [0x1ef20], edx
mov eax, dword [0x1e6bc]
mov ecx, dword [eax + 0x10]
mov edx, dword [0x1eac0]
mov eax, dword [ecx + edx*4]
mov dword [0x1ef18], eax
mov ecx, dword [0x1e6bc]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x1e8b4]
mov ecx, dword [edx + eax*4]
mov dword [0x1e6b4], ecx
mov edx, dword [0x1e6bc]
mov eax, dword [edx + 0x10]
mov ecx, dword [0x1e844]
mov edx, dword [eax + ecx*4]
mov dword [0x1e80c], edx
mov eax, dword [0x1e6bc]
mov ecx, dword [eax + 0x10]
mov edx, dword [0x1e740]
mov eax, dword [ecx + edx*4]
mov dword [0x1e6b8], eax
mov ecx, dword [0x1e6bc]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x1e71c]
mov ecx, dword [edx + eax*4]
mov dword [0x1e7a8], ecx
mov edx, dword [0x1e6bc]
mov eax, dword [edx + 0x10]
mov ecx, dword [0x1eeec]
mov edx, dword [eax + ecx*4]
mov dword [0x1e874], edx
mov eax, dword [0x1e6bc]
mov ecx, dword [eax + 0x10]
mov edx, dword [0x1e6c0]
mov eax, dword [ecx + edx*4]
mov dword [0x1e848], eax
mov ecx, dword [0x1e80c]
mov edx, dword [ecx + 3]
mov dword [0x1dee0], edx
mov eax, dword [0x1e80c]
add eax, 7
mov dword [0x1dee4], eax
nop
nop
cli
mov eax, cr0
and eax, 0xfffeffff
mov cr0, eax
mov eax, cr0
or eax, 0x10000
mov cr0, eax
sti
nop
call dword [sym.imp.ntoskrnl.exe_KeDetachProcess]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x168e0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetProcessImageFileName]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x1dc
mov ecx, dword [ebp - 8]
push ecx
call fcn.00015b40
cmp eax, 1
jne 0x16925
mov edx, dword [0x1e870]
mov eax, dword [edx]
mov dword [0x1ef24], eax
jmp 0x16a49
push 0x1b860
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe__stricmp]
add esp, 8
test eax, eax
jne 0x169e5
mov edx, dword [ebp + 0x20]
cmp edx, dword [0x1e894]
jne 0x169e5
cmp dword [0x1dcc0], 1
jne 0x1699d
mov dword [0x1dcc0], 0
push 0x1dcc8
call fcn.00010d60
mov dword [0x1e00c], eax
mov eax, dword [0x1e00c]
push eax
push 0x1dcc8
push 0x1be00
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
cmp dword [0x1e00c], 0
je 0x1699d
mov ecx, dword [ebp + 8]
mov edx, dword [0x1e00c]
mov dword [ecx + 0x68], edx
cmp dword [0x1dcb0], 0
je 0x169e5
cmp dword [0x1dcac], 0
je 0x169e5
cmp dword [0x1dcc4], 1
jne 0x169da
mov dword [0x1dcc4], 0
push 0x8000
lea eax, [ebp - 4]
push eax
mov ecx, dword [0x1e00c]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov edx, dword [ebp + 8]
mov eax, dword [0x1dcac]
mov dword [edx + 0x68], eax
mov ecx, dword [0x1eef4]
mov dword [0x1ef24], ecx
cmp dword [0x1dcb8], 1
jne 0x16a49
mov edx, dword [ebp + 0x20]
cmp edx, dword [0x1e8cc]
je 0x16a3c
mov eax, dword [ebp + 0x20]
cmp eax, dword [0x1e878]
je 0x16a3c
mov ecx, dword [ebp + 0x20]
cmp ecx, dword [0x1e70c]
je 0x16a3c
mov edx, dword [ebp + 0x20]
cmp edx, dword [0x1e728]
je 0x16a3c
mov eax, dword [ebp + 0x20]
cmp eax, dword [0x1e84c]
je 0x16a3c
mov ecx, dword [ebp + 0x20]
cmp ecx, dword [0x1e754]
jne 0x16a49
mov edx, dword [0x1e870]
mov eax, dword [edx]
mov dword [0x1ef24], eax
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x177f0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xa0]
mov ecx, dword [edx + 0xa4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x14], 0
je 0x178f1
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x20]
add edx, 8
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], 0
jmp 0x1787c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
jae 0x178d4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
mov cx, word [eax + edx*2]
mov word [ebp - 0x10], cx
movzx edx, word [ebp - 0x10]
sar edx, 0xc
cmp edx, 3
jne 0x178d2
movzx eax, word [ebp - 0x10]
and eax, 0xfff
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx]
add eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x178c5
jmp 0x17873
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
add edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
mov dword [eax], edx
jmp 0x17873
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
sub edx, dword [ecx + 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
jmp 0x17849
push 0x1bed0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 8