Function at 0x45e747
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x68]
push ebp
mov ebp, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x58]
push edi
cmp byte [0x507620], 0
jne 0x45e2a1
call fcn.00471870
cmp byte [0x507629], 0
je 0x45e30d
cmp ebx, 8
jb 0x45e30d
mov ecx, dword [esi + 0x30]
mov edi, dword [esp + 0x70]
not ecx
cmp ecx, 8
jbe 0x45e305
mov ebx, dword [esp + 0x58]
mov eax, 0
push dword [esp + 0x68]
shr ebx, 2
not bl
and bl, 1
push ebp
cmovne eax, edi
push eax
push esi
call fcn.0047624e
add dword [esi + 0x30], 8
add esp, 0x10
mov ecx, dword [esi + 0x30]
add ebp, 0x200
movzx eax, bl
mov ebx, dword [esp + 0x74]
shl eax, 9
sub ebx, 8
add edi, eax
mov dword [esp + 0x74], ebx
cmp ebx, 8
jae 0x45e2b6
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebp
cmp byte [0x507620], 0
jne 0x45e31b
call fcn.00471870
cmp byte [0x507621], 0
je 0x45e387
cmp ebx, 4
jb 0x45e387
mov ecx, dword [esi + 0x30]
mov edi, dword [esp + 0x70]
not ecx
cmp ecx, 4
jbe 0x45e37f
mov ebx, dword [esp + 0x58]
mov eax, 0
push dword [esp + 0x68]
shr ebx, 2
not bl
and bl, 1
push ebp
cmovne eax, edi
push eax
push esi
call fcn.00478320
add dword [esi + 0x30], 4
add esp, 0x10
mov ecx, dword [esi + 0x30]
add ebp, 0x100
movzx eax, bl
mov ebx, dword [esp + 0x74]
shl eax, 8
sub ebx, 4
add edi, eax
mov dword [esp + 0x74], ebx
cmp ebx, 4
jae 0x45e330
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebp
test ebx, ebx
je 0x45e962
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], edi
test eax, eax
jle 0x45e633
mov ebx, dword [esp + 0x38]
dec eax
shr eax, 1
mov ebp, ecx
inc eax
mov ecx, edx
mov edx, edi
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0x28]
add ecx, dword [esp + 0x3c]
add ebp, ebx
mov ebx, dword [esp + 0x20]
xor edx, ebp
rol edx, 0x10
xor edi, ecx
add ebx, edx
rol edi, 0x10
mov eax, ebx
xor eax, dword [esp + 0x38]
rol eax, 0xc
add ebp, eax
xor edx, ebp
rol edx, 8
add ebx, edx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x24]
add edx, edi
mov dword [esp + 0x20], ebx
xor ebx, eax
mov eax, edx
xor eax, dword [esp + 0x3c]
rol eax, 0xc
add ecx, eax
rol ebx, 7
xor edi, ecx
mov dword [esp + 0x48], ecx
rol edi, 8
add edx, edi
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x2c]
mov ecx, edx
xor ecx, eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x1c]
add edx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
xor edi, edx
rol edi, 0x10
add eax, edi
rol ecx, 7
mov dword [esp + 0x18], eax
add ebp, ecx
xor eax, dword [esp + 0x34]
rol eax, 0xc
add edx, eax
xor edi, edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x18]
rol edi, 8
add edx, edi
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], edx
xor edx, eax
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x44]
xor edi, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
rol edi, 0x10
add eax, edi
rol edx, 7
mov dword [esp + 0x14], eax
xor eax, dword [esp + 0x44]
rol eax, 0xc
add dword [esp + 0x10], eax
xor edi, dword [esp + 0x10]
rol edi, 8
add dword [esp + 0x14], edi
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x14]
xor edi, eax
mov eax, dword [esp + 0x30]
xor eax, ebp
rol edi, 7
rol eax, 0x10
add dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
xor eax, ecx
mov ecx, dword [esp + 0x30]
rol eax, 0xc
add ebp, eax
add dword [esp + 0x1c], edi
xor ecx, ebp
add dword [esp + 0x10], ebx
rol ecx, 8
add dword [esp + 0x18], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
xor ecx, eax
mov eax, dword [esp + 0x40]
rol ecx, 7
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x48]
add ecx, edx
xor eax, ecx
rol eax, 0x10
add dword [esp + 0x14], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
xor eax, edx
mov edx, dword [esp + 0x40]
rol eax, 0xc
add ecx, eax
xor edx, ecx
mov dword [esp + 0x48], ecx
rol edx, 8
add dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
xor esi, eax
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x28]
xor eax, dword [esp + 0x1c]
rol eax, 0x10
add dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
xor eax, edi
mov dword [esp + 0x34], esi
mov edi, dword [esp + 0x28]
rol eax, 0xc
add dword [esp + 0x1c], eax
xor edi, dword [esp + 0x1c]
rol edi, 8
add dword [esp + 0x20], edi
mov esi, dword [esp + 0x20]
xor esi, eax
rol dword [esp + 0x34], 7
mov eax, dword [esp + 0x2c]
xor eax, dword [esp + 0x10]
rol eax, 0x10
add dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
xor eax, ebx
rol esi, 7
mov ebx, dword [esp + 0x2c]
rol eax, 0xc
add dword [esp + 0x10], eax
xor ebx, dword [esp + 0x10]
rol ebx, 8
add dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x24]
xor ebx, eax
mov dword [esp + 0x28], edi
rol ebx, 7
sub dword [esp + 0x50], 1
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], ebx
jne 0x45e420
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x6c]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x58]
cmp eax, 5
ja case.default.0x45e640
jmp dword [eax*4 + 0x45e97c]
mov eax, dword [esi]
add eax, ecx
test ebp, ebp
je 0x45e652
mov dword [ebp], eax
mov eax, dword [esi + 4]
lea ecx, [ebp + 4]
add eax, edx
test ecx, ecx
je 0x45e660
mov dword [ecx], eax
mov eax, dword [esi + 8]
lea ecx, [ebp + 8]
add eax, dword [esp + 0x1c]
test ecx, ecx
je 0x45e670
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
lea ecx, [ebp + 0xc]
add eax, dword [esp + 0x10]
test ecx, ecx
je 0x45e680
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
lea ecx, [ebp + 0x10]
add eax, dword [esp + 0x38]
test ecx, ecx
je 0x45e690
mov dword [ecx], eax
mov eax, dword [esi + 0x14]
lea ecx, [ebp + 0x14]
add eax, dword [esp + 0x3c]
test ecx, ecx
je 0x45e6a0
mov dword [ecx], eax
mov eax, dword [esi + 0x18]
lea ecx, [ebp + 0x18]
add eax, dword [esp + 0x34]
test ecx, ecx
je 0x45e6b0
mov dword [ecx], eax
mov eax, dword [esi + 0x1c]
lea ecx, [ebp + 0x1c]
add eax, dword [esp + 0x44]
test ecx, ecx
je 0x45e6c0
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
lea ecx, [ebp + 0x20]
add eax, dword [esp + 0x20]
test ecx, ecx
je 0x45e6d0
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
lea ecx, [ebp + 0x24]
add eax, dword [esp + 0x24]
test ecx, ecx
je 0x45e6e0
mov dword [ecx], eax
mov eax, dword [esi + 0x28]
lea ecx, [ebp + 0x28]
add eax, dword [esp + 0x18]
test ecx, ecx
je 0x45e6f0
mov dword [ecx], eax
mov eax, dword [esi + 0x2c]
lea ecx, [ebp + 0x2c]
add eax, dword [esp + 0x14]
test ecx, ecx
je 0x45e700
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
lea ecx, [ebp + 0x30]
add eax, edi
test ecx, ecx
je 0x45e70e
mov dword [ecx], eax
mov eax, dword [esi + 0x34]
lea ecx, [ebp + 0x34]
add eax, dword [esp + 0x28]
test ecx, ecx
je 0x45e71e
mov dword [ecx], eax
mov eax, dword [esi + 0x38]
lea ecx, [ebp + 0x38]
add eax, dword [esp + 0x2c]
test ecx, ecx
je 0x45e72e
mov dword [ecx], eax
mov eax, dword [esi + 0x3c]
lea ecx, [ebp + 0x3c]
add eax, dword [esp + 0x30]
test ecx, ecx
je case.default.0x45e640
mov dword [ecx], eax
jmp case.default.0x45e640
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], 0
test eax, eax
je 0x45e779
mov edi, dword [eax]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x40]
jmp 0x45e779
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], 0
test eax, eax
je 0x45e779
mov ebx, dword [eax]
mov dword [esp + 0x50], ebx
add ecx, dword [esi]
xor ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x74]
test ebp, ebp
je 0x45e78a
mov dword [ebp], ecx
lea ecx, [eax + 4]
mov dword [esp + 0x74], 0
test ecx, ecx
je 0x45e79f
mov ecx, dword [ecx]
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 4]
add ecx, edx
lea edx, [ebp + 4]
xor ecx, dword [esp + 0x74]
test edx, edx
je 0x45e7b1
mov dword [edx], ecx
lea ecx, [eax + 8]
xor edx, edx
test ecx, ecx
je 0x45e7bc
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
add ecx, dword [esp + 0x1c]
xor ecx, edx
lea edx, [ebp + 8]
test edx, edx
je 0x45e7ce
mov dword [edx], ecx
lea ecx, [eax + 0xc]
xor edx, edx
test ecx, ecx
je 0x45e7d9
mov edx, dword [ecx]
mov ecx, dword [esi + 0xc]
add ecx, dword [esp + 0x10]
xor ecx, edx
lea edx, [ebp + 0xc]
test edx, edx
je 0x45e7eb
mov dword [edx], ecx
lea ecx, [eax + 0x10]
xor edx, edx
test ecx, ecx
je 0x45e7f6
mov edx, dword [ecx]
mov ecx, dword [esi + 0x10]
add ecx, dword [esp + 0x38]
xor ecx, edx
lea edx, [ebp + 0x10]
test edx, edx
je 0x45e808
mov dword [edx], ecx
lea ecx, [eax + 0x14]
xor edx, edx
test ecx, ecx
je 0x45e813
mov edx, dword [ecx]
mov ecx, dword [esi + 0x14]
add ecx, dword [esp + 0x3c]
xor ecx, edx
lea edx, [ebp + 0x14]
test edx, edx
je 0x45e825
mov dword [edx], ecx
lea ecx, [eax + 0x18]
xor edx, edx
test ecx, ecx
je 0x45e830
mov edx, dword [ecx]
mov ecx, dword [esi + 0x18]
add ecx, dword [esp + 0x34]
xor ecx, edx
lea edx, [ebp + 0x18]
test edx, edx
je 0x45e842
mov dword [edx], ecx
lea ecx, [eax + 0x1c]
xor edx, edx
test ecx, ecx
je 0x45e84d
mov edx, dword [ecx]
mov ecx, dword [esi + 0x1c]
add ecx, dword [esp + 0x44]
xor ecx, edx
lea edx, [ebp + 0x1c]
test edx, edx
je 0x45e85f
mov dword [edx], ecx
lea ecx, [eax + 0x20]
xor edx, edx
test ecx, ecx
je 0x45e86a
mov edx, dword [ecx]
mov ecx, dword [esi + 0x20]
add ecx, dword [esp + 0x20]
xor ecx, edx
lea edx, [ebp + 0x20]
test edx, edx
je 0x45e87c
mov dword [edx], ecx
lea ecx, [eax + 0x24]
xor edx, edx
test ecx, ecx
je 0x45e887
mov edx, dword [ecx]
mov ecx, dword [esi + 0x24]
add ecx, dword [esp + 0x24]
xor ecx, edx
lea edx, [ebp + 0x24]
test edx, edx
je 0x45e899
mov dword [edx], ecx
lea ecx, [eax + 0x28]
xor edx, edx
test ecx, ecx
je 0x45e8a4
mov edx, dword [ecx]
mov ecx, dword [esi + 0x28]
add ecx, dword [esp + 0x18]
xor ecx, edx
lea edx, [ebp + 0x28]
test edx, edx
je 0x45e8b6
mov dword [edx], ecx
lea ecx, [eax + 0x2c]
xor edx, edx
test ecx, ecx
je 0x45e8c1
mov edx, dword [ecx]
mov ecx, dword [esi + 0x2c]
add ecx, dword [esp + 0x14]
xor ecx, edx
lea edx, [ebp + 0x2c]
test edx, edx
je 0x45e8d3
mov dword [edx], ecx
lea ecx, [eax + 0x30]
xor edx, edx
test ecx, ecx
je 0x45e8de
mov edx, dword [ecx]
mov ecx, dword [esi + 0x30]
add ecx, edi
xor ecx, edx
lea edx, [ebp + 0x30]
test edx, edx
je 0x45e8ee
mov dword [edx], ecx
lea ecx, [eax + 0x34]
xor edx, edx
test ecx, ecx
je 0x45e8f9
mov edx, dword [ecx]
mov ecx, dword [esi + 0x34]
add ecx, dword [esp + 0x28]
xor ecx, edx
lea edx, [ebp + 0x34]
test edx, edx
je 0x45e90b
mov dword [edx], ecx
lea ecx, [eax + 0x38]
xor edx, edx
test ecx, ecx
je 0x45e916
mov edx, dword [ecx]
mov ecx, dword [esi + 0x38]
add ecx, dword [esp + 0x2c]
xor ecx, edx
lea edx, [ebp + 0x38]
test edx, edx
je 0x45e928
mov dword [edx], ecx
lea ecx, [eax + 0x3c]
xor edx, edx
test ecx, ecx
je 0x45e933
mov edx, dword [ecx]
mov ecx, dword [esi + 0x3c]
add ecx, dword [esp + 0x30]
xor ecx, edx
lea edx, [ebp + 0x3c]
test edx, edx
je 0x45e945
mov dword [edx], ecx
add eax, 0x40
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x60]
add ebp, 0x40
mov dword [esp + 0x6c], ebp
add dword [eax], 1
jne 0x45e962
mov eax, dword [esp + 0x64]
inc dword [eax]
mov eax, ebx
dec ebx
mov dword [esp + 0x74], ebx
test eax, eax
jne 0x45e293
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret