joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1530c
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x1a0]
mov dword [ebp - 8], ecx
call ebx
mov byte [ebp + 0xb], al
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x1540f
mov eax, dword [esi + 0x18]
cmp eax, dword [ebp + 0xc]
jne 0x1540f
mov eax, dword [esi + 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x1540f
lea eax, [esi + 0x168]
cmp dword [eax], eax
je 0x1540f
push edi
jmp 0x153da
lea ecx, [esi + 0x168]
cmp dword [ecx], ecx
je 0x153e4
mov edi, dword [eax]
mov ecx, dword [edi]
mov dword [eax], ecx
mov dword [ecx + 4], eax
cmp edi, eax
je 0x153da
add edi, 0xffffffa8
lea eax, [edi + 0x58]
mov dword [eax + 4], eax
mov dword [eax], eax
xor eax, eax
lea ecx, [edi + 0x38]
xchg dword [ecx], eax
lea eax, [esi + 0x168]
push eax
push edi
call fcn.00014fb2
mov dl, byte [ebp + 0xb]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
xor dl, dl
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov ecx, dword [ebp - 8]
call ebx
cmp dword [ebp - 4], 0
mov byte [ebp + 0xb], al
jl 0x1540e
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x1540e
mov eax, dword [esi + 0x18]
cmp eax, dword [ebp + 0xc]
jne 0x1540e
mov eax, dword [esi + 0x1c]
cmp eax, dword [ebp + 0x10]
jne 0x1540e
lea eax, [esi + 0x170]
cmp dword [eax], eax
jne 0x15365
lea edi, [esi + 0x168]
jmp 0x153fd
lea eax, [ebp + 0xb]
push eax
push esi
call fcn.00015148
mov dword [ebp - 4], eax
test eax, eax
jl 0x15403
cmp dword [edi], edi
jne 0x153ec
jmp 0x1540e
cmp eax, 0xc000021b
jne 0x1540e
and dword [ebp - 4], 0
pop edi
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x15440
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
cmp eax, dword [ebp + 0xc]
jne 0x15440
cmp ecx, dword [ebp + 0x10]
jne 0x15440
cmp dword [ebp - 4], 0
jl 0x15440
add esi, 0x168
cmp dword [esi], esi
jne 0x15440
push ecx
push eax
push 0xc
call fcn.00017d8e
mov dl, byte [ebp + 0xb]
mov ecx, dword [ebp - 8]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x15726
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
call fcn.00017200
test al, al
jne 0x15753
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
inc byte [edx + 0x23]
add dword [edx + 0x60], 0x24
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
jmp 0x158c8
push ebx
push esi
mov esi, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
push edi
mov ecx, 0x1abb0
call esi
mov byte [ebp - 1], al
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
cdq
push edx
push eax
push dword [0x1abd8]
call fcn.000104f2
mov edi, dword [ebp + 8]
mov ebx, eax
test ebx, ebx
je 0x15894
mov eax, dword [ebx + 0x1c]
test al, 1
je 0x157b9
mov dl, byte [ebp - 1]
mov ecx, 0x1abb0
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, edi
and dword [ecx + 0x1c], 0
mov esi, 0xc00000bc
xor dl, dl
mov dword [ecx + 0x18], esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, esi
jmp 0x158c5
test al, 2
je 0x15894
cmp byte [ebx + 0x155], 0
jne 0x15894
lea ecx, [ebx + 0x198]
mov dword [ebp + 0xc], ecx
call esi
mov byte [ebp + 0xb], al
lea eax, [ebx + 0x180]
push eax
call fcn.00016024
mov dl, byte [ebp + 0xb]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
test byte [ebx + 0x1c], 4
jne 0x15894
cmp dword [ebp - 0xc], 5
jge 0x15894
mov ecx, dword [ebp + 0xc]
call esi
lea ecx, [ebx + 0x180]
mov edx, dword [ecx + 4]
lea esi, [edi + 0x58]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov dword [edx], esi
mov dword [ecx + 4], esi
mov ecx, dword [ebp + 0xc]
mov dl, al
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, dword [edi + 0x60]
or byte [eax + 3], 1
lea ecx, [edi + 0x38]
mov eax, 0x1545a
xchg dword [ecx], eax
mov dword [ebp + 8], eax
mov eax, 0x103
mov dword [edi + 0x18], eax
push dword [ebx + 0x14]
mov dword [ebp - 8], eax
push dword [ebx + 0x10]
push 0xb
call fcn.00017d8e
test eax, eax
jge 0x15894
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebx], ecx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 0xc]
mov dl, al
mov dword [esi + 4], esi
mov dword [esi], esi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x38]
xchg dword [eax], ecx
and dword [edi + 0x18], 0
and dword [ebp - 8], 0
mov dl, byte [ebp - 1]
mov ecx, 0x1abb0
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, dword [ebp - 8]
cmp eax, 0x103
je 0x158c5
cmp eax, 0xc000009a
je 0x158c5
mov ecx, dword [ebp + 0x10]
inc byte [edi + 0x23]
add dword [edi + 0x60], 0x24
mov edx, edi
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1701e
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov edi, 0x1ac40
mov ecx, edi
mov esi, eax
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
cmp byte [0x1ac50], 0
je 0x1704f
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], 0xc0000010
jmp 0x17063
mov dword [0x1ac54], esi
mov esi, dword [ebp + 8]
mov byte [0x1ac50], 1
and dword [esi + 0x18], 0
mov dl, al
mov ecx, edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
cmp dword [esi + 0x18], 0
jne 0x17078
call fcn.000117d2
and dword [esi + 0x1c], 0
xor dl, dl
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, dword [esi + 0x18]
pop edi
pop esi
pop ebp
ret 8

Function at 0x174a6
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xc]
test esi, esi
je 0x1750e
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0x20
jb 0x1750e
cmp dword [0x19f00], 0
mov ebx, 0x19ee8
jne 0x174e4
push 0
push 0x640000
push 0x19f00
call fcn.00017316
test eax, eax
jl 0x174fe
cmp dword [0x19ee8], 0
jne 0x1751e
push 0
push 0x40000
push ebx
call fcn.00017316
test eax, eax
jge 0x1751e
push 0x19f00
call fcn.0001743a
push ebx
call fcn.0001743a
and dword [edi + 0x1c], 0
mov eax, 0xc0000001
mov dword [edi + 0x18], eax
mov esi, eax
jmp 0x17561
mov eax, dword [0x19f04]
cdq
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, dword [0x19f10]
mov dword [esi + 8], eax
mov eax, dword [0x19f14]
mov dword [esi + 0xc], eax
mov eax, dword [0x19eec]
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [0x19ef8]
mov dword [esi + 0x18], eax
mov eax, dword [0x19efc]
mov dword [esi + 0x1c], eax
xor esi, esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], 0x20
xor dl, dl
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x17ce4
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov ecx, dword [0x1abf0]
push ebx
mov eax, 0x1abf0
push esi
push edi
cmp ecx, eax
je 0x17d6c
mov edx, dword [ecx]
mov dword [0x1abf0], edx
mov dword [edx + 4], eax
lea esi, [ecx - 0x58]
lea eax, [esi + 0x58]
mov dword [eax + 4], eax
mov dword [eax], eax
xor eax, eax
lea ecx, [esi + 0x38]
xchg dword [ecx], eax
mov eax, dword [esi + 4]
test byte [eax + 6], 5
mov ebx, dword [esi + 0x60]
je 0x17d24
mov edi, dword [eax + 0xc]
jmp 0x17d36
push 0x10
xor ecx, ecx
push ecx
push ecx
push 1
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov edi, eax
test edi, edi
je 0x17d72
cmp dword [ebx + 4], 8
jb 0x17d72
push dword [0x19f10]
push dword [0x19f08]
call fcn.00017a9c
and dword [edi + 4], 0
mov dword [edi], eax
and dword [esi + 0x18], 0
xor dl, dl
mov ecx, esi
mov dword [esi + 0x1c], 8
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov edi, 0xc000009a
xor dl, dl
mov ecx, esi
mov dword [esi + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
jmp 0x17d6e
Function at 0x17eca
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.00018696
mov esi, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ebx, 0x1abb0
mov ecx, ebx
call esi
mov edi, 0x1ac40
mov ecx, edi
mov byte [ebp - 2], al
call esi
and dword [0x1ac54], 0
mov byte [ebp - 1], al
mov byte [0x1ac50], 0
call fcn.00017094
mov esi, 0x1abf0
jmp 0x17f15
call fcn.00017ce4
cmp dword [0x1abf0], esi
jne 0x17f10
mov dl, byte [ebp - 1]
mov esi, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, edi
call esi
mov dl, byte [ebp - 2]
mov ecx, ebx
call esi
call fcn.000170c4
push 0x19f00
call fcn.0001743a
push 0x19ee8
call fcn.0001743a
mov ecx, dword [ebp + 8]
and dword [ecx + 0x18], 0
and dword [ecx + 0x1c], 0
xor dl, dl
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8

Function at 0x17f6c
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
test byte [eax + 6], 5
push edi
je 0x17f84
mov edi, dword [eax + 0xc]
jmp 0x17f96
push 0x10
xor ecx, ecx
push ecx
push ecx
push 1
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov edi, eax
test edi, edi
je 0x18056
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 8
jb 0x18056
push ebx
mov ebx, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, 0x1abb0
call ebx
mov ecx, 0x1ac40
mov byte [ebp + 0xf], al
call ebx
push dword [0x19f10]
mov byte [ebp + 0xb], al
push dword [0x19f08]
call fcn.00017a9c
xor ebx, ebx
mov dword [edi], eax
or eax, ebx
mov dword [edi + 4], ebx
jne 0x1801f
mov edi, 0x1abf0
cmp dword [0x1abf0], edi
jne 0x1801f
mov eax, dword [esi + 0x60]
or byte [eax + 3], 1
lea eax, [esi + 0x58]
mov edx, 0x103
mov dword [esi + 0x18], edx
mov ecx, dword [0x1abf4]
mov dword [eax + 4], ecx
mov dword [eax], edi
mov dword [ecx], eax
mov dword [0x1abf4], eax
mov eax, 0x17194
lea ecx, [esi + 0x38]
xchg dword [ecx], eax
mov ebx, edx
mov dl, byte [ebp + 0xb]
mov edi, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, 0x1ac40
call edi
mov dl, byte [ebp + 0xf]
mov ecx, 0x1abb0
call edi
test ebx, ebx
jne 0x18051
and dword [esi + 0x18], ebx
xor dl, dl
mov ecx, esi
mov dword [esi + 0x1c], 8
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, ebx
pop ebx
jmp 0x1806a
mov edi, 0xc000009a
xor dl, dl
mov ecx, esi
mov dword [esi + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x185b8
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [eax + 4]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
xor edi, edi
test byte [eax + 6], 5
je 0x185d9
mov eax, dword [eax + 0xc]
jmp 0x185e7
push 0x10
push edi
push edi
push 1
push edi
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
cmp eax, edi
je 0x18611
cmp ebx, 8
jb 0x18611
push dword [eax]
push dword [0x19ef0]
call fcn.000184d4
xor dl, dl
mov ecx, esi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
jmp 0x18625
mov edi, 0xc000009a
xor dl, dl
mov ecx, esi
mov dword [esi + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4c7f91
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d23e8
cmp edx, dword [eax]
je 0x4c7fb3
add eax, 8
inc ecx
cmp eax, 0x4d2478
jl 0x4c7fa4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d23e8]
jne 0x4c80e1
mov eax, dword [0x4d7e10]
cmp eax, 1
je 0x4c80bb
test eax, eax
jne 0x4c7fe4
cmp dword [0x4d2310], 1
je 0x4c80bb
cmp edx, 0xfc
je 0x4c80e1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c801b
lea eax, [ebp - 0x1a4]
push 0x4cddd0
push eax
call fcn.004c8970
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c8e00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c805e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c8e00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cddcc
push edi
call fcn.004cacd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cddb0
push eax
call fcn.004c8970
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c8980
lea eax, [ebp - 0xa0]
push 0x4cddac
push eax
call fcn.004c8980
push dword [esi + 0x4d23ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c8980
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cdd84
push eax
call fcn.004cac44
add esp, 0x2c
pop edi
jmp 0x4c80e1
lea eax, [ebp + 8]
lea esi, [esi + 0x4d23ec]
push 0
push eax
push dword [esi]
call fcn.004c8e00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x419824
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00419398
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404c4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x419882
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41c684]
mov dl, 1
mov eax, dword [0x419290]
call fcn.0040971c
call fcn.0040420c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41988c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404c4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4198e4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41c774]
mov dl, 1
mov eax, dword [0x419290]
call fcn.0040971c
call fcn.0040420c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004193c8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41a320
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404c4c
push eax
mov eax, dword [ebp - 4]
call fcn.00404c4c
push eax
call sub.KERNEL32.DLL_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x41a358
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41a3c8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.004082f4
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 4]
mov ecx, 0x41a3dc
call fcn.00404ab0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a3cf
lea eax, [ebp - 0x108]
call fcn.004047ac
ret
Function at 0x4016c8
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x4b1663
call fcn.0048bc3b
mov edi, dword [ebp + 8]
push ecx
lea esi, [edi + 4]
xor ebx, ebx
mov dword [ebp - 0x14], esp
mov dword [edi], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esp
call fcn.00406181
mov dword [ebp - 4], 3
call fcn.00405291
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov dword [ebp - 4], 4
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 5
lea eax, [ebp - 0x10]
push eax
call fcn.0040e24a
pop ecx
mov byte [ebp - 4], 6
push dword [eax]
lea eax, [edi + 0x38]
push eax
call fcn.0040153e
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10]
call fcn.00403910
push ebx
push ebx
push edi
push 0x401def
push ebx
push ebx
call fcn.00488169
add esp, 0x18
mov dword [edi], eax
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.0048bd13
ret 4
Function at 0x40850c
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x4afae1
call fcn.0048bc6e
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edi, [esi + 0x24]
push dword [ebp + 8]
mov ecx, edi
call fcn.00403cc8
push 0x24
call fcn.00488856
pop ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x408550
push eax
call fcn.004083b9
jmp 0x408552
xor eax, eax
mov byte [ebp - 4], bl
mov dword [esi + 0x28], eax
xor eax, eax
cmp byte [esi + 0x2c], bl
sete al
dec eax
and eax, 0xfffefffb
add eax, 0x10006
mov dword [ebp + 8], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call fcn.00403c4b
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], bl
call fcn.0040c0a4
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov edi, dword [esi + 0x28]
push 1
call fcn.0043ccf1
push ebx
push dword [ebp + 8]
push edi
push dword [ebp - 0x14]
call fcn.00475d74
add esp, 0x1c
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x4085d1
push dword [edi]
call fcn.004518e8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [esp], 0x4cbe7c
lea eax, [ebp - 0x18]
push eax
call fcn.00489b77
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00403910
mov eax, dword [esi + 0x28]
xor ecx, ecx
cmp byte [esi + 0x2c], bl
sete cl
dec ecx
and ecx, 0xffff9e58
add ecx, 0x7530
push ecx
push dword [eax]
call fcn.00441330
pop ecx
pop ecx
cmp byte [esi + 0x2c], bl
jne 0x40860a
mov ecx, esi
call fcn.0040867b
xor eax, eax
cmp dword [esi + 0x28], ebx
setne al
jmp 0x408620
call fcn.0048bd13
ret 4
Function at 0x408997
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x4af9be
call fcn.0048bc6e
mov esi, dword [ebp + 8]
mov byte [ebp - 0x15], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408dfd
mov edi, dword [esi + 0x18]
mov eax, dword [esi]
cmp dword [ebp - 0x20], 0
je 0x4089c7
cmp dword [ebp - 0x20], eax
je 0x4089cc
call fcn.00488376
cmp dword [ebp - 0x1c], edi
jne 0x408a67
lea eax, [ebp + 0xc]
push eax
lea edi, [ebp - 0x2c]
mov ebx, esi
call fcn.00408d31
lea ecx, [ebp - 0x1c]
call fcn.0040387f
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push str.CREATE_TABLE_scanned__x_file_id_INTEGER__file_time_INTEGER__detection_name_TEXT__t_on_INTEGER__
lea eax, [ebp - 0x1c]
push eax
call fcn.00409eb8
add esp, 0xc
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
mov ebx, dword [esi + 0x28]
call fcn.0041a141
and dword [ebp - 4], 0
jmp 0x408a25
push dword [ebp + 0xc]
push str.CREATE_INDEX_fileIndex_ON_scanned__x_file_id__file_time__
lea eax, [ebp - 0x1c]
push eax
call fcn.00409eb8
add esp, 0xc
mov byte [ebp - 4], 3
push dword [ebp - 0x1c]
mov ebx, dword [esi + 0x28]
call fcn.0041a141
and dword [ebp - 4], 0
jmp 0x408a5b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00403910
mov dword [ebp - 4], 5
lea ecx, [ebp + 8]
call fcn.0040387f
mov byte [ebp - 4], 6
push dword [ebp + 0xc]
push str.SELECT_detection_name_FROM_scanned__x_WHERE_file_id____AND_file_time____AND_t_on_____
lea eax, [ebp + 8]
push eax
call fcn.00409eb8
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [esi + 0x28]
call fcn.0041a0fe
mov byte [ebp - 4], 7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
lea eax, [ebp - 0x20]
call fcn.0041a0c4
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 2
lea eax, [ebp - 0x20]
call fcn.0041a0c4
push 0
call fcn.004887ea
pop ecx
sub eax, 0x15180
push eax
push 3
lea eax, [ebp - 0x20]
call fcn.0041a08d
lea eax, [ebp - 0x34]
push eax
lea edi, [ebp - 0x20]
call fcn.00419f02
mov byte [ebp - 4], 8
cmp byte [ebp - 0x2c], 0
jne 0x408b04
lea esi, [ebp - 0x34]
call fcn.00419b97
push eax
mov ecx, dword [ebp + 0x20]
call fcn.00403976
mov byte [ebp - 0x15], 1
mov byte [ebp - 4], 7
lea esi, [ebp - 0x34]
call fcn.00419d23
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.00419d63
mov byte [ebp - 4], 5
lea ecx, [ebp + 8]
call fcn.00403910
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x15]
call fcn.0048bd13
ret 0x1c
Function at 0x40c1b1
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov eax, SysReAllocString
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x40c1e1
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x40c207
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
je 0x40c20a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
jne 0x40c1fa
jmp 0x40c1fc

Function at 0x40c289
Capabilities:
Get token privileges

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.0048ae10
mov eax, dword [0x4d9114]
xor eax, ebp
mov dword [ebp + 0xf88], eax
push ebx
xor ebx, ebx
push 0xfff
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.00489de0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0xf01ff
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40c325
lea eax, [ebp - 0x80]
push eax
push 0x1000
lea eax, [ebp - 0x78]
push eax
push 3
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40c325
xor ecx, ecx
cmp dword [ebp - 0x78], ebx
jbe 0x40c312
lea eax, [ebp - 0x6c]
mov dword [eax], 2
inc ecx
add eax, 0xc
cmp ecx, dword [ebp - 0x78]
jb 0x40c303
push ebx
push ebx
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp - 0x7c], ebx
pop ebx
je 0x40c334
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xf88]
xor ecx, ebp
call fcn.004876e8
add ebp, 0xf8c
leave
ret

Function at 0x40c349
Capabilities:
Get common file path

Disassembly:
push 0x28
mov eax, 0x4af869
call fcn.0048bca4
xor ebx, ebx
push ebx
push 0x104
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
call fcn.0040f9bb
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push esi
push 0x23
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040fa27
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push ebx
lea ecx, [ebp - 0x2c]
test eax, eax
jne 0x40c390
push ebx
jmp 0x40c3ab
call fcn.0040fa27
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x40c398
sub eax, edx
sar eax, 1
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004106bf
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40c3bc
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00403c71
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040515f
mov eax, edi
call fcn.0048bd27
ret