Function at 0x452210
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
mov cl, byte [ebp + 0x3030]
push 4
push 0xffffffffffffffff
mov byte [esp + 0x40], cl
test eax, eax
lea edi, [esi + 0x10]
push edi
mov ecx, ebx
mov dword [esp + 0x28], eax
seta byte [esp + 0x1d]
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x452274
mov eax, dword [edi]
movzx ecx, byte [esi + 0x13]
mov edx, eax
mov dword [esp + 0x24], eax
shl edx, 0x10
and eax, 0xff00
add edx, eax
xor eax, eax
mov ah, byte [esp + 0x26]
shl edx, 8
add edx, eax
add edx, ecx
mov dword [edi], edx
mov eax, dword [edi]
mov cl, byte [esp + 0x11]
test eax, eax
seta byte [esp + 0x13]
test eax, eax
je 0x4522a0
test cl, cl
je 0x45229c
cmp eax, dword [esp + 0x1c]
je 0x45229c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret 0xc
test eax, eax
jne 0x4522b0
test cl, cl
je 0x4522ac
mov edx, dword [esp + 0x1c]
mov dword [edi], edx
jmp 0x4522ba
test eax, eax
je 0x4522ba
test cl, cl
jne 0x4522ba
mov dword [edi], 0
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x1a]
push eax
mov ecx, ebx
call fcn.0044fd20
mov al, byte [esp + 0x12]
cmp al, 0x59
jne 0x4522d8
mov byte [esi + 0x20], 1
jmp 0x4522e0
cmp al, 0x4e
jne 0x4522e0
mov byte [esi + 0x20], 0
push 4
push 0xffffffffffffffff
push esi
mov ecx, ebx
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x452318
mov eax, dword [esi]
mov dword [esp + 0x24], eax
xor edx, edx
mov dh, byte [esp + 0x26]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 3]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [esi], ecx
push 4
push 0xffffffffffffffff
lea edi, [esi + 4]
push edi
mov ecx, ebx
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x452353
mov eax, dword [edi]
mov dword [esp + 0x24], eax
xor edx, edx
mov dh, byte [esp + 0x26]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [edi], ecx
push 4
push 0xffffffffffffffff
lea edi, [esi + 8]
push edi
mov ecx, ebx
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x45238e
mov eax, dword [edi]
mov dword [esp + 0x24], eax
xor edx, edx
mov dh, byte [esp + 0x26]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 0xb]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [edi], ecx
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041640f
add esp, 4
cmp byte [esi + 0x20], 0
mov dword [esp + 0x1c], eax
je 0x4523ee
push 4
push 0xffffffffffffffff
lea edi, [esi + 0x14]
push edi
mov ecx, ebx
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x4523ee
mov eax, dword [edi]
mov dword [esp + 0x24], eax
xor edx, edx
mov dh, byte [esp + 0x26]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 0x17]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [edi], ecx
push 4
push 0xffffffffffffffff
lea edi, [esi + 0x18]
push edi
mov ecx, ebx
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x452429
mov eax, dword [edi]
mov dword [esp + 0x24], eax
xor edx, edx
mov dh, byte [esp + 0x26]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 0x1b]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [edi], ecx
cmp byte [esi + 0x20], 0
je 0x45248b
mov eax, dword [esi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041640f
mov ecx, dword [esi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x24], eax
call fcn.0044fd20
mov eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041640f
mov ecx, dword [esi]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x28], eax
call fcn.0044fd20
mov eax, dword [esi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041640f
mov ecx, dword [esi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x2c], eax
call fcn.0044fd20
mov eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041640f
mov ecx, dword [esi]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x30], eax
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x452596
xor eax, eax
cmp dword [esi], eax
jbe 0x452596
lea esp, [esp]
cmp byte [esi + 0x20], 0
je 0x452549
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + eax*4]
lea edi, [edx + eax*4]
mov edx, ecx
shl edx, 0x10
mov dword [esp + 0x24], ecx
and ecx, 0xff00
add edx, ecx
movzx ecx, byte [edi + 3]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x26]
add edx, ecx
mov dword [edi], edx
mov edx, dword [esi + 0x28]
movzx cx, byte [edx + eax*2 + 1]
lea edi, [edx + eax*2]
xor edx, edx
mov dh, byte [edi]
xor cx, dx
mov word [edi], cx
mov ecx, dword [esi + 0x2c]
lea edi, [ecx + eax*4]
mov ecx, dword [edi]
mov edx, ecx
shl edx, 0x10
mov dword [esp + 0x24], ecx
and ecx, 0xff00
add edx, ecx
movzx ecx, byte [edi + 3]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x26]
add edx, ecx
mov dword [edi], edx
mov edx, dword [esi + 0x30]
movzx cx, byte [edx + eax*2 + 1]
lea edi, [edx + eax*2]
xor edx, edx
mov dh, byte [edi]
add eax, 1
xor cx, dx
mov word [edi], cx
cmp eax, dword [esi]
jb 0x452500
cmp byte [esi + 0x20], 0
je 0x4525b9
mov eax, dword [esi + 0x14]
push eax
call fcn.0041640f
mov ecx, dword [esi + 0x14]
add esp, 4
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x3c], eax
call fcn.0044fd20
mov edx, dword [esi + 0x18]
push edx
call fcn.0041640f
mov ecx, dword [esi + 0x18]
add esp, 4
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x40], eax
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x45260f
mov edi, dword [esi + 0x40]
xor eax, eax
test dword [esi + 0x18], 0xfffffffe
jbe 0x45260f
jmp 0x4525f0
movzx dx, byte [edi + eax*2 + 1]
xor ecx, ecx
mov ch, byte [edi + eax*2]
add eax, 1
xor dx, cx
mov word [edi + eax*2 - 2], dx
mov edx, dword [esi + 0x18]
shr edx, 1
cmp eax, edx
jb 0x4525f0
cmp byte [esi + 0x20], 0
je 0x4528ec
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041640f
mov ecx, dword [esi + 8]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x54], eax
call fcn.0044fd20
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x1c]
add edx, edx
add edx, edx
push edx
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x4526bd
xor eax, eax
cmp dword [esi + 8], eax
jbe 0x4526bd
lea esp, [esp]
mov ecx, dword [esi + 0x54]
movzx dx, byte [ecx + eax*2 + 1]
lea edi, [ecx + eax*2]
xor ecx, ecx
mov ch, byte [edi]
add eax, 1
xor dx, cx
mov word [edi], dx
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + eax*4 - 4]
mov edx, ecx
mov dword [esp + 0x24], ecx
shl edx, 0x10
and ecx, 0xff00
add edx, ecx
movzx ecx, byte [edi + eax*4 - 1]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x26]
add edx, ecx
mov dword [edi + eax*4 - 4], edx
cmp eax, dword [esi + 8]
jb 0x452670
cmp byte [esi + 0x20], 0
je 0x4528ec
xor edi, edi
cmp dword [esi + 8], edi
mov dword [esp + 0x24], edi
jbe 0x4528ec
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov edi, edi
mov eax, dword [esi + 0x54]
movzx eax, word [eax + edi]
lea ecx, [eax + eax*2]
mov edx, dword [ebp + ecx*4 + 0x40]
mov ebx, dword [ebp + ecx*4 + 0x3c]
lea eax, [ebp + ecx*4 + 0x38]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x20], edx
xor ecx, ecx
add eax, ebx
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x28], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0041640f
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi]
add esp, 4
cmp byte [esp + 0x11], 0
lea edx, [ecx + ecx*2]
mov dword [ebp + edx*4 + 0x40], eax
je 0x45276c
xor eax, eax
test ebx, ebx
jbe 0x45275f
lea ebx, [ebx]
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp + edx*4 + 0x40]
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, ebx
jb 0x452740
mov eax, dword [esp + 0x20]
push eax
call fcn.00416414
add esp, 4
mov ecx, dword [esi + 0x54]
movzx eax, word [ecx + edi]
mov ecx, dword [esp + 0x18]
lea edx, [eax + eax*2]
lea eax, [ebp + edx*4 + 0x3c]
mov edx, dword [ecx]
add dword [eax], edx
cmp dword [ecx], 0
mov dword [esp + 0x20], 0
jbe 0x4528cc
add ebx, ebx
add ebx, ebx
mov ecx, dword [esp + 0x30]
push 4
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x4527d9
mov ecx, dword [esp + 0x14]
mov eax, ecx
shl eax, 0x10
mov edx, ecx
and edx, 0xff00
add eax, edx
xor edx, edx
mov dh, byte [esp + 0x16]
shl eax, 8
shr ecx, 0x18
add eax, edx
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x4527dd
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x452806
cmp byte [esp + 0x11], 0
je 0x45280d
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x54]
add ecx, eax
movzx eax, word [edx + edi]
lea eax, [eax + eax*2]
mov edx, dword [ebp + eax*4 + 0x40]
mov dword [ebx + edx], ecx
jmp 0x4528b2
cmp byte [esp + 0x11], 0
jne 0x452823
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp + edx*4 + 0x40]
mov dword [ebx + ecx], eax
jmp 0x4528b2
mov edx, dword [esi + 0x30]
movzx ecx, word [edx + eax*2]
mov edx, dword [esi + 0x2c]
push ecx
mov ecx, dword [edx + eax*4]
add ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x28]
push ecx
movzx ecx, word [edx + eax*2]
mov edx, dword [esi + 0x24]
push ecx
mov ecx, dword [edx + eax*4]
add ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x54]
push ecx
movzx ecx, word [edx + edi]
lea ecx, [ecx + ecx*2]
mov edx, dword [ebp + ecx*4 + 0x40]
mov ecx, dword [esp + 0x38]
push edx
push ecx
push eax
mov ecx, ebp
call fcn.00451e50
test al, al
je 0x45289a
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0x14]
mov word [edx + eax*2], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [esp + 0x14]
mov word [ecx + edx*2], 0
mov eax, dword [esi + 0x54]
movzx eax, word [eax + edi]
lea ecx, [eax + eax*2]
add dword [ebp + ecx*4 + 0x3c], 0xffffffff
add dword [esi + 4], 0xffffffff
lea eax, [ebp + ecx*4 + 0x3c]
jmp 0x4528b5
mov eax, dword [esi + 0x54]
movzx eax, word [eax + edi]
mov edx, dword [esi + 0x10]
add edx, dword [esp + 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [ebp + ecx*4 + 0x40]
mov dword [ebx + eax], edx
add ebx, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add eax, 1
cmp eax, dword [ecx]
mov dword [esp + 0x20], eax
jb 0x452797
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], 4
add eax, 1
add edi, 2
cmp eax, dword [esi + 8]
mov dword [esp + 0x24], eax
jb 0x4526e0
mov ebx, dword [esp + 0x30]
push 4
push 0xffffffffffffffff
lea edi, [esi + 0xc]
push edi
mov ecx, ebx
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x452927
mov eax, dword [edi]
movzx ecx, byte [esi + 0xf]
mov edx, eax
mov dword [esp + 0x30], eax
shl edx, 0x10
and eax, 0xff00
add edx, eax
xor eax, eax
mov ah, byte [esp + 0x32]
shl edx, 8
add edx, eax
add edx, ecx
mov dword [edi], edx
cmp dword [edi], 0
je 0x452ade
push 4
push 0xffffffffffffffff
lea ebp, [esi + 0x1c]
push ebp
mov ecx, ebx
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x45296d
mov eax, dword [ebp]
movzx ecx, byte [esi + 0x1f]
mov edx, eax
mov dword [esp + 0x30], eax
shl edx, 0x10
and eax, 0xff00
add edx, eax
xor eax, eax
mov ah, byte [esp + 0x32]
shl edx, 8
add edx, eax
add edx, ecx
mov dword [ebp], edx
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041640f
mov ecx, dword [edi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x58], eax
call fcn.0044fd20
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041640f
mov ecx, dword [edi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x34], eax
call fcn.0044fd20
mov eax, dword [edi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041640f
mov ecx, dword [edi]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x38], eax
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x452a8d
xor eax, eax
cmp dword [edi], eax
jbe 0x452a8d
lea ecx, [ecx]
mov edx, dword [esi + 0x38]
lea ecx, [edx + eax*2]
movzx dx, byte [ecx + 1]
mov dword [esp + 0x28], ebx
xor ebx, ebx
mov bh, byte [ecx]
xor dx, bx
mov word [ecx], dx
mov ecx, dword [esi + 0x34]
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
mov ebp, ecx
mov dword [esp + 0x30], ecx
shl ebp, 0x10
and ecx, 0xff00
add ebp, ecx
movzx ecx, byte [edx + 3]
shl ebp, 8
add ebp, ecx
xor ecx, ecx
mov ch, byte [esp + 0x32]
mov ebx, dword [esp + 0x28]
add ebp, ecx
mov dword [edx], ebp
mov edx, dword [esi + 0x58]
mov ecx, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ebp, ecx
mov dword [esp + 0x30], ecx
shl ebp, 0x10
and ecx, 0xff00
add ebp, ecx
movzx ecx, byte [edx + 3]
shl ebp, 8
add ebp, ecx
xor ecx, ecx
mov ch, byte [esp + 0x32]
add eax, 1
add ebp, ecx
mov dword [edx], ebp
cmp eax, dword [edi]
jb 0x452a10
mov edx, dword [esi + 0x1c]
lea edi, [esi + 0x1c]
push edx
call fcn.0041640f
mov ecx, dword [edi]
add esp, 4
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x44], eax
call fcn.0044fd20
cmp byte [esp + 0x38], 0
je 0x452ade
mov esi, dword [esi + 0x44]
xor eax, eax
test dword [edi], 0xfffffffe
jbe 0x452ade
movzx dx, byte [esi + eax*2 + 1]
xor ecx, ecx
mov ch, byte [esi + eax*2]
add eax, 1
xor dx, cx
mov word [esi + eax*2 - 2], dx
mov edx, dword [edi]
shr edx, 1
cmp eax, edx
jb 0x452ac0
mov eax, dword [esp + 0x1c]
push eax
call fcn.00416414
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0xc