joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7aaf90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x7aaffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7ab035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.007aae00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x7aafc5
mov edi, 0x7c58b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7ab035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.007aae00
add edi, 4
add esp, 0xc
cmp edi, 0x7c58c0
jb 0x7ab000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x7ab070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.007b1082
mov esi, eax
add esp, 8
test esi, esi
je 0x7ab107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x7ab102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.007b0946
add esp, 8
test eax, eax
je 0x7ab0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x7ab0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.007b0946
add esp, 8
test eax, eax
jne 0x7ab0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x7ab102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x7abf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7c09fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x7ac002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.007afdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x7ac002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.007a76e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.007b020b
push 0x10
call fcn.007b01d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x7abfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0079c1c0
jmp 0x7abfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.007abb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x7abff0
mov ecx, edi
call fcn.0079c2c0
push edi
call fcn.007b01c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x7ac021
inc ebx
cmp ebx, 0x20
jb 0x7abf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x7ad250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7c1808
push 0x7b1288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x7ad329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x7ad329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.007b01d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x7ad329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x7ad329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x7ad32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.007ad351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7add20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x7add58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x7add60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x7add94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x7add94
push eax
push esi
call fcn.007b020b
add esp, 8
pop esi
ret 0x10

Function at 0x7adda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ade22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x7ade15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x7c6320
push ecx
mov dword [esp + 0x1c], 4
call fcn.007afdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x7addda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x7ade30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7adec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x7adeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x7c6320
push ecx
mov dword [esp + 0x1c], 4
call fcn.007afdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x7adeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x7ade6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x7ae000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x7ae131
push esi
call fcn.007b1145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.007a0080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x7ae131
push 0
push ebp
call fcn.007a03a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.007a0260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x7ae08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007a02f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x7ae121
push 0x7c6918
push edi
call fcn.007af3f0
push eax
push ebx
push esi
call fcn.007adf60
push 0x7c68f8
push edi
call fcn.007af3f0
push eax
push ebx
push esi
call fcn.007adf60
push 0x7c68d8
push edi
call fcn.007af3f0
push eax
push ebx
push esi
call fcn.007adf60
push 0x7c68c0
push edi
call fcn.007af3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.007adf60
push 0x7c68a0
push edi
call fcn.007af3f0
push eax
push ebx
push esi
call fcn.007adf60
push 0x7c6888
push edi
call fcn.007af3f0
push eax
push ebx
push esi
call fcn.007adf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7af1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.007af140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007af140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007af140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007af140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x7afbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7afc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7c187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7afc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7afc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x109c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x160c8
push 0x15590
mov eax, dword fs:[0]
push eax
add esp, 0xffffff94
push ebx
push esi
push edi
mov eax, dword [0x17284]
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], 0x172a4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x40], 0x64
mov dword [0x172a4], 0
mov eax, 0x10970
sub eax, 0x107b0
mov dword [ebp - 0x38], eax
push 0x40
push 0x3000
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0x172a4
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov edx, dword [ebp - 0x38]
push edx
push 0x107b0
mov eax, dword [0x172a4]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov ecx, dword [0x172a4]
mov dword [ebp - 0x54], ecx
push 0x12c
push 0
mov edx, dword [0x172a4]
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 0x10aad
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 [0x172a4]
add ecx, 0x16
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov edx, dword [0x172a4]
mov eax, dword [0x17cbc]
mov dword [edx + 0x101], eax
mov ecx, dword [0x172a4]
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 [0x172a4]
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 [0x172a4]
jmp 0x10c85
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 0x10ca0
Capabilities:
Map section object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x160e8
push 0x15590
mov eax, dword fs:[0]
push eax
add esp, 0xffffff80
mov eax, dword [0x17284]
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, 0x158c0
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 0x10e2b
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 0x10e0e
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 - 0x78]
add edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp + 0x10]
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 0x10e1f
mov edx, dword [ebp - 0x74]
push edx
push 0x15890
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x10e38
push 0x15870
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov dword [ebp - 4], 0xfffffffe
jmp 0x10e5e
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.00015518
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10e90
Capabilities:
Map section object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x16108
push 0x15590
mov eax, dword fs:[0]
push eax
add esp, 0xffffff80
mov eax, dword [0x17284]
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, 0x158c0
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 0x1101b
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 0x10ffe
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 0x1100f
mov edx, dword [ebp - 0x74]
push edx
push 0x15890
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x11028
push 0x15870
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov dword [ebp - 4], 0xfffffffe
jmp 0x1104e
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.00015518
mov esp, ebp
pop ebp
ret 0xc
Function at 0x12790
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.00012450
cmp eax, 1
jne 0x127d5
mov edx, dword [0x17db0]
mov eax, dword [edx]
mov dword [0x18294], eax
jmp 0x128f9
push 0x15950
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe__stricmp]
add esp, 8
test eax, eax
jne 0x12895
mov edx, dword [ebp + 0x20]
cmp edx, dword [0x17dcc]
jne 0x12895
cmp dword [0x172bc], 1
jne 0x1284d
mov dword [0x172bc], 0
push 0x172c8
call fcn.000109c0
mov dword [0x17608], eax
mov eax, dword [0x17608]
push eax
push 0x172c8
push 0x15a20
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
cmp dword [0x17608], 0
je 0x1284d
mov ecx, dword [ebp + 8]
mov edx, dword [0x17608]
mov dword [ecx + 0x68], edx
cmp dword [0x172ac], 0
je 0x12895
cmp dword [0x172a8], 0
je 0x12895
cmp dword [0x172c0], 1
jne 0x1288a
mov dword [0x172c0], 0
push 0x8000
lea eax, [ebp - 4]
push eax
mov ecx, dword [0x17608]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov edx, dword [ebp + 8]
mov eax, dword [0x172a8]
mov dword [edx + 0x68], eax
mov ecx, dword [0x18274]
mov dword [0x18294], ecx
cmp dword [0x172b4], 1
jne 0x128f9
mov edx, dword [ebp + 0x20]
cmp edx, dword [0x17df8]
je 0x128ec
mov eax, dword [ebp + 0x20]
cmp eax, dword [0x17db4]
je 0x128ec
mov ecx, dword [ebp + 0x20]
cmp ecx, dword [0x17cc4]
je 0x128ec
mov edx, dword [ebp + 0x20]
cmp edx, dword [0x17cd4]
je 0x128ec
mov eax, dword [ebp + 0x20]
cmp eax, dword [0x17d98]
je 0x128ec
mov ecx, dword [ebp + 0x20]
cmp ecx, dword [0x17d00]
jne 0x128f9
mov edx, dword [0x17db0]
mov eax, dword [edx]
mov dword [0x18294], eax
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x14bc0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0xc0000225
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push 0x15c30
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea edx, [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x14bfe
mov eax, 0xc0000225
jmp 0x14c3f
push 0
lea eax, [ebp - 0xc]
push eax
push 0x14b90
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x10]
movzx edx, al
test edx, edx
je 0x14c3c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x15c10
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
xchg dword [ecx], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 8

Function at 0x14c50
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x14c7b
mov eax, dword [ebp - 0x10]
jmp 0x14ce9
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edx, dword [ebp - 4]
add edx, dword [0x1727c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc4]
add eax, 0x1c
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4