Function at 0x495280
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x70
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x88]
push esi
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], 0xffffffff
call fcn.004a9af0
mov esi, eax
mov ecx, dword [esi]
lea edx, [ecx + ecx + 2]
add esp, 4
cmp ebp, edx
jae 0x4952f5
push 0xffffe004
call fcn.004207c0
add esp, 4
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00409b58
add esp, 0x70
ret
mov eax, dword [esi + 4]
push edi
call eax
mov edi, eax
test edi, edi
jne 0x495324
push 0xffffe013
call fcn.004207c0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00409b58
add esp, 0x70
ret
mov ecx, dword [esi + 0x10]
push edi
call ecx
mov eax, dword [esp + 0xa0]
add esp, 4
test eax, eax
jbe 0x495343
mov edx, dword [esi + 0x14]
push eax
push ebx
push edi
call edx
add esp, 0xc
mov edx, dword [esi + 0x18]
push 0x40
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
call edx
mov eax, dword [esi + 0xc]
push 1
push edi
call eax
push ebp
call fcn.00420e30
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x49537e
push 0xffffe013
call fcn.004207c0
add esp, 4
jmp 0x495596
mov eax, ebp
sub eax, dword [esi]
dec eax
push eax
mov dword [esp + 0x2c], eax
call fcn.00420e30
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x4953ac
push 0xffffe013
call fcn.004207c0
add esp, 4
jmp 0x49557a
mov ecx, dword [esp + 0x18]
push ebp
push ecx
push edi
call fcn.0040dc50
mov eax, dword [esi]
mov edx, ebp
sub edx, eax
dec edx
push edx
lea ecx, [eax + edi + 1]
push ecx
push eax
mov eax, dword [esp + 0xac]
push ebx
call fcn.00494f10
xor eax, eax
add esp, 0x1c
mov dword [esp + 0x14], eax
cmp dword [esi], eax
jbe 0x4953f4
mov dl, byte [eax + ebx]
xor byte [edi + eax + 1], dl
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi]
jb 0x4953e0
mov eax, dword [esi]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x98]
lea ecx, [edi + 1]
push ecx
push edx
push ebx
call fcn.00494f10
mov edx, dword [esp + 0x38]
xor eax, eax
add esp, 0x10
mov dword [esp + 0x14], eax
test edx, edx
jbe 0x49543c
mov edi, edi
mov ecx, dword [esi]
add ecx, eax
mov al, byte [eax + ebx]
xor byte [ecx + edi + 1], al
mov eax, dword [esp + 0x14]
lea ecx, [ecx + edi + 1]
inc eax
mov dword [esp + 0x14], eax
cmp eax, edx
jb 0x495420
mov cl, byte [edi]
mov al, cl
neg al
or al, cl
mov ecx, dword [esi]
not al
xor dl, dl
xor bl, bl
shr al, 7
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ecx
lea esi, [ecx + edi + 1]
mov byte [esp + 0x13], dl
test ecx, ecx
jbe 0x495493
lea edx, [esp + 0x3c]
sub edx, esi
mov dword [esp + 0x30], edx
mov dl, byte [esp + 0x13]
mov dword [esp + 0x18], ecx
lea esp, [esp]
mov ecx, dword [esp + 0x30]
mov cl, byte [ecx + esi]
xor cl, byte [esi]
inc esi
or dl, cl
sub dword [esp + 0x18], 1
jne 0x495480
mov esi, dword [esp + 0x20]
mov cl, dl
neg cl
or cl, dl
not cl
shr cl, 7
lea esi, [esi + esi + 1]
and al, cl
mov byte [esp + 0x13], al
mov dword [esp + 0x14], esi
cmp esi, ebp
jae 0x49551f
mov cl, byte [esi + edi]
mov al, 1
sub al, cl
mov dl, cl
dec dl
or al, dl
not al
shr al, 7
movzx eax, al
mov dword [esp + 0x20], eax
movzx edx, bl
not edx
and edx, eax
dec edx
mov eax, edx
and edx, dword [esp + 0x1c]
not eax
and eax, esi
or eax, edx
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x20]
dec al
mov dl, al
and dl, bl
not al
and al, 1
or dl, al
mov bl, dl
mov dl, cl
neg dl
or dl, cl
not dl
shr dl, 7
mov al, bl
not al
not dl
and dl, al
mov al, byte [esp + 0x13]
dec dl
inc esi
and al, dl
mov byte [esp + 0x13], al
mov dword [esp + 0x14], esi
cmp esi, ebp
jb 0x4954b4
test al, bl
jne 0x495532
push 0xffffe002
call fcn.004207c0
add esp, 4
jmp 0x495576
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
inc ecx
mov eax, ebp
sub eax, ecx
mov dword [edx], eax
cmp eax, dword [esp + 0x88]
jbe 0x495559
push 0xffffe003
call fcn.004207c0
add esp, 4
jmp 0x495576
test eax, eax
je 0x49556e
push eax
mov eax, dword [esp + 0x38]
add ecx, edi
push ecx
push eax
call fcn.0040dc50
add esp, 0xc
mov dword [esp + 0x2c], 0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x49558c
mov ecx, dword [esp + 0x28]
push ecx
push ebx
call fcn.00420790
add esp, 8
push ebp
push edi
call fcn.00420790
add esp, 8
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409b58
add esp, 0x70
ret