Function at 0x4021a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
movzx ebx, byte [edx + 3]
shl ebx, 8
push esi
movzx esi, byte [edx + 2]
or ebx, esi
movzx esi, byte [edx + 1]
shl ebx, 8
or ebx, esi
push edi
mov edi, ecx
shl ebx, 8
movzx ecx, byte [edx]
or ebx, ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
mov eax, dword [edi + 8]
mov dword [ebp - 4], ecx
movzx ecx, byte [edx + 6]
or dword [ebp - 4], ecx
shl dword [ebp - 4], 8
movzx ecx, byte [edx + 5]
or dword [ebp - 4], ecx
movzx ecx, byte [edx + 4]
shl dword [ebp - 4], 8
or dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
xor ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
movzx ecx, byte [edx + 0xb]
shl ecx, 8
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 0xa]
or dword [ebp - 8], ecx
shl dword [ebp - 8], 8
movzx ecx, byte [edx + 9]
or dword [ebp - 8], ecx
movzx ecx, byte [edx + 8]
shl dword [ebp - 8], 8
or dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
xor ecx, dword [eax + 8]
xor ebx, dword [eax]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 0xf]
shl ecx, 8
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edx + 0xe]
or dword [ebp - 0xc], ecx
movzx ecx, byte [edx + 0xd]
shl dword [ebp - 0xc], 8
or dword [ebp - 0xc], ecx
shl dword [ebp - 0xc], 8
movzx ecx, byte [edx + 0xc]
mov edx, dword [ebp - 0xc]
or edx, ecx
mov dword [ebp - 0x10], ebx
mov ecx, dword [edi + 4]
xor edx, dword [eax + 0xc]
add eax, 0x10
sar ecx, 1
dec ecx
mov dword [ebp - 0xc], edx
cmp dword [edi], 0
mov dword [ebp - 0x1c], ecx
jne 0x4026ad
test ecx, ecx
jle 0x402492
nop dword [eax]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
movzx ecx, cl
shr edx, 8
mov esi, dword [ebp - 4]
movzx edx, dl
shr esi, 0x18
mov edx, dword [edx*4 + 0x422220]
xor edx, dword [ecx*4 + 0x423220]
xor edx, dword [esi*4 + 0x4214f0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x422620]
xor edx, dword [eax]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
mov dword [ebp - 0x14], edx
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x423220]
xor edx, dword [ecx*4 + 0x422220]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4214f0]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x422620]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 4]
shr ecx, 8
mov dword [ebp - 0x18], edx
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov ebx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x422220]
xor edx, dword [ecx*4 + 0x423220]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4214f0]
movzx ecx, bl
shr ebx, 8
xor edx, dword [ecx*4 + 0x422620]
xor edx, dword [eax + 8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0x20], edx
movzx edx, bl
mov ebx, dword [edx*4 + 0x422220]
xor ebx, dword [ecx*4 + 0x423220]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x4214f0]
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x422620]
xor ebx, dword [eax + 0xc]
mov ecx, ebx
shr ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 0x20]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x422220]
xor edx, dword [ecx*4 + 0x423220]
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4214f0]
mov ecx, dword [ebp - 0x14]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x422620]
mov ecx, ebx
xor edx, dword [eax + 0x10]
shr ecx, 0x10
mov dword [ebp - 0x10], edx
movzx edx, cl
mov ecx, dword [ebp - 0x14]
shr ecx, 8
mov edx, dword [edx*4 + 0x423220]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x422220]
mov ecx, dword [ebp - 0x20]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4214f0]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 4]
movzx ecx, dl
xor esi, dword [ecx*4 + 0x422620]
mov ecx, esi
mov dword [ebp - 4], esi
xor ecx, dword [eax + 0x14]
mov dword [ebp - 4], ecx
mov ecx, edx
shr ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x422220]
xor edx, dword [ecx*4 + 0x423220]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4214f0]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 8]
movzx ecx, dl
shr edx, 8
movzx edx, dl
xor esi, dword [ecx*4 + 0x422620]
mov ecx, esi
mov dword [ebp - 8], esi
xor ecx, dword [eax + 0x18]
mov edx, dword [edx*4 + 0x422220]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x423220]
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4214f0]
movzx ecx, bl
mov ebx, dword [ebp - 0x10]
xor edx, dword [ecx*4 + 0x422620]
mov ecx, dword [ebp - 0x1c]
xor edx, dword [eax + 0x1c]
dec ecx
add eax, 0x20
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jg 0x402280
mov ecx, dword [ebp - 8]
shr ecx, 0x10
movzx ecx, cl
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x422220]
xor edx, dword [ecx*4 + 0x423220]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4214f0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x422620]
xor edx, dword [eax]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
mov dword [ebp - 0x18], edx
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x423220]
xor edx, dword [ecx*4 + 0x422220]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4214f0]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x422620]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 4]
shr ecx, 8
mov dword [ebp - 0x14], edx
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov ebx, dword [edx*4 + 0x422220]
mov edx, dword [ebp - 8]
xor ebx, dword [ecx*4 + 0x423220]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x4214f0]
movzx ecx, dl
shr edx, 8
movzx edx, dl
xor ebx, dword [ecx*4 + 0x422620]
mov ecx, dword [ebp - 4]
mov edx, dword [edx*4 + 0x422220]
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x423220]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4214f0]
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x422620]
mov ecx, ebx
xor edx, dword [eax + 0xc]
shr ecx, 0x10
movzx ecx, cl
movzx esi, byte [ecx + 0x4218f0]
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4218f0]
shl ecx, 8
xor esi, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x4218f0]
xor esi, ecx
mov ecx, dword [ebp - 0x18]
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x4218f0]
xor esi, ecx
xor esi, dword [eax + 0x10]
mov dword [ebp - 0x20], esi
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
movzx esi, byte [ecx + 0x4218f0]
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4218f0]
shl ecx, 8
xor esi, ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 8
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x4218f0]
xor esi, ecx
mov ecx, dword [ebp - 0x14]
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x4218f0]
xor esi, ecx
mov ecx, dword [ebp - 0x18]
xor esi, dword [eax + 0x14]
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0x10], esi
movzx esi, byte [ecx + 0x4218f0]
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4218f0]
shl ecx, 8
xor esi, ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 8
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x4218f0]
xor esi, ecx
movzx ecx, bl
shl esi, 8
shr ebx, 8
movzx ecx, byte [ecx + 0x4218f0]
xor esi, ecx
mov ecx, dword [ebp - 0x14]
xor esi, dword [eax + 0x18]
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0xc], esi
movzx esi, byte [ecx + 0x4218f0]
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4218f0]
shl ecx, 8
xor esi, ecx
movzx ecx, bl
shl esi, 8
mov ebx, esi
mov dword [ebp - 0x1c], esi
movzx ecx, byte [ecx + 0x4218f0]
xor ebx, ecx
movzx ecx, dl
movzx ecx, byte [ecx + 0x4218f0]
jmp 0x402ad9
mov edi, ecx
test edi, edi
jle 0x4028be
mov ecx, dword [ebp - 8]
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x421e20]
xor edx, dword [ecx*4 + 0x422a20]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x421a18]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x422e20]
xor edx, dword [eax]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
mov dword [ebp - 0x18], edx
movzx edx, cl
mov ecx, dword [ebp - 8]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x421e20]
xor edx, dword [ecx*4 + 0x422a20]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x421a18]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x422e20]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 0xc]
shr ecx, 8
mov dword [ebp - 0x1c], edx
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shr ebx, 8
mov edx, dword [edx*4 + 0x422a20]
xor edx, dword [ecx*4 + 0x421e20]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x421a18]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x422e20]
xor edx, dword [eax + 8]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
mov dword [ebp - 0x14], edx
movzx edx, cl
movzx ecx, bl
mov ebx, dword [edx*4 + 0x421e20]
xor ebx, dword [ecx*4 + 0x422a20]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x421a18]
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x422e20]
mov ecx, dword [ebp - 0x14]
xor ebx, dword [eax + 0xc]
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp - 0x1c]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x421e20]
xor edx, dword [ecx*4 + 0x422a20]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x421a18]
mov ecx, dword [ebp - 0x18]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x422e20]
mov ecx, ebx
xor edx, dword [eax + 0x10]
shr ecx, 0x10
mov dword [ebp - 0x10], edx
movzx edx, cl
mov ecx, dword [ebp - 0x14]
mov edx, dword [edx*4 + 0x421e20]
dec edi
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x422a20]
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x421a18]
mov ecx, dword [ebp - 0x1c]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x422e20]
mov ecx, ebx
xor edx, dword [eax + 0x14]
shr ecx, 8
mov dword [ebp - 4], edx
movzx edx, cl
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x422a20]
xor edx, dword [ecx*4 + 0x421e20]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x1c]
mov ecx, edx
mov esi, dword [ebp - 8]
shr ecx, 0x18
shr edx, 0x10
movzx edx, dl
xor esi, dword [ecx*4 + 0x421a18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [edx*4 + 0x421e20]
movzx ecx, cl
xor esi, dword [ecx*4 + 0x422e20]
mov ecx, esi
mov dword [ebp - 8], esi
xor ecx, dword [eax + 0x18]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x422a20]
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x421a18]
movzx ecx, bl
mov ebx, dword [ebp - 0x10]
xor edx, dword [ecx*4 + 0x422e20]
xor edx, dword [eax + 0x1c]
add eax, 0x20
mov dword [ebp - 0xc], edx
test edi, edi
jg 0x4026b7
mov ecx, dword [ebp - 8]
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x421e20]
xor edx, dword [ecx*4 + 0x422a20]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x421a18]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x422e20]
xor edx, dword [eax]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
mov dword [ebp - 0x14], edx
movzx edx, cl
mov ecx, dword [ebp - 8]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x421e20]
xor edx, dword [ecx*4 + 0x422a20]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x421a18]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x422e20]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 0xc]
shr ecx, 8
mov dword [ebp - 0x18], edx
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov ebx, dword [edx*4 + 0x422a20]
mov edx, dword [ebp - 4]
xor ebx, dword [ecx*4 + 0x421e20]
mov ecx, edx
shr ecx, 0x18
shr edx, 0x10
movzx edx, dl
xor ebx, dword [ecx*4 + 0x421a18]
mov ecx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x421e20]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x422e20]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
movzx ecx, cl
xor ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x422a20]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x421a18]
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x422e20]
mov ecx, ebx
xor edx, dword [eax + 0xc]
shr ecx, 0x10
movzx ecx, cl
movzx esi, byte [ecx + 0x4213f0]
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4213f0]
shl ecx, 8
xor esi, ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 8
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x4213f0]
xor esi, ecx
mov ecx, dword [ebp - 0x14]
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x4213f0]
xor esi, ecx
xor esi, dword [eax + 0x10]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0x20], esi
movzx esi, byte [ecx + 0x4213f0]
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4213f0]
shl ecx, 8
xor esi, ecx
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x4213f0]
xor esi, ecx
mov ecx, dword [ebp - 0x18]
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x4213f0]
xor esi, ecx
mov ecx, dword [ebp - 0x14]
xor esi, dword [eax + 0x14]
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0x10], esi
movzx esi, byte [ecx + 0x4213f0]
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4213f0]
shl ecx, 8
xor esi, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x4213f0]
xor esi, ecx
movzx ecx, bl
shl esi, 8
shr ebx, 0x18
movzx ecx, byte [ecx + 0x4213f0]
xor esi, ecx
mov ecx, dword [ebp - 0x18]
xor esi, dword [eax + 0x18]
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0xc], esi
movzx esi, byte [ecx + 0x4213f0]
movzx ecx, byte [ebx + 0x4213f0]
mov ebx, esi
shl ecx, 8
xor ebx, ecx
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x14]
shr ecx, 8
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x4213f0]
xor ebx, ecx
movzx ecx, dl
movzx ecx, byte [ecx + 0x4213f0]
mov edx, dword [ebp - 0x20]
shl ebx, 8
xor ebx, ecx
mov ecx, dword [ebp + 8]
xor ebx, dword [eax + 0x1c]
mov eax, edx
shr eax, 8
pop edi
mov byte [ecx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 2], al
mov byte [ecx], dl
shr edx, 0x18
mov byte [ecx + 3], dl
mov edx, dword [ebp - 0x10]
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
mov byte [ecx + 4], dl
shr edx, 0x18
mov byte [ecx + 7], dl
mov edx, dword [ebp - 0xc]
mov eax, edx
shr eax, 8
mov byte [ecx + 9], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 0xa], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 0xd], al
mov eax, ebx
mov byte [ecx + 0xc], bl
shr ebx, 0x18
shr eax, 0x10
mov byte [ecx + 8], dl
shr edx, 0x18
pop esi
mov byte [ecx + 0xe], al
xor eax, eax
mov byte [ecx + 0xf], bl
mov byte [ecx + 0xb], dl
pop ebx
mov esp, ebp
pop ebp
ret