Function at 0x21020
Capabilities:
Compress data via winapi
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 0xc]
add eax, 0x20
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x10], 4
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 0x14]
add edx, 0x10
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x28]
and ecx, 1
setne dl
movzx eax, dl
test eax, eax
je 0x210c5
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00020f10
jmp 0x213ce
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x44], ecx
jmp 0x210d9
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 4]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp - 0x50]
je 0x21102
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx + 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x210d0
cmp dword [ebp - 0x14], 0
jne 0x2111a
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00020f10
jmp 0x213ce
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [ecx + edx + 0x3e8]
mov dword [ebp - 0x3c], eax
mov ecx, dword [str.dsdsmmoc]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x21155
mov dword [ebp - 0x30], 0xc000009a
jmp 0x21387
mov eax, dword [ebp - 0x3c]
push eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov dword [eax], 1
mov ecx, dword [ebp - 0x40]
add ecx, 4
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
mov dword [edx], ecx
mov edx, dword [ebp - 0x40]
add edx, 4
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x28]
mov dword [eax], edx
mov eax, dword [ebp - 0x40]
add eax, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 0x40]
mov dword [eax], edx
mov ecx, dword [ebp - 0x40]
add ecx, 4
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x40]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 8]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x3e8
mov dword [ebp - 0x54], edx
mov eax, dword [str.dsdsmmoc]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x21227
mov dword [ebp - 0x30], 0xc000009a
jmp 0x21387
mov edx, dword [ebp - 0x54]
push edx
push 0
mov eax, dword [ebp - 0x38]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x18]
push edx
push 2
call dword [sym.imp.ntoskrnl.exe_RtlGetCompressionWorkSpaceSize]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x21257
jmp 0x21387
mov eax, dword [str.dsdsmmoc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x2127e
mov dword [ebp - 0x30], 0xc000009a
jmp 0x21387
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x4c]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 4]
mov dword [ebp - 0x44], eax
jmp 0x212aa
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x50]
je 0x212fe
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x28], ecx
push 4
mov edx, dword [ebp - 0x28]
add edx, 0xc
push edx
mov eax, dword [ebp - 4]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0xc]
mov dword [ebp - 4], edx
jmp 0x212a1
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x1000
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 2
call dword [sym.imp.ntoskrnl.exe_RtlCompressBuffer]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x2132e
jmp 0x21387
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.00024c50
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 0x14
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 3
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov dword [ebp - 0x30], eax
xor edx, edx
jne 0x210c5
cmp dword [ebp - 0x38], 0
je 0x2139d
mov eax, dword [str.dsdsmmoc]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x34], 0
je 0x213b4
mov edx, dword [str.dsdsmmoc]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x4c], 0
je 0x213cb
mov ecx, dword [str.dsdsmmoc]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret 8