Function at 0x401281
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xc4
push esi
mov esi, dword [ebp + 0x78]
push edi
push dword [ebp + 0x7c]
push esi
call fcn.00401101
push 0xb0
push dword [ebp + 0x70]
mov edi, eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0041fe90
add esp, 0x14
test edi, edi
jle 0x401c81
lea eax, [edi - 1]
shr eax, 4
inc eax
mov dword [ebp + 0x54], eax
push ebx
mov eax, dword [esi + 8]
xor eax, dword [ebp - 0x54]
mov edx, dword [esi]
xor edx, dword [ebp - 0x5c]
mov ebx, dword [esi + 4]
xor ebx, dword [ebp - 0x58]
mov esi, dword [esi + 0xc]
xor esi, dword [ebp - 0x50]
mov dword [ebp + 0x60], eax
movzx eax, dl
mov edi, dword [eax*4 + 0x4403c8]
mov eax, edx
shr edx, 0x10
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov ecx, dword [ecx*4 + 0x440bc8]
mov dword [ebp + 0x64], esi
mov esi, dword [edx*4 + 0x440fc8]
movzx edx, bl
xor esi, dword [edx*4 + 0x4403c8]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x4407c8]
shr ebx, 0x10
shr eax, 8
movzx edx, bl
movzx eax, al
mov eax, dword [eax*4 + 0x4407c8]
xor eax, dword [edx*4 + 0x440bc8]
shr ebx, 8
movzx edx, bl
xor ecx, dword [edx*4 + 0x440fc8]
mov edx, dword [ebp + 0x60]
movzx ebx, dl
xor ecx, dword [ebx*4 + 0x4403c8]
mov ebx, edx
shr ebx, 8
shr edx, 0x10
movzx ebx, bl
xor esi, dword [ebx*4 + 0x4407c8]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x440bc8]
shr edx, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x440fc8]
mov edx, dword [ebp + 0x64]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x4403c8]
mov ebx, edx
shr ebx, 8
shr edx, 0x10
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4407c8]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x440bc8]
mov ebx, dword [ebp - 0x44]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440fc8]
xor edx, dword [ebp - 0x4c]
xor ebx, ecx
xor edx, edi
mov edi, dword [ebp - 0x48]
xor edi, esi
mov esi, dword [ebp - 0x40]
xor esi, eax
movzx eax, dl
mov dword [ebp + 0x5c], edi
mov edi, dword [eax*4 + 0x4403c8]
mov eax, edx
shr eax, 8
shr edx, 0x10
movzx ecx, dl
mov ecx, dword [ecx*4 + 0x440bc8]
movzx eax, al
mov eax, dword [eax*4 + 0x4407c8]
shr edx, 8
mov dword [ebp + 0x64], esi
movzx edx, dl
mov esi, dword [edx*4 + 0x440fc8]
movzx edx, byte [ebp + 0x5c]
xor esi, dword [edx*4 + 0x4403c8]
mov edx, dword [ebp + 0x5c]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x4407c8]
mov edx, dword [ebp + 0x5c]
shr edx, 0x10
mov dword [ebp + 0x7c], edx
movzx edx, dl
xor eax, dword [edx*4 + 0x440bc8]
mov edx, dword [ebp + 0x7c]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x440fc8]
movzx edx, bl
xor ecx, dword [edx*4 + 0x4403c8]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x4407c8]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x440bc8]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x440fc8]
mov edx, dword [ebp + 0x64]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x4403c8]
mov ebx, edx
shr edx, 0x10
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4407c8]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x440bc8]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440fc8]
xor edx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x34]
xor edx, edi
mov edi, dword [ebp - 0x38]
xor edi, esi
mov esi, dword [ebp - 0x30]
xor esi, eax
movzx eax, dl
mov dword [ebp + 0x5c], edi
mov edi, dword [eax*4 + 0x4403c8]
mov eax, edx
shr edx, 0x10
xor ebx, ecx
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov dword [ebp + 0x64], esi
mov esi, dword [edx*4 + 0x440fc8]
movzx edx, byte [ebp + 0x5c]
xor esi, dword [edx*4 + 0x4403c8]
mov edx, dword [ebp + 0x5c]
mov ecx, dword [ecx*4 + 0x440bc8]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x4407c8]
mov edx, dword [ebp + 0x5c]
shr edx, 0x10
shr eax, 8
mov dword [ebp + 0x7c], edx
movzx edx, dl
movzx eax, al
mov eax, dword [eax*4 + 0x4407c8]
xor eax, dword [edx*4 + 0x440bc8]
mov edx, dword [ebp + 0x7c]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x440fc8]
movzx edx, bl
xor ecx, dword [edx*4 + 0x4403c8]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x4407c8]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x440bc8]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x440fc8]
mov edx, dword [ebp + 0x64]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x4403c8]
mov ebx, edx
shr edx, 0x10
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4407c8]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x440bc8]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440fc8]
xor edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x24]
xor edx, edi
mov edi, dword [ebp - 0x28]
xor edi, esi
mov esi, dword [ebp - 0x20]
xor esi, eax
movzx eax, dl
xor ebx, ecx
mov dword [ebp + 0x5c], edi
mov edi, dword [eax*4 + 0x4403c8]
mov eax, edx
shr edx, 0x10
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov dword [ebp + 0x64], esi
mov esi, dword [edx*4 + 0x440fc8]
movzx edx, byte [ebp + 0x5c]
xor esi, dword [edx*4 + 0x4403c8]
mov edx, dword [ebp + 0x5c]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x4407c8]
mov edx, dword [ebp + 0x5c]
mov ecx, dword [ecx*4 + 0x440bc8]
shr edx, 0x10
mov dword [ebp + 0x7c], edx
movzx edx, dl
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x4407c8]
xor eax, dword [edx*4 + 0x440bc8]
mov edx, dword [ebp + 0x7c]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x440fc8]
movzx edx, bl
xor ecx, dword [edx*4 + 0x4403c8]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x4407c8]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x440bc8]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x440fc8]
mov edx, dword [ebp + 0x64]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x4403c8]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4407c8]
shr edx, 0x10
movzx ebx, dl
xor esi, dword [ebx*4 + 0x440bc8]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440fc8]
xor edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
xor edx, edi
mov edi, dword [ebp - 0x18]
xor edi, esi
mov esi, dword [ebp - 0x10]
xor esi, eax
movzx eax, dl
xor ebx, ecx
mov dword [ebp + 0x5c], edi
mov edi, dword [eax*4 + 0x4403c8]
mov eax, edx
shr edx, 0x10
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov dword [ebp + 0x64], esi
mov esi, dword [edx*4 + 0x440fc8]
movzx edx, byte [ebp + 0x5c]
xor esi, dword [edx*4 + 0x4403c8]
mov edx, dword [ebp + 0x5c]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x4407c8]
mov edx, dword [ebp + 0x5c]
mov ecx, dword [ecx*4 + 0x440bc8]
shr edx, 0x10
mov dword [ebp + 0x7c], edx
movzx edx, dl
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x4407c8]
xor eax, dword [edx*4 + 0x440bc8]
mov edx, dword [ebp + 0x7c]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x440fc8]
movzx edx, bl
xor ecx, dword [edx*4 + 0x4403c8]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x4407c8]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x440bc8]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x440fc8]
mov edx, dword [ebp + 0x64]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x4403c8]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4407c8]
shr edx, 0x10
movzx ebx, dl
xor esi, dword [ebx*4 + 0x440bc8]
mov ebx, dword [ebp - 4]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440fc8]
xor edx, dword [ebp - 0xc]
xor ebx, ecx
xor edx, edi
mov edi, dword [ebp - 8]
xor edi, esi
mov esi, dword [ebp]
xor esi, eax
movzx eax, dl
mov dword [ebp + 0x5c], edi
mov edi, dword [eax*4 + 0x4403c8]
mov eax, edx
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x4407c8]
mov dword [ebp + 0x64], esi
shr edx, 0x10
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov esi, dword [edx*4 + 0x440fc8]
movzx edx, byte [ebp + 0x5c]
xor esi, dword [edx*4 + 0x4403c8]
mov edx, dword [ebp + 0x5c]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x4407c8]
mov edx, dword [ebp + 0x5c]
shr edx, 0x10
mov dword [ebp + 0x7c], edx
movzx edx, dl
xor eax, dword [edx*4 + 0x440bc8]
mov edx, dword [ebp + 0x7c]
mov ecx, dword [ecx*4 + 0x440bc8]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x440fc8]
movzx edx, bl
xor ecx, dword [edx*4 + 0x4403c8]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x4407c8]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x440bc8]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x440fc8]
mov edx, dword [ebp + 0x64]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x4403c8]
mov ebx, edx
shr edx, 0x10
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4407c8]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x440bc8]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440fc8]
xor edx, dword [ebp + 4]
mov ebx, dword [ebp + 0xc]
xor edx, edi
mov edi, dword [ebp + 8]
xor edi, esi
mov esi, dword [ebp + 0x10]
xor esi, eax
movzx eax, dl
mov dword [ebp + 0x5c], edi
mov edi, dword [eax*4 + 0x4403c8]
mov eax, edx
shr edx, 0x10
xor ebx, ecx
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov ecx, dword [ecx*4 + 0x440bc8]
mov dword [ebp + 0x64], esi
mov esi, dword [edx*4 + 0x440fc8]
movzx edx, byte [ebp + 0x5c]
xor esi, dword [edx*4 + 0x4403c8]
mov edx, dword [ebp + 0x5c]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x4407c8]
mov edx, dword [ebp + 0x5c]
shr eax, 8
shr edx, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x4407c8]
mov dword [ebp + 0x7c], edx
movzx edx, dl
xor eax, dword [edx*4 + 0x440bc8]
mov edx, dword [ebp + 0x7c]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x440fc8]
movzx edx, bl
xor ecx, dword [edx*4 + 0x4403c8]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x4407c8]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x440bc8]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x440fc8]
mov edx, dword [ebp + 0x64]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x4403c8]
mov ebx, edx
shr edx, 0x10
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4407c8]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x440bc8]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440fc8]
xor edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x1c]
xor edx, edi
mov edi, dword [ebp + 0x18]
xor edi, esi
mov esi, dword [ebp + 0x20]
xor esi, eax
movzx eax, dl
xor ebx, ecx
mov dword [ebp + 0x5c], edi
mov edi, dword [eax*4 + 0x4403c8]
mov eax, edx
shr edx, 0x10
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov dword [ebp + 0x64], esi
mov esi, dword [edx*4 + 0x440fc8]
movzx edx, byte [ebp + 0x5c]
xor esi, dword [edx*4 + 0x4403c8]
mov edx, dword [ebp + 0x5c]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x4407c8]
mov edx, dword [ebp + 0x5c]
mov ecx, dword [ecx*4 + 0x440bc8]
shr edx, 0x10
mov dword [ebp + 0x7c], edx
movzx edx, dl
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x4407c8]
xor eax, dword [edx*4 + 0x440bc8]
mov edx, dword [ebp + 0x7c]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x440fc8]
movzx edx, bl
xor ecx, dword [edx*4 + 0x4403c8]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x4407c8]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x440bc8]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x440fc8]
mov edx, dword [ebp + 0x64]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x4403c8]
mov ebx, edx
shr ebx, 8
shr edx, 0x10
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4407c8]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x440bc8]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440fc8]
xor edx, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x2c]
xor edx, edi
mov edi, dword [ebp + 0x28]
xor edi, esi
mov esi, dword [ebp + 0x30]
xor esi, eax
movzx eax, dl
xor ebx, ecx
mov dword [ebp + 0x5c], edi
mov edi, dword [eax*4 + 0x4403c8]
mov eax, edx
shr edx, 0x10
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov dword [ebp + 0x64], esi
mov esi, dword [edx*4 + 0x440fc8]
movzx edx, byte [ebp + 0x5c]
xor esi, dword [edx*4 + 0x4403c8]
mov edx, dword [ebp + 0x5c]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x4407c8]
mov edx, dword [ebp + 0x5c]
mov ecx, dword [ecx*4 + 0x440bc8]
shr edx, 0x10
mov dword [ebp + 0x7c], edx
movzx edx, dl
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x4407c8]
xor eax, dword [edx*4 + 0x440bc8]
mov edx, dword [ebp + 0x7c]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x440fc8]
movzx edx, bl
xor ecx, dword [edx*4 + 0x4403c8]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x4407c8]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x440bc8]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x440fc8]
mov edx, dword [ebp + 0x64]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x4403c8]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4407c8]
shr edx, 0x10
movzx ebx, dl
xor esi, dword [ebx*4 + 0x440bc8]
mov ebx, dword [ebp + 0x3c]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x440fc8]
xor edx, dword [ebp + 0x34]
xor ebx, ecx
xor edx, edi
mov edi, dword [ebp + 0x38]
xor edi, esi
mov esi, dword [ebp + 0x40]
xor esi, eax
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x64], esi
movzx eax, dl
mov edi, dword [eax*4 + str.cwko0]
mov eax, edx
shr edx, 0x10
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov esi, dword [edx*4 + 0x43efc8]
movzx edx, byte [ebp + 0x5c]
or esi, dword [edx*4 + str.cwko0]
mov edx, dword [ebp + 0x5c]
shr edx, 8
mov ecx, dword [ecx*4 + 0x43ebc8]
movzx edx, dl
or edi, dword [edx*4 + 0x43e7c8]
mov edx, dword [ebp + 0x5c]
shr edx, 0x10
mov dword [ebp + 0x7c], edx
movzx edx, dl
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x43e7c8]
or eax, dword [edx*4 + 0x43ebc8]
mov edx, dword [ebp + 0x7c]
shr edx, 8
movzx edx, dl
or ecx, dword [edx*4 + 0x43efc8]
movzx edx, bl
or ecx, dword [edx*4 + str.cwko0]
mov edx, ebx
shr edx, 8
movzx edx, dl
or esi, dword [edx*4 + 0x43e7c8]
shr ebx, 0x10
movzx edx, bl
or edi, dword [edx*4 + 0x43ebc8]
shr ebx, 8
movzx edx, bl
or eax, dword [edx*4 + 0x43efc8]
mov edx, dword [ebp + 0x64]
movzx ebx, dl
or eax, dword [ebx*4 + str.cwko0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
or ecx, dword [ebx*4 + 0x43e7c8]
shr edx, 0x10
movzx ebx, dl
or esi, dword [ebx*4 + 0x43ebc8]
shr edx, 8
movzx edx, dl
mov ebx, dword [edx*4 + 0x43efc8]
mov edx, dword [ebp + 0x74]
or ebx, edi
mov edi, dword [ebp + 0x48]
xor ebx, dword [ebp + 0x44]
xor edi, esi
mov esi, dword [ebp + 0x4c]
xor esi, ecx
mov ecx, dword [ebp + 0x50]
mov dword [edx + 8], esi
mov esi, dword [ebp + 0x78]
xor ecx, eax
mov dword [edx], ebx
mov dword [edx + 4], edi
mov dword [edx + 0xc], ecx
add esi, 0x10
add edx, 0x10
dec dword [ebp + 0x54]
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x74], edx
jne 0x4012c3
pop ebx
pop edi
pop esi
add ebp, 0x68
leave
ret