joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa95dc0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0xb05578]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0xa95e00
cmp byte [ebx], 0xa
jne 0xa95e00
or byte [eax + edi + 0x28], 4
jmp 0xa95e05
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0xa95f03
mov al, byte [edx]
cmp al, 0x1a
je 0xa95ee5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0xa95e34
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0xa95e59
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0xa95e63
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0xa95e16
jmp 0xa95f03
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa95ee0
cmp dword [ebp - 0xc], 0
je 0xa95ee0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0xb05578]
test byte [eax + edi + 0x28], 0x48
je 0xa95eba
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0xa95ea5
mov byte [esi], dl
jmp 0xa95eb6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xb05578]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0xa95f03
cmp byte [ebp - 1], 0xa
jne 0xa95ec9
cmp esi, ebx
jne 0xa95ec9
mov byte [esi], 0xa
jmp 0xa95f02
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00a8c367
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0xa95f03
mov byte [esi], 0xd
jmp 0xa95f02
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0xb05578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa95eff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa95f03
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xa95f0c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0xb05578]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0xa95f4f
cmp word [esi], dx
jne 0xa95f4f
or byte [edi + eax + 0x28], 4
jmp 0xa95f54
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0xa9608d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0xa9606d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0xa95f96
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0xa95fcc
cmp eax, edx
jae 0xa95fd8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0xa95f6e
jmp 0xa9608d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa96069
cmp dword [ebp - 0x14], 0
je 0xa96069
mov eax, dword [ebx*4 + 0xb05578]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0xa96041
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0xa96087
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0xb05578]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0xb05578]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0xb05578]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0xa9608a
pop ebx
cmp word [ebp - 4], bx
jne 0xa96052
cmp esi, dword [ebp + 0xc]
jne 0xa96052
mov word [esi], bx
jmp 0xa9608a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00a8c367
add esp, 0x10
cmp word [ebp - 4], bx
je 0xa9608d
push 0xd
jmp 0xa96086
mov ecx, dword [ebx*4 + 0xb05578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa96084
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa9608d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xa968ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a9671f
Function at 0xa9792a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a978a6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0xa97aa2
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0xa97aa2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0xa97a51
jg 0xa97983
test eax, eax
je 0xa97a47
push 1
push 0x1000
call fcn.00a8160f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0xa979a9
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0xa97a3e
push 0x8000
push ebx
call fcn.00a7fcce
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0xa979d5
jg 0xa979d0
cmp ecx, 0x1000
jb 0xa979d5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00a971a6
add esp, 0x10
cmp eax, 0xffffffff
je 0xa97a1a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0xa979d0
jl 0xa97a01
test ecx, ecx
jne 0xa979c2
push dword [ebp - 0xc]
push ebx
call fcn.00a7fcce
push esi
call fcn.00a82336
add esp, 0xc
xor edi, edi
jmp 0xa97ab3
cmp byte [edi + 0x24], 0
je 0xa97a31
cmp dword [edi + 0x20], 5
jne 0xa97a31
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0xa97a3c
mov edi, dword [edi + 0x18]
jmp 0xa97a3e
xor edi, edi
push esi
call fcn.00a82336
pop ecx
jmp 0xa97ab3
test ecx, ecx
jg 0xa97a13
jl 0xa97a51
test eax, eax
jae 0xa97a13
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a8c367
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0xa97a74
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa97a13
jmp 0xa97aab
push ebx
call fcn.00a90c43
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0xa97a13
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0xa97ab3
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa97ab0
mov edi, dword [edi + 0x18]
jmp 0xa97ab3
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00a8c367
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0xa9d82c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x108fe
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
push edi
mov edi, dword [esi + 0x1c]
test edi, edi
mov dword [ebp + 8], eax
je 0x109ab
push ebx
mov ebx, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
lea ecx, [edi + 0x10]
call ebx
mov byte [ebp - 1], al
lea eax, [esi + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [edx], ecx
mov dword [ecx + 4], edx
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x40]
cmp dword [eax], eax
jne 0x10966
mov ecx, dword [ebp + 8]
add ecx, 0xc0
mov dword [ebp + 8], ecx
call ebx
mov ecx, dword [ebp + 8]
mov dl, al
mov dword [edi + 0x34], 3
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov byte [ebp + 0xb], 1
jmp 0x1096a
and byte [ebp + 0xb], 0
mov eax, dword [esi + 0x20]
mov dl, byte [ebp - 1]
xor ebx, ebx
mov dword [esi + 0x1c], ebx
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x20]
lea ecx, [edi + 0x10]
mov dword [eax + 0x10], ebx
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
cmp byte [ebp + 0xb], bl
je 0x109a4
cmp byte [edi + 0x2c], bl
jne 0x109a4
xor eax, eax
mov al, byte [edi + 0x18]
push ebx
push ebx
push 5
or eax, 0x45
push eax
push edi
call fcn.00016bee
push edi
call fcn.00010814
pop ebx
mov edi, dword [esi + 0x38]
push 1
push 0x74
push esi
call fcn.0001673a
test edi, edi
je 0x109ce
and dword [edi + 0x1c], 0
and dword [edi + 0x18], 0
mov dl, 2
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
pop edi
xor eax, eax
pop esi
leave
ret 4
Function at 0x18e94
Capabilities:
Complete processing asynchronous io request
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [0x1cf4c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0xa0]
xor eax, eax
lea ecx, [edi + 0x38]
xchg dword [ecx], eax
mov al, byte [ebp + 0x10]
push dword [ebp + 0x14]
mov byte [ebp + 0x10], al
call dword [sym.imp.ntoskrnl.exe_IoReleaseCancelSpinLock]
cmp dword [esi + 0x14], 4
je 0x18f20
mov eax, dword [esi + 0x26c]
and dword [esi + 0xa0], 0
mov dl, byte [ebp + 0x10]
mov ebx, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
lea ecx, [esi + 4]
mov dword [edi + 0x18], eax
call ebx
mov dl, 2
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov ecx, dword [esi + 8]
inc dword [esi + 0x244]
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
dec dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dl, al
jne 0x18f19
inc dword [esi + 0x154]
call ebx
push esi
call fcn.00013c06
jmp 0x19010
call ebx
jmp 0x19010
mov eax, dword [esi + 0x84]
mov dword [edi + 0x1c], eax
mov al, byte [ebp + 0xc]
neg al
sbb eax, eax
and eax, 0x7ffffffb
add eax, 0x80000005
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0xa8]
xor edx, edx
cmp eax, edx
je 0x18f63
mov ecx, dword [esi + 0x84]
cmp ecx, eax
jb 0x18f5b
mov dword [esi + 0xa8], edx
jmp 0x18f63
sub eax, ecx
mov dword [esi + 0xa8], eax
cmp dword [esi + 0x20], edx
mov dword [esi + 0x1c], 6
mov dword [esi + 0xa0], edx
je 0x18fc9
cmp byte [ebp + 0xc], dl
je 0x18f85
push dword [ebp + 0x10]
push esi
call fcn.00018d7e
jmp 0x18fdc
cmp dword [esi + 0xac], edx
je 0x18f94
push dword [ebp + 0x10]
push 2
jmp 0x18fd6
cmp byte [esi + 0xec], dl
jne 0x18fc2
lea ecx, [ebx + 0x3a8]
cmp dword [ecx], edx
je 0x18fb4
lea eax, [esi + 0xcc]
inc dword [eax]
mov eax, dword [eax]
cmp eax, dword [ecx]
jae 0x18fc2
mov dl, byte [ebp + 0x10]
lea ecx, [esi + 4]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
jmp 0x18fdc
push dword [ebp + 0x10]
push 1
jmp 0x18fd6
push dword [ebp + 0x10]
xor eax, eax
cmp byte [ebp + 0xc], dl
sete al
inc eax
push eax
push esi
call fcn.00017188
inc dword [esi + 0x23c]
cmp word [edi], 6
je 0x18ffa
push edi
push 0x18e66
call sub.ntoskrnl.exe_DbgPrint
pop ecx
pop ecx
call sub.ntoskrnl.exe_DbgBreakPoint
lea eax, [ebx + 0xc0]
push eax
lea edx, [edi + 0x58]
lea ecx, [ebx + 0x114]
call dword [sym.imp.ntoskrnl.exe_ExfInterlockedInsertTailList]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x19018
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [0x1cf4c]
push esi
lea ecx, [ebx + 0x114]
cmp dword [ecx], ecx
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ExfInterlockedRemoveHeadList]
je 0x19093
jmp 0x19087
lea ecx, [eax - 0x58]
mov eax, dword [ecx + 0x60]
mov eax, dword [eax + 0x18]
mov esi, dword [eax + 0xc]
mov dl, 2
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], 1
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
dec dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dl, al
jne 0x1907b
inc dword [esi + 0x154]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
push esi
call fcn.00013c06
jmp 0x19081
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
lea ecx, [ebx + 0x114]
lea edx, [ebx + 0xc0]
call edi
test eax, eax
jne 0x19039
lea ecx, [ebx + 0x160]
cmp dword [ecx], ecx
je 0x190d8
jmp 0x190cc
lea esi, [eax - 0x14]
push dword [esi + 0x30]
mov eax, dword [esi + 0xc]
push dword [esi + 0x34]
lea ecx, [esi + 0x20]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.00015d6c
push esi
call fcn.00017cd6
push dword [ebp - 4]
call fcn.00010814
lea ecx, [ebx + 0x160]
lea edx, [ebx + 0xc0]
call edi
test eax, eax
jne 0x1909f
lea esi, [ebx + 0x124]
cmp dword [esi], esi
je 0x191a6
lea edi, [ebx + 0xc0]
mov ebx, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, edi
call ebx
cmp dword [esi], esi
je 0x1919c
mov ecx, dword [esi]
mov dword [ebp - 0xc], ecx
mov edx, dword [esi + 4]
mov dword [ebp - 8], edx
lea edx, [ebp - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0xc]
mov dword [edx], ecx
mov dword [esi + 4], esi
mov dword [esi], esi
mov ecx, dword [ebp - 0xc]
jmp 0x19127
and byte [ecx + 0x18], 0
mov ecx, dword [ecx]
lea edx, [ebp - 0xc]
cmp ecx, edx
jne 0x19121
mov ecx, edi
mov edi, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov dl, al
call edi
mov esi, dword [ebp - 0xc]
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [eax + 4], ecx
lea eax, [ebp - 0xc]
cmp esi, eax
jne 0x19151
jmp 0x191a6
add esi, 0xffffff30
lea ecx, [esi + 4]
call ebx
cmp dword [esi + 0x14], 4
mov byte [ebp - 4], al
jne 0x19176
cmp dword [esi + 0x18], 2
jne 0x19176
push dword [ebp - 4]
push esi
call fcn.00019f02
jmp 0x1917d
mov dl, al
lea ecx, [esi + 4]
call edi
mov ecx, dword [esi + 8]
call ebx
dec dword [esi + 0xc]
mov ecx, dword [esi + 8]
jne 0x19136
inc dword [esi + 0x154]
mov dl, al
call edi
push esi
call fcn.00013c06
jmp 0x1913a
mov dl, al
mov ecx, edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1b296
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
and byte [ebp + 0xf], 0
test byte [edi], 0x80
je 0x1b43b
cmp word [edi + 6], 0
jne 0x1b43b
xor ebx, ebx
inc ebx
cmp word [edi + 0xe], bx
jne 0x1b43b
mov esi, dword [ebp + 8]
lea eax, [esi + 0x1b8]
push eax
call dword [sym.imp.ntoskrnl.exe_KeCancelTimer]
test al, al
je 0x1b2dd
mov byte [ebp + 0xf], bl
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x14], 4
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [0x1cf4c]
cmp ecx, dword [eax + 0x3c4]
jne 0x1b302
inc dword [eax + 0x450]
jmp 0x1b308
inc dword [eax + 0x454]
mov eax, dword [0x1cf4c]
inc dword [eax + 0x44c]
mov eax, dword [0x1cf4c]
mov eax, dword [eax + 0x3dc]
push esi
mov dword [esi + 0x48], eax
call fcn.0001c082
mov ax, word [edi + 2]
and byte [esi + 0x44], 0
mov word [esi + 0x132], ax
xor eax, eax
mov word [esi + 0x5c], bx
mov word [esi + 0x70], bx
mov word [esi + 0x34], ax
mov dword [esi + 0x80], eax
mov ecx, dword [0x1cf4c]
mov ecx, dword [ecx + 0x3dc]
mov dword [esi + 0x48], ecx
mov ecx, dword [0x1cf4c]
cmp dword [ecx + 0x3b4], eax
je 0x1b388
test byte [edi], bl
je 0x1b388
mov ax, word [esi + 0x3c]
dec ax
mov dword [esi + 0x20], ebx
mov word [esi + 0x36], ax
mov ax, word [edi + 0x10]
mov word [esi + 0x38], ax
mov word [esi + 0x3a], 3
jmp 0x1b38b
mov dword [esi + 0x20], eax
movzx eax, word [edi + 0x32]
lea ecx, [esi + 0xc0]
cmp dword [ecx], eax
jbe 0x1b39b
mov dword [ecx], eax
cmp byte [0x1cfe0], 0
mov ebx, dword [esi + 0x13c]
mov edi, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov dword [ebp - 4], ebx
je 0x1b3de
mov ebx, 0x1cfc8
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov cl, byte [0x1cfd0]
mov byte [ebp + 0xb], cl
mov dl, al
mov ecx, ebx
call edi
cmp byte [ebp + 0xb], 0
je 0x1b3db
push esi
call fcn.000116e6
mov ebx, dword [ebp - 4]
mov dl, byte [ebp + 0x10]
lea ecx, [esi + 4]
call edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_IoAcquireCancelSpinLock]
xor eax, eax
lea ecx, [ebx + 0x38]
xchg dword [ecx], eax
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_IoReleaseCancelSpinLock]
and dword [ebx + 0x18], 0
mov dl, 2
mov ecx, ebx
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
cmp byte [ebp + 0xf], 0
je 0x1b44a
mov ecx, dword [esi + 8]
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
dec dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dl, al
jne 0x1b437
inc dword [esi + 0x154]
call edi
push esi
call fcn.00013c06
jmp 0x1b44a
call edi
jmp 0x1b44a
mov ecx, dword [ebp + 8]
mov dl, byte [ebp + 0x10]
add ecx, 4
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1d354
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x58]
push eax
push dword [edi + 0x5c]
mov dword [ebp - 0x58], esi
push esi
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x50], 0x1d32a
mov dword [ebp - 0x3c], 0x1d2c0
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], 0x1d33a
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call ebx
cmp eax, esi
jne 0x1d3fd
cmp dword [ebp - 4], esi
je 0x1d3fd
push esi
lea eax, [ebp - 4]
push edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x58]
push eax
push dword [edi + 0x5c]
mov dword [ebp - 0x3c], 0x1d256
push esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x1d34a
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
call ebx
cmp eax, esi
jne 0x1d3ee
cmp dword [ebp - 4], esi
je 0x1d3ee
xor eax, eax
jmp 0x1d41c
push esi
push esi
push 0x1d34a
push eax
push 0x2bf
jmp 0x1d40a
push esi
push esi
push 0x1d33a
push eax
push 0x2be
push 0x8000251f
push dword [edi + 0x60]
call fcn.00016836
mov eax, 0xc0000182
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1dcc9
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x9c
push esi
push edi
mov esi, section.INIT
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x1a
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
call sub.TDI.SYS_CTEInitialize
test eax, eax
jne 0x1dd14
push eax
push eax
push eax
mov esi, 0xc0000001
push esi
push 0x65
push 0xc000232c
push dword [ebp + 0x78]
call fcn.00016836
mov eax, esi
jmp 0x1de57
mov esi, dword [ebp + 0x78]
push ebx
mov eax, 0x16470
push 0x1ce18
mov dword [esi + 0x38], eax
mov dword [esi + 0x70], 0x169a4
mov dword [esi + 0x74], fcn.000166b2
mov dword [esi + 0x80], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0xa4], 0x16a42
mov dword [esi + 0x34], 0x16958
xor edi, edi
push 0x1cf70
mov dword [0x1cf4c], edi
mov dword [0x1cf58], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x1cfa0
push 0x1cfa8
mov dword [0x1cfa4], eax
mov dword [0x1cfa0], eax
call dword [sym.imp.ntoskrnl.exe_KeInitializeSpinLock]
mov ebx, dword [ebp + 0x7c]
movzx eax, word [ebx]
push edi
inc eax
push edi
inc eax
push eax
call fcn.000169e0
cmp eax, edi
mov dword [0x1cf84], eax
jne 0x1ddb0
movzx eax, word [ebx]
inc eax
push edi
inc eax
push eax
push esi
call fcn.00016762
mov eax, 0xc000009a
jmp 0x1de56
movzx ecx, word [ebx]
mov esi, dword [ebx + 4]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx eax, word [ebx]
mov ecx, dword [0x1cf84]
shr eax, 1
and word [ecx + eax*2], 0
mov ax, word [ebx]
mov word [0x1cf80], ax
mov ax, word [ebx]
add ax, 2
mov word [0x1cf82], ax
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcess]
mov dword [0x1cf78], eax
call sub.TDI.SYS_TdiInitialize
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x68]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 7
pop ecx
xor eax, eax
lea edi, [ebp + 0x4c]
rep stosd dword es:[edi], eax
and byte [ebp + 0x4d], al
lea eax, [ebp + 0x68]
push 0x1cf54
mov dword [ebp + 0x50], eax
push 0x1c
lea eax, [ebp + 0x4c]
push eax
mov word [ebp + 0x6a], 0x78
mov byte [ebp + 0x4c], 2
mov dword [ebp + 0x58], 0x1237e
call sub.TDI.SYS_TdiRegisterPnPHandlers
test eax, eax
jge 0x1de54
and dword [0x1cf54], 0
push 0x1dc90
call sub.ntoskrnl.exe_DbgPrint
pop ecx
xor eax, eax
pop ebx
pop edi
pop esi
add ebp, 0x70
leave
ret 8
Function at 0x409440
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4805eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0047506f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4094c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00472e8a
mov eax, dword [eax]
push 0x49ec78
push eax
call fcn.00464fc4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004752fa
test bl, bl
je 0x4094c2
push 0x49ec78
lea ecx, [esp + 0xc]
call fcn.0047568a
push 0x49ec84
lea ecx, [esp + 0xc]
call fcn.0047568a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4094fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004752fa
jmp 0x4095c9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x409582
lea edx, [esp + 0x7c]
push 0x49ec80
push edx
call fcn.00464fc4
add esp, 8
test eax, eax
je 0x409582
lea eax, [esp + 0x7c]
push 0x49ec7c
push eax
call fcn.00464fc4
add esp, 8
test eax, eax
je 0x409582
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409512
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004752fa
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x409dc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409e22
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc