Function at 0x412be4
Capabilities:
Encode data using xor

Disassembly:
push 0x8c
mov eax, 0x42f274
call fcn.0041992a
mov ebx, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], 2
cmp dword [ebp + 0x48], 0
jbe 0x412ed1
push 6
pop ecx
mov esi, str.mWTZ
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
push 0x38
xor ecx, ecx
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x31
xor byte [ebp + ecx - 0x98], dl
inc ecx
cmp ecx, 0x1b
jl 0x412c21
sub esp, 0x18
lea eax, [ebp - 0x98]
mov ecx, esp
mov dword [ebp - 0x40], esp
lea edx, [ebp + 0x38]
push eax
call fcn.004044fb
sub esp, 0x14
mov byte [ebp - 4], 3
lea eax, [ebp + 0x20]
mov dword [ebp - 0x54], esp
mov ecx, esp
push eax
call fcn.004042cc
mov byte [ebp - 4], 4
cmp byte [0x43873b], 0
mov eax, dword [0x438738]
mov dword [ebp - 0x3c], eax
je 0x412c8d
xor ecx, ecx
xor edx, edx
mov eax, ecx
div esi
add dl, 0x31
xor byte [ebp + ecx - 0x3c], dl
inc ecx
cmp ecx, 4
jl 0x412c7a
sub esp, 0x18
lea eax, [ebp - 0x3c]
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
call fcn.00404293
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x3c], esp
push ebx
call fcn.00405a8f
push 6
pop ecx
mov byte [ebp - 4], 6
lea edi, [ebp - 0x78]
mov esi, str.mWTZ
rep movsd dword es:[edi], dword [esi]
push 0x38
xor ecx, ecx
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x31
xor byte [ebp + ecx - 0x78], dl
inc ecx
cmp ecx, 0x1b
jl 0x412cc9
sub esp, 0x18
lea eax, [ebp - 0x78]
mov ecx, esp
lea edx, [ebp + 8]
push eax
call fcn.004044fb
pop ecx
mov dl, 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00408047
add esp, 0x78
mov ecx, ebx
push eax
call fcn.00405adb
lea ecx, [ebp - 0x2c]
call fcn.00404303
lea ecx, [ebp - 0x38]
call fcn.0040438d
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
mov esi, str.m_PPNRx_
push 0x38
xor ecx, ecx
pop ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor edx, edx
mov eax, ecx
div ebx
add dl, 0x31
xor byte [ebp + ecx - 0x4c], dl
inc ecx
cmp ecx, 0xb
jl 0x412d31
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x98]
call fcn.004044fb
pop ecx
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x20]
call fcn.00407c12
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 9
call fcn.004025e6
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
cmp ebx, eax
je 0x412ec9
push ebx
lea ecx, [ebp - 0x38]
call fcn.004042cc
push 0
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x38]
call fcn.004041f1
cmp eax, 0xffffffff
je 0x412eb1
cmp byte [0x439191], 0
lea edi, [ebp - 0x4c]
mov esi, str.m_PPNsze:
push 0x38
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
je 0x412dd6
xor ecx, ecx
xor edx, edx
mov eax, ecx
div esi
add dl, 0x31
xor byte [ebp + ecx - 0x4c], dl
inc ecx
cmp ecx, 0xa
jl 0x412dc3
sub esp, 0x18
lea eax, [ebp - 0x4c]
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea edx, [ebp + 0x38]
push eax
call fcn.004044fb
pop ecx
mov byte [ebp - 4], 0xb
cmp byte [0x43873b], 0
mov eax, dword [0x438738]
mov dword [ebp - 0x3c], eax
je 0x412e15
xor ecx, ecx
xor edx, edx
mov eax, ecx
div esi
add dl, 0x31
xor byte [ebp + ecx - 0x3c], dl
inc ecx
cmp ecx, 4
jl 0x412e02
sub esp, 0x18
lea eax, [ebp - 0x3c]
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
call fcn.00404293
mov byte [ebp - 4], 0xc
cmp byte [0x43873b], 0
mov eax, dword [0x438738]
mov dword [ebp - 0x3c], eax
je 0x412e50
xor ecx, ecx
xor edx, edx
mov eax, ecx
div esi
add dl, 0x31
xor byte [ebp + ecx - 0x3c], dl
inc ecx
cmp ecx, 4
jl 0x412e3d
sub esp, 0x18
lea eax, [ebp - 0x3c]
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
call fcn.00404293
mov esi, dword [ebp - 0x50]
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x3c], esp
push esi
call fcn.00405a8f
sub esp, 0x18
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.004042cc
mov dl, 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x78]
call fcn.00408047
add esp, 0x78
mov ecx, esi
push eax
call fcn.00405adb
lea ecx, [ebp - 0x6c]
call fcn.00404303
lea ecx, [ebp - 0x78]
call fcn.0040438d
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.004025e6
add ebx, 0x18
cmp ebx, dword [ebp - 0x40]
jne 0x412d85
lea ecx, [ebp - 0x20]
call fcn.0040438d
lea ecx, [ebp + 8]
call fcn.004025e6
lea ecx, [ebp + 0x20]
call fcn.004025e6
lea ecx, [ebp + 0x38]
call fcn.004025e6
call fcn.004198d9
ret