Function at 0x402290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, ecx
push ebx
mov ebx, edx
mov dword [ebp - 0x1c], eax
push esi
mov eax, dword [eax + 4]
push edi
mov edi, dword [ebp + 8]
movzx ecx, byte [edi + 3]
movzx esi, byte [edi + 2]
movzx edx, byte [edi + 1]
shl ecx, 8
or ecx, esi
shl ecx, 8
or ecx, edx
shl ecx, 8
mov dword [ebp - 8], ecx
movzx ecx, byte [edi]
mov edx, dword [ebp - 8]
or edx, ecx
movzx ecx, byte [edi + 6]
xor edx, dword [eax]
mov dword [ebp - 8], edx
movzx edx, byte [edi + 7]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 0xa]
xor edx, dword [eax + 4]
mov dword [ebp - 0xc], edx
movzx edx, byte [edi + 0xb]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 9]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 8]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 0xf]
xor edx, dword [eax + 8]
shl ecx, 8
mov dword [ebp + 8], ecx
movzx ecx, byte [edi + 0xe]
or dword [ebp + 8], ecx
shl dword [ebp + 8], 8
movzx ecx, byte [edi + 0xd]
or dword [ebp + 8], ecx
shl dword [ebp + 8], 8
movzx ecx, byte [edi + 0xc]
or dword [ebp + 8], ecx
mov ecx, dword [ebp + 8]
xor ecx, dword [eax + 0xc]
add eax, 0x10
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 4], edx
mov dword [ebp + 8], ecx
test ebx, ebx
jne 0x402804
mov ecx, dword [edi]
mov edx, dword [ebp + 8]
sar ecx, 1
dec ecx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jle 0x4025b6
lea ebx, [ebx]
mov ecx, dword [ebp - 4]
shr edx, 8
shr ecx, 0x10
and edx, 0xff
and ecx, 0xff
mov ebx, dword [ebp - 0xc]
mov edx, dword [edx*4 + 0x40fa30]
xor edx, dword [ecx*4 + 0x40fe60]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x410260]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x40f630]
xor edx, dword [eax]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 8]
shr edx, 0x10
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov edx, dword [edx*4 + 0x40fe60]
xor edx, dword [ecx*4 + 0x40fa30]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x410260]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x40f630]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov edx, ebx
shr ecx, 0x10
shr edx, 8
and ecx, 0xff
and edx, 0xff
shr ebx, 0x10
and ebx, 0xff
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp - 0xc]
mov edx, dword [edx*4 + 0x40fa30]
xor edx, dword [ecx*4 + 0x40fe60]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x410260]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x40f630]
mov ecx, dword [ebp - 4]
xor edx, dword [eax + 8]
shr ecx, 8
and ecx, 0xff
mov dword [ebp - 0x18], edx
mov ebx, dword [ecx*4 + 0x40fa30]
mov ecx, dword [ebp - 8]
xor ebx, dword [esi*4 + 0x40fe60]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x410260]
mov ecx, dword [ebp + 8]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x40f630]
xor ebx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x18]
mov edx, ebx
shr edx, 8
and edx, 0xff
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [edx*4 + 0x40fa30]
xor edx, dword [ecx*4 + 0x40fe60]
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x410260]
mov ecx, dword [ebp - 0x10]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x40f630]
xor edx, dword [eax + 0x10]
mov dword [ebp - 8], edx
mov edx, ebx
shr edx, 0x10
mov ecx, dword [ebp - 0x10]
and edx, 0xff
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x40fe60]
xor edx, dword [ecx*4 + 0x40fa30]
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x410260]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
movzx ecx, dl
shr edx, 8
and edx, 0xff
xor esi, dword [ecx*4 + 0x40f630]
mov ecx, esi
mov dword [ebp - 0xc], esi
xor ecx, dword [eax + 0x14]
mov edx, dword [edx*4 + 0x40fa30]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x40fe60]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x410260]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 4]
movzx ecx, dl
shr edx, 8
and edx, 0xff
xor esi, dword [ecx*4 + 0x40f630]
mov ecx, esi
mov dword [ebp - 4], esi
xor ecx, dword [eax + 0x18]
mov edx, dword [edx*4 + 0x40fa30]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x40fe60]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x410260]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x40f630]
mov ecx, dword [ebp - 0x1c]
xor edx, dword [eax + 0x1c]
dec ecx
add eax, 0x20
mov dword [ebp + 8], edx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jg 0x402370
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
mov ebx, dword [ebp - 0xc]
shr edx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x40fa30]
xor edx, dword [ecx*4 + 0x40fe60]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x410260]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x40f630]
xor edx, dword [eax]
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 8]
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x40fe60]
xor edx, dword [ecx*4 + 0x40fa30]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x410260]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x40f630]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp - 0x10], edx
mov edx, ebx
shr edx, 8
and edx, 0xff
mov ebx, dword [edx*4 + 0x40fa30]
xor ebx, dword [ecx*4 + 0x40fe60]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x410260]
movzx ecx, dl
shr edx, 8
and edx, 0xff
xor ebx, dword [ecx*4 + 0x40f630]
mov ecx, dword [ebp - 0xc]
mov edx, dword [edx*4 + 0x40fa30]
shr ecx, 0x10
and ecx, 0xff
xor ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x40fe60]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x410260]
mov ecx, dword [ebp + 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x40f630]
mov ecx, ebx
xor edx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xff
movzx esi, byte [ecx + 0x40e530]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x40e530]
shl ecx, 8
xor esi, ecx
mov ecx, edx
shr ecx, 8
and ecx, 0xff
shl esi, 8
movzx ecx, byte [ecx + 0x40e530]
xor esi, ecx
mov ecx, dword [ebp - 0x14]
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x40e530]
xor esi, ecx
xor esi, dword [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
movzx esi, byte [ecx + 0x40e530]
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x40e530]
shl ecx, 8
xor esi, ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 8
and ecx, 0xff
shl esi, 8
movzx ecx, byte [ecx + 0x40e530]
xor esi, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x40e530]
xor esi, ecx
mov ecx, dword [ebp - 0x14]
xor esi, dword [eax + 0x14]
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp - 0x18], esi
movzx esi, byte [ecx + 0x40e530]
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x40e530]
shl ecx, 8
xor esi, ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
shl esi, 8
movzx ecx, byte [ecx + 0x40e530]
xor esi, ecx
movzx ecx, bl
shl esi, 8
shr ebx, 8
and ebx, 0xff
movzx ecx, byte [ecx + 0x40e530]
xor esi, ecx
mov ecx, dword [ebp - 0x10]
xor esi, dword [eax + 0x18]
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp - 0xc], esi
movzx esi, byte [ecx + 0x40e530]
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x40e530]
shl ecx, 8
xor esi, ecx
movzx ecx, byte [ebx + 0x40e530]
shl esi, 8
mov ebx, esi
mov dword [ebp + 8], esi
xor ebx, ecx
movzx ecx, dl
movzx ecx, byte [ecx + 0x40e530]
jmp 0x402ca5
mov edi, dword [edi]
sar edi, 1
dec edi
test edi, edi
jle 0x402a59
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
shr edx, 0x10
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov edx, dword [edx*4 + 0x40ee30]
xor edx, dword [ecx*4 + 0x40ea30]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x40f230]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x40e630]
xor edx, dword [eax]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 8]
shr edx, 0x10
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov edx, dword [edx*4 + 0x40ee30]
xor edx, dword [ecx*4 + 0x40ea30]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x40f230]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x40e630]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 8]
shr ecx, 0x10
shr edx, 8
and ecx, 0xff
and edx, 0xff
mov edx, dword [edx*4 + 0x40ea30]
xor edx, dword [ecx*4 + 0x40ee30]
mov ecx, ebx
shr ecx, 0x18
shr ebx, 0x10
and ebx, 0xff
xor edx, dword [ecx*4 + 0x40f230]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebx*4 + 0x40ee30]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x40e630]
mov ecx, dword [ebp - 8]
xor edx, dword [eax + 8]
shr ecx, 8
and ecx, 0xff
mov dword [ebp - 0x1c], edx
shr edx, 0x10
and edx, 0xff
xor ebx, dword [ecx*4 + 0x40ea30]
mov ecx, dword [ebp - 4]
mov edx, dword [edx*4 + 0x40ee30]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x40f230]
mov ecx, dword [ebp + 8]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x40e630]
mov ecx, dword [ebp - 0x14]
xor ebx, dword [eax + 0xc]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x40ea30]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x40f230]
mov ecx, dword [ebp - 0x10]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x40e630]
xor edx, dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
mov edx, ebx
shr edx, 0x10
and edx, 0xff
shr ecx, 8
mov edx, dword [edx*4 + 0x40ee30]
and ecx, 0xff
dec edi
xor edx, dword [ecx*4 + 0x40ea30]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x40f230]
mov ecx, dword [ebp - 0x14]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x40e630]
xor edx, dword [eax + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov edx, ebx
shr ecx, 0x10
shr edx, 8
and ecx, 0xff
and edx, 0xff
mov edx, dword [edx*4 + 0x40ea30]
xor edx, dword [ecx*4 + 0x40ee30]
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x40f230]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 4]
movzx ecx, dl
shr edx, 0x18
xor esi, dword [ecx*4 + 0x40e630]
mov ecx, esi
mov dword [ebp - 4], esi
xor ecx, dword [eax + 0x18]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
and ecx, 0xff
shr esi, 8
and esi, 0xff
mov dword [ebp - 0x10], esi
mov ecx, dword [ecx*4 + 0x40ee30]
mov dword [ebp + 8], ecx
mov ecx, esi
mov esi, dword [ebp + 8]
xor esi, dword [ecx*4 + 0x40ea30]
mov ecx, esi
mov dword [ebp + 8], esi
xor ecx, dword [edx*4 + 0x40f230]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x40e630]
xor edx, dword [eax + 0x1c]
add eax, 0x20
mov dword [ebp + 8], edx
mov edx, dword [ebp - 4]
test edi, edi
jg 0x402811
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x40ee30]
xor edx, dword [ecx*4 + 0x40ea30]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x40f230]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x40e630]
xor edx, dword [eax]
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 8]
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x40ee30]
xor edx, dword [ecx*4 + 0x40ea30]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x40f230]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x40e630]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 8]
shr edx, 8
and edx, 0xff
mov ebx, dword [edx*4 + 0x40ea30]
xor ebx, dword [ecx*4 + 0x40ee30]
mov edx, dword [ebp - 0xc]
mov ecx, edx
shr ecx, 0x18
shr edx, 0x10
and edx, 0xff
xor ebx, dword [ecx*4 + 0x40f230]
mov ecx, dword [ebp - 4]
mov edx, dword [edx*4 + 0x40ee30]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x40e630]
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
xor ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x40ea30]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x40f230]
mov ecx, dword [ebp + 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x40e630]
mov ecx, ebx
xor edx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xff
movzx esi, byte [ecx + 0x410660]
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x410660]
shl ecx, 8
xor esi, ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 8
and ecx, 0xff
shl esi, 8
movzx ecx, byte [ecx + 0x410660]
xor esi, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x410660]
xor esi, ecx
xor esi, dword [eax + 0x10]
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp - 0x1c], esi
movzx esi, byte [ecx + 0x410660]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x410660]
shl ecx, 8
xor esi, ecx
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
shl esi, 8
movzx ecx, byte [ecx + 0x410660]
xor esi, ecx
mov ecx, dword [ebp - 0x14]
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x410660]
xor esi, ecx
mov ecx, dword [ebp - 0x10]
xor esi, dword [eax + 0x14]
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp - 0x18], esi
movzx esi, byte [ecx + 0x410660]
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x410660]
shl ecx, 8
xor esi, ecx
mov ecx, edx
shr ecx, 8
and ecx, 0xff
shl esi, 8
movzx ecx, byte [ecx + 0x410660]
xor esi, ecx
movzx ecx, bl
shl esi, 8
shr ebx, 0x18
movzx ecx, byte [ecx + 0x410660]
xor esi, ecx
mov ecx, dword [ebp - 0x14]
xor esi, dword [eax + 0x18]
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp - 0xc], esi
movzx esi, byte [ecx + 0x410660]
movzx ecx, byte [ebx + 0x410660]
mov ebx, esi
shl ecx, 8
xor ebx, ecx
mov dword [ebp + 8], esi
mov ecx, dword [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
shl ebx, 8
movzx ecx, byte [ecx + 0x410660]
xor ebx, ecx
movzx ecx, dl
movzx ecx, byte [ecx + 0x410660]
mov edx, dword [ebp - 0x1c]
shl ebx, 8
xor ebx, ecx
mov ecx, dword [ebp + 0xc]
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 - 0x18]
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