Function at 0x495b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov dword [esp - 0x1c], edx
sub esp, 0x58
push ebx
push esi
mov dword [esp - 0x3c], esi
mov ebx, ecx
mov ecx, 0x4c0970
push edi
mov dword [esp - 0x38], ecx
mov dword [ebp - 0x18], ebx
call fcn.00484600
test al, al
je 0x496264
mov dword [esp - 0x10], 0x2e8898cc
movzx eax, word [ebx + 0x10]
test ax, ax
je 0x495b4f
cmp ax, word [ebp + 0xc]
mov dword [esp - 0x28], 0x52bfc71d
jne 0x496264
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.00405a10
xchg ebp, ebp
lea ecx, [ebp - 8]
mov byte [ebp - 1], 0x65
sub byte [ebp - 1], 0x4e
mov esi, esi
add byte [ebp - 1], 0x38
add byte [ebp - 1], 0x16
sub byte [ebp - 1], 0x51
add byte [ebp - 1], 0x18
xchg ebp, ebp
sub byte [ebp - 1], 0x2c
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
call fcn.0047a3b0
xchg ecx, ecx
mov dword [ebp - 0x42], 0x40a73b3c
xor dword [ebp - 0x42], 0x4ca2514a
xor dword [ebp - 0x42], 0x4c8d62a
add dword [ebp - 0x42], 0x4f8eccaf
mov dword [esp - 0x40], 0x44bd5162
sub dword [ebp - 0x42], 0x4584685e
mov eax, dword [ebp - 0x42]
mov dword [ebp - 0x58], eax
mov dword [esp - 0x24], 0x9d98b53
mov dword [ebp - 0x3e], 0x4acd927b
xor dword [ebp - 0x3e], 0x164c7cb2
xor dword [ebp - 0x3e], 0x4ba7c576
mov ebx, ebx
add dword [ebp - 0x3e], 0x28c528e0
add dword [ebp - 0x3e], 0x39631689
xor dword [ebp - 0x3e], 0x71964aaf
mov eax, dword [ebp - 0x3e]
xchg esp, esp
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x3a], 0xa1ab069
xor dword [ebp - 0x3a], 0x646eb4c7
sub dword [ebp - 0x3a], 0x3d2746f6
mov ebx, ebx
add dword [ebp - 0x3a], 0x26df1ab
xor dword [ebp - 0x3a], 0x68fe52b
sub dword [ebp - 0x3a], 0x1c57289b
mov eax, dword [ebp - 0x3a]
mov dword [esp - 0x3c], ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x36], 0x5763bca8
add dword [ebp - 0x36], 0x1479e665
sub dword [ebp - 0x36], 0x55c82a8
mov esp, esp
sub dword [ebp - 0x36], 0x365b4e06
sub dword [ebp - 0x36], 0x2760a5b2
mov eax, dword [ebp - 0x36]
mov dword [ebp - 0x4c], eax
mov dword [esp - 0x28], ecx
mov word [ebp - 0x32], 0x27ed
add word [ebp - 0x32], 0x2961
sub word [ebp - 0x32], 0x3abb
add word [ebp - 0x32], 0x78a
xchg edi, edi
xor word [ebp - 0x32], 0x2998
mov ax, word [ebp - 0x32]
nop
mov dword [esp - 0x3c], ecx
mov dword [esp - 4], 0x78e82996
sub dword [esp - 4], 0xa4a24f0
sub dword [esp - 4], 0x6c5149b
sub dword [esp - 4], 0x3805c7ef
xchg edx, edx
add dword [esp - 4], 0x27b26aa5
sub dword [esp - 4], 0x5785929d
sub esp, 4
mov ebp, ebp
mov word [ebp - 0x48], ax
mov dword [ebp - 0x24], 0x688797f6
xor dword [ebp - 0x24], 0x511b0f98
mov dword [esp - 0x20], 0x624bdb2a
add dword [ebp - 0x24], 0x6b8b9de
xor dword [ebp - 0x24], 0x59498fa3
xor dword [ebp - 0x24], 0x362a7019
xchg esp, esp
sub dword [ebp - 0x24], 0x2f36ade4
call fcn.00490c90
xor ecx, ecx
add esp, 4
mov dword [esp - 0x14], esp
mov edx, eax
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x24], ecx
jbe 0x495d2b
mov dword [esp - 0x38], 0x578a864c
mov edi, edi
movsx ax, byte [ebp + ecx - 0x58]
mov word [edx + ecx*2], ax
mov dword [esp - 0x10], edi
inc ecx
cmp ecx, dword [ebp - 0x24]
jb 0x495d17
nop
mov edi, edi
sub esp, 4
mov dword [esp], 0x5529e212
add dword [esp], 0xbdae4ce
xchg ecx, ecx
xor dword [esp], 0x4542eaff
xor dword [esp], 0x7cf69caa
sub dword [esp], 0x58b0b055
xchg edi, edi
nop
sub esp, 4
mov dword [esp], 0x61b9697f
mov dword [esp - 0x44], ecx
xor dword [esp], 0x32b28aef
sub dword [esp], 0xe964faf
xor dword [esp], 0x2d2111a3
sub dword [esp], 0x69548241
mov dword [esp - 0x3c], 0x25385ce7
nop
mov dword [esp - 4], 0x3a1d3819
add dword [esp - 4], 0x23ab9341
xor dword [esp - 4], 0x38f67a4
mov dword [esp - 0x38], 0x1e54c5a1
sub dword [esp - 4], 0x5beaf44f
add dword [esp - 4], 0x2d0d0b1d
add dword [esp - 4], 0x15eea562
xor dword [esp - 4], 0x4558692f
mov ebx, ebx
sub esp, 4
nop
mov dword [esp - 4], 0x25bb0af
xor dword [esp - 4], 0x7271bb02
xchg ebp, ebp
sub dword [esp - 4], 0x5322b6b2
sub dword [esp - 4], 0xd306dba
xor dword [esp - 4], 0xfd6e7c1
sub esp, 4
mov dword [esp - 0x14], edi
sub esp, 4
mov dword [esp], 0x3763746f
sub dword [esp], 0x32db77bc
mov dword [esp - 0x40], edx
xor dword [esp], 0x2d2e0957
add dword [esp], 0x389adaa0
sub dword [esp], 0x6232cffb
lea eax, [ebp - 0x28]
xchg edx, edx
push eax
lea eax, [ebp - 0x14]
push eax
mov ebp, ebp
call fcn.004874f0
add esp, 4
push eax
lea eax, [ebp - 0x20]
mov dword [esp - 0x18], esp
push eax
call fcn.00484df0
add esp, 0xc
mov dword [esp - 0xc], edi
lea ecx, [ebp - 8]
push eax
call fcn.0047a410
cmp dword [ebp - 0x1c], 2
mov dword [esp - 0x44], 0x34532f6c
mov byte [ebp - 2], al
jbe 0x495e7d
push dword [ebp - 0x20]
xchg esp, esp
call fcn.00490c60
add esp, 4
cmp dword [ebp - 0x10], 2
mov dword [esp - 0x30], ebp
jbe 0x495e94
push dword [ebp - 0x14]
call fcn.00490c60
mov esi, esi
add esp, 4
cmp dword [ebp - 0x24], 2
jbe 0x495ea7
push dword [ebp - 0x28]
mov ebx, ebx
call fcn.00490c60
add esp, 4
cmp byte [ebp - 2], 0
mov dword [esp - 0x24], edi
je 0x495f62
lea eax, [ebp - 0x1c]
push eax
mov dword [esp - 0x44], 0x49a8af6f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0047ada0
mov dword [esp - 0x14], edi
test al, al
je 0x495f62
mov ecx, dword [ebp - 0xc]
mov edx, edx
mov esi, ecx
lea edx, [esi + 1]
mov edi, edi
xchg esi, esi
mov al, byte [esi]
inc esi
test al, al
xchg edx, edx
jne 0x495ee7
mov eax, dword [ebp - 0x1c]
sub esi, edx
cmp eax, esi
xchg ebx, ebx
jbe 0x495f55
xor edi, edi
sub eax, esi
mov dword [esp - 0x44], 0x58097b83
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
push esi
push ecx
mov esi, esi
add eax, edi
push eax
call fcn.004918c0
mov dword [esp - 0x20], 0x564b0e37
add esp, 0xc
test eax, eax
je 0x495f3f
mov dword [esp - 0x38], 0x385ae831
mov ecx, dword [ebp - 0xc]
inc edi
cmp edi, dword [ebp - 0x24]
mov dword [esp - 0x30], edi
jbe 0x495f0a
jmp 0x495f55
mov byte [ebp - 1], 8
xor byte [ebp - 1], 0x17
xor byte [ebp - 1], 1
sub byte [ebp - 1], 0x14
xchg edx, edx
xor byte [ebp - 1], 0xb
push dword [ebp - 0x10]
call fcn.00490c60
add esp, 4
xchg esp, esp
lea ecx, [ebp - 8]
call fcn.0047a3e0
cmp byte [ebp - 0x2c], 0
je 0x495f81
mov ecx, ecx
push dword [ebp - 0x30]
call fcn.00490c60
add esp, 4
mov dword [esp - 0x28], ebp
cmp byte [ebp - 1], 0
jne 0x496264
or esi, 0xffffffff
mov dword [esp - 0x24], edi
mov edx, 0x7fd14517
xor edx, 0xd402c1b
sub edx, 0x653c0cb
mov dword [esp - 0x38], esp
xor edx, 0x579429a7
add edx, 0x315382e2
sub edx, 0x60bf345d
mov dword [esp - 0x24], ebp
sub edx, 0xc3dd069
cmp dword [ebx + 8], 0
jne 0x496117
mov dword [esp - 0x28], 0x4cc2d2ef
mov ecx, dword [ebx + 4]
mov dword [ebp - 0xc], ecx
cmp ecx, edx
ja 0x495fe6
xchg ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x495fed
mov eax, dword [ebx]
mov dword [ebp - 8], eax
xchg ecx, ecx
lea eax, [ecx + 1]
mul edx
cmovb eax, esi
push eax
mov esi, esi
call fcn.00490c90
mov esi, eax
add esp, 4
xchg ecx, ecx
mov eax, dword [ebp - 0xc]
xor edi, edi
mov dword [ebp - 0x24], esi
test eax, eax
xchg edi, edi
je 0x49607a
sub dword [ebp - 8], esi
mov edx, esi
mov dword [esp - 0x1c], 0x48d4efd6
mov ebx, dword [ebp - 8]
mov esi, eax
mov ecx, edi
lea edx, [edx + 2]
mov dword [esp - 0xc], 0x16e9a20d
and ecx, 3
mov eax, 0x2e84189a
add eax, 0x1cf58c21
xchg edx, edx
xor eax, 0x5a9970b5
add eax, 0x5f4c20df
sub eax, 0x5190866d
add eax, 0x5c0dd671
mov edx, edx
shl ecx, 3
inc edi
sar eax, cl
cbw
mov esp, esp
xor ax, word [edx + ebx - 2]
mov word [edx - 2], ax
cmp edi, esi
mov edi, edi
jb 0x496024
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, ecx
xor ecx, ecx
push ecx
push ecx
push ecx
mov dword [esp - 0x2c], 0x54c7749b
mov word [esi + eax*2], cx
mov eax, dword [0x4c0f30]
xor eax, dword [0x4c0968]
xchg edi, edi
nop
sub esp, 4
mov dword [esp], 0x3048b0e2
sub dword [esp], 0x2dd340f9
mov dword [esp - 0x20], 0x5ab856cd
xor dword [esp], 0x112ab488
sub dword [esp], 0x5e56a7c
add dword [esp], 0x6d2630b6
mov ecx, ecx
sub dword [esp], 0x7aa0a19a
push esi
call eax
mov esi, esi
push esi
mov dword [ebx + 8], eax
call fcn.00490c60
add esp, 4
xchg edx, edx
cmp dword [ebx + 8], 0
je 0x496264
mov edx, 0xc66461f
xchg ebx, ebx
xor edx, 0x4b767b09
xor edx, 0x7df1c3f7
xor edx, 0x387ff5ac
mov ebp, ebp
add edx, 0x6f9ca836
xor edx, 0x723ab381
or esi, 0xffffffff
cmp dword [ebx + 0xc], 0
mov dword [esp - 0x30], 0x200f698c
jne 0x496236
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov dword [esp - 0x24], 0x4d3d3cf2
mov dword [ebp - 0xc], eax
cmp eax, 2
jbe 0x496146
mov ecx, dword [ecx]
xchg edx, edx
mov dword [ebp + 8], ecx
inc eax
mul edx
mov dword [esp - 0x18], ebx
cmovb eax, esi
push eax
call fcn.00490c90
mov dword [esp - 0x28], 0x125c803c
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0xc]
xor edi, edi
xchg edx, edx
mov dword [ebp - 0x24], esi
test eax, eax
je 0x4961e5
sub dword [ebp + 8], esi
mov dword [esp - 0x38], edx
mov edx, esi
mov esi, dword [ebp + 8]
mov ebx, eax
mov dword [esp - 0x20], edx
lea ecx, [ecx]
mov ecx, edi
lea edx, [edx + 2]
mov esi, esi
and ecx, 3
mov eax, 0x125b72a9
add eax, 0x390f56a1
sub eax, 0x9a567aa
mov dword [esp - 0x18], ecx
sub eax, 0x412671dd
add eax, 0x5243b3f2
sub eax, 0x40f67ddf
mov esi, esi
add eax, 0x69be1f1b
shl ecx, 3
inc edi
sar eax, cl
mov dword [esp - 0x30], esi
cbw
xor ax, word [esi + edx - 2]
mov word [edx - 2], ax
mov dword [esp - 0x28], 0x545f77c8
cmp edi, ebx
jb 0x496186
mov esi, dword [ebp - 0x24]
xchg edi, edi
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov dword [esp - 0x30], ebx
push ecx
push dword [ebp + 0xc]
mov word [esi + eax*2], cx
mov dword [esp - 0x44], 0x3556bb74
mov eax, dword [0x4c0f40]
xor eax, dword [0x4c0968]
push esi
mov dword [esp - 0x44], 0x3f17a8f2
push dword [ebx + 8]
call eax
push esi
mov dword [ebx + 0xc], eax
mov dword [esp - 0x38], 0x207155f5
call fcn.00490c60
add esp, 4
cmp dword [ebx + 0xc], 0
je 0x496264
mov dword [esp - 0x2c], 0x6068766
mov eax, dword [ebp + 0xc]
pop edi
mov word [ebx + 0x10], ax
mov al, 0x7b
xchg ebp, ebp
sub al, 0x20
sub al, 5
xor al, 9
mov dword [esp - 0x14], 0x46f857f1
add al, 4
sub al, 0x62
pop esi
pop ebx
mov dword [esp - 0x40], 0xf38771f
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
xchg edi, edi
mov esp, ebp
pop ebp
ret 8