Function at 0x404220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
movzx edx, byte [eax + 1]
push ebx
push esi
mov esi, dword [ecx + 4]
xor ecx, ecx
mov ch, byte [eax + 3]
movzx ebx, byte [eax + 5]
push 4
mov cl, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax]
shl ecx, 8
or ecx, edx
xor ecx, dword [esi]
pop edx
mov dword [ebp - 4], ecx
xor ecx, ecx
mov ch, byte [eax + 7]
add esi, edx
mov cl, byte [eax + 6]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [eax + 4]
shl ecx, 8
or ecx, ebx
xor ecx, dword [esi]
movzx ebx, byte [eax + 9]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov ch, byte [eax + 0xb]
add esi, edx
mov cl, byte [eax + 0xa]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [eax + 8]
shl ecx, 8
or ecx, ebx
xor ecx, dword [esi]
movzx ebx, byte [eax + 0xd]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
mov ch, byte [eax + 0xf]
add esi, edx
mov cl, byte [eax + 0xe]
movzx eax, byte [eax + 0xc]
shl ecx, 8
or ecx, ebx
shl ecx, 8
or ecx, eax
xor ecx, dword [esi]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
sar ecx, 1
add esi, edx
dec ecx
test ecx, ecx
mov dword [ebp - 0x18], ecx
mov eax, 0xff
jle 0x4044a6
movzx ecx, byte [ebp - 0xf]
mov ecx, dword [ecx*4 + 0x48ad18]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x10
and ebx, eax
xor ecx, dword [ebx*4 + 0x48a8f0]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x48a4f0]
mov ebx, dword [ebp - 4]
and ebx, eax
xor ecx, dword [ebx*4 + 0x48b118]
movzx ebx, byte [ebp - 3]
xor ecx, dword [esi]
add esi, edx
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x48a8f0]
xor ecx, dword [ebx*4 + 0x48ad18]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x48a4f0]
mov ebx, dword [ebp - 8]
and ebx, eax
xor ecx, dword [ebx*4 + 0x48b118]
mov ebx, dword [ebp - 4]
xor ecx, dword [esi]
add esi, edx
movzx edx, byte [ebp - 7]
mov edx, dword [edx*4 + 0x48ad18]
shr ebx, 0x10
and ebx, eax
xor edx, dword [ebx*4 + 0x48a8f0]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x48a4f0]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edx, dword [ebx*4 + 0x48b118]
mov ebx, dword [ebp - 8]
xor edx, dword [esi]
shr ebx, 0x10
mov dword [ebp - 0x14], edx
movzx edx, byte [ebp - 0xb]
mov edx, dword [edx*4 + 0x48ad18]
and ebx, eax
xor edx, dword [ebx*4 + 0x48a8f0]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x48a4f0]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor edx, dword [ebx*4 + 0x48b118]
mov ebx, dword [ebp - 0x14]
add esi, 4
xor edx, dword [esi]
shr ebx, 0x10
mov dword [ebp - 0x10], edx
movzx edx, dh
mov edx, dword [edx*4 + 0x48ad18]
and ebx, eax
xor edx, dword [ebx*4 + 0x48a8f0]
mov ebx, ecx
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x48a4f0]
mov ebx, dword [ebp + 8]
and ebx, eax
xor edx, dword [ebx*4 + 0x48b118]
movzx ebx, byte [ebp + 9]
add esi, 4
xor edx, dword [esi]
add esi, 4
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x48a8f0]
xor edx, dword [ebx*4 + 0x48ad18]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x48a4f0]
mov ebx, ecx
and ebx, eax
xor edx, dword [ebx*4 + 0x48b118]
mov ebx, dword [ebp + 8]
xor edx, dword [esi]
shr ebx, 0x10
and ebx, eax
mov dword [ebp - 8], edx
movzx edx, ch
mov edx, dword [edx*4 + 0x48ad18]
xor edx, dword [ebx*4 + 0x48a8f0]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x48a4f0]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor edx, dword [ebx*4 + 0x48b118]
movzx ebx, byte [ebp - 0x13]
mov ebx, dword [ebx*4 + 0x48ad18]
shr ecx, 0x10
and ecx, eax
xor ebx, dword [ecx*4 + 0x48a8f0]
mov ecx, dword [ebp + 8]
add esi, 4
xor edx, dword [esi]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x48a4f0]
mov ecx, dword [ebp - 0x10]
and ecx, eax
xor ebx, dword [ecx*4 + 0x48b118]
push 4
mov dword [ebp - 0xc], edx
pop edx
add esi, edx
xor ebx, dword [esi]
add esi, edx
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x10], ebx
jg 0x4042cc
mov ebx, dword [ebp - 0xc]
movzx ecx, byte [ebp - 0xf]
mov ecx, dword [ecx*4 + 0x48ad18]
shr ebx, 0x10
and ebx, eax
xor ecx, dword [ebx*4 + 0x48a8f0]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x48a4f0]
mov ebx, dword [ebp - 4]
and ebx, eax
xor ecx, dword [ebx*4 + 0x48b118]
movzx ebx, byte [ebp - 3]
xor ecx, dword [esi]
add esi, edx
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x48a8f0]
xor ecx, dword [ebx*4 + 0x48ad18]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x48a4f0]
mov ebx, dword [ebp - 8]
and ebx, eax
xor ecx, dword [ebx*4 + 0x48b118]
mov ebx, dword [ebp - 4]
xor ecx, dword [esi]
add esi, edx
movzx edx, byte [ebp - 7]
mov edx, dword [edx*4 + 0x48ad18]
shr ebx, 0x10
and ebx, eax
xor edx, dword [ebx*4 + 0x48a8f0]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x48a4f0]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edx, dword [ebx*4 + 0x48b118]
movzx ebx, byte [ebp - 0xb]
xor edx, dword [esi]
add esi, 4
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, eax
mov dword [ebp - 0x18], edx
mov edx, dword [ebx*4 + 0x48ad18]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x18]
mov edx, dword [edx*4 + 0x48a8f0]
xor dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
shr edx, 0x18
mov edx, dword [edx*4 + 0x48a4f0]
xor dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
and edx, eax
mov edx, dword [edx*4 + 0x48b118]
xor dword [ebp - 0xc], edx
mov edx, dword [ebp - 0xc]
xor edx, dword [esi]
xor ebx, ebx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x14]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x48c518]
mov dword [ebp - 0x18], edx
mov edx, ecx
shr edx, 0x18
mov bh, byte [edx + 0x48c518]
add esi, 4
xor dword [ebp - 0x18], ebx
movzx ebx, byte [ebp - 0xf]
mov edx, dword [ebp - 0x18]
movzx ebx, byte [ebx + 0x48c518]
shl edx, 8
xor edx, ebx
mov ebx, dword [ebp + 8]
and ebx, eax
movzx ebx, byte [ebx + 0x48c518]
shl edx, 8
xor edx, ebx
xor edx, dword [esi]
xor ebx, ebx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x48c518]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x14]
shr edx, 0x18
mov bh, byte [edx + 0x48c518]
add esi, 4
xor dword [ebp - 0x18], ebx
movzx ebx, byte [ebp + 9]
movzx ebx, byte [ebx + 0x48c518]
mov edx, dword [ebp - 0x18]
shl edx, 8
xor edx, ebx
mov ebx, ecx
and ebx, eax
movzx ebx, byte [ebx + 0x48c518]
shl edx, 8
xor edx, ebx
xor edx, dword [esi]
xor ebx, ebx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x48c518]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x10]
shr edx, 0x18
mov bh, byte [edx + 0x48c518]
mov edx, dword [ebp - 0x18]
add esi, 4
xor edx, ebx
movzx ebx, ch
movzx ebx, byte [ebx + 0x48c518]
shr ecx, 0x10
and ecx, eax
movzx ecx, byte [ecx + 0x48c518]
shl edx, 8
xor edx, ebx
mov ebx, dword [ebp - 0x14]
and ebx, eax
movzx ebx, byte [ebx + 0x48c518]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
xor edx, ebx
xor ebx, ebx
mov bh, byte [ecx + 0x48c518]
mov ecx, dword [ebp - 0x18]
xor edx, dword [esi]
xor ecx, ebx
movzx ebx, byte [ebp - 0x13]
movzx ebx, byte [ebx + 0x48c518]
shl ecx, 8
xor ecx, ebx
mov ebx, dword [ebp - 0x10]
and ebx, eax
movzx eax, byte [ebx + 0x48c518]
shl ecx, 8
xor ecx, eax
mov eax, dword [ebp - 4]
xor ecx, dword [esi + 4]
mov ebx, eax
shr ebx, 8
mov byte [edi + 1], bl
mov ebx, eax
shr ebx, 0x10
mov byte [edi], al
mov byte [edi + 2], bl
shr eax, 0x18
mov byte [edi + 3], al
mov eax, dword [ebp - 8]
mov ebx, eax
mov byte [edi + 4], al
shr ebx, 8
mov byte [edi + 5], bl
mov ebx, eax
shr eax, 0x18
mov byte [edi + 7], al
mov eax, edx
shr eax, 8
mov byte [edi + 9], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xa], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xd], al
mov eax, ecx
shr ebx, 0x10
mov byte [edi + 8], dl
shr edx, 0x18
shr eax, 0x10
mov byte [edi + 0xc], cl
shr ecx, 0x18
pop esi
mov byte [edi + 6], bl
mov byte [edi + 0xb], dl
mov byte [edi + 0xe], al
mov byte [edi + 0xf], cl
pop ebx
leave
ret