Function at 0x457950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp edi, 0x10
ja 0x457969
mov edi, 0x10
jmp 0x45797f
cmp edi, 0x20
jb 0x457975
mov edi, 0x20
jmp 0x45797f
cmp edi, 0x18
je 0x45797f
mov edi, 0x18
mov ebx, edi
shr ebx, 2
lea eax, [ebx + 6]
lea esi, [ecx + 0x3c]
mov dword [ecx + 0x38], eax
mov ecx, dword [ebp + 8]
push edi
push ecx
push esi
call fcn.0047322e
lea edx, [ebx*4]
sub edx, edi
push edx
lea eax, [esi + edi]
push 0
push eax
call sub.MSVCR100.dll_memset
lea eax, [edi + 3]
mov ecx, eax
and ecx, 3
sub eax, ecx
push eax
push esi
push esi
call fcn.00439000
add esp, 0x24
cmp edi, 0x10
je 0x457c82
cmp edi, 0x18
je 0x457b63
cmp edi, 0x20
jne 0x457d8c
mov ecx, dword [esi + 0x1c]
mov eax, dword [0x593600]
mov edi, dword [0x593608]
mov edx, ecx
shr edx, 0x18
movzx eax, byte [eax + edx*4]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov edx, dword [edi + edx*4]
mov edi, dword [0x593604]
and edx, 0xff0000
xor eax, edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [edi + edx*4]
and edx, 0xff000000
xor eax, edx
mov edx, dword [0x5935fc]
movzx ecx, cl
mov ecx, dword [edx + ecx*4]
mov edx, dword [esi + 0xc]
and ecx, 0xff00
xor eax, ecx
xor eax, dword [esi]
mov ecx, dword [esi + 4]
xor eax, dword [0x4c64b8]
mov edi, 4
xor ecx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
xor eax, ecx
xor edx, eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
lea esp, [esp]
mov ecx, dword [esi + 0x2c]
mov ebx, dword [0x5935fc]
mov eax, ecx
shr eax, 0x10
movzx edx, al
mov eax, dword [0x593608]
mov eax, dword [eax + edx*4]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov edx, dword [ebx + edx*4]
mov ebx, dword [0x593604]
and edx, 0xff00
and eax, 0xff0000
xor eax, edx
mov edx, ecx
shr edx, 0x18
mov edx, dword [ebx + edx*4]
and edx, 0xff000000
xor eax, edx
mov edx, dword [0x593600]
movzx ecx, cl
movzx ecx, byte [edx + ecx*4]
mov edx, dword [esi + 0x1c]
xor eax, ecx
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x30], eax
xor ecx, eax
mov eax, dword [esi + 0x18]
xor eax, ecx
xor edx, eax
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x3c]
mov edx, dword [0x593600]
mov ebx, dword [0x593608]
add esi, 0x20
mov eax, ecx
shr eax, 0x18
movzx eax, byte [edx + eax*4]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov edx, dword [ebx + edx*4]
mov ebx, dword [0x593604]
and edx, 0xff0000
xor eax, edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [ebx + edx*4]
and edx, 0xff000000
xor eax, edx
mov edx, dword [0x5935fc]
movzx ecx, cl
mov ecx, dword [edx + ecx*4]
and ecx, 0xff00
xor eax, ecx
xor eax, dword [edi + 0x4c64b8]
add edi, 4
xor eax, dword [esi]
mov dword [esi + 0x20], eax
mov ecx, dword [esi + 4]
xor ecx, eax
mov dword [esi + 0x24], ecx
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + 0x28], eax
mov edx, dword [esi + 0xc]
xor edx, eax
mov dword [esi + 0x2c], edx
cmp edi, 0x1c
jne 0x457a60
jmp 0x457d8c
mov ecx, dword [esi + 0x14]
mov edx, dword [0x593600]
mov edi, dword [0x593608]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [edx + eax*4]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov edx, dword [edi + edx*4]
mov edi, dword [0x593604]
and edx, 0xff0000
xor eax, edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [edi + edx*4]
and edx, 0xff000000
xor eax, edx
mov edx, dword [0x5935fc]
movzx ecx, cl
mov ecx, dword [edx + ecx*4]
mov edx, dword [esi + 0xc]
and ecx, 0xff00
xor eax, ecx
xor eax, dword [esi]
mov ecx, dword [esi + 4]
xor eax, dword [0x4c64b8]
mov edi, 4
xor ecx, eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
xor eax, ecx
xor edx, eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
mov eax, dword [esi + 0x10]
xor eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x28], eax
xor ecx, eax
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0x2c]
mov eax, dword [0x593600]
mov ebx, dword [0x593608]
add esi, 0x18
mov edx, ecx
shr edx, 0x18
movzx eax, byte [eax + edx*4]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov edx, dword [ebx + edx*4]
mov ebx, dword [0x593604]
and edx, 0xff0000
xor eax, edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [ebx + edx*4]
and edx, 0xff000000
xor eax, edx
mov edx, dword [0x5935fc]
movzx ecx, cl
mov ecx, dword [edx + ecx*4]
and ecx, 0xff00
xor eax, ecx
xor eax, dword [edi + 0x4c64b8]
add edi, 4
xor eax, dword [esi]
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 4]
xor ecx, eax
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + 0x20], eax
mov edx, dword [esi + 0xc]
xor edx, eax
mov dword [esi + 0x24], edx
cmp edi, 0x20
jne 0x457be3
jmp 0x457d8c
mov ecx, dword [esi + 0xc]
mov edx, dword [0x593600]
mov edi, dword [0x593608]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [edx + eax*4]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov edx, dword [edi + edx*4]
mov edi, dword [0x593604]
and edx, 0xff0000
xor eax, edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [edi + edx*4]
mov edi, dword [0x5935fc]
and edx, 0xff000000
xor eax, edx
movzx edx, cl
mov edx, dword [edi + edx*4]
and edx, 0xff00
xor eax, edx
xor eax, dword [esi]
mov edx, dword [esi + 4]
xor eax, dword [0x4c64b8]
lea edi, [esi + 0x10]
xor edx, eax
mov dword [edi], eax
mov eax, dword [esi + 8]
xor eax, edx
mov dword [esi + 0x18], eax
xor eax, ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x1c], eax
mov esi, 4
mov eax, edi
mov edx, dword [eax + 0xc]
mov edi, dword [0x593600]
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [edi + ecx*4]
mov ebx, edx
shr ebx, 8
movzx edi, bl
mov ebx, dword [0x593608]
mov edi, dword [ebx + edi*4]
mov ebx, edx
and edi, 0xff0000
xor ecx, edi
shr ebx, 0x10
movzx edi, bl
mov ebx, dword [0x593604]
mov edi, dword [ebx + edi*4]
movzx edx, dl
and edi, 0xff000000
xor ecx, edi
mov edi, dword [0x5935fc]
mov edx, dword [edi + edx*4]
and edx, 0xff00
xor ecx, edx
xor ecx, dword [esi + 0x4c64b8]
lea edi, [eax + 0x10]
xor ecx, dword [eax]
add esi, 4
mov dword [edi], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x1c], edx
cmp esi, 0x28
jne 0x457d01
mov ecx, dword [ebp - 4]
mov edx, 1
cmp dword [ecx + 0x30], edx
jne 0x457fe0
mov esi, dword [ecx + 0x38]
add esi, esi
xor edi, edi
add esi, esi
lea eax, [ecx + 0x3c]
je 0x457e0e
lea edx, [eax + esi*4 + 8]
lea ecx, [eax + 8]
mov ebx, dword [ecx - 8]
mov dword [ebp + 0xc], ebx
mov ebx, dword [edx - 8]
mov dword [ecx - 8], ebx
mov ebx, dword [ebp + 0xc]
mov dword [edx - 8], ebx
mov ebx, dword [ecx - 4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [edx - 4]
mov dword [ecx - 4], ebx
mov ebx, dword [ebp + 0xc]
mov dword [edx - 4], ebx
mov ebx, dword [ecx]
mov dword [ebp + 0xc], ebx
mov ebx, dword [edx]
mov dword [ecx], ebx
mov ebx, dword [ebp + 0xc]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [edx + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [ebp + 0xc]
mov dword [edx + 4], ebx
add edi, 4
sub esi, 4
add ecx, 0x10
sub edx, 0x10
cmp edi, esi
jb 0x457db2
mov ecx, dword [ebp - 4]
mov edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ecx + 0x38], edx
jbe 0x457fe0
lea ebx, [ebx]
mov ecx, dword [eax + 0x10]
mov esi, dword [0x593600]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov edx, dword [esi + edx*4]
mov ebx, ecx
add eax, 0x10
and edx, 0xff
shr ecx, 0x18
mov ecx, dword [esi + ecx*4]
shr ebx, 0x10
movzx edi, bl
mov edi, dword [esi + edi*4]
mov ebx, dword [0x593614]
mov edx, dword [ebx + edx*4]
mov ebx, dword [0x593610]
and ecx, 0xff
and edi, 0xff
xor edx, dword [ebx + edi*4]
mov edi, dword [0x59360c]
xor edx, dword [edi + ecx*4]
movzx ecx, byte [eax]
mov ecx, dword [esi + ecx*4]
mov esi, dword [0x593618]
and ecx, 0xff
xor edx, dword [esi + ecx*4]
mov ecx, dword [eax + 4]
mov dword [eax], edx
mov esi, dword [0x593600]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov edx, dword [esi + edx*4]
mov ebx, ecx
and edx, 0xff
shr ebx, 0x10
shr ecx, 0x18
mov ecx, dword [esi + ecx*4]
movzx edi, bl
mov edi, dword [esi + edi*4]
mov ebx, dword [0x593614]
mov edx, dword [ebx + edx*4]
mov ebx, dword [0x593610]
and ecx, 0xff
and edi, 0xff
xor edx, dword [ebx + edi*4]
mov edi, dword [0x59360c]
xor edx, dword [edi + ecx*4]
movzx ecx, byte [eax + 4]
mov ecx, dword [esi + ecx*4]
mov esi, dword [0x593618]
and ecx, 0xff
xor edx, dword [esi + ecx*4]
mov ecx, dword [eax + 8]
mov dword [eax + 4], edx
mov esi, dword [0x593600]
mov edx, ecx
shr edx, 8
mov ebx, ecx
movzx edx, dl
mov edx, dword [esi + edx*4]
shr ebx, 0x10
movzx edi, bl
mov edi, dword [esi + edi*4]
mov ebx, dword [0x593614]
and edx, 0xff
mov edx, dword [ebx + edx*4]
mov ebx, dword [0x593610]
shr ecx, 0x18
mov ecx, dword [esi + ecx*4]
and edi, 0xff
xor edx, dword [ebx + edi*4]
mov edi, dword [0x59360c]
and ecx, 0xff
xor edx, dword [edi + ecx*4]
movzx ecx, byte [eax + 8]
mov ecx, dword [esi + ecx*4]
mov esi, dword [0x593618]
and ecx, 0xff
xor edx, dword [esi + ecx*4]
mov ecx, dword [eax + 0xc]
mov dword [eax + 8], edx
mov esi, dword [0x593600]
mov edx, ecx
shr edx, 8
mov ebx, ecx
movzx edx, dl
mov edx, dword [esi + edx*4]
shr ebx, 0x10
and edx, 0xff
movzx edi, bl
mov edi, dword [esi + edi*4]
mov ebx, dword [0x593614]
mov edx, dword [ebx + edx*4]
mov ebx, dword [0x593610]
shr ecx, 0x18
mov ecx, dword [esi + ecx*4]
and ecx, 0xff
and edi, 0xff
xor edx, dword [ebx + edi*4]
mov edi, dword [0x59360c]
xor edx, dword [edi + ecx*4]
movzx ecx, byte [eax + 0xc]
mov ecx, dword [esi + ecx*4]
mov esi, dword [0x593618]
and ecx, 0xff
xor edx, dword [esi + ecx*4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 4]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, dword [edx + 0x38]
jb 0x457e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc