joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6678e1fb
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6715a008]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x6715a008]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x6678e2c9
jmp 0x6678e377
jmp 0x6678e425
jmp 0x6678e4d3
jmp 0x6678e581
jmp 0x6678e62f
jmp 0x6678e6dd
jmp 0x6678e78b
jmp 0x6678e839
jmp 0x6678e8e7
jmp 0x6678e995
jmp 0x6678ea43
jmp 0x6678eaf1
jmp 0x6678eb9f
jmp 0x6678ec4d
jmp 0x6678ecfb
jmp 0x6678eda9
jmp 0x6678ee57
jmp 0x6678ef05
jmp 0x6678efb3
mov dword [ebp - 0x14], 0
jmp 0x6678f068
jmp 0x6678f116
jmp 0x6678f1c4
jmp 0x6678f272
jmp 0x6678f320
jmp 0x6678f3ce
jmp 0x6678f47c
jmp 0x6678f52a
jmp 0x6678f5d8
jmp 0x6678f686
jmp 0x6678f734
jmp 0x6678f7e2
jmp 0x6678f890
jmp 0x6678f93e
jmp 0x6678f9ec
jmp 0x6678fa9a
jmp 0x6678fb48
jmp 0x6678fbf6
jmp 0x6678fca4
jmp 0x6678fd52
mov dword [ebp - 0x18], 0
jmp 0x6678fe07
jmp 0x6678feb5
jmp 0x6678ff63
jmp 0x66790011
jmp 0x667900bf
jmp 0x6679016d
jmp 0x6679021b
jmp 0x667902c9
jmp 0x66790377
jmp 0x66790425
jmp 0x667904d3
jmp 0x66790581
jmp 0x6679062f
jmp 0x667906dd
jmp 0x6679078b
jmp 0x66790839
jmp 0x667908e7
jmp 0x66790995
jmp 0x66790a43
jmp 0x66790af1
mov dword [ebp - 0x10], 0
jmp 0x66790ba6
jmp 0x66790c54
jmp 0x66790d02
jmp 0x66790db0
jmp 0x66790e5e
jmp 0x66790f0c
jmp 0x66790fba
jmp 0x66791068
jmp 0x66791116
jmp 0x667911c4
jmp 0x66791272
jmp 0x66791320
jmp 0x667913ce
jmp 0x6679147c
jmp 0x6679152a
jmp 0x667915d8
jmp 0x66791686
jmp 0x66791734
jmp 0x667917e2
jmp 0x66791890
mov dword [ebp - 0x10], 0
jmp 0x66795cda
jmp 0x6679194a
jmp 0x667919f8
jmp 0x66791aa6
jmp 0x66791b54
jmp 0x66791c02
jmp 0x66791cb0
jmp 0x66791d5e
jmp 0x66791e0c
jmp 0x66791eba
jmp 0x66791f68
jmp 0x66792016
jmp 0x667920c4
jmp 0x66792172
jmp 0x66792220
jmp 0x667922ce
jmp 0x6679237c
jmp 0x6679242a
jmp 0x667924d8
jmp 0x66792586
jmp 0x66792634
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x6715a004]
add eax, edx
mov dword [ebp - 0x14], eax
jmp 0x667926f3
jmp 0x667927a1
jmp 0x6679284f
jmp 0x667928fd
jmp 0x667929ab
jmp 0x66792a59
jmp 0x66792b07
jmp 0x66792bb5
jmp 0x66792c63
jmp 0x66792d11
jmp 0x66792dbf
jmp 0x66792e6d
jmp 0x66792f1b
jmp 0x66792fc9
jmp 0x66793077
jmp 0x66793125
jmp 0x667931d3
jmp 0x66793281
jmp 0x6679332f
jmp 0x667933dd
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x6715a00c]
add eax, edx
mov dword [ebp - 0x18], eax
jmp 0x6679349c
jmp 0x6679354a
jmp 0x667935f8
jmp 0x667936a6
jmp 0x66793754
jmp 0x66793802
jmp fcn.667938b0
mov eax, dword [0x6715a008]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x6679189c
nop
leave
ret

Function at 0x667bc7a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x67159040
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.667bc800
Function at 0x667bc800
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6715a378]
test esi, esi
jle 0x667bc8ed
mov edi, dword [0x6715a37c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x667bc834
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x667bc8e6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x667bc820
mov dword [esp], eax
mov esi, eax
call fcn.667bcfa0
test eax, eax
mov edi, eax
je 0x667bc92a
mov esi, dword [0x6715a37c]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.667bd0b0
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6715a37c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x667bc90a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x667bc8df
sub eax, 0x40
and eax, 0xffffffbf
je 0x667bc8df
mov eax, dword [esp + 0x20]
add ebx, dword [0x6715a37c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x667bc8f4
add dword [0x6715a378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x667bc83e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.667bc7a0
mov eax, dword [0x6715a37c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.667bc7a0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.667bc7a0
lea esi, [esi]

Function at 0x667bcc10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6715a388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6715a380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x667bcc65
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x667bcc5e
test esi, esi
je 0x667bcc5e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x667bcc40
mov dword [esp], 0x6715a388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10e32
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4

Function at 0x11bc0
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
push ebx
push ebx
push 0xb
xor esi, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jne 0x11bf4
cmp dword [ebp - 4], ebx
jne 0x11c29
mov dword [ebp - 4], 0xc0000017
jmp 0x11c26
push 0x676d6241
lea edi, [eax + 0x400]
push edi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
cmp esi, ebx
jne 0x11c16
mov dword [ebp - 4], 0xc0000017
jmp 0x11c90
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jl 0x11c90
mov dword [ebp - 4], 0xc000000f
cmp dword [ebp + 8], ebx
jne 0x11c47
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], ebx
jmp 0x11c8b
mov ebx, dword [esi]
xor edi, edi
test ebx, ebx
jbe 0x11c90
lea eax, [esi + 0x20]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00011b70
test eax, eax
je 0x11c72
add dword [ebp - 8], 0x11c
inc edi
cmp edi, ebx
jb 0x11c55
jmp 0x11c90
mov edx, dword [ebp + 0xc]
imul edi, edi, 0x11c
and dword [ebp - 4], 0
lea eax, [edi + esi + 4]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test esi, esi
je 0x11c9d
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x11cac
Capabilities:
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x11daf
cmp dword [ebp + 0xc], esi
je 0x11daf
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
je 0x11daf
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x11daf
push dword [ebp + 8]
lea eax, [ebp - 8]
mov dword [ebx], esi
push eax
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], esi
mov dword [edi], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x60
lea eax, [ebp - 8]
mov dword [ebp - 0x20], eax
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x100020
lea eax, [ebp + 0x14]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 0x240
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x11d8d
push dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push 0x1000000
push 0x10
push esi
push eax
push 0xf001f
lea eax, [ebp + 0x10]
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x11d8d
push 4
push 0x100000
push 1
push edi
push esi
push esi
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp + 0x10]
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x11d8d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], esi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp + 0x10], esi
je 0x11da0
push dword [ebp + 0x10]
call edi
mov dword [ebp + 0x10], esi
cmp dword [ebp + 0x14], esi
je 0x11daa
push dword [ebp + 0x14]
call edi
mov eax, dword [ebp + 8]
jmp 0x11db4
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x11dfe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x11ed2
cmp dword [ebp + 0xc], edi
je 0x11ed2
cmp dword [ebp + 0x10], edi
je 0x11ed2
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 4]
push eax
push edi
push edi
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x11e63
cmp ebx, 0x80000005
jne 0x11ee4
mov ebx, dword [ebp - 4]
push 0x6b76715a
push ebx
push 1
mov dword [ebp + 0xc], ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
test edi, edi
jne 0x11e84
mov ebx, 0xc000009a
jmp 0x11ed7
push ebx
push 0
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
jl 0x11ed7
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jne 0x11ed7
mov eax, dword [edi + 8]
cmp dword [ebp + 0x14], eax
jb 0x11ecb
push eax
lea eax, [edi + 0xc]
push eax
push dword [ebp + 0x10]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
xor ebx, ebx
jmp 0x11ed7
mov ebx, 0xc0000023
jmp 0x11ed7
mov ebx, 0xc000000d
test edi, edi
je 0x11ee4
push 0
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10

Function at 0x13ba8
Capabilities:
Attach user process memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x13c73
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x13c73
push ebx
push esi
mov esi, 0x208
mov dword [ebp - 8], esi
mov byte [ebp - 1], 0
mov dword [eax], edi
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp dword [ebp + 8], eax
je 0x13bf3
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [ebp - 1], 1
mov ebx, 0x7069715a
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
jmp 0x13c46
push dword [ebp - 8]
push 0
push esi
call sub.ntoskrnl.exe_memset
and dword [ebp - 0xc], 0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push 0x1b
push 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryInformationProcess
mov dword [ebp + 8], eax
test eax, eax
jge 0x13c57
cmp eax, 0xc0000023
jne 0x13c5c
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
shl dword [ebp - 8], 1
push ebx
push dword [ebp - 8]
push 0
call edi
mov esi, eax
test esi, esi
jne 0x13c03
mov dword [ebp + 8], 0xc000009a
jmp 0x13c5c
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
cmp byte [ebp - 1], 1
pop esi
pop ebx
jne 0x13c6e
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [ebp + 8]
jmp 0x13c78
mov eax, 0xc000000d
pop edi
leave
ret 8
Function at 0x13c82
Capabilities:
Enumerate processes via ntquerysysteminformation
Find process by pid
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov edi, 0x2e00
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call esi
mov ebx, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 8], 0
je 0x13cc5
push 0
push dword [ebp - 8]
call ebx
push 0x30303030
push edi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x13da6
push edi
push 0
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x13d0e
add edi, edi
cmp edi, 0x100000
ja 0x13d95
test eax, eax
jne 0x13cb8
mov edi, dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 0x38]
push eax
mov dword [ebp - 0xc], esi
call edi
test eax, eax
jne 0x13d85
lea eax, [ebp + 8]
push eax
push dword [esi + 0x44]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x13d85
cmp dword [ebp + 8], 0
je 0x13d85
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00013ba8
test eax, eax
jne 0x13d7c
push 1
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x13d6b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0
push dword [ebp + 0xc]
call ebx
and dword [ebp + 0xc], 0
cmp dword [ebp - 4], 0
jne 0x13d85
mov ecx, dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0xc]
add esi, dword [esi]
cmp dword [eax], 0
je 0x13d95
cmp dword [ebp - 4], 0
je 0x13d18
push 0
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x13d9f
Function at 0x14b48
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
test al, al
jbe 0x14b6b
mov edi, 0xc000000d
jmp 0x14c82
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x292e2
lea eax, [ebp - 0x18]
push eax
call esi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
push 0x20019
lea eax, [ebp - 4]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x28], ecx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov edi, eax
test edi, edi
jl 0x14c81
call fcn.000138b0
test eax, eax
jne 0x14bce
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [eax], edi
jmp 0x14c81
push 0x293f2
lea eax, [ebp - 0x10]
push eax
call esi
lea eax, [ebp - 8]
push eax
push 0
push 0
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edi, eax
mov ecx, 0xc0000023
cmp edi, ecx
je 0x14c03
cmp edi, 0x80000005
jne 0x14c81
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
cmp dword [esi], eax
jae 0x14c11
mov edi, ecx
jmp 0x14c7f
push 0x6b76515a
lea edi, [eax + 0x400]
push edi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
test ebx, ebx
jne 0x14c35
mov edi, 0xc000009a
mov eax, dword [ebp - 8]
jmp 0x14c7f
push edi
push 0
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edi, eax
test edi, edi
jl 0x14c30
mov eax, dword [ebx + 8]
cmp eax, dword [esi]
jbe 0x14c6a
mov edi, 0xc0000023
jmp 0x14c30
push eax
lea eax, [ebx + 0xc]
push eax
push dword [ebp + 8]
call sub.ntoskrnl.exe_memcpy
mov eax, dword [ebx + 8]
add esp, 0xc
xor edi, edi
mov dword [esi], eax
pop esi
cmp dword [ebp - 4], 0
je 0x14c95
lea eax, [ebp - 4]
push eax
call fcn.00011dc0
and dword [ebp - 4], 0
test ebx, ebx
je 0x14ca5
push 0x6b76515a
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x15a34
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [0x33db0], 1
je 0x15aba
push esi
push esi
push 0x33d30
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
push esi
push 0x15994
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x1f03ff
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov edi, eax
cmp edi, esi
jl 0x15aba
push esi
push 0x33dac
push esi
push esi
push 0x100000
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [0x33db0], 1
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1608c
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x30f04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x33dd8]
and dword [ebp - 0x250], 0
test eax, eax
je 0x160d0
lea ecx, [ebp - 0x250]
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x160d0
cmp dword [ebp - 0x250], 0
jne 0x16166
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x44]
push eax
push 0x2a1b4
call fcn.0001189e
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0x2a1c8
call fcn.0001189e
call fcn.00012e4c
pop edi
test eax, eax
je 0x1614c
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push 0x33e3e
push eax
push 0x29392
lea eax, [ebp - 0x24c]
push 0x104
push eax
call fcn.00012e72
add esp, 0x1c
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00013c82
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x16166
push dword [ebp - 0x250]
call dword [sym.imp.ntoskrnl.exe_PsGetProcessId]
mov dword [0x33dd8], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x250]
xor ecx, ebp
call fcn.0002738c
leave
ret
Function at 0x1625a
Capabilities:
Attach user process memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [0x33dbc], ebx
jne 0x1647e
push esi
xor esi, esi
inc esi
mov dword [ebp - 4], ebx
mov eax, esi
mov ecx, 0x33dd4
xchg dword [ecx], eax
test eax, eax
jne 0x16449
mov dword [ebp - 4], esi
call fcn.00011956
cmp eax, esi
jne 0x162b5
mov dword [0x30574], 0x1e3
mov dword [0x30578], 0x194
mov dword [0x30560], 0x117a
jmp 0x16332
call fcn.00011968
cmp eax, esi
jne 0x162de
mov dword [0x30574], 0x1e1
mov dword [0x30578], 0x193
mov dword [0x30560], 0x1179
jmp 0x16332
call fcn.0001197a
cmp eax, esi
jne 0x16307
mov dword [0x30574], 0x1f8
mov dword [0x30578], 0x1a2
mov dword [0x30560], 0x1187
jmp 0x16332
call fcn.0001198c
cmp eax, esi
jne 0x16449
mov dword [0x30574], 0x203
mov dword [0x30578], 0x1a7
mov dword [0x30560], 0x118c
push edi
call fcn.0001608c
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x16448
lea eax, [ebp - 0x24]
push eax
push edi
mov dword [ebp - 4], 3
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call fcn.0001617e
mov esi, eax
cmp esi, ebx
je 0x16448
mov ecx, edi
mov dword [ebp - 4], 7
call dword [sym.imp.ntoskrnl.exe_ObfReferenceObject]
mov edi, dword [esi + 0x18]
push 0x6f64734d
mov eax, edi
shl eax, 2
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x16448
xor ecx, ecx
cmp edi, ebx
jbe 0x163a9
mov edx, dword [esi + 0x10]
mov edx, dword [edx + ecx*4]
mov dword [eax + ecx*4], edx
inc ecx
cmp ecx, edi
jb 0x1639b
cmp dword [0x30564], ebx
jne 0x163f5
mov ebx, dword [0x30560]
cmp ebx, 0xffffffff
je 0x163f5
lea eax, [esi + 0x10]
push eax
push 0x3056c
push dword [0x30570]
push ebx
call fcn.00011a5e
cmp dword [0x3056c], 0
je 0x163f5
mov eax, dword [ebp - 8]
and ebx, 0xfff
mov dword [0x30564], 2
mov eax, dword [eax + ebx*4]
mov dword [0x30568], eax
mov eax, dword [0x30574]
test eax, eax
jbe 0x1640d
cmp eax, edi
jae 0x1640d
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + eax*4]
mov dword [0x33dc0], eax
mov eax, dword [0x30578]
test eax, eax
jbe 0x16425
cmp eax, edi
jae 0x16425
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + eax*4]
mov dword [0x33db8], eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0001b548
mov eax, dword [ebp - 8]
mov dword [0x33dd0], ebx
mov dword [0x33dc4], eax
mov dword [0x33db4], edi
mov dword [0x33dbc], esi
pop edi
mov ebx, dword [ebp - 4]
pop esi
test bl, 4
je 0x1645e
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
and ebx, 0xfffffffb
test bl, 2
je 0x16470
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
and ebx, 0xfffffffd
test bl, 1
je 0x1647e
xor eax, eax
mov ecx, 0x33dd4
xchg dword [ecx], eax
pop ebx
leave
ret
Function at 0x1674a
Capabilities:
Attach user process memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0xc0000001
stosd dword es:[edi], eax
cmp dword [0x33dbc], ebx
je 0x16834
cmp dword [0x340c4], ebx
je 0x16834
call fcn.0001608c
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x16830
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov eax, dword [0x30560]
cmp eax, ebx
jl 0x1681b
cmp dword [0x30564], ebx
je 0x1681b
and eax, 0xfff
cmp eax, dword [0x340c8]
jge 0x1681b
mov ecx, dword [0x33dbc]
mov edi, dword [0x340c4]
add ecx, 0x10
mov edx, dword [ecx]
mov esi, eax
shl esi, 2
mov edx, dword [esi + edx]
cmp edx, dword [esi + edi]
jne 0x1681b
push ecx
push 0x3056c
push dword [0x30570]
push eax
call fcn.00011a5e
cmp dword [0x3056c], ebx
je 0x1681b
mov eax, dword [0x340c4]
mov dword [0x30564], 2
push dword [esi + eax]
call fcn.000129a2
cmp eax, 1
jne 0x1681b
mov eax, dword [0x340c4]
mov eax, dword [esi + eax]
mov dword [0x30568], eax
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
jmp 0x16839
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
leave
ret