joyce8/EMBER2024-capa huggingface dataset:
Function at 0x517600
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, dword [ebx]
add edi, 0x12
cmp dword [0x62db64], 0x66
lea ecx, [edi + 8]
jae 0x5176ac
cmp edi, ecx
sbb eax, eax
and eax, ecx
je 0x51774c
nop word [eax + eax]
cmp eax, 0x400
ja 0x51765e
call fcn.005a5270
mov esi, esp
test esi, esi
je 0x51774c
mov dword [esi], 0xcccc
jmp 0x51767a
push eax
lfence
call fcn.0058e790
mov esi, eax
add esp, 4
test esi, esi
je 0x51774c
mov dword [esi], 0xdddd
add esi, 8
test esi, esi
je 0x51774c
mov byte [esi], 1
mov dword [esi + 4], 0
mov eax, dword [ebx]
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
push dword [ebx]
push dword [ebx + 4]
push eax
call fcn.00586310
add esp, 0xc
push 0xa
jmp 0x517720
cmp edi, ecx
sbb eax, eax
and eax, ecx
je 0x51774c
cmp eax, 0x400
ja 0x5176d7
nop
call fcn.005a5270
mov esi, esp
test esi, esi
je 0x51774c
mov dword [esi], 0xcccc
jmp 0x5176f4
push eax
lfence
call fcn.0058e790
mov esi, eax
add esp, 4
test esi, esi
je 0x51774c
mov dword [esi], 0xdddd
add esi, 8
test esi, esi
je 0x51774c
mov dword [esi], 0x43
mov dword [esi + 4], 0
mov eax, dword [ebx]
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
push dword [ebx]
push dword [ebx + 4]
push eax
call fcn.00586310
add esp, 0xc
push 0x41
push edi
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
add esi, 0xfffffff8
mov edi, eax
cmp dword [esi], 0xdddd
jne 0x517748
push esi
call fcn.0058e780
add esp, 4
mov eax, edi
jmp 0x517751
mov eax, 0xc0000017
lea esp, ss:[ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 8
Function at 0x518060
Capabilities:
Delete registry key
Persist via windows service
Set registry value
Unload driver

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
mov dword [esp + 0x18], 0
push edi
push 0
push 0
mov eax, dword [esi]
add eax, dword [0x630a6c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
call sym.SystemInformer.exe_Ordinal_1331
push dword [0x630a6c]
mov edi, eax
push dword [0x630a70]
push dword [edi + 4]
call fcn.00586310
mov eax, dword [edi + 4]
add esp, 0xc
add eax, dword [0x630a6c]
push dword [esi]
push dword [esi + 4]
push eax
call fcn.00586310
movzx eax, word [edi]
add esp, 0xc
mov word [esp + 0x20], ax
movzx eax, word [edi]
add ax, 2
mov word [esp + 0x22], ax
mov eax, dword [edi + 4]
mov dword [esp + 0x24], eax
cmp dword [edi], 0xfffe
jbe 0x5180fa
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x5180ef
call fcn.004fe0c0
mov eax, 0xc0000106
pop edi
pop esi
add esp, 0x24
ret
lea eax, [esp + 0x14]
push eax
push 0
push 0
push edi
push 0
push 0x30006
lea eax, [esp + 0x24]
push eax
call sym.SystemInformer.exe_Ordinal_1470
mov esi, eax
test esi, esi
js 0x518210
cmp dword [esp + 0x14], 1
jne 0x5181e6
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 4
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x1a0018
push eax
push dword [esp + 0x20]
mov dword [esp + 0x34], str.ErrorControl
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 0xc000a
push eax
push 4
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0x60ddbc
push eax
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 0xa0008
push eax
push 4
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], str.Type
push eax
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov eax, dword [0x630ad4]
add eax, 2
mov dword [esp + 0x18], 0x140012
push eax
push dword [0x630ad8]
lea eax, [esp + 0x20]
mov dword [esp + 0x24], str.ImagePath
push 1
push 0
push eax
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ntdll.dll_NtUnloadDriver]
cmp dword [esp + 0x14], 1
mov esi, eax
jne 0x518206
push dword ds:[esp + 0xc]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push dword [esp + 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x518225
nop
call fcn.004fe0c0
pop edi
mov eax, esi
pop esi
add esp, 0x24
ret
Function at 0x518ae0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [0x630914]
xor ebp, ebp
push edi
push esi
push 4
push dword [0x633a74]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push esi
push edi
push 0x40
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x518b71
cmp ebp, 0xa
jae 0x518b79
push edi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [esp + 0x10]
push esi
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push esi
push edi
push 0x40
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
inc ebp
cmp ebx, 0xc0000004
je 0x518b28
test ebx, ebx
jns 0x518c21
mov esi, dword [0x630914]
push esi
push 4
push dword [0x633a74]
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 0x518bf3
nop dword [eax + eax]
push edi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x518c13
push esi
push 4
lfence
push dword [0x633a74]
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 0x518bb0
test ebx, ebx
jns 0x518c21
push edi
push 0
lfence
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0xc000009a
pop ebx
add esp, 8
ret
lfence
cmp esi, 0x200000
ja 0x518c32
mov dword [0x630914], esi
mov eax, dword [esp + 0x14]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x518f40
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
mov esi, 0x200
push esi
push 4
push dword [0x633a74]
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 0x518fb3
push edi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x518fd1
push esi
push 4
lfence
push dword [0x633a74]
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 0x518f70
lfence
test ebx, ebx
jns 0x518fdc
push edi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
ret 4
mov eax, dword [esp + 0x10]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
ret 4
Function at 0x519000
Capabilities:
Get system information on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x200
mov ebp, ecx
push esi
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x90
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x519088
push edi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x5190a5
push esi
push 4
lfence
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x90
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
je 0x519035
lfence
test ebx, ebx
jns 0x5190af
push edi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xc000009a
pop ebx
ret
mov dword [ebp], edi
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x5190c0
Capabilities:
Get system information on windows

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x100
push 4
push dword [0x633a74]
mov dword [esp + 0x18], 0x100
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push 0x100
push ebx
push 0x16
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
xor esi, esi
cmp edi, 0xc0000004
jne 0x519151
cmp esi, 8
jae 0x519164
push ebx
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0xc]
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push ebx
push 0x16
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
inc esi
cmp edi, 0xc0000004
je 0x519108
test edi, edi
js 0x519164
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 4
push ebx
push 0
lfence
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x519180
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x100
push 4
push dword [0x633a74]
mov dword [esp + 0x18], 0x100
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push 0x100
push ebx
push 0x42
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
xor esi, esi
cmp edi, 0xc0000004
jne 0x519211
cmp esi, 8
jae 0x519224
push ebx
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0xc]
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push ebx
push 0x42
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
inc esi
cmp edi, 0xc0000004
je 0x5191c8
test edi, edi
js 0x519224
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 4
push ebx
push 0
lfence
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x519b80
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, 0x400
mov dword [esp + 0x1c], edx
push ebx
push 4
push dword [0x633a74]
mov esi, ecx
mov byte [esp + 0x20], 1
mov dword [esp + 0x18], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x28]
push ebx
push edi
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov esi, eax
cmp esi, 0x103
jne 0x519bf4
push 0
push 0
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
cmovns esi, dword [esp + 0x20]
cmp esi, 0x80000005
je 0x519c08
nop dword [eax]
cmp esi, 0xc0000004
jne 0x519c2e
push edi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
push ebx
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [esp + 0xc]
jmp 0x519baf
mov dword [esp + 0x18], ebx
cmp esi, 0x80000006
je 0x519ca5
test esi, esi
js 0x519ca7
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov ebx, edi
push edi
push dword [esp + 0x14]
lfence
mov dword [esp + 0x1c], 0
call dword [0x5a9914]
call dword [ebp + 0x10]
nop
test al, al
je 0x519ca7
mov eax, dword [ebx]
test eax, eax
je 0x519c91
mov ecx, dword [esp + 0x10]
push dword [ebp + 0x14]
add ecx, eax
mov dword [esp + 0x14], ecx
lea ebx, [ecx + edi]
mov ecx, dword [ebp + 0x10]
push ebx
push dword [esp + 0x14]
call dword [0x5a9914]
call dword [ebp + 0x10]
test al, al
jne 0x519c64
jmp 0x519ca7
mov ebx, dword ds:[esp + 0x18]
mov esi, dword [esp + 0xc]
mov byte [esp + 0x14], 0
jmp 0x519bb1
xor esi, esi
push edi
push 0
push dword [0x633a74]
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 0x519ce0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x2000
push 4
push dword [0x633a74]
mov byte [esp + 0x1c], 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov edi, dword [esp + 0x20]
nop dword [eax]
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push 0
push 0x21
push 0x2000
push ebx
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov esi, eax
cmp esi, 0x103
jne 0x519d50
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
cmovns esi, dword [esp + 0x14]
cmp esi, 0x80000006
je 0x519d8b
test esi, esi
js 0x519d8d
push dword [esp + 0x28]
lfence
push dword [esp + 0x1c]
mov ecx, ebp
push ebx
push edi
call dword [0x5a9914]
call ebp
mov esi, eax
cmp esi, 0x80000006
je 0x519d8b
nop dword [eax]
test esi, esi
js 0x519d8d
mov byte [esp + 0x10], 0
jmp 0x519d10
xor esi, esi
push ebx
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x519dc0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x2400
push 4
push dword [0x633a74]
mov byte [esp + 0x1c], 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov edi, dword [esp + 0x20]
nop dword [eax]
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push 0
push 0x1d
push 0x2400
push ebx
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov esi, eax
cmp esi, 0x103
jne 0x519e30
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
cmovns esi, dword [esp + 0x14]
cmp esi, 0x80000006
je 0x519e6b
test esi, esi
js 0x519e6d
push dword [esp + 0x28]
lfence
push dword [esp + 0x1c]
mov ecx, ebp
push ebx
push edi
call dword [0x5a9914]
call ebp
mov esi, eax
cmp esi, 0x80000006
je 0x519e6b
nop dword [eax]
test esi, esi
js 0x519e6d
mov byte [esp + 0x10], 0
jmp 0x519df0
xor esi, esi
push ebx
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x51b6c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
push ebx
mov ebx, 0x10
push esi
push edi
test ecx, ecx
je 0x51b70b
mov edx, dword [ecx]
test edx, edx
je 0x51b70b
movzx eax, dx
mov word [esp + 0x10], ax
add eax, 2
mov word [esp + 0x12], ax
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
cmp edx, 0xfffe
jbe 0x51b714
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov esi, 0x100
push esi
push 4
push dword [0x633a74]
mov dword [esp + 0x18], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
nop
lea eax, [esp + 0xc]
push eax
push esi
push edi
push dword [ebp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
jns 0x51b79f
push edi
push 0
cmp esi, 0x80000005
jne 0x51b785
push dword [0x633a74]
nop
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0xc]
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
sub ebx, 1
je 0x51b79f
mov esi, dword [esp + 0xc]
jmp 0x51b730
lfence
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x51b7b0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
test ecx, ecx
je 0x51b7e4
movzx eax, word [ecx]
mov word [esp], ax
add eax, 2
cmp dword [ecx], 0xfffe
mov word [esp + 2], ax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jbe 0x51b7ec
mov eax, 0xc0000106
add esp, 8
ret 0x14
xorps xmm0, xmm0
movlpd qword [esp], xmm0
push dword [esp + 0x1c]
lea eax, [esp + 4]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0
push eax
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
add esp, 8
ret 0x14

Function at 0x51b820
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0xc
test ecx, ecx
je 0x51b854
movzx eax, word [ecx]
mov word [esp], ax
add eax, 2
cmp dword [ecx], 0xfffe
mov word [esp + 2], ax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jbe 0x51b85c
mov eax, 0xc0000106
add esp, 0xc
ret 8
xorps xmm0, xmm0
movlpd qword [esp], xmm0
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
add esp, 0xc
ret 8

Function at 0x51c080
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
lea eax, [esp]
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
push 0
push 0
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp ecx, 0x103
jne 0x51c0c7
push 0
push 0
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
nop
test eax, eax
js 0x51c0db
mov ecx, dword [esp]
test ecx, ecx
js 0x51c0d9
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x51c0d9
mov eax, dword [esp + 4]
mov dword [edx], eax
mov eax, ecx
add esp, 8
ret 0x14
Function at 0x51d180
Capabilities:
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x50
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
push 0
push 0x64
push 1
push 7
push 0x80
push 0
push 0x100081
push ecx
lea eax, [esp + 0x30]
mov esi, edx
push eax
call sym.SystemInformer.exe_Ordinal_1469
test eax, eax
jns 0x51d1cf
lfence
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00583f7f
add esp, 0x50
ret 4
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push 4
push 0x28
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x51d344
lea eax, [esp + 0x28]
push eax
push ebx
call sym.SystemInformer.exe_Ordinal_1511
mov edi, eax
test edi, edi
js 0x51d344
push 0
push 0x64
push 2
push 1
push 0x80
lea eax, [esp + 0x3c]
push eax
push 0x120116
push esi
lea eax, [esp + 0x40]
push eax
call sym.SystemInformer.exe_Ordinal_1469
mov edi, eax
test edi, edi
js 0x51d344
push 4
push 0x1000
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x2000
push eax
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
nop
test eax, eax
js 0x51d33f
mov edi, dword [esp + 0x10]
test edi, edi
je 0x51d33f
push 0
push 0
push 0x2000
push edi
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ebp, dword [esp + 0x20]
mov esi, eax
test esi, esi
js 0x51d2f8
lfence
nop dword [eax]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x51d2f8
push 0
push 0
push eax
push edi
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push ebp
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov esi, eax
test esi, esi
js 0x51d2f8
cmp dword [esp + 0x18], 0
je 0x51d2f8
push 0
push 0
push 0x2000
push edi
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push ebx
lfence
call dword [sym.imp.ntdll.dll_NtReadFile]
mov esi, eax
test esi, esi
jns 0x51d2a0
push edi
call sym.SystemInformer.exe_Ordinal_1382
xor edi, edi
cmp esi, 0xc0000011
cmovne edi, esi
test edi, edi
js 0x51d32f
push 4
push 0x28
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push ebp
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x51d344
mov ecx, ebp
call fcn.00517520
push ebp
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x51d344
mov edi, 0xc0000017
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x5c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00583f7f
add esp, 0x50
ret 4
Function at 0x51da40
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 8], ecx
push eax
push 0x18
lea eax, [esp + 0x18]
mov edi, edx
push eax
push 4
lea eax, [esp + 0x18]
push eax
push 0xe6
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
test eax, eax
js 0x51daa9
mov edx, dword [esp + 0xc]
xor eax, eax
shr edx, 2
test edx, edx
je 0x51daa4
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0x10]
movzx esi, cx
test ecx, 0x80000
jne 0x51daba
inc eax
cmp eax, edx
jb 0x51da90
mov eax, 0xc0000225
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00583f7f
add esp, 0x24
ret
mov ecx, dword [esp + 0x28]
xor eax, eax
mov word [edi], si
pop edi
pop esi
xor ecx, esp
call fcn.00583f7f
add esp, 0x24
ret

Function at 0x51dad0
Capabilities:
Get uefi variable

Disassembly:
sub esp, 0x24
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x1c], eax
push 0
lea eax, [esp + 4]
mov dword [esp + 8], 0x40002
push eax
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x5d397c
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x20], xmm0
call dword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
mov ecx, dword [esp + 0x1c]
cmp eax, 0xc0000100
sete al
xor ecx, esp
call fcn.00583f7f
add esp, 0x24
ret