joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1cab6
Capabilities:
Access pe header

Disassembly:
push 0x154
push 0x36e28
call fcn.00024cf8
mov ecx, dword [ebp + 8]
mov ebx, 0xc0000001
mov dword [ebp - 0x130], ebx
and dword [ebp - 0x134], 0
and dword [ebp - 0x154], 0
xor eax, eax
lea edi, [ebp - 0x150]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 0x129], 0
push ecx
call fcn.0001c9b8
mov dword [ebp - 0x13c], eax
cmp eax, 0xffffffff
je 0x1cc14
call fcn.0001c964
mov esi, eax
mov dword [ebp - 0x138], esi
test esi, esi
je 0x1cc14
and dword [ebp - 0x128], 0
push 0x108
push 0
lea eax, [ebp - 0x124]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call fcn.0001886c
test eax, eax
jl 0x1cc14
lea eax, [ebp - 0x154]
push eax
call fcn.000186dc
mov dword [ebp - 0x130], eax
test eax, eax
jl 0x1cc14
mov byte [ebp - 0x129], 1
and dword [ebp - 4], 0
lea edi, [ebp - 0x164]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x138]
mov eax, dword [eax]
sub eax, dword [ebp - 0x128]
add eax, dword [ebp - 0x148]
mov dword [ebp - 0x164], eax
push dword [ebp - 0x13c]
lea eax, [ebp - 0x164]
push eax
call fcn.0001c942
mov dword [ebp - 0x134], eax
test eax, eax
jne 0x1cbbd
mov dword [ebp - 0x130], ebx
jmp 0x1cc0d
push dword [ebp - 0x148]
call dword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test eax, eax
je 0x1cbb5
mov ecx, dword [ebp - 0x128]
sub ecx, dword [eax + 0x34]
add dword [ebp - 0x134], ecx
push dword [ebp - 0x134]
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1cbb5
mov dword [ebp - 4], 0xfffffffe
and dword [ebp - 0x130], 0
jmp 0x1cc14
mov dword [ebp - 4], 0xfffffffe
cmp byte [ebp - 0x129], 0
je 0x1cc29
lea eax, [ebp - 0x154]
push eax
call fcn.000183d8
cmp dword [ebp - 0x130], 0
jge 0x1cc36
xor eax, eax
jmp 0x1cc3c
mov eax, dword [ebp - 0x134]
call fcn.00024d40
ret 4
Function at 0x1cd46
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], esi
cmp eax, esi
je 0x1ce30
cmp dword [eax + 4], esi
je 0x1ce30
cmp dword [ebp + 0xc], esi
je 0x1ce30
push 0x18
pop ebx
push 0x60
mov dword [ebp - 0x1c], eax
push 3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x80100000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0x240
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov edi, eax
cmp edi, esi
jl 0x1ce45
push 5
push ebx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov edi, eax
cmp edi, esi
jl 0x1ce45
push 0x32333435
push dword [ebp - 0x34]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
cmp ebx, esi
jne 0x1ce06
mov edi, 0xc000009a
jmp 0x1ce39
push esi
push esi
push dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push ebx
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov edi, eax
cmp edi, esi
jl 0x1ce39
cmp dword [ebp - 8], esi
je 0x1ce35
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor edi, edi
jmp 0x1ce45
mov edi, 0xc000000d
cmp edi, esi
jge 0x1ce45
cmp ebx, esi
je 0x1ce45
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 4], esi
je 0x1ce53
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1ce62
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x3c
pop eax
push 0x3e
mov word [ebp - 0x20], ax
pop eax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 0x25728
call fcn.0001cd46
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x1cf68
test ebx, ebx
je 0x1cf75
push ebx
call sub.ntoskrnl.exe_RtlImageNtHeader
mov edi, eax
cmp dword [edi], 0x4550
mov dword [ebp - 8], edi
jne 0x1cf68
mov eax, 0x10b
cmp ax, word [edi + 0x18]
jne 0x1cf68
push dword [edi + 0x78]
push edi
call fcn.0001ccfa
mov esi, eax
add esi, ebx
cmp esi, ebx
je 0x1cf68
push dword [esi + 0x20]
push edi
call fcn.0001ccfa
add eax, ebx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1cf68
push dword [esi + 0x1c]
push edi
call fcn.0001ccfa
add eax, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x1cf68
push dword [esi + 0x24]
push edi
call fcn.0001ccfa
add eax, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1cf68
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jbe 0x1cf61
jmp 0x1cf26
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
push dword [eax + ebx*4]
push edi
call fcn.0001ccfa
mov edi, eax
add edi, dword [ebp - 4]
je 0x1cf5b
cmp byte [edi], 0
je 0x1cf5b
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ebp - 0x18]
push dword [ecx + eax*4]
push dword [ebp - 8]
call fcn.0001ccfa
add eax, dword [ebp - 4]
push eax
push edi
call dword [ebp + 8]
inc ebx
cmp ebx, dword [esi + 0x18]
jb 0x1cf23
and dword [ebp - 0xc], 0
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1cf75
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1d016
Capabilities:
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
xor eax, eax
push esi
push edi
xor esi, esi
lea edi, [ebp - 0x14]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
cmp eax, esi
je 0x1d12c
cmp dword [eax + 4], esi
je 0x1d12c
cmp dword [ebp + 0xc], esi
je 0x1d12c
push ebx
push 0x18
pop ebx
push 0x100
push esi
push esi
push esi
push esi
push esi
push 1
push 1
push 0x80
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x80000000
lea eax, [ebp - 8]
mov edi, 0x240
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntoskrnl.exe_IoCreateFile]
test eax, eax
jl 0x1d10c
push dword [ebp - 8]
lea eax, [ebp - 0x30]
push 0x1000000
push 0x10
push esi
push eax
push 0xf001f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
jl 0x1d10c
push 4
push 0x100000
push 1
lea eax, [ebp - 0xc]
push eax
push esi
push 0x1000
push esi
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x1d10c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
pop ebx
cmp dword [ebp - 4], esi
je 0x1d11d
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], esi
je 0x1d127
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 0x10]
jmp 0x1d12e
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x1d3d4
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1d4a3
cmp dword [ebp + 0xc], edi
je 0x1d4a3
cmp dword [ebp + 0x10], edi
je 0x1d4a3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1d406
sub eax, edx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x1d448
push 0x316b6966
push dword [ebp - 4]
push edi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
cmp esi, edi
je 0x1d4a3
push dword [ebp - 4]
push edi
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jl 0x1d493
cmp dword [esi], edi
jbe 0x1d493
mov dword [ebp - 8], edi
lea ebx, [esi + 0x1e]
movzx eax, word [ebx]
push dword [ebp - 0xc]
add eax, dword [ebp - 8]
push dword [ebp + 8]
lea eax, [eax + esi + 0x20]
push eax
call sub.ntoskrnl.exe__strnicmp
add esp, 0xc
test eax, eax
je 0x1d4ac
mov eax, 0x11c
add dword [ebp - 8], eax
inc edi
add ebx, eax
cmp edi, dword [esi]
jb 0x1d465
xor edi, edi
cmp esi, edi
je 0x1d4a3
push 0x316b6966
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
mov edx, dword [ebp + 0x10]
imul edi, edi, 0x11c
lea eax, [edi + esi]
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov al, 1
jmp 0x1d4a5
Function at 0x1d4ce
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 8], esi
mov byte [ebp - 1], 0
cmp dword [ebp + 8], esi
je 0x1d5c5
cmp dword [ebp + 0xc], esi
je 0x1d5c5
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x1d52f
push 0x316b6966
push dword [ebp - 8]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, esi
je 0x1d5c0
push dword [ebp - 8]
push esi
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jl 0x1d5b0
cmp dword [edi], esi
jbe 0x1d5b0
lea eax, [edi + 0x1e]
push ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], eax
mov ebx, 0x11c
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
add eax, dword [ebp - 0xc]
lea eax, [eax + edi + 0x20]
push eax
mov dword [ebp - 0x14], eax
call fcn.0001d360
test al, al
jne 0x1d57c
add dword [ebp - 0xc], ebx
add dword [ebp - 0x10], ebx
inc esi
cmp esi, dword [edi]
jb 0x1d555
jmp 0x1d5ad
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1d582
sub eax, ecx
push eax
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call sub.ntoskrnl.exe_memcpy
mov ecx, dword [ebp + 8]
add esp, 0xc
imul esi, esi, 0x11c
mov eax, dword [esi + edi + 0xc]
mov dword [ecx], eax
mov byte [ebp - 1], 1
xor esi, esi
pop ebx
cmp edi, esi
je 0x1d5c0
push 0x316b6966
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, byte [ebp - 1]
jmp 0x1d5c7
xor al, al
pop edi
pop esi
leave
ret 8

Function at 0x1dba8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor eax, 6
cmp dword [ebp + 0x10], 0
jbe 0x1dbd7
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x26460]
inc ecx
dec dword [ebp + 0x10]
jne 0x1dbbc
not eax
pop ebp
ret 0xc
Function at 0x1ddbc
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x37910]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x120], 0
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.ntoskrnl.exe_memset
mov eax, dword [0x3f650]
add esp, 0xc
test eax, eax
jne 0x1de97
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
jge 0x1de1a
xor eax, eax
jmp 0x1de97
cmp dword [ebp - 0x11c], 5
jne 0x1de2f
mov dword [0x3f650], 0x200
jmp 0x1de92
cmp dword [ebp - 0x11c], 6
jne 0x1de75
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x1de47
cmp eax, 1
jne 0x1de53
mov dword [0x3f650], 0x262
jmp 0x1de92
cmp eax, 2
jne 0x1de64
mov dword [0x3f650], 0x26c
jmp 0x1de92
cmp eax, 3
jne 0x1de92
mov dword [0x3f650], 0x276
jmp 0x1de92
cmp dword [ebp - 0x11c], 0xa
jne 0x1de92
cmp dword [ebp - 0x118], 0
jne 0x1de92
mov eax, dword [ebp - 0x114]
mov dword [0x3f650], eax
mov eax, dword [0x3f650]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00016ce5
leave
ret

Function at 0x1e0ae
Capabilities:
Access pe header

Disassembly:
push 0xc
push 0x36e48
call fcn.00016d34
push dword [ebp + 0x14]
call sub.ntoskrnl.exe_RtlImageNtHeader
test eax, eax
je 0x1e104
mov ecx, dword [eax + 0x34]
and dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp + 0xc]
jae 0x1e0eb
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax*4]
sub edx, ecx
add edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
mov dword [esi + eax*4], edx
inc eax
jmp 0x1e0cf
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1e106
xor al, al
call fcn.00016d79
ret 0x14

Function at 0x1f88a
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
push 0x1f7ac
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x1fffff
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov edi, eax
cmp edi, esi
jl 0x1f8e7
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
cmp edi, esi
pop edi
setge al
pop esi
leave
ret
Function at 0x1fafe
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
cmp dword [0x3d44c], ebx
jne 0x1fb49
push 0x32333435
mov esi, 0x148200
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [0x3d44c], eax
cmp eax, ebx
je 0x1fb8b
push esi
push ebx
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push ebx
push 0x1f980
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x1fffff
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jl 0x1fb8b
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x20f10
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x14]
add ecx, 0x10
mov dword [ebp - 4], ecx
mov edx, dword [str.dsdsmmoc]
push edx
mov eax, dword [ebp - 4]
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x20f4b
mov eax, 0xc000009a
jmp 0x21007
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 1
mov edx, dword [ebp - 0x10]
add edx, 4
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
add edx, 4
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov edx, dword [ebp + 0xc]
add edx, 0x14
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 3
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov dword [ebp - 0xc], eax
mov ecx, dword [str.dsdsmmoc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x248e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xc0000023
je 0x24927
jmp 0x249a6
mov edx, dword [0x36b14]
push edx
mov eax, dword [ebp - 4]
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x24945
jmp 0x249a6
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 2
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x2499e
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 0xc], 0
jmp 0x249a6
xor ecx, ecx
jne 0x248fd
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x249c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [ebp - 0xc], cx
xor edx, edx
mov dword [ebp - 0xa], edx
mov word [ebp - 6], dx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0x418
mov eax, dword [0x36b14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x24a3e
mov eax, 0xc000009a
jmp 0x24b4b
mov edx, 1
test edx, edx
je 0x24b28
mov dword [ebp - 0x18], 0x418
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x24a7c
jmp 0x24b28
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0xc], 0
jne 0x24a90
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x24a3e
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
mov ax, word [edx + 0xc]
mov word [ebp - 0xc], ax
mov cx, word [ebp - 0xc]
mov word [ebp - 0xa], cx
mov dword [ebp - 0x34], 0x18
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], 0x240
lea eax, [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x34]
push ecx
push 0xf003f
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x24af2
jmp 0x24b28
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x1c], 0
je 0x24b1a
jmp 0x24b28
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x24a3e
mov eax, dword [0x36b14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x1c], 0x8000001a
jne 0x24b48
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x24b60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0x13c
mov dword [ebp - 4], 0
mov eax, dword [0x36b14]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x24b9b
mov eax, 0xc000009a
jmp 0x24c3e
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
test ecx, ecx
jne 0x24c1a
mov eax, dword [ebp - 0x1c]
add eax, 0xc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
mov dx, word [ecx + 8]
mov word [ebp - 0x14], dx
mov ax, word [ebp - 0x14]
mov word [ebp - 0x12], ax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x24c18
jmp 0x24c1a
jmp 0x24bad
mov ecx, dword [0x36b14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x18], 0x8000001a
jne 0x24c3b
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4003e
Capabilities:
Create device object
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00040005
pop ebp
jmp fcn.0001106a