joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10e34
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x10e61
mov eax, dword [ebp + 0x14]
xor edx, edx
add eax, esi
div dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov dl, byte [edx + eax]
mov al, byte [ecx]
sub al, 7
xor al, dl
mov byte [ecx], al
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x10e42
mov eax, dword [ebp + 0xc]
pop esi
pop ebp
ret 0x18
Function at 0x11b13
Capabilities:
Get file attributes
Print debug messages
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
push 5
lea eax, [ebp - 0x30]
push 0x18
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jge 0x11b3b
xor al, al
jmp 0x11bc8
mov edi, 0x400
cmp dword [ebp - 0x28], edi
jb 0x11b34
push 0xe
lea eax, [ebp - 8]
push 8
push eax
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
test eax, eax
jl 0x11b34
lea eax, [ebp - 0x10]
push esi
push eax
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov edi, eax
cmp edi, esi
jge 0x11baf
push 0x11aba
call sub.ntoskrnl.exe_DbgPrint
push edi
push 0x11ac2
call sub.ntoskrnl.exe_DbgPrint
push 0x11aee
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x10
jmp 0x11b34
push 0x20
push 0x11af2
push dword [ebp + 0x10]
call dword [sym.imp.ntoskrnl.exe__strnicmp]
add esp, 0xc
neg eax
sbb al, al
inc al
pop edi
pop esi
leave
ret 0xc

Function at 0x11c27
Capabilities:
Get file attributes
Print debug messages
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
jne 0x11c3e
xor eax, eax
jmp 0x11d1c
push 5
lea eax, [ebp - 0x38]
push 0x18
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x11c37
mov edi, 0x400
cmp dword [ebp - 0x30], edi
jb 0x11c37
push 0xe
lea eax, [ebp - 8]
push 8
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
test eax, eax
jl 0x11c37
lea eax, [ebp - 0x10]
push esi
push eax
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
cmp ebx, esi
jge 0x11ccc
push 0x11bce
call sub.ntoskrnl.exe_DbgPrint
push ebx
push 0x11bd6
call sub.ntoskrnl.exe_DbgPrint
push 0x11c02
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x10
jmp 0x11c37
mov ebx, dword [ebp + 0xc]
push 0x20
push 0x11c06
push ebx
call dword [sym.imp.ntoskrnl.exe__strnicmp]
add esp, 0xc
test eax, eax
jne 0x11c37
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x11cf8
movzx ecx, byte [ebx + 0x3ff]
mov dword [eax], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
sub eax, edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
sbb ecx, esi
push eax
push ebx
mov dword [ebp - 0x1c], ecx
call fcn.00016ae8
xor ecx, ecx
test al, al
setne cl
inc ecx
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x11f30
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 5
lea eax, [ebp - 0x20]
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
push 0x18
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x11f63
cmp dword [ebp - 0x18], 0
jne 0x11f63
cmp dword [ebp - 0x14], 0
je 0x11f67
xor al, al
jmp 0x11f69
mov al, 1
leave
ret 4

Function at 0x11f71
Capabilities:
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0xe
lea eax, [ebp - 0xc]
push 8
push eax
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
test eax, eax
jge 0x11f9d
xor al, al
jmp 0x11feb
push edi
xor eax, eax
lea edi, [ebp - 2]
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 2]
push 2
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], esi
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
pop edi
jl 0x11f99
cmp dword [ebp - 0x18], 2
jne 0x11f99
push 2
lea eax, [ebp - 2]
push 0x11f6e
push eax
call dword [sym.imp.ntoskrnl.exe__strnicmp]
add esp, 0xc
neg eax
sbb al, al
inc al
pop esi
leave
ret 4
Function at 0x155e4
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push edi
call dword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
push 1
push 0x2bf20
call dword [sym.imp.ntoskrnl.exe_ExAcquireResourceSharedLite]
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x156d0
push dword [ebp + 0x144]
call fcn.000156ec
test al, al
jne 0x156cc
mov edi, dword [ebp + 0x38]
or ecx, 0xffffffff
xor eax, eax
push 0x546b6c42
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x154
push ecx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edx, eax
test edx, edx
jne 0x15666
push 0x1559e
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x155a6
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x155e2
call sub.ntoskrnl.exe_DbgPrint
pop ecx
xor al, al
jmp 0x156e5
xor al, al
xor ecx, ecx
add al, byte [ecx + ebp + 0x24]
inc ecx
cmp ecx, 0x10
jl 0x1566a
push esi
push 0x55
pop ecx
mov esi, ebp
mov edi, edx
lea ebx, [edx + 0x154]
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x14], al
mov dword [edx + 0x38], ebx
mov edi, dword [ebp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and dword [edx], 0
mov byte [edx + 0x34], al
mov eax, dword [0x2c198]
pop esi
test eax, eax
je 0x156c3
mov dword [edx], eax
jmp 0x156c6
and dword [edx], 0
mov dword [0x2c198], edx
mov bl, 1
jmp 0x156d2
xor bl, bl
mov ecx, 0x2bf20
call dword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call dword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov al, bl
pop edi
pop ebp
pop ebx
ret 4
Function at 0x168fc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [0x2b52c]
test edi, edi
je 0x1697d
or ebx, 0xffffffff
xor eax, eax
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1697d
mov edi, dword [0x2b530]
test edi, edi
je 0x1697d
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1697d
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1697d
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1697d
push 0x546b6c42
push 0x400
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
jne 0x16986
push 0x168ae
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x168b6
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x168ee
call sub.ntoskrnl.exe_DbgPrint
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
push dword [0x2b52c]
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_strstr]
mov edi, dword [0x2b52c]
mov edx, eax
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + edx + 1]
push eax
push dword [0x2b530]
push 0x168f2
push esi
call dword [sym.imp.ntoskrnl.exe_sprintf]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push esi
call fcn.0001ff28
test eax, eax
jge 0x169d2
xor bl, bl
jmp 0x16a01
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.000158ae
test al, al
jne 0x169f1
cmp dword [ebp - 4], 0
je 0x169ce
push dword [ebp - 4]
call fcn.0001f75c
jmp 0x169ce
cmp dword [ebp - 4], 0
je 0x169ff
push dword [ebp - 4]
call fcn.0001f75c
mov bl, 1
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov al, bl
jmp 0x1697f
Function at 0x16da4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
push 1
push 0x2bca0
call dword [sym.imp.ntoskrnl.exe_ExAcquireResourceSharedLite]
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x16e74
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push dword [esi + 0xc]
call fcn.00016b24
test al, al
jne 0x16e72
mov eax, dword [esi + 8]
push 0x546b6c42
add eax, 0x15
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x16e26
push 0x16d5e
call sub.ntoskrnl.exe_DbgPrint
push dword [esi + 8]
push 0x16d66
call sub.ntoskrnl.exe_DbgPrint
push 0x16da2
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x10
xor al, al
jmp 0x16e87
mov ecx, dword [esi + 8]
add ecx, 0x14
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]
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x14]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
lea ecx, [ecx + eax + 0x14]
mov dword [eax + 0x10], ecx
mov eax, dword [0x2bf9c]
cmp eax, ebx
je 0x16e65
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x16e6a
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
mov dword [0x2bf9c], eax
mov bl, 1
mov ecx, 0x2bca0
call dword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call dword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1b44a
Capabilities:
Print debug messages

Disassembly:
mov ebx, dword [ebp - 0xb8]
cmp ebx, 1
je 0x1b4a3
cmp ebx, 4
je 0x1b4a3
test ebx, ebx
jne 0x1b4cd
cmp dword [ebp - 0x60], 0xffffffff
je 0x1b46d
push dword [ebp - 0x60]
call dword [0x2b550]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1b47e
push eax
call dword [0x2b550]
push 0x1a1b0
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x1a1b8
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x1a1d4
call sub.ntoskrnl.exe_DbgPrint
pop ecx
jmp 0x1b4cd
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
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 [0x2b54c]
mov dword [ebp - 0x3c], eax
cmp byte [0x2bb98], 0
je 0x1b5d4
cmp dword [ebp - 0xcc], 0
je 0x1b5d4
cmp dword [ebp - 0xec], 0
je 0x1b5d4
cmp byte [ebp - 0x30], 0
je 0x1b5d4
xor edi, edi
xor esi, esi
mov eax, dword [ebp - 0x78]
cmp eax, 3
ja 0x1b520
je 0x1b538
sub eax, edi
je 0x1b51c
dec eax
je 0x1b518
dec eax
je 0x1b534
jmp 0x1b53b
push 2
jmp 0x1b53a
push 4
jmp 0x1b53a
cmp eax, 8
jb 0x1b53b
cmp eax, 9
jbe 0x1b538
cmp eax, 0x13
jbe 0x1b53b
cmp eax, 0x15
ja 0x1b53b
push 3
jmp 0x1b53a
push 1
pop esi
cmp ebx, 1
je 0x1b554
cmp ebx, 4
je 0x1b554
cmp ebx, 2
jne 0x1b563
xor eax, eax
cmp dword [ebp - 0x3c], edi
setl al
jmp 0x1b561
xor eax, eax
cmp dword [ebp - 0x3c], edi
setl al
dec eax
and al, 0xfe
inc eax
inc eax
mov edi, eax
push 0x1a1d8
push dword [ebp - 0xec]
call dword [sym.imp.ntoskrnl.exe_strstr]
pop ecx
pop ecx
test eax, eax
je 0x1b5d4
mov al, byte [eax + 1]
cmp al, 0x5c
je 0x1b585
test al, al
jne 0x1b5d4
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.ntoskrnl.exe_KeQuerySystemTime]
or dword [ebp - 0xbc], 0xffffffff
push dword [ebp - 0xec]
movzx eax, byte [ebp - 0xc0]
push eax
push edi
push esi
push dword [ebp - 0xac]
push dword [ebp - 0xcc]
push 0x1a1dc
push 0
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xbc]
push eax
push 1
call fcn.00014624
add esp, 0x2c
xor edi, edi
cmp dword [ebp - 0xec], edi
je 0x1b5ee
push dword [ebp - 0xec]
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePool]
call esi
jmp 0x1b5f4
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePool]
cmp dword [ebp - 0xcc], edi
je 0x1b60d
push dword [ebp - 0xcc]
push 0x2be80
call dword [sym.imp.ntoskrnl.exe_ExFreeToPagedLookasideList]
cmp dword [ebp - 0xe0], edi
je 0x1b61d
push dword [ebp - 0xe0]
call esi
cmp dword [ebp - 0x74], edi
je 0x1b627
push dword [ebp - 0x74]
call esi
cmp dword [ebp - 0x64], edi
je 0x1b631
push dword [ebp - 0x64]
call esi
cmp dword [ebp - 0x84], edi
je 0x1b641
push dword [ebp - 0x84]
call esi
cmp dword [ebp - 0xc8], edi
je 0x1b651
push dword [ebp - 0xc8]
call esi
cmp dword [ebp - 0x5c], edi
je 0x1b65b
push dword [ebp - 0x5c]
call esi
cmp dword [ebp - 0xf4], edi
je 0x1b66b
push dword [ebp - 0xf4]
call esi
ret
Function at 0x228b4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2a958
push 0x2a536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
or dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x24], edi
mov esi, dword [ebp + 0x14]
lea eax, [esi + 0x1c]
mov dword [ebp - 0x1c], eax
push 4
push 0x1000
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [ebp - 0x34], eax
cmp eax, edi
jl 0x2291f
mov eax, dword [ebp - 0x24]
cmp eax, edi
jne 0x22928
mov dword [ebp - 0x34], 0xc0000001
mov dword [ebp - 0x2c], 2
jmp 0x2298e
mov dword [ebp - 0x28], eax
lea ebx, [eax + 8]
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, esi
mov esi, dword [ebp + 0x10]
mov edi, ebx
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]
mov eax, dword [0x2b544]
test eax, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp - 0x28]
push dword [ebp + 8]
je 0x22965
call eax
jmp 0x2296b
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x14]
mov esi, ebx
mov edi, dword [ebp + 0x10]
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]
xor edi, edi
or dword [ebp - 4], 0xffffffff
call fcn.000229ad
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x23510
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2a988
push 0x2a536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
or dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0x30
push 4
push 0x1000
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [ebp - 0x30], eax
cmp eax, edi
jl 0x235ab
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x235ab
mov dword [ebp - 0x28], eax
lea esi, [eax + 8]
mov dword [ebp - 0x20], esi
push 4
push 0x28
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0x30], eax
cmp eax, edi
jne 0x235ab
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
push 4
push 0x28
push esi
push dword [ebp - 0x28]
push dword [ebp + 8]
call dword [0x2b544]
mov dword [ebp - 0x30], eax
or dword [ebp - 4], 0xffffffff
call 0x235b6
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x24], edi
je 0x235d4
push 0x8000
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov esp, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x26730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2a9c8
push 0x2a536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x28], edi
cmp dword [ebp + 8], edi
je 0x2687f
cmp dword [ebp + 0xc], edi
je 0x2687f
cmp dword [ebp + 0x10], edi
je 0x2687f
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
je 0x2687f
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
call esi
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], 0x200
lea eax, [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
call esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x48]
push eax
push 0x20019
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [ebp - 0x50], eax
or dword [ebp - 4], 0xffffffff
cmp eax, edi
jne 0x2687f
lea eax, [ebp - 0x28]
push eax
push edi
push edi
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x54]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
call esi
mov eax, dword [ebp - 0x28]
cmp dword [ebx], eax
jb 0x26870
push 0x546b6c42
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
cmp ebx, edi
je 0x2687f
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
push ebx
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x54]
call esi
mov esi, eax
push dword [ebp - 0x54]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp esi, edi
jne 0x26860
mov ecx, dword [ebx + 8]
mov eax, dword [ebp + 0x14]
cmp dword [eax], ecx
jb 0x2685e
lea esi, [ebx + 0xc]
mov edi, dword [ebp + 0x10]
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]
mov eax, dword [ebx + 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov byte [ebp - 0x55], 1
jmp 0x26864
mov dword [eax], ecx
and byte [ebp - 0x55], 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov al, byte [ebp - 0x55]
jmp 0x26881
mov dword [ebx], eax
jmp 0x2687f
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x26892
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x268d0
push dword [ebp + 8]
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x14]
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call esi
push edi
push 1
push edi
push edi
lea eax, [ebp - 4]
push 2
push eax
push dword [ebp + 8]
call fcn.000265ac
test eax, eax
je 0x268d4
xor al, al
jmp 0x268fb
push dword [ebp + 0x18]
lea eax, [ebp - 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp esi, edi
sete al
pop edi
pop esi
leave
ret 0x14
Function at 0x26902
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call esi
push dword [ebp + 0xc]
and dword [ebp - 0x24], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 8]
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], 0x200
call esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push 0x20006
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
pop esi
je 0x2695d
xor al, al
jmp 0x2697a
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
push 3
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
neg eax
sbb al, al
inc al
leave
ret 0x10
Function at 0x409040
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b295b
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.004a719f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4090c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a4ff7
mov eax, dword [eax]
push 0x4ee260
push eax
call fcn.00495ff4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a742a
test bl, bl
je 0x4090c2
push 0x4ee260
lea ecx, [esp + 0xc]
call fcn.004a77ba
push 0x4f1de4
lea ecx, [esp + 0xc]
call fcn.004a77ba
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 0x4090fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a742a
jmp 0x4091c9
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 0x409182
lea edx, [esp + 0x7c]
push 0x4f1de0
push edx
call fcn.00495ff4
add esp, 8
test eax, eax
je 0x409182
lea eax, [esp + 0x7c]
push 0x4f1ddc
push eax
call fcn.00495ff4
add esp, 8
test eax, eax
je 0x409182
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 0x409112
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.004a742a
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 0x4099c0
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 0x409a22
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