Function at 0x40cdc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x14]
push esi
call fcn.0040cc39
push 0xb0
push dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00414df0
add esp, 0x14
test edi, edi
jle 0x40d7f4
lea eax, [edi - 1]
shr eax, 4
inc eax
mov dword [ebp - 0x14], eax
push ebx
mov eax, dword [esi + 8]
xor eax, dword [ebp - 0xbc]
mov edx, dword [esi]
xor edx, dword [ebp - 0xc4]
mov ebx, dword [esi + 4]
xor ebx, dword [ebp - 0xc0]
mov esi, dword [esi + 0xc]
xor esi, dword [ebp - 0xb8]
mov dword [ebp - 8], eax
movzx eax, dl
mov edi, dword [eax*4 + 0x434218]
mov eax, edx
shr edx, 0x10
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov ecx, dword [ecx*4 + 0x434a18]
mov dword [ebp - 4], esi
mov esi, dword [edx*4 + 0x434e18]
movzx edx, bl
xor esi, dword [edx*4 + 0x434218]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x434618]
shr ebx, 0x10
shr eax, 8
movzx edx, bl
movzx eax, al
mov eax, dword [eax*4 + 0x434618]
xor eax, dword [edx*4 + 0x434a18]
shr ebx, 8
movzx edx, bl
xor ecx, dword [edx*4 + 0x434e18]
mov edx, dword [ebp - 8]
movzx ebx, dl
xor ecx, dword [ebx*4 + 0x434218]
mov ebx, edx
shr ebx, 8
shr edx, 0x10
movzx ebx, bl
xor esi, dword [ebx*4 + 0x434618]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x434a18]
shr edx, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x434e18]
mov edx, dword [ebp - 4]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x434218]
mov ebx, edx
shr ebx, 8
shr edx, 0x10
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x434618]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x434a18]
mov ebx, dword [ebp - 0xac]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x434e18]
xor edx, dword [ebp - 0xb4]
xor ebx, ecx
xor edx, edi
mov edi, dword [ebp - 0xb0]
xor edi, esi
mov esi, dword [ebp - 0xa8]
xor esi, eax
movzx eax, dl
mov dword [ebp - 0xc], edi
mov edi, dword [eax*4 + 0x434218]
mov eax, edx
shr eax, 8
shr edx, 0x10
movzx ecx, dl
mov ecx, dword [ecx*4 + 0x434a18]
movzx eax, al
mov eax, dword [eax*4 + 0x434618]
shr edx, 8
mov dword [ebp - 4], esi
movzx edx, dl
mov esi, dword [edx*4 + 0x434e18]
movzx edx, byte [ebp - 0xc]
xor esi, dword [edx*4 + 0x434218]
mov edx, dword [ebp - 0xc]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x434618]
mov edx, dword [ebp - 0xc]
shr edx, 0x10
mov dword [ebp + 0x14], edx
movzx edx, dl
xor eax, dword [edx*4 + 0x434a18]
mov edx, dword [ebp + 0x14]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x434e18]
movzx edx, bl
xor ecx, dword [edx*4 + 0x434218]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x434618]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x434a18]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x434e18]
mov edx, dword [ebp - 4]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x434218]
mov ebx, edx
shr edx, 0x10
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x434618]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x434a18]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x434e18]
xor edx, dword [ebp - 0xa4]
mov ebx, dword [ebp - 0x9c]
xor edx, edi
mov edi, dword [ebp - 0xa0]
xor edi, esi
mov esi, dword [ebp - 0x98]
xor esi, eax
movzx eax, dl
mov dword [ebp - 0xc], edi
mov edi, dword [eax*4 + 0x434218]
mov eax, edx
shr edx, 0x10
xor ebx, ecx
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov dword [ebp - 4], esi
mov esi, dword [edx*4 + 0x434e18]
movzx edx, byte [ebp - 0xc]
xor esi, dword [edx*4 + 0x434218]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x434a18]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x434618]
mov edx, dword [ebp - 0xc]
shr edx, 0x10
shr eax, 8
mov dword [ebp + 0x14], edx
movzx edx, dl
movzx eax, al
mov eax, dword [eax*4 + 0x434618]
xor eax, dword [edx*4 + 0x434a18]
mov edx, dword [ebp + 0x14]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x434e18]
movzx edx, bl
xor ecx, dword [edx*4 + 0x434218]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x434618]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x434a18]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x434e18]
mov edx, dword [ebp - 4]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x434218]
mov ebx, edx
shr edx, 0x10
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x434618]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x434a18]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x434e18]
xor edx, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x8c]
xor edx, edi
mov edi, dword [ebp - 0x90]
xor edi, esi
mov esi, dword [ebp - 0x88]
xor esi, eax
movzx eax, dl
xor ebx, ecx
mov dword [ebp - 0xc], edi
mov edi, dword [eax*4 + 0x434218]
mov eax, edx
shr edx, 0x10
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov dword [ebp - 4], esi
mov esi, dword [edx*4 + 0x434e18]
movzx edx, byte [ebp - 0xc]
xor esi, dword [edx*4 + 0x434218]
mov edx, dword [ebp - 0xc]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x434618]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x434a18]
shr edx, 0x10
mov dword [ebp + 0x14], edx
movzx edx, dl
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x434618]
xor eax, dword [edx*4 + 0x434a18]
mov edx, dword [ebp + 0x14]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x434e18]
movzx edx, bl
xor ecx, dword [edx*4 + 0x434218]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x434618]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x434a18]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x434e18]
mov edx, dword [ebp - 4]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x434218]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x434618]
shr edx, 0x10
movzx ebx, dl
xor esi, dword [ebx*4 + 0x434a18]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x434e18]
xor edx, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x7c]
xor edx, edi
mov edi, dword [ebp - 0x80]
xor edi, esi
mov esi, dword [ebp - 0x78]
xor esi, eax
movzx eax, dl
xor ebx, ecx
mov dword [ebp - 0xc], edi
mov edi, dword [eax*4 + 0x434218]
mov eax, edx
shr edx, 0x10
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov dword [ebp - 4], esi
mov esi, dword [edx*4 + 0x434e18]
movzx edx, byte [ebp - 0xc]
xor esi, dword [edx*4 + 0x434218]
mov edx, dword [ebp - 0xc]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x434618]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x434a18]
shr edx, 0x10
mov dword [ebp + 0x14], edx
movzx edx, dl
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x434618]
xor eax, dword [edx*4 + 0x434a18]
mov edx, dword [ebp + 0x14]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x434e18]
movzx edx, bl
xor ecx, dword [edx*4 + 0x434218]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x434618]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x434a18]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x434e18]
mov edx, dword [ebp - 4]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x434218]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x434618]
shr edx, 0x10
movzx ebx, dl
xor esi, dword [ebx*4 + 0x434a18]
mov ebx, dword [ebp - 0x6c]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x434e18]
xor edx, dword [ebp - 0x74]
xor ebx, ecx
xor edx, edi
mov edi, dword [ebp - 0x70]
xor edi, esi
mov esi, dword [ebp - 0x68]
xor esi, eax
movzx eax, dl
mov dword [ebp - 0xc], edi
mov edi, dword [eax*4 + 0x434218]
mov eax, edx
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x434618]
mov dword [ebp - 4], esi
shr edx, 0x10
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov esi, dword [edx*4 + 0x434e18]
movzx edx, byte [ebp - 0xc]
xor esi, dword [edx*4 + 0x434218]
mov edx, dword [ebp - 0xc]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x434618]
mov edx, dword [ebp - 0xc]
shr edx, 0x10
mov dword [ebp + 0x14], edx
movzx edx, dl
xor eax, dword [edx*4 + 0x434a18]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ecx*4 + 0x434a18]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x434e18]
movzx edx, bl
xor ecx, dword [edx*4 + 0x434218]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x434618]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x434a18]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x434e18]
mov edx, dword [ebp - 4]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x434218]
mov ebx, edx
shr edx, 0x10
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x434618]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x434a18]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x434e18]
xor edx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x5c]
xor edx, edi
mov edi, dword [ebp - 0x60]
xor edi, esi
mov esi, dword [ebp - 0x58]
xor esi, eax
movzx eax, dl
mov dword [ebp - 0xc], edi
mov edi, dword [eax*4 + 0x434218]
mov eax, edx
shr edx, 0x10
xor ebx, ecx
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov ecx, dword [ecx*4 + 0x434a18]
mov dword [ebp - 4], esi
mov esi, dword [edx*4 + 0x434e18]
movzx edx, byte [ebp - 0xc]
xor esi, dword [edx*4 + 0x434218]
mov edx, dword [ebp - 0xc]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x434618]
mov edx, dword [ebp - 0xc]
shr eax, 8
shr edx, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x434618]
mov dword [ebp + 0x14], edx
movzx edx, dl
xor eax, dword [edx*4 + 0x434a18]
mov edx, dword [ebp + 0x14]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x434e18]
movzx edx, bl
xor ecx, dword [edx*4 + 0x434218]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x434618]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x434a18]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x434e18]
mov edx, dword [ebp - 4]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x434218]
mov ebx, edx
shr edx, 0x10
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x434618]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x434a18]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x434e18]
xor edx, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x4c]
xor edx, edi
mov edi, dword [ebp - 0x50]
xor edi, esi
mov esi, dword [ebp - 0x48]
xor esi, eax
movzx eax, dl
xor ebx, ecx
mov dword [ebp - 0xc], edi
mov edi, dword [eax*4 + 0x434218]
mov eax, edx
shr edx, 0x10
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov dword [ebp - 4], esi
mov esi, dword [edx*4 + 0x434e18]
movzx edx, byte [ebp - 0xc]
xor esi, dword [edx*4 + 0x434218]
mov edx, dword [ebp - 0xc]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x434618]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x434a18]
shr edx, 0x10
mov dword [ebp + 0x14], edx
movzx edx, dl
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x434618]
xor eax, dword [edx*4 + 0x434a18]
mov edx, dword [ebp + 0x14]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x434e18]
movzx edx, bl
xor ecx, dword [edx*4 + 0x434218]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x434618]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x434a18]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x434e18]
mov edx, dword [ebp - 4]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x434218]
mov ebx, edx
shr ebx, 8
shr edx, 0x10
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x434618]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x434a18]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x434e18]
xor edx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x3c]
xor edx, edi
mov edi, dword [ebp - 0x40]
xor edi, esi
mov esi, dword [ebp - 0x38]
xor esi, eax
movzx eax, dl
xor ebx, ecx
mov dword [ebp - 0xc], edi
mov edi, dword [eax*4 + 0x434218]
mov eax, edx
shr edx, 0x10
movzx ecx, dl
shr edx, 8
movzx edx, dl
mov dword [ebp - 4], esi
mov esi, dword [edx*4 + 0x434e18]
movzx edx, byte [ebp - 0xc]
xor esi, dword [edx*4 + 0x434218]
mov edx, dword [ebp - 0xc]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x434618]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x434a18]
shr edx, 0x10
mov dword [ebp + 0x14], edx
movzx edx, dl
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x434618]
xor eax, dword [edx*4 + 0x434a18]
mov edx, dword [ebp + 0x14]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x434e18]
movzx edx, bl
xor ecx, dword [edx*4 + 0x434218]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x434618]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x434a18]
shr ebx, 8
movzx edx, bl
xor eax, dword [edx*4 + 0x434e18]
mov edx, dword [ebp - 4]
movzx ebx, dl
xor eax, dword [ebx*4 + 0x434218]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x434618]
shr edx, 0x10
movzx ebx, dl
xor esi, dword [ebx*4 + 0x434a18]
mov ebx, dword [ebp - 0x2c]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x434e18]
xor edx, dword [ebp - 0x34]
xor ebx, ecx
xor edx, edi
mov edi, dword [ebp - 0x30]
xor edi, esi
mov esi, dword [ebp - 0x28]
xor esi, eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 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 + 0x432e18]
movzx edx, byte [ebp - 0xc]
or esi, dword [edx*4 + str.cwko0]
mov edx, dword [ebp - 0xc]
shr edx, 8
mov ecx, dword [ecx*4 + 0x432a18]
movzx edx, dl
or edi, dword [edx*4 + 0x432618]
mov edx, dword [ebp - 0xc]
shr edx, 0x10
mov dword [ebp + 0x14], edx
movzx edx, dl
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x432618]
or eax, dword [edx*4 + 0x432a18]
mov edx, dword [ebp + 0x14]
shr edx, 8
movzx edx, dl
or ecx, dword [edx*4 + 0x432e18]
movzx edx, bl
or ecx, dword [edx*4 + str.cwko0]
mov edx, ebx
shr edx, 8
movzx edx, dl
or esi, dword [edx*4 + 0x432618]
shr ebx, 0x10
movzx edx, bl
or edi, dword [edx*4 + 0x432a18]
shr ebx, 8
movzx edx, bl
or eax, dword [edx*4 + 0x432e18]
mov edx, dword [ebp - 4]
movzx ebx, dl
or eax, dword [ebx*4 + str.cwko0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
or ecx, dword [ebx*4 + 0x432618]
shr edx, 0x10
movzx ebx, dl
or esi, dword [ebx*4 + 0x432a18]
shr edx, 8
movzx edx, dl
mov ebx, dword [edx*4 + 0x432e18]
mov edx, dword [ebp + 0xc]
or ebx, edi
mov edi, dword [ebp - 0x20]
xor ebx, dword [ebp - 0x24]
xor edi, esi
mov esi, dword [ebp - 0x1c]
xor esi, ecx
mov ecx, dword [ebp - 0x18]
mov dword [edx + 8], esi
mov esi, dword [ebp + 0x10]
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 - 0x14]
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], edx
jne 0x40ce03
pop ebx
pop edi
pop esi
leave
ret