joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa680
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 0xc
jne 0x4aa6ca
push 0xe
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x4aa6af
push eax
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 8]
jne 0x4aa6bf
mov eax, dword [esi + 0xc]
cmp eax, dword [ebp - 4]
je 0x4aa6ca
push 0xc00000e5
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4aa6e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov ecx, 0
push 0
test byte [edi + 4], 8
lea eax, [edi + 8]
cmove eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push edx
push eax
push ecx
push ecx
push ecx
push dword [edi]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x4aa729
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x4aa740
mov eax, dword [ebp - 8]
test eax, eax
js 0x4aa740
mov ecx, dword [ebp - 4]
add dword [edi + 8], ecx
mov edx, dword [ebp + 0xc]
adc dword [edi + 0xc], 0
test edx, edx
je 0x4aa740
mov dword [edx], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4aa8c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov ecx, 0
push 0
test byte [edi + 4], 8
lea eax, [edi + 8]
cmove eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push edx
push eax
push ecx
push ecx
push ecx
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp ecx, 0x103
jne 0x4aa90c
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x4aa923
mov ecx, dword [ebp - 0xc]
test ecx, ecx
js 0x4aa921
mov eax, dword [ebp - 8]
add dword [edi + 8], eax
adc dword [edi + 0xc], 0
or dword [edi + 4], 0x80000000
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4aaa80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor edx, edx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
sub eax, edi
je 0x4aaae0
sub edi, dword [esi + 0x1c]
xor ecx, ecx
mov eax, edi
cdq
add dword [esi + 8], eax
adc dword [esi + 0xc], edx
test byte [esi + 4], 8
jne 0x4aaad2
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
push 0xe
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push 8
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ecx, eax
mov edx, eax
test ecx, ecx
js 0x4aaad8
mov edx, ecx
test ecx, ecx
jns 0x4aaae0
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x18], 0
mov eax, edx
mov dword [esi + 0x1c], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4aab00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov ecx, 0
push edi
push 0
test byte [esi + 4], 8
lea eax, [esi + 8]
cmove eax, ecx
push eax
push dword [esi + 0x20]
lea eax, [ebp - 8]
push dword [esi + 0x10]
push eax
push ecx
push ecx
push ecx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp ecx, 0x103
jne 0x4aab50
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ecx, eax
test ecx, ecx
js 0x4aab6c
mov ecx, dword [ebp - 8]
test ecx, ecx
js 0x4aab6c
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov dword [esi + 0x20], 0
adc dword [esi + 0xc], 0
or dword [esi + 4], 0x80000000
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4aac00
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x2c
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov edi, edx
sub eax, ecx
je 0x4aac66
sub eax, 1
je 0x4aac59
sub eax, 1
jne 0x4aac71
push 5
push 0x18
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edx, eax
test edx, edx
jns 0x4aac3d
mov ecx, eax
jmp 0x4aac4b
mov eax, dword [ebp - 0x24]
mov ecx, edx
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], eax
test edx, edx
jns 0x4aac59
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
add dword [esi + 8], eax
mov eax, dword [edi + 4]
adc dword [esi + 0xc], eax
jmp 0x4aac71
mov eax, dword [edi]
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
mov dword [esi + 0xc], eax
test byte [esi + 4], 8
jne 0x4aac99
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0xc]
push 0xe
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 8
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ecx, eax
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4ad3b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp byte [0x5496b4], 0
push ebx
push edi
mov edi, edx
mov ebx, ecx
je 0x4ad43c
push esi
push 0
push 0
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push 0x9999200b
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], edi
push eax
push 0
push 0x4b4060
push 0
push dword [0x5496ac]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 0x4b4150
mov dword [ebp - 0x14], 0xc0000001
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtTestAlert]
mov eax, dword [ebp - 0x14]
test esi, esi
cmovs eax, esi
pop esi
cmp eax, 0xc00000db
jne 0x4ad435
push edi
call dword [sym.imp.ntdll.dll_RtlExitUserProcess]
cmp eax, 0xc00000bb
jne 0x4ad444
push edi
push ebx
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ae100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
push esi
mov esi, dword [ebp + 0xc]
jae 0x4ae14b
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov edx, 0x4af6c0
mov dword [ebp - 0x10], 0xc0000135
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 1
call fcn.004af340
mov ecx, dword [ebp - 0x10]
test eax, eax
cmovs ecx, eax
test ecx, ecx
jns 0x4ae14b
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 0x522ce8
call fcn.004a2030
test eax, eax
je 0x4ae167
push 0
mov edx, 0x5333b8
mov ecx, eax
call fcn.004a20e0
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
test eax, eax
js 0x4ae1be
push dword [ebp + 0x10]
push 0
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
jne 0x4ae1b3
push eax
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov esi, eax
test esi, esi
cmovns esi, dword [ebp - 0x2c]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4aea60
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x20]
push 5
push 0x18
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edx, eax
test edx, edx
js 0x4aea91
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov eax, edx
mov esp, ebp
pop ebp
ret 8

Function at 0x4aeaa0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
push 0x14
push 8
mov eax, dword [ecx]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esp, ebp
pop ebp
ret 8
Function at 0x4aeee0
Capabilities:
Delete registry key
Persist via windows service
Set registry value
Unload driver

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push dword [0x54b7b4]
mov edi, ecx
mov esi, dword [edi]
add esi, dword [0x547c90]
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor eax, eax
lea ecx, [ebx + 8]
mov dword [ebx + 4], ecx
mov dword [ebx], esi
mov word [ecx + esi], ax
push dword [0x547c90]
push dword [0x547c94]
push dword [ebx + 4]
call fcn.004dd620
push dword [edi]
mov eax, dword [ebx + 4]
push dword [edi + 4]
add eax, dword [0x547c90]
push eax
call fcn.004dd620
movzx eax, word [ebx]
add esp, 0x18
mov word [ebp - 0x1c], ax
movzx eax, word [ebx]
add ax, 2
mov word [ebp - 0x1a], ax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x18], eax
cmp dword [ebx], 0xfffe
jbe 0x4aef7c
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4aef70
call fcn.004a2a20
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push ebx
push 0
push 0x30006
lea eax, [ebp - 4]
push eax
call sym.ProcessHacker.exe_PhCreateKey
mov esi, eax
test esi, esi
js 0x4af073
cmp dword [ebp - 0xc], 1
jne 0x4af04f
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1a0018
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], str.ErrorControl
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0xc000a
push eax
push 4
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x533538
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0xa0008
push eax
push 4
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], str.Type
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
movzx eax, word [0x547ca0]
add eax, 2
mov dword [ebp - 0x14], 0x140012
push eax
push dword [0x547ca4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], str.ImagePath
push 1
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_NtUnloadDriver]
cmp dword [ebp - 0xc], 1
mov esi, eax
jne 0x4af06a
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4af086
call fcn.004a2a20
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4afd90
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x800
push 4
push dword [0x54b674]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, eax
cmp ecx, 0xc0000004
jne 0x4afdff
push esi
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, eax
test ecx, ecx
js 0x4afe08
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4b00e0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [0x547ce0]
push edi
push esi
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x10
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x4b0153
push edi
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x4b016f
push esi
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x10
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
je 0x4b0113
test ebx, ebx
jns 0x4b017b
push edi
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
pop ebp
ret 4
mov eax, dword [0x547ce0]
cmp esi, 0x100000
cmovbe eax, esi
mov dword [0x547ce0], eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4b01a0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [0x547c0c]
push edi
push esi
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x40
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x4b0213
push edi
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x4b022f
push esi
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x40
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
je 0x4b01d3
test ebx, ebx
jns 0x4b023b
push edi
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
pop ebp
ret 4
mov eax, dword [0x547c0c]
cmp esi, 0x200000
cmovbe eax, esi
mov dword [0x547c0c], eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4b0260
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, 0x200
push esi
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x12
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x4b02d2
push edi
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x4b02ee
push esi
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x12
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
je 0x4b0292
test ebx, ebx
jns 0x4b02fa
push edi
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4b0310
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x100
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp + 8]
mov edi, eax
push 0
push 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
push 0x58
mov dword [ebp - 0x10], 0x1000000
mov dword [ebp - 0xc], edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, 0xc0000004
jne 0x4b0390
push edi
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx eax, word [ebp - 0xe]
push eax
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
mov edi, eax
lea eax, [ebp - 0x14]
push 0xc
push eax
push 0x58
mov dword [ebp - 0xc], edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test esi, esi
jns 0x4b03ad
push edi
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ax, word [ebp - 0x10]
push ebx
test ax, ax
jne 0x4b03c0
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov ebx, eax
jmp 0x4b0402
push dword [0x54b7b4]
mov ecx, dword [ebp - 0xc]
movzx eax, ax
mov dword [ebp - 4], eax
add eax, 0xa
push eax
mov dword [ebp - 8], ecx
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, dword [ebp - 4]
mov ebx, eax
lea eax, [ebx + 8]
xor edx, edx
mov dword [ebx + 4], eax
mov dword [ebx], ecx
mov word [eax + ecx], dx
mov eax, dword [ebp - 8]
test eax, eax
je 0x4b0402
push ecx
push eax
push dword [ebx + 4]
call fcn.004dd620
add esp, 0xc
mov eax, dword [ebp + 0xc]
push edi
push 0
push dword [0x54b674]
mov dword [eax], ebx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4b0a00
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, 0x400
mov byte [ebp - 8], 1
push edi
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
push 0
push 1
push edi
push ebx
push eax
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov esi, eax
cmp esi, 0x103
jne 0x4b0a61
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
cmovns esi, dword [ebp - 0x14]
cmp esi, 0x80000005
je 0x4b0a71
cmp esi, 0xc0000004
jne 0x4b0a85
push ebx
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, edi
push edi
jmp 0x4b0a13
mov dword [ebp - 0xc], edi
cmp esi, reloc.OLEAUT32.dll_SysStringLen
je 0x4b0ad2
test esi, esi
js 0x4b0ad4
push dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov edi, ebx
push ebx
call dword [ebp + 0x10]
test al, al
je 0x4b0ad4
mov eax, dword [edi]
test eax, eax
je 0x4b0ac6
mov ecx, dword [ebp - 4]
push dword [ebp + 0x14]
add ecx, eax
mov dword [ebp - 4], ecx
lea edi, [ecx + ebx]
push edi
call dword [ebp + 0x10]
test al, al
jne 0x4b0aa8
jmp 0x4b0ad4
mov edi, dword [ebp - 0xc]
mov byte [ebp - 8], 0
jmp 0x4b0a23
xor esi, esi
push ebx
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4b0af0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, 0x200
push edi
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x16
push edi
mov ebx, eax
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
cmp esi, 0x80000005
je 0x4b0b3a
cmp esi, 0xc0000023
je 0x4b0b3a
cmp esi, 0xc0000004
jne 0x4b0b4e
push ebx
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, edi
push edi
jmp 0x4b0aff
test esi, esi
js 0x4b0b62
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b2570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x278
push ebx
lea eax, [esp + 0x74]
mov dword [esp + 4], 0x2080000
push esi
mov dword [esp + 0xc], eax
xor esi, esi
push 0x54ae90
call dword [sym.imp.ntdll.dll_RtlRandomEx]
mov dword [esp + esi*4 + 0x30], eax
inc esi
cmp esi, 6
jb 0x4b2590
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
movzx eax, cl
mov word [esp + 0x10], dx
shr edx, 0x10
or edx, eax
shr ecx, 8
mov word [esp + 0x14], cx
mov ecx, dword [esp + 0x3c]
movzx eax, cl
mov word [esp + 0x12], dx
mov edx, dword [esp + 0x38]
mov ebx, edx
shr ecx, 8
mov word [esp + 0x1a], cx
mov ecx, dword [esp + 0x40]
shr ebx, 0x10
or ebx, eax
mov word [esp + 0x1c], cx
movzx eax, byte [esp + 0x44]
mov word [esp + 0x16], dx
shr ecx, 0x10
or ecx, eax
mov word [esp + 0x18], bx
shr edx, 8
lea eax, [esp + 0x28]
push eax
and dl, 0xf
mov word [esp + 0x22], cx
and bl, 0x3f
lea eax, [esp + 0x14]
or dl, 0x40
or bl, 0x80
push eax
mov byte [esp + 0x1f], dl
mov byte [esp + 0x20], bl
call dword [sym.imp.ntdll.dll_RtlStringFromGUID]
test eax, eax
js 0x4b2728
push str.REGISTRYA_
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov esi, eax
test esi, esi
js 0x4b271b
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov esi, eax
test esi, esi
js 0x4b271b
push 0
push 0
lea eax, [esp + 0x28]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov esi, eax
test esi, esi
js 0x4b271b
push 0
push dword [ebp + 8]
lea eax, [esp + 0x10]
mov dword [esp + 0x68], 0x18
push dword [ebp + 0x10]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x14]
push 0
push 0
or eax, 0x10
mov dword [esp + 0x78], 0
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x84], 0x40
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x8c], 0
push eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x68], 0x18
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], 0x40
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
call dword [sym.imp.ntdll.dll_NtLoadKeyEx]
mov esi, eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10