joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c30
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [sym.imp.HAL.dll_KeGetCurrentIrql]
xor ebp, ebp
push edi
mov ebx, eax
xor edi, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call esi
cmp al, 1
jbe 0x401c7a
call esi
movzx eax, al
push eax
push str.EX:_Pageable_code_called_at_IRQL__d_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
push ebp
push 0x263
push str..RegOperater.cpp
push 0x40c8f4
call dword [sym.imp.ntoskrnl.exe_RtlAssert]
cmp ebx, ebp
je 0x401dd9
mov ecx, dword [esp + 0x4c]
cmp ecx, ebp
je 0x401dd9
mov eax, dword [esp + 0x50]
cmp eax, ebp
je 0x401dd9
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ecx], ebp
push ebx
lea ecx, [esp + 0x24]
push ecx
mov dword [eax], ebp
call esi
mov edx, dword [esp + 0x48]
push edx
lea eax, [esp + 0x1c]
push eax
call esi
lea edx, [esp + 0x10]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x38]
lea ecx, [esp + 0x30]
push eax
mov dword [esp + 0x44], ecx
push 0x1f01ff
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x44], 0x18
mov dword [esp + 0x48], ebp
mov dword [esp + 0x50], 0x40
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov edi, eax
cmp edi, ebp
jl 0x401dca
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push ebp
push ebp
push 2
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edi, eax
cmp edi, 0xc0000034
je 0x401de5
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x401de5
mov ebx, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push 0x50474552
push eax
push ebp
call ebx
mov esi, eax
cmp esi, ebp
je 0x401dca
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
push eax
push esi
push 2
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edi, eax
cmp edi, ebp
jl 0x401dbe
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x54]
push 0x50474552
lea edx, [eax + ecx + 2]
push edx
push ebp
call ebx
mov ecx, dword [esp + 0x54]
mov ebx, eax
mov eax, dword [esi + 8]
lea edx, [eax + ecx + 2]
push edx
push ebp
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
cmp ebx, ebp
je 0x401daf
mov eax, dword [esi + 8]
push eax
lea ecx, [esi + 0xc]
push ecx
push ebx
call sub.ntoskrnl.exe_memmove
add esp, 0xc
mov edx, dword [esp + 0x4c]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x50]
mov dword [edx], ebx
mov dword [ecx], eax
push 0x50474552
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x401dd9
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x10
cmp dword [0x410048], 4
jg 0x401dfb
push str.Failed_to_query_the_value_now_we_just_quit_the_value._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x10
Function at 0x402010
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.HAL.dll_KeGetCurrentIrql]
mov esi, eax
call edi
cmp al, 1
jbe 0x40204a
call edi
movzx eax, al
push eax
push str.EX:_Pageable_code_called_at_IRQL__d_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
push 0
push 0xc4
push str..RegProtect.cpp
push 0x40c8f4
call dword [sym.imp.ntoskrnl.exe_RtlAssert]
test esi, esi
je 0x402080
lea edi, [esi + 0x28]
push ebx
mov ecx, edi
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
add esi, 0x34
mov bl, al
cmp dword [esi], esi
je 0x402075
mov ecx, dword [esi]
mov eax, dword [ecx]
mov dword [esi], eax
mov dword [eax + 4], esi
call fcn.004028d0
cmp dword [esi], esi
jne 0x402063
mov dl, bl
mov ecx, edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x4025a0
Capabilities:
Delete registry value
Print debug messages

Disassembly:
sub esp, 0x34
push ebx
push esi
mov esi, dword [sym.imp.HAL.dll_KeGetCurrentIrql]
xor ebx, ebx
mov dword [esp + 0xc], ebx
call esi
cmp al, 1
jbe 0x4025e0
call esi
movzx eax, al
push eax
push str.EX:_Pageable_code_called_at_IRQL__d_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
push ebx
push 0x351
push str..RegProtect.cpp
push 0x40c8f4
call dword [sym.imp.ntoskrnl.exe_RtlAssert]
cmp edi, ebx
je 0x4026c6
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x4026c6
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push eax
lea ecx, [esp + 0x14]
push ecx
call esi
mov edx, dword [edi + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
call esi
lea edx, [esp + 0x20]
push edx
push 0x1f01ff
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], 0x40
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, eax
cmp esi, ebx
jl 0x402698
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov esi, eax
cmp esi, ebx
jge 0x40267a
cmp esi, 0xc0000034
je 0x40267a
cmp dword [0x410048], 4
jg 0x4026af
push esi
push str.Failed_to_delete_the_key_value__status__0x_08x._n
jmp 0x4026a7
cmp dword [0x410048], 1
jg 0x402694
mov eax, dword [edi + 0xc]
push eax
push str.Successfully_delete_the_key_name__key_S._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
xor esi, esi
jmp 0x4026af
cmp dword [0x410048], 4
jg 0x4026af
push esi
push str.Failed_to_open_or_create_the_registry_key__status__0x_08x._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4026be
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
pop ebx
add esp, 0x34
ret
pop esi
mov eax, ebx
pop ebx
add esp, 0x34
ret
Function at 0x4026d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ee18
push 0x40a812
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp dword [ebp + 8], ebx
je 0x4028b8
cmp dword [ebp + 0xc], ebx
je 0x4028b8
cmp dword [ebp + 0x10], ebx
je 0x4028b8
cmp edi, ebx
je 0x4028b8
mov dword [ebp - 4], ebx
push 0x50474552
push 0x20
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x40279a
test esi, esi
je 0x402889
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esi + 8]
push edx
call fcn.00401530
mov ebx, eax
test ebx, ebx
jge 0x4027d5
cmp dword [0x410048], 4
jg 0x402889
push ebx
push str.Failed_to_allocate_the_RegPath__status0x_08x._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
jmp 0x402889
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esi + 0xc]
push ecx
call fcn.00401530
mov ebx, eax
test ebx, ebx
jge 0x402808
cmp dword [0x410048], 4
jg 0x402889
push ebx
push str.Failed_to_allocate_the_KeyName__status0x_08x._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
jmp 0x402889
mov eax, 4
cmp dword [ebp + 0x14], eax
jne 0x40281a
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
jmp 0x402836
push edi
lea edx, [esi + 0x14]
push edx
mov edi, dword [ebp + 0x1c]
mov ecx, edi
call fcn.004016f0
mov ebx, eax
add edi, 2
mov dword [esi + 0x18], edi
mov eax, 4
test ebx, ebx
jge 0x402852
cmp dword [0x410048], eax
jg 0x402889
push ebx
push str.Failed_to_allocate_the_KeyValue__status0x_08x._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
jmp 0x402889
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 0x20]
mov dword [esi + 0x1c], ecx
mov edi, dword [ebp + 8]
add edi, 0x28
mov ecx, edi
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov dl, al
mov ecx, dword [ebp + 8]
add ecx, 0x34
mov eax, dword [ecx + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [ecx + 4], esi
mov ecx, edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
test ebx, ebx
jge 0x4028b8
test esi, esi
je 0x4028b8
mov edx, dword [esi + 8]
push edx
call fcn.00401650
mov eax, dword [esi + 0xc]
push eax
call fcn.00401650
mov ecx, dword [esi + 0x14]
push ecx
call fcn.004017e0
push 0x50474552
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x402980
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov edi, eax
mov esi, ecx
xor eax, eax
test esi, esi
je 0x402b42
test edi, edi
je 0x402b42
mov edx, dword [edi + 4]
cmp edx, dword [esi + 0x10]
jne 0x402b42
mov ecx, dword [esi + 0x18]
cmp ecx, dword [edi + 8]
jne 0x402b42
lea eax, [edx - 1]
cmp eax, 6
ja case.0x4029bc.5
jmp dword [eax*4 + 0x402b48]
mov eax, dword [edi + 0xc]
xor ecx, ecx
cmp eax, dword [esi + 0x14]
pop edi
sete cl
pop esi
mov eax, ecx
ret
mov esi, dword [esi + 0x14]
lea edx, [edi + 0xc]
cmp ecx, 4
jb 0x4029f4
mov edi, edi
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4029fc
sub ecx, 4
add esi, 4
add edx, 4
cmp ecx, 4
jae 0x4029e0
test ecx, ecx
je 0x402b37
movzx eax, byte [edx]
movzx edi, byte [esi]
sub eax, edi
jne 0x402a43
cmp ecx, 1
jbe 0x402b37
movzx eax, byte [edx + 1]
movzx edi, byte [esi + 1]
sub eax, edi
jne 0x402a43
cmp ecx, 2
jbe 0x402b37
movzx eax, byte [edx + 2]
movzx edi, byte [esi + 2]
sub eax, edi
jne 0x402a43
cmp ecx, 3
jbe 0x402b37
movzx eax, byte [edx + 3]
movzx ecx, byte [esi + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
xor edx, edx
test eax, eax
sete dl
pop edi
pop esi
mov eax, edx
ret
mov esi, dword [esi + 0x14]
lea edx, [edi + 0xc]
cmp ecx, 4
jb 0x4029f4
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4029fc
sub ecx, 4
add esi, 4
add edx, 4
cmp ecx, 4
jae 0x402a60
jmp 0x4029f4
mov esi, dword [esi + 0x14]
lea edx, [edi + 0xc]
cmp ecx, 4
jb 0x4029f4
jmp 0x402a90
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4029fc
sub ecx, 4
add esi, 4
add edx, 4
cmp ecx, 4
jae 0x402a90
jmp 0x4029f4
cmp dword [0x410048], 4
jg 0x402ac4
push edx
push str.Try_to_check_the_register_type__d__just_use_the_memory_compare_way._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov edx, dword [esi + 0x18]
mov esi, dword [esi + 0x14]
lea ecx, [edi + 0xc]
cmp edx, 4
jb 0x402ae6
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x402aea
sub edx, 4
add esi, 4
add ecx, 4
cmp edx, 4
jae 0x402ad2
test edx, edx
je 0x402b37
movzx eax, byte [ecx]
movzx edi, byte [esi]
sub eax, edi
jne 0x402b25
cmp edx, 1
jbe 0x402b37
movzx eax, byte [ecx + 1]
movzx edi, byte [esi + 1]
sub eax, edi
jne 0x402b25
cmp edx, 2
jbe 0x402b37
movzx eax, byte [ecx + 2]
movzx edi, byte [esi + 2]
sub eax, edi
jne 0x402b25
cmp edx, 3
jbe 0x402b37
movzx eax, byte [ecx + 3]
movzx ecx, byte [esi + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
xor edx, edx
test eax, eax
sete dl
pop edi
pop esi
mov eax, edx
ret
xor eax, eax
xor edx, edx
test eax, eax
sete dl
mov eax, edx
pop edi
pop esi
ret
Function at 0x402b70
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
cmp edi, esi
je 0x402d0f
mov ebp, dword [esp + 0x2c]
cmp ebp, esi
je 0x402d0f
push 0x18
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push str.AppPath
mov eax, str.RegistryMachineSOFTWAREUSBBoxLite
mov dword [edi], esi
mov dword [ebp], esi
call fcn.00401c30
mov ebx, eax
cmp ebx, esi
jl 0x402c09
mov esi, dword [esp + 0x18]
test esi, esi
je 0x402c09
cmp dword [esp + 0x14], 0
jbe 0x402c09
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402bd5
sub eax, edx
sar eax, 1
push str.pnphost.dll
lea eax, [eax + eax + 0x1a]
mov ecx, esi
call fcn.004013b0
mov edx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [ebp], edx
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
push 0x18
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push str.ImagePath
mov eax, str.RegistryMachineSYSTEMCurrentControlSet_servicesUSBMonitorProtect
call fcn.00401c30
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
test eax, eax
jl 0x402ced
test ebp, ebp
je 0x402ced
mov esi, dword [esp + 0x14]
test esi, esi
je 0x402ced
mov ebx, str.___
call fcn.00401880
mov ebx, 0x40d51c
sub esi, eax
call fcn.00401880
mov edx, 0xfffffffc
sub edx, eax
mov eax, dword [esp + 0x24]
add esi, edx
push 0x50474552
lea ebx, [esi + eax + 2]
push ebx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
test edi, edi
je 0x402cd0
push ebx
push 0
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push esi
mov ebx, str.___
call fcn.00401880
add eax, ebp
push eax
push edi
call sub.ntoskrnl.exe_memmove
add esp, 0xc
push str.pnphost.dll
lea eax, [esi + esi + 0x18]
mov ecx, edi
call fcn.004013b0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov dword [ecx], edi
mov dword [edx], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
mov esi, 0xc000009a
push 0x50474552
push ebp
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
cmp dword [0x410048], 4
jg 0x402d04
push eax
push str.Failed_to_lookup_the_Driver_Image_path.status__0x_08x._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov esi, 0xc000009a
test ebp, ebp
jne 0x402cd5
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x403c40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ed68
push 0x40a812
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov edi, dword [sym.imp.ntoskrnl.exe_RtlAssert]
cmp esi, ebx
jne 0x403c8a
push ebx
push 0x3ca
push str..SystemOperator.cpp
push str.FilterExt___NULL
call edi
cmp dword [ebp + 0xc], ebx
jne 0x403ca1
push ebx
push 0x3cb
push str..SystemOperator.cpp
push str.Parameter___NULL
call edi
cmp dword [ebp + 0x10], ebx
jne 0x403cb8
push ebx
push 0x3cc
push str..SystemOperator.cpp
push str.HandleObject___NULL
call edi
cmp dword [ebp + 0x14], ebx
jne 0x403ccf
push ebx
push 0x3cd
push str..SystemOperator.cpp
push str.puWritedSize___NULL
call edi
mov eax, dword [ebp + 0xc]
cmp dword [eax], 1
je 0x403ce9
push ebx
push 0x3ce
push str..SystemOperator.cpp
push str.Parameter___Common._TaskCommonHeader._TaskType__QuerySystemInformationType
call edi
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 1
je 0x403d04
push ebx
push 0x3cf
push str..SystemOperator.cpp
push str.Parameter___Common._QueryType__QueryHandleInformationType
call edi
mov edx, dword [ebp + 0x14]
mov dword [edx], ebx
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x403e57
mov eax, dword [esi + 0x48]
cmp eax, ebx
jbe 0x403e57
mov edx, dword [ebp + 0x10]
cmp eax, dword [edx + 4]
jne 0x403e29
mov dword [ebp - 4], ebx
push eax
push ecx
push edx
call sub.ntoskrnl.exe_memmove
add esp, 0xc
mov eax, dword [esi + 0x48]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x403dc0
cmp eax, ebx
jbe 0x403dc0
mov dword [ebp - 4], 1
push 0x504d4554
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x410048], 4
jg 0x403e3f
push str.Give_the_Invalid_parameter._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 0xc0000023
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x410048], 4
jg 0x403e6d
push str.Please_first_we_try_to_get_the_handle_counts._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 0xc00000a0
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403e90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40edf0
push 0x40a812
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov edi, edx
xor eax, eax
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov word [ebp - 0x34], cx
mov dword [ebp - 0x32], eax
mov word [ebp - 0x2e], ax
mov esi, dword [sym.imp.ntoskrnl.exe_RtlAssert]
cmp edi, eax
jne 0x403ee8
push eax
push 0x429
push str..SystemOperator.cpp
push str.FileObject___NULL
call esi
test ebx, ebx
jne 0x403efe
push ebx
push 0x42a
push str..SystemOperator.cpp
push str.BufferLen___NULL
call esi
cmp dword [ebp + 8], 0
jne 0x403f17
push 0
push 0x42b
push str..SystemOperator.cpp
push str.Buffer___NULL
call esi
test edi, edi
je 0x40409b
mov eax, dword [edi + 4]
test eax, eax
je 0x404092
cmp word [edi + 0x30], 0
jbe 0x404092
mov edx, dword [edi + 0x34]
cmp word [edx], 0
je 0x404092
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_IoVolumeDeviceToDosName]
mov dword [ebp - 0x20], eax
test eax, eax
jl 0x404035
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax]
cmp cx, 0x61
jb 0x403f71
cmp cx, 0x7a
jbe 0x403f85
cmp cx, 0x41
jb 0x40401f
cmp cx, 0x5a
ja 0x40401f
mov dword [ebp - 4], 1
push eax
mov edx, dword [ebx]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00401330
mov edx, dword [edi + 0x34]
push edx
mov eax, dword [ebx]
mov ecx, esi
call fcn.004013b0
mov eax, dword [ebx]
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
lea esi, [ebp - 0x24]
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
call fcn.004014a0
test eax, eax
jl 0x403ff4
mov edx, dword [ebp - 0x24]
mov dword [ebx], edx
jmp 0x403ffb
mov dword [ebp - 0x20], 0x80000005
mov dword [ebp - 4], 0
cmp dword [0x410048], 1
jg 0x40401c
mov ecx, dword [ebp + 8]
push ecx
push str.Got_one_Buffer___ws._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40404c
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 4], 0xffffffff
jmp 0x4040a2
cmp dword [0x410048], 4
jg 0x40404c
push eax
push str.Failed_to_query_the_Device_DosName__exceptionCode0x_08x._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x4040a2
mov dword [ebp - 0x20], 0xc0190021
jmp 0x4040a2
mov dword [ebp - 0x20], 0xc000000d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404140
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
xor eax, eax
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlAssert]
push edi
xor edi, edi
xor ecx, ecx
mov word [esp + 0x38], ax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
mov word [esp + 0x56], ax
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov word [esp + 0x10], cx
mov dword [esp + 0x12], eax
mov word [esp + 0x16], ax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
cmp ebx, edi
jne 0x4041c1
push edi
push 0x4c8
push str..SystemOperator.cpp
push str.PartitionDeviceName___NULL
call esi
cmp dword [ebp + 0xc], edi
jne 0x4041d8
push edi
push 0x4c9
push str..SystemOperator.cpp
push str.PartitionDeviceNameLen___NULL
call esi
mov edx, dword [ebp + 0xc]
cmp dword [edx], edi
ja 0x4041f1
push edi
push 0x4ca
push str..SystemOperator.cpp
push str.PartitionDeviceNameLen___0
call esi
mov esi, dword [ebp + 8]
cmp si, 0x61
jb 0x404200
cmp si, 0x7a
jbe 0x40420d
lea eax, [esi - 0x41]
cmp ax, 0x19
ja 0x40430c
push str.__C:
mov edx, 0x20
lea ecx, [esp + 0x3c]
call fcn.00401330
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
mov word [esp + 0x48], si
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [esp + 0x20]
push ecx
push 0x80000000
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], 0x40
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenSymbolicLinkObject]
mov esi, eax
cmp esi, edi
jl 0x4042dd
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
mov word [esp + 0x16], ax
mov word [esp + 0x14], ax
mov eax, dword [esp + 0xc]
push edx
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.ntoskrnl.exe_ZwQuerySymbolicLinkObject]
mov esi, eax
cmp esi, edi
jl 0x4042b9
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
push eax
mov dword [edx], ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x4042f9
cmp dword [0x410048], 4
jg 0x4042d0
push esi
push str.Failed_to_query_the_Symbolic_Name__Status0x_08x._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x4042f9
cmp dword [0x410048], 4
jg 0x4042f9
movzx ecx, word [ebp + 8]
push esi
push ecx
push str.Failed_to_open_the_partition_Name__wc__NtStatus0x_08x._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
cmp esi, edi
mov eax, esi
jge 0x40430e
mov edx, dword [ebp + 0xc]
mov dword [edx], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x404910
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x14
movsx eax, byte [edi + 0x22]
movsx ecx, byte [edi + 0x23]
push ebx
push ebp
push esi
xor esi, esi
inc eax
cmp ecx, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], esi
jle 0x404943
push esi
push 0x5b15
push str.C:WinDDK7600.16385.1incddkwdm.h
push str.Irp__CurrentLocation___Irp__StackCount__1
call dword [sym.imp.ntoskrnl.exe_RtlAssert]
mov eax, dword [edi + 0x60]
mov edx, dword [eax + 0xc]
mov ebp, dword [eax + 8]
mov eax, dword [eax + 4]
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
test byte [eax + 6], 5
mov dword [esp + 0x14], edx
je 0x404968
mov esi, dword [eax + 0xc]
jmp 0x404978
push 0x10
push esi
push esi
push 1
push esi
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov esi, eax
cmp dword [0x410048], 1
jg 0x40499b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push esi
push ebp
push ebx
push edx
push str.DeviceCode0x_08x__InputBuffer0x_08x__InputBufferSize_d__OutpuBuffer0x_08x__OutputBufferSize_d._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x18
cmp dword [esp + 0x14], 0x222412
jne 0x404a00
xor eax, eax
mov dword [esp + 0x10], eax
cmp ebx, eax
je 0x4049ca
cmp esi, eax
je 0x4049ca
cmp dword [ebx], 1
jne 0x4049e7
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x28]
push ebp
push ebx
call fcn.00402d20
jmp 0x4049e7
cmp dword [0x410048], 4
jg 0x4049e2
push esi
push ebx
push str.Give_the_error_parameter__InBuffer0x_08x__OutBuffer0x_08x._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
mov eax, 0xc000000d
mov ecx, eax
test eax, eax
jge 0x404a04
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
pop esi
pop ebp
mov dword [edi + 0x1c], edx
mov dword [edi + 0x18], ecx
mov eax, ecx
pop ebx
add esp, 0x14
ret 4