Function at 0x45ba70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1900]
mov dword [esp + 0x904], eax
push eax
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, ecx
lea edi, [ebp - 0x1904]
mov esi, eax
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
call fcn.00408b30
xor eax, eax
push fcn.0045ba60
push ebp
push 0x4154e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x1d0]
call fcn.005e7250
lea eax, [ebp - 0x210]
call fcn.0045c460
test al, al
je 0x45baf0
lea edx, [ebp - 0x210]
lea eax, [ebp - 0x1d0]
mov cx, 0x40
call fcn.005e7310
lea eax, [ebp - 0x250]
call fcn.0045c590
test al, al
je 0x45bb14
lea edx, [ebp - 0x250]
lea eax, [ebp - 0x1d0]
mov cx, 0x40
call fcn.005e7310
lea edx, [ebp - 0x1904]
lea eax, [ebp - 0x1d0]
mov cx, 0x40
call fcn.005e7310
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x2d0]
call fcn.005e7f10
lea edx, [ebp - 0x2d0]
lea eax, [ebp - 0x1d0]
mov cx, 0x40
call fcn.005e7310
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x310]
call fcn.005e7f10
lea edx, [ebp - 0x310]
lea eax, [ebp - 0x1d0]
mov cx, 0x40
call fcn.005e7310
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x350]
call fcn.005e7f10
lea edx, [ebp - 0x350]
lea eax, [ebp - 0x1d0]
mov cx, 0x40
call fcn.005e7310
xor eax, eax
push 0x45bc33
push ebp
push 0x415860
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x354], 0
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x5a0]
call fcn.00415c20
lea eax, [ebp - 0x5a0]
mov edx, 1
call fcn.00413c50
call fcn.0040f2a0
lea eax, [ebp - 0x354]
push eax
lea edx, [ebp - 0x6a0]
lea eax, [ebp - 0x5a0]
mov ecx, 0x100
call fcn.004139f0
call fcn.0040f2a0
lea eax, [ebp - 0x5a0]
call fcn.00415bf0
call fcn.0040f2a0
cmp dword [ebp - 0x354], 0
jle 0x45bc28
mov cx, word [ebp - 0x354]
lea edx, [ebp - 0x6a0]
lea eax, [ebp - 0x1d0]
call fcn.005e7310
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x45bc38
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.005e7430
mov ax, word [ebp + 8]
and ax, 1
je 0x45bc98
call fcn.004148e0
mov dword [ebp - 0x354], 0xffffffff
nop
add dword [ebp - 0x354], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x354]
movzx ebx, byte [eax + edx]
mov eax, 0x100
call fcn.0040f220
xor ebx, eax
mov al, bl
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x354]
mov byte [edx + ecx], al
cmp dword [ebp - 0x354], 0x3f
jl 0x45bc60
nop
mov ax, word [ebp + 8]
and ax, 2
je 0x45bd80
mov esi, dword [ebp - 4]
lea edi, [ebp - 0x290]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x354], 0xffffffff
mov eax, dword [ebp - 0x354]
add eax, 1
mov dword [ebp - 0x354], eax
mov ecx, eax
mov dl, byte [ebp + ecx - 0x210]
mov al, byte [ebp + ecx - 0x250]
xor al, dl
xor al, byte [ebp + ecx - 0x1904]
xor al, byte [ebp + ecx - 0x2d0]
xor al, byte [ebp + ecx - 0x310]
xor al, byte [ebp + ecx - 0x350]
mov byte [ebp + ecx - 0x6c0], al
cmp dword [ebp - 0x354], 0x1f
jl 0x45bcc0
mov dword [ebp - 0x354], 0xffffffff
nop
mov eax, dword [ebp - 0x354]
add eax, 1
mov dword [ebp - 0x354], eax
mov ecx, eax
mov dl, byte [ebp + ecx - 0x210]
mov al, byte [ebp + ecx - 0x250]
xor al, dl
mov byte [ebp + ecx - 0x6d0], al
cmp dword [ebp - 0x354], 0xf
jl 0x45bd18
lea eax, [ebp - 0x7fc]
push eax
lea ecx, [ebp - 0x6d0]
lea eax, [ebp - 0x6c0]
mov dx, 0x100
call fcn.005e9640
lea eax, [ebp - 0x7fc]
push eax
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x290]
mov ecx, 0x40
call fcn.005e96b0
nop
mov ax, word [ebp + 8]
and ax, 4
je 0x45be74
mov esi, dword [ebp - 4]
lea edi, [ebp - 0x290]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x354], 0xffffffff
mov eax, dword [ebp - 0x354]
add eax, 1
mov dword [ebp - 0x354], eax
mov ebx, eax
lea eax, [ebx + 0x20]
mov cl, byte [ebp + eax - 0x210]
mov dl, byte [ebp + eax - 0x250]
xor dl, cl
xor dl, byte [ebp + eax - 0x1904]
xor dl, byte [ebp + eax - 0x2d0]
xor dl, byte [ebp + eax - 0x310]
xor dl, byte [ebp + eax - 0x350]
mov byte [ebp + ebx - 0x6c0], dl
cmp dword [ebp - 0x354], 0x1f
jl 0x45bda8
mov dword [ebp - 0x354], 0xffffffff
lea esi, [esi]
mov eax, dword [ebp - 0x354]
add eax, 1
mov dword [ebp - 0x354], eax
mov ecx, eax
lea eax, [ecx + 0x10]
mov dl, byte [ebp + eax - 0x210]
mov al, byte [ebp + eax - 0x250]
xor al, dl
mov byte [ebp + ecx - 0x6e0], al
cmp dword [ebp - 0x354], 0xf
jl 0x45be08
lea eax, [ebp - 0x18c4]
push eax
lea ecx, [ebp - 0x6e0]
lea eax, [ebp - 0x6c0]
mov dx, 0x100
call fcn.005e9850
lea eax, [ebp - 0x18c4]
push eax
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x290]
mov ecx, 0x40
call fcn.005e98a0
mov esi, esi
cmp dword [ebp - 0x10], 1
jne 0x45be84
mov dword [ebp - 0x10], 0
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0045ba60
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10