joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50e740
Capabilities:
Write file on windows

Disassembly:
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 [esp + 0x1c]
lea eax, [esp + 0x14]
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 0x50e78e
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50e7a6
mov ecx, dword [esp + 8]
test ecx, ecx
js 0x50e7a4
mov eax, dword [esp + 0xc]
add dword [edi + 8], eax
adc dword [edi + 0xc], 0
or dword [edi + 4], 0x80000000
mov eax, ecx
pop edi
pop esi
add esp, 8
ret 4

Function at 0x50e920
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
xor ecx, ecx
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
sub eax, edx
je 0x50e978
sub edx, dword [esi + 0x1c]
mov eax, edx
cdq
add eax, dword [esi + 8]
mov dword [esi + 8], eax
adc edx, dword [esi + 0xc]
test byte [esi + 4], 8
mov dword [esi + 0xc], edx
jne 0x50e96a
push 0xe
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 8
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], edx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ecx, eax
test ecx, ecx
jns 0x50e978
lfence
mov eax, ecx
pop esi
add esp, 0x18
ret
mov dword [esi + 0x18], 0
mov eax, ecx
mov dword [esi + 0x1c], 0
pop esi
add esp, 0x18
ret

Function at 0x50ea40
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, edx
mov esi, ecx
sub eax, edi
je 0x50ea97
sub eax, 1
je 0x50ea8a
sub eax, 1
jne 0x50eaa2
lea ebp, [esi + 8]
push ebp
push dword [esi]
call sym.SystemInformer.exe_Ordinal_1511
mov edi, eax
test edi, edi
jns 0x50ea7d
lfence
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov eax, dword [ebx]
add dword [ebp], eax
mov eax, dword [ebx + 4]
adc dword [ebp + 4], eax
jmp 0x50eaa2
mov eax, dword [ebx]
add dword [esi + 8], eax
mov eax, dword [ebx + 4]
adc dword [esi + 0xc], eax
jmp 0x50eaa2
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
test byte [esi + 4], 8
jne 0x50ead5
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
push 0xe
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 8
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], ecx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edi, eax
test edi, edi
jns 0x50ead5
lfence
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x50ef20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x4f4
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x4f0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x26
mov dword [esp + 0x6c], ecx
cmp eax, edi
mov dword [esp + 0xf4], 0
push 0
cmovae edi, eax
lea eax, [esp + 0xf4]
push 0
push eax
mov dword [esp + 0x54], edi
mov dword [esp + 0xfc], edi
call sym.SystemInformer.exe_Ordinal_1331
mov esi, eax
xor ecx, ecx
test byte [0x630910], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ecx
mov ebx, dword [esi + 4]
mov dword [esp + 0x50], ebx
jne 0x50f067
mov eax, 0x630910
lock bts dword [eax], 0x1f
setb al
test al, al
jne 0x50f04c
push 4
lea eax, [esp + 0xf4]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x50efe8
mov ax, word [esp + 0xf0]
test ax, ax
je 0x50efe8
cmp word [esp + 0xf2], 0
jne 0x50efe8
mov word [0x62e6c8], ax
push 4
lea eax, [esp + 0xf4]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
nop
test eax, eax
je 0x50f022
mov ax, word [esp + 0xf0]
test ax, ax
je 0x50f022
cmp word [esp + 0xf2], 0
jne 0x50f022
mov word [0x62e6f8], ax
cmp word [0x62e6c8], 0x2e
je 0x50f040
push 0x5d1e90
push 0
call fcn.0058f53b
add esp, 8
mov dword [0x6357f8], eax
mov ecx, 0x630910
call sym.SystemInformer.exe_Ordinal_1358
jmp 0x50f065
test byte [0x630910], 1
jne 0x50f067
xor edx, edx
mov ecx, 0x630910
call sym.SystemInformer.exe_Ordinal_1388
xor ecx, ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5106bd
mov dword [esp + 0x68], 3
nop word [eax + eax]
dec eax
mov dword [esp + 0xf0], ecx
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov esi, eax
add eax, 0x18
mov dword [esp + 0x54], esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], 0
mov edx, dword [esi]
mov eax, edx
and eax, 0x3f
mov dword [esp + 0x5c], edx
cmp eax, 0xd
ja case.default.0x50f0b8
jmp dword [eax*4 + 0x5106e4]
lea esi, [ecx + 2]
cmp edi, esi
jae 0x50f134
lea eax, [edi + edi]
mov dword [esp + 0x84], 0
cmp eax, esi
mov ecx, esi
push 0
cmovae ecx, eax
lea eax, [esp + 0x84]
push 0
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x8c], ecx
call sym.SystemInformer.exe_Ordinal_1331
mov ebx, dword [esp + 0x30]
mov edi, eax
mov eax, dword [esp + 0x34]
push ebx
push dword [eax + 4]
push dword [edi + 4]
call fcn.00586330
mov ecx, dword ds:[esp + 0x40]
add esp, 0xc
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x50f128
call fcn.004fe1e0
mov eax, dword [edi + 4]
shr ebx, 1
mov dword [esp + 0x34], edi
lea ebx, [eax + ebx*2]
mov ecx, dword [esp + 0x54]
mov ax, word [ecx + 0x10]
mov ecx, esi
mov word [ebx], ax
invalid
Function at 0x514b60
Capabilities:
Terminate process

Disassembly:
cmp dword [0x635a54], 5
push ebp
mov ebp, dword [esp + 0xc]
push edi
jne 0x514c19
push esi
push 0x635a58
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x514b8e
lock dec dword [0x635a60]
jmp 0x514ba8
mov eax, dword [0x635a68]
add eax, 8
push eax
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
push ebx
mov edx, 6
lea ecx, [esi + 8]
call fcn.00577780
mov eax, dword [esp + 0x14]
lea ecx, [esi + 8]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebp
call fcn.0053ad20
mov edi, eax
test edi, edi
js 0x514bd1
mov edi, dword [esi + 0x18]
mov eax, dword [0x635a60]
pop ebx
push esi
cmp eax, dword [0x635a64]
jae 0x514bfc
push 0x635a58
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x635a60]
jmp 0x514c0a
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
test edi, edi
js 0x514c19
mov eax, edi
pop edi
lfence
pop ebp
ret 8
push ebp
push dword [esp + 0x10]
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
pop edi
pop ebp
ret 8

Function at 0x514e80
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0x100
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [esp + 0x28]
mov esi, eax
push 0
push 0xc
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push eax
push 0x58
mov dword [esp + 0x28], 0x1000000
mov dword [esp + 0x2c], esi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp edi, 0xc0000004
jne 0x514f08
push esi
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx eax, word [esp + 0x1a]
push eax
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
mov esi, eax
lea eax, [esp + 0x18]
push 0xc
push eax
push 0x58
mov dword [esp + 0x2c], esi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test edi, edi
jns 0x514f11
lfence
jmp 0x514f5d
mov cx, word [esp + 0x18]
test cx, cx
jne 0x514f37
push esi
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000001
pop edi
pop esi
add esp, 0x1c
ret 8
lfence
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
movzx eax, cx
push 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0
push eax
call sym.SystemInformer.exe_Ordinal_1331
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
push esi
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret 8
Function at 0x514f80
Capabilities:
Check processdebugport

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
push edi
push 0
push 4
push eax
mov edi, ecx
mov esi, edx
push 7
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov edx, eax
lfence
test edx, edx
js 0x514fb4
cmp dword [esp + 8], 0
pop edi
setne cl
mov byte [esi], cl
pop esi
add esp, 8
ret
cmp dword [0x635a54], 2
jl 0x514fe4
push ecx
push 4
lea eax, [esp + 0x14]
mov edx, 1
push eax
mov ecx, edi
call fcn.005250c0
mov edx, eax
test edx, edx
js 0x514fe4
mov eax, dword [esp + 0xc]
shr eax, 8
not al
and al, 1
mov byte [esi], al
pop edi
mov eax, edx
pop esi
add esp, 8
ret
Function at 0x517320
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, 0x200
mov esi, ecx
push edi
push 4
push dword [0x633a54]
mov ebp, edx
mov dword [esp + 0x20], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push ebp
push edi
mov ebx, eax
lea eax, [esp + 0x20]
push ebx
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
cmp esi, 0x80000005
je 0x517378
cmp esi, 0xc0000023
je 0x517378
cmp esi, 0xc0000004
jne 0x51739e
push ebx
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, edi
push edi
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [esp + 0x14]
jmp 0x517346
nop
test esi, esi
js 0x5173b6
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push ebx
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x5173e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x5c
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xc]
push esi
mov esi, dword [ebp + 0xc]
push 0x22
push 0x38
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x517439
movups xmm0, xmmword [esp + 0x10]
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x20]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x30]
movups xmmword [esi + 0x20], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [esi + 0x30], xmm0
mov ecx, dword [esp + 0x5c]
pop esi
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret 8

Function at 0x517460
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x3c
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xc]
push esi
mov esi, dword [ebp + 0xc]
push 5
push 0x18
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edx, eax
test edx, edx
js 0x5174bd
movq xmm0, qword [esp + 0x20]
movaps xmm1, xmmword [esp + 0x10]
movq qword [esp + 0x20], xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
psrldq xmm1, 0xc
movd dword [esi], xmm0
movd dword [esi + 4], xmm1
mov ecx, dword [esp + 0x3c]
pop esi
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret 8

Function at 0x5174e0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push 0x14
push 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], ecx
push eax
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
add esp, 0x10
ret 8
Function at 0x517520
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push 0xe
push 8
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
lfence
test esi, esi
js 0x517557
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, esi
pop esi
add esp, 0x10
ret 8

Function at 0x517560
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
test eax, eax
je 0x517572
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x517581
xorps xmm0, xmm0
movlpd qword [esp], xmm0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
push 0xe
mov dword [esp + 8], eax
lea eax, [esp + 4]
push 8
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], ecx
push eax
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
add esp, 0x10
ret 8

Function at 0x5175c0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push 0x13
push 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], ecx
push eax
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
add esp, 0x10
ret 8

Function at 0x517600
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x34
cmp dword [0x62db64], 0x6a
push esi
push edi
mov edi, ecx
jb 0x517635
push 0x40
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x13
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x5176d8
push 0xd
push 1
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x1c]
push eax
lfence
push edi
mov byte [esp + 0x1f], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esi, eax
test esi, esi
jns 0x5176d6
push 0
push 0
push 0x1000
push 1
push 4
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x38], 0x18
mov dword [esp + 0x40], eax
xorps xmm0, xmm0
push 0
lea eax, [esp + 0x34]
movlpd qword [esp + 0x2c], xmm0
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], edi
push eax
push 0x10000
lea eax, [esp + 0x34]
mov dword [esp + 0x54], 0x40
push eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
cmp eax, 0xc0000043
je 0x5176d6
nop
test eax, eax
js 0x5176d6
push dword [esp + 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
pop edi
pop esi
add esp, 0x34
ret
mov eax, esi
pop edi
pop esi
add esp, 0x34
ret
Function at 0x5176e0
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 0x51778c
cmp edi, ecx
sbb eax, eax
and eax, ecx
je 0x51782c
nop word [eax + eax]
cmp eax, 0x400
ja 0x51773e
call fcn.005a5290
mov esi, esp
test esi, esi
je 0x51782c
mov dword [esi], 0xcccc
jmp 0x51775a
push eax
lfence
call fcn.0058e7b0
mov esi, eax
add esp, 4
test esi, esi
je 0x51782c
mov dword [esi], 0xdddd
add esi, 8
test esi, esi
je 0x51782c
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.00586330
add esp, 0xc
push 0xa
jmp 0x517800
cmp edi, ecx
sbb eax, eax
and eax, ecx
je 0x51782c
cmp eax, 0x400
ja 0x5177b7
nop
call fcn.005a5290
mov esi, esp
test esi, esi
je 0x51782c
mov dword [esi], 0xcccc
jmp 0x5177d4
push eax
lfence
call fcn.0058e7b0
mov esi, eax
add esp, 4
test esi, esi
je 0x51782c
mov dword [esi], 0xdddd
add esi, 8
test esi, esi
je 0x51782c
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.00586330
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 0x517828
push esi
call fcn.0058e7a0
add esp, 4
mov eax, edi
jmp 0x517831
mov eax, 0xc0000017
lea esp, ss:[ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret 8
Function at 0x518140
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.00586330
mov eax, dword [edi + 4]
add esp, 0xc
add eax, dword [0x630a6c]
push dword [esi]
push dword [esi + 4]
push eax
call fcn.00586330
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 0x5181da
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x5181cf
call fcn.004fe1e0
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 0x5182f0
cmp dword [esp + 0x14], 1
jne 0x5182c6
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], 0x60ddc4
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 0x5182e6
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 0x518305
nop
call fcn.004fe1e0
pop edi
mov eax, esi
pop esi
add esp, 0x24
ret
Function at 0x518bc0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [0x630918]
xor ebp, ebp
push edi
push esi
push 4
push dword [0x633a54]
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 0x518c51
cmp ebp, 0xa
jae 0x518c59
push edi
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [esp + 0x10]
push esi
push 4
push dword [0x633a54]
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 0x518c08
test ebx, ebx
jns 0x518d01
mov esi, dword [0x630918]
push esi
push 4
push dword [0x633a54]
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 0x518cd3
nop dword [eax + eax]
push edi
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x518cf3
push esi
push 4
lfence
push dword [0x633a54]
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 0x518c90
test ebx, ebx
jns 0x518d01
push edi
push 0
lfence
push dword [0x633a54]
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 0x518d12
mov dword [0x630918], 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 0x519020
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
mov esi, 0x200
push esi
push 4
push dword [0x633a54]
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 0x519093
push edi
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x5190b1
push esi
push 4
lfence
push dword [0x633a54]
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 0x519050
lfence
test ebx, ebx
jns 0x5190bc
push edi
push 0
push dword [0x633a54]
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 0x5190e0
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 [0x633a54]
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 0x519168
push edi
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x10000000
ja 0x519185
push esi
push 4
lfence
push dword [0x633a54]
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 0x519115
lfence
test ebx, ebx
jns 0x51918f
push edi
push 0
push dword [0x633a54]
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 0x5191a0
Capabilities:
Get system information on windows

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x100
push 4
push dword [0x633a54]
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 0x519231
cmp esi, 8
jae 0x519244
push ebx
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0xc]
push 4
push dword [0x633a54]
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 0x5191e8
test edi, edi
js 0x519244
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 [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 4