Function at 0x41e2b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 0
push 0
push 0
push 0
push 0
push str.UnobfuscateData
lea ecx, [ebp - 0x44]
call fcn.00407b80
cmp dword [ebp + 8], 4
jne 0x41e2dc
mov dword [ebp - 0x28], 1
jmp 0x41e2e3
mov dword [ebp - 0x28], 0
mov al, byte [ebp - 0x28]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 8]
sub ecx, 4
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
movzx edx, byte [ebp - 1]
test edx, edx
je 0x41e31d
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [ebp - 0x24], 0
jmp 0x41e495
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x38]
push edx
push 8
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
cmp dword [ebp - 0x1c], 0
je 0x41e48e
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x30]
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
shr eax, 2
mov dword [ebp - 0x20], eax
jmp 0x41e394
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x41e41e
imul edx, dword [ebp - 0x10], 0x343fd
add edx, 0x269ec3
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
xor ecx, dword [ebp - 0x10]
mov byte [ebp - 2], cl
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp - 2]
mov byte [eax], cl
movzx edx, byte [ebp - 0xf]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 1]
xor edx, ecx
mov eax, dword [ebp - 0xc]
mov byte [eax + 1], dl
movzx ecx, byte [ebp - 0x12]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 2]
xor ecx, eax
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
mov eax, dword [ebp - 8]
mov cl, byte [eax + 3]
mov byte [ebp - 3], cl
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
movzx eax, byte [ebp - 0x11]
movsx ecx, byte [ebp - 3]
xor eax, ecx
mov edx, dword [ebp - 0xc]
mov byte [edx + 3], al
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
jmp 0x41e38b
mov dword [ebp - 0x18], 0
imul ecx, dword [ebp - 0x10], 0x343fd
add ecx, 0x269ec3
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
and eax, 3
mov dword [ebp - 0x34], eax
je 0x41e485
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax - 1]
mov edx, dword [ebp - 0x18]
movzx eax, byte [ebp + edx - 0x14]
xor ecx, eax
mov byte [ebp - 4], cl
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 8]
mov al, byte [ebp - 4]
mov byte [edx - 1], al
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x34]
jb 0x41e44b
mov dword [ebp - 0x24], 0
jmp 0x41e495
mov dword [ebp - 0x24], 0x8007000e
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x48], edx
lea ecx, [ebp - 0x44]
call fcn.00407aa0
mov eax, dword [ebp - 0x48]
mov esp, ebp
pop ebp
ret