Function at 0x422870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542b6f
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x673114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], ecx
mov eax, dword [0x675ab4]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x4228e2
push 0xc
call fcn.00474d5d
add esp, 4
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4228d4
mov ecx, eax
call fcn.0043a790
jmp 0x4228d6
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x675ab4], eax
push 0x8a
lea ecx, [ebp - 0x214]
push ecx
mov ecx, eax
call fcn.0043a7c0
mov dword [ebp - 4], 1
call fcn.0047bfec
cmp dword [ebp - 0x200], 0x10
lea ecx, [ebp - 0x214]
cmovae ecx, dword [ebp - 0x214]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422918
mov edi, dword [ebp + 0xc]
sub ecx, edx
xor edx, edx
xor esi, esi
test edi, edi
jle 0x422957
nop dword [eax]
cmp dword [ebp - 0x200], 0x10
lea eax, [ebp - 0x214]
cmovae eax, dword [ebp - 0x214]
mov al, byte [eax + edx]
inc edx
xor byte [ebx + esi], al
xor eax, eax
cmp edx, ecx
cmovge edx, eax
inc esi
cmp esi, edi
jl 0x422930
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov ecx, 0x74
mov byte [ebp - 4], 2
mov esi, str.rd51fIYP3gtXZGFzvfbvpp3v723xnzvfqGs75BSRXBzAAwRcHX21RXmb501seiXOvvL6NbexmtNoBU6AS2hLLvP0npuu6vzyGtvfTfvbbwsF35R5KhV2iT6xbQVC5PebxB12Ajlhzla2GB23viSSq1RMXlMcOrQCIQE6IMHHuhBYmKUm1zdchWfyRZlu2dgTFlCcfLTvXLnpFO4wXQGx2OXT7xg5lECRHYjAcSOD6uzU2vczQ5FKGxGk4IfIUavP80x9h6L4mKpUmJpfWw2iXHFSLRZJa9x5owUUkuvMaOWSp3m4LnL8RGJMLoMPqrsoo024FXMICiJHljbGWayzWvO6kkA15gz7QyUuxYApYj5jxNKPfMq8R6FalM4mn2XsoUimUfPDwjclZuKGYFasfd5MNrgq7e6j8sEbQDyvqAuSdCFIbwz9mrYzeiKSMx8fKzbqLLu2wud85cZVn
mov dword [ebp - 0x1e8], 0xf
lea edi, [ebp - 0x1e4]
mov dword [ebp - 0x1ec], 0
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x1fc], 0
movsw word es:[edi], word [esi]
cmp byte [ebp - 0x1e4], 0
jne 0x4229b5
xor ecx, ecx
jmp 0x4229c9
lea ecx, [ebp - 0x1e4]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4229c0
sub ecx, edx
push ecx
lea eax, [ebp - 0x1e4]
push eax
lea ecx, [ebp - 0x1fc]
call fcn.00407d30
push 1
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
call fcn.00407b00
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x422a8f
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
jb 0x422a21
mov eax, dword [esi]
jmp 0x422a23
mov eax, esi
mov byte [eax], 0
cmp dword [ebp - 0x1e8], 0x10
jae 0x422a4d
mov eax, dword [ebp - 0x1ec]
add eax, 1
je 0x422a5f
push eax
lea eax, [ebp - 0x1fc]
push eax
push esi
call fcn.004f0280
add esp, 0xc
jmp 0x422a5f
mov eax, dword [ebp - 0x1fc]
mov dword [esi], eax
mov dword [ebp - 0x1fc], 0
mov eax, dword [ebp - 0x1ec]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x1e8]
mov dword [esi + 0x14], eax
mov eax, 0xf
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1ec], 0
mov byte [ebp - 0x1fc], 0
jmp 0x422a95
mov eax, dword [ebp - 0x1e8]
add esi, 0x18
mov byte [ebp - 4], 2
mov dword [ebp - 0x234], esi
cmp eax, 0x10
jb 0x422aba
inc eax
lea ecx, [ebp - 0x1fc]
push eax
push dword [ebp - 0x1fc]
call fcn.00407e30
lea ecx, [ebp - 0x288]
call fcn.00475f50
push 1
push 0
push ebx
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 4
call fcn.004789c0
lea eax, [ebp - 0x1fc]
push 0x8b
push eax
call fcn.004077c0
mov ecx, eax
call fcn.0043a7c0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x422afd
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x288]
call fcn.00476d20
mov ecx, dword [ebp - 0x1e8]
mov esi, eax
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x422b2d
inc ecx
push ecx
push dword [ebp - 0x1fc]
lea ecx, [ebp - 0x1fc]
call fcn.00407e30
mov dword [ebp - 0x1e8], 0xf
mov dword [ebp - 0x1ec], 0
mov byte [ebp - 0x1fc], 0
test esi, esi
jne 0x422b62
test ebx, ebx
je 0x422b5b
push 1
push ebx
call fcn.00474d90
add esp, 8
xor esi, esi
jmp 0x422c95
lea eax, [ebp - 0x22c]
push 0x8c
push eax
call fcn.004077c0
mov ecx, eax
call fcn.0043a7c0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x422b86
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00476d20
mov ecx, dword [ebp - 0x218]
mov esi, eax
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x422bb2
inc ecx
push ecx
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x22c]
call fcn.00407e30
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
call fcn.0047ab90
test esi, esi
je 0x422c90
lea eax, [ebp - 0x1fc]
push 0x8d
push eax
call fcn.004077c0
mov ecx, eax
call fcn.0043a7c0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x422bfe
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00476d20
mov ecx, dword [ebp - 0x1e8]
mov esi, eax
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x422c2a
inc ecx
push ecx
push dword [ebp - 0x1fc]
lea ecx, [ebp - 0x1fc]
call fcn.00407e30
mov dword [ebp - 0x1e8], 0xf
mov dword [ebp - 0x1ec], 0
mov byte [ebp - 0x1fc], 0
test esi, esi
je 0x422c90
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x422c90
mov eax, dword [ecx]
call dword [eax + 0x30]
mov esi, eax
test esi, esi
je 0x422c90
call fcn.00402160
mov eax, dword [esi + 0x20]
add eax, 8
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004db07d
mov ecx, dword [ebp - 0x23c]
add esp, 8
add ecx, 0x30
push eax
call fcn.00403fe0
lea ecx, [ebp - 0x22c]
call fcn.004024b0
mov esi, 1
mov eax, dword [ebp - 0x254]
mov dword [ebp - method.TiXmlDocument.virtual_0], vtable.TiXmlDocument.0
cmp eax, 0x679110
je 0x422cb5
push eax
call fcn.00474de6
add esp, 4
lea ecx, [ebp - 0x288]
call fcn.004763b0
lea ecx, [ebp - 0x238]
call fcn.00405970
mov ecx, dword [ebp - 0x200]
cmp ecx, 0x10
jb 0x422ce9
inc ecx
push ecx
push dword [ebp - 0x214]
lea ecx, [ebp - 0x214]
call fcn.00407e30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00474d9e
mov esp, ebp
pop ebp
ret 8