Function at 0x490450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
xchg edx, edx
push ebx
push esi
mov ebx, ecx
mov ecx, 0x4ba960
mov dword [esp - 0x44], ebp
push edi
mov dword [ebp - 0x14], ebx
call fcn.00480660
test al, al
mov dword [esp - 0x24], ebx
je 0x490ba8
movzx eax, word [ebx + 0x10]
test ax, ax
je 0x49048f
xchg esp, esp
cmp ax, word [ebp + 0xc]
jne 0x490ba8
push dword [ebp + 8]
mov esp, esp
lea ecx, [ebp - 0x3c]
call fcn.00405770
lea ecx, [ebp - 8]
mov byte [ebp - 1], 0x16
mov dword [esp - 0x14], ecx
add byte [ebp - 1], 0x2d
add byte [ebp - 1], 0x2b
sub byte [ebp - 1], 0x41
mov dword [esp - 0x30], 0x750f0b2b
sub byte [ebp - 1], 0x2d
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov dword [esp - 0x10], esi
call fcn.00476650
nop
mov dword [esp - 4], 0x4eadeebc
mov dword [esp - 0x24], 0x6d1a3586
xor dword [esp - 4], 0x67c8879d
sub dword [esp - 4], 0x28a71dab
add dword [esp - 4], 0x75cd3b9a
sub dword [esp - 4], 0x768b86ec
mov ebp, ebp
sub esp, 4
mov dword [ebp - 0x50], 0x4b17b9e7
sub dword [ebp - 0x50], 0x446cf455
xor dword [ebp - 0x50], 0x7e3dccb6
mov dword [esp - 0x14], ebp
xor dword [ebp - 0x50], 0x4278138
xor dword [ebp - 0x50], 0x41dae651
sub dword [ebp - 0x50], 0x301be0ca
mov dword [esp - 0x28], ecx
add dword [ebp - 0x50], 0xcbdb299
mov dword [ebp - 0x4c], 0x6d6d87bd
sub dword [ebp - 0x4c], 0x135cd283
mov dword [esp - 0x20], 0x5bb4e758
add dword [ebp - 0x4c], 0xe7f58ec
sub dword [ebp - 0x4c], 0x2fff57d1
xor dword [ebp - 0x4c], 0x7b6d88be
sub dword [ebp - 0x4c], 0x43f0fdb5
mov esp, esp
mov dword [ebp - 0x48], 0x64467aef
sub dword [ebp - 0x48], 0x3c7bef6
sub dword [ebp - 0x48], 0x2303e666
xchg edi, edi
add dword [ebp - 0x48], 0x3f598242
xor dword [ebp - 0x48], 0x3610025b
sub dword [ebp - 0x48], 0x2042bd3a
sub dword [ebp - 0x48], 0x1a775738
mov esi, esi
mov dword [ebp - 0x44], 0x76dd3762
sub dword [ebp - 0x44], 0x37c05c95
add dword [ebp - 0x44], 0x229dff0b
add dword [ebp - 0x44], 0xd14bb6a
mov dword [esp - 0x14], 0x7c6a49c6
sub dword [ebp - 0x44], 0x6ebe4926
mov word [ebp - 0x40], 0x12be
add word [ebp - 0x40], 0x2939
add word [ebp - 0x40], 0x23b2
mov ebx, ebx
xor word [ebp - 0x40], 0x620a
sub word [ebp - 0x40], 0x36e5
add word [ebp - 0x40], 0x6365
mov edi, edi
sub word [ebp - 0x40], 0x12ef
mov dword [ebp - 0x20], 0x11269781
add dword [ebp - 0x20], 0x514c07ca
xor dword [ebp - 0x20], 0x1f880c0f
xchg ebx, ebx
sub dword [ebp - 0x20], 0xe0331ce
sub dword [ebp - 0x20], 0x6ff76164
call fcn.0048b720
xor edx, edx
xchg esi, esi
mov dword [ebp - 0x24], eax
add esp, 4
cmp dword [ebp - 0x20], edx
jbe 0x490655
mov edi, edi
lea esp, [esp]
movsx cx, byte [ebp + edx - 0x50]
mov word [eax + edx*2], cx
inc edx
mov dword [esp - 0x38], 0x15ae2ec6
cmp edx, dword [ebp - 0x20]
jb 0x49063d
nop
sub esp, 4
xchg esi, esi
mov dword [esp], 0x71b2d6c3
add dword [esp], 0x817a0f8
xor dword [esp], 0x5bf7dbf3
mov dword [esp - 0xc], 0x27340c45
add dword [esp], 0x4fe5b846
sub dword [esp], 0x7223642e
nop
mov dword [esp - 4], 0x5e46076d
xchg esp, esp
xor dword [esp - 4], 0x62a169be
xor dword [esp - 4], 0x78712fe8
xor dword [esp - 4], 0x1fcebd21
sub dword [esp - 4], 0x5b58fc19
mov dword [esp - 0x10], esp
sub esp, 4
nop
mov dword [esp - 4], 0x41f1fb4f
add dword [esp - 4], 0x209aadde
mov dword [esp - 0x14], edx
sub dword [esp - 4], 0x137c80b8
sub dword [esp - 4], 0x165749e
add dword [esp - 4], 0xafa316b
mov dword [esp - 0x20], 0x35dcf3c
sub dword [esp - 4], 0x2a682d98
sub dword [esp - 4], 0x2e3cb7a9
sub esp, 4
xchg ebx, ebx
nop
mov dword [esp - 4], 0x468b3fd6
xor dword [esp - 4], 0x552831d
add dword [esp - 4], 0x20a74bed
mov dword [esp - 0x38], edx
add dword [esp - 4], 0x138052ce
sub dword [esp - 4], 0x758daa14
add dword [esp - 4], 0x40f254b9
mov esi, esi
xor dword [esp - 4], 0x436606ab
sub esp, 4
sub esp, 4
mov dword [esp], 0x104469f2
mov dword [esp - 0x40], ecx
add dword [esp], 0x57c63274
sub dword [esp], 0x602fb17e
add dword [esp], 0x1580b380
sub dword [esp], 0x1d499ddf
xchg ecx, ecx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
mov dword [esp - 0x1c], 0x63687c1f
push eax
call fcn.00483290
add esp, 4
mov edi, edi
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [esp - 0x34], 0x5076e24e
call fcn.00480d90
add esp, 0xc
lea ecx, [ebp - 8]
xchg edx, edx
push eax
call fcn.004766a0
cmp dword [ebp - 0x28], 2
mov byte [ebp - 2], al
mov dword [esp - 0x3c], 0x42c0fe11
jbe 0x4907c8
push dword [ebp - 0x2c]
call fcn.0048b6f0
add esp, 4
mov edx, edx
cmp dword [ebp - 0x30], 2
jbe 0x4907dd
push dword [ebp - 0x34]
mov dword [esp - 0x14], ecx
call fcn.0048b6f0
add esp, 4
cmp dword [ebp - 0x20], 2
mov edi, edi
jbe 0x4907f2
push dword [ebp - 0x24]
call fcn.0048b6f0
add esp, 4
mov esp, esp
cmp byte [ebp - 2], 0
je 0x4908ad
lea eax, [ebp - 0x18]
mov dword [esp - 0x10], 0x110566c4
push eax
lea eax, [ebp - 0x10]
push eax
mov edx, edx
lea ecx, [ebp - 8]
call fcn.00477020
test al, al
je 0x4908ad
mov dword [esp - 0x30], 0x201407d4
mov ecx, dword [ebp - 0xc]
mov esi, ecx
lea edx, [esi + 1]
xchg ecx, ecx
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
mov ebp, ebp
jne 0x490832
mov eax, dword [ebp - 0x18]
sub esi, edx
cmp eax, esi
xchg ecx, ecx
jbe 0x49089e
xor edi, edi
sub eax, esi
xchg esp, esp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push esi
push ecx
mov dword [esp - 0x2c], ebx
add eax, edi
push eax
call fcn.0048c330
mov dword [esp - 0x40], 0x4633643e
add esp, 0xc
test eax, eax
je 0x49087c
mov ecx, dword [ebp - 0xc]
xchg esi, esi
inc edi
cmp edi, dword [ebp - 0x1c]
jbe 0x49084f
jmp 0x49089e
mov byte [ebp - 1], 0x66
sub byte [ebp - 1], 0x4e
mov ebp, ebp
xor byte [ebp - 1], 0x5f
add byte [ebp - 1], 0x32
sub byte [ebp - 1], 0x3c
mov dword [esp - 0x10], edi
xor byte [ebp - 1], 0x17
xor byte [ebp - 1], 0x2b
push dword [ebp - 0x10]
mov dword [esp - 0x44], edx
call fcn.0048b6f0
add esp, 4
lea ecx, [ebp - 8]
call fcn.00476680
xchg ecx, ecx
cmp byte [ebp - 0x38], 0
je 0x4908ca
push dword [ebp - 0x3c]
call fcn.0048b6f0
xchg ecx, ecx
add esp, 4
cmp byte [ebp - 1], 0
jne 0x490ba8
xchg edi, edi
cmp dword [ebx + 8], 0
pushf
mov edx, 0x32fd4826
xchg ecx, ecx
xor edx, 0x44effb64
sub edx, 0x5cffb046
add edx, 0x4bcb03f4
mov dword [esp - 0x34], ebx
xor edx, 0x1b1569b
sub edx, 0x656f5069
popf
mov dword [esp - 0x18], 0x17db8549
jne 0x490a81
mov ecx, dword [ebx + 4]
mov dword [ebp - 0xc], ecx
cmp ecx, edx
mov dword [esp - 0xc], edi
ja 0x490928
mov dword [ebp - 8], ebx
jmp 0x490935
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov dword [esp - 0x24], 0x483dc3d6
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
mov ebx, ebx
seto cl
neg ecx
or ecx, eax
push ecx
xchg edx, edx
call fcn.0048b720
mov esi, eax
add esp, 4
mov dword [esp - 0x40], edx
mov eax, dword [ebp - 0xc]
xor edi, edi
mov dword [ebp - 0x1c], esi
xchg ecx, ecx
test eax, eax
je 0x4909d3
sub dword [ebp - 8], esi
mov dword [esp - 0x24], 0x7bfc6319
mov edx, esi
mov ebx, dword [ebp - 8]
mov esi, eax
mov dword [esp - 0x10], ebx
lea ebx, [ebx]
mov ecx, edi
lea edx, [edx + 2]
mov dword [esp - 0x28], esp
and ecx, 3
mov eax, 0xf1b7fc0
xor eax, 0x2637f87e
xor eax, 0x2a846d0f
mov dword [esp - 0x28], 0x5ab470c8
add eax, 0xa94c382
xor eax, 0x7d438a73
shl ecx, 3
inc edi
mov dword [esp - 0x20], esi
sar eax, cl
cbw
xor ax, word [ebx + edx - 2]
xchg ebx, ebx
mov word [edx - 2], ax
cmp edi, esi
jb 0x490980
mov ebp, ebp
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
xchg edx, edx
push ecx
push ecx
push ecx
mov ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [0x4baf18]
xor eax, dword [0x4ba958]
nop
mov edx, edx
mov dword [esp - 4], 0x11f65a67
xor dword [esp - 4], 0x1f5d127e
xor dword [esp - 4], 0x2096c32
mov edx, edx
add dword [esp - 4], 0x7069cb76
sub dword [esp - 4], 0x645ac928
add dword [esp - 4], 0x6020e54
mov dword [esp - 0x28], 0x1be59ab5
sub dword [esp - 4], 0x1eb334cc
sub esp, 4
push esi
call eax
mov dword [esp - 0x3c], 0x30d73462
push esi
mov dword [ebx + 8], eax
call fcn.0048b6f0
add esp, 4
mov dword [esp - 0xc], 0x2f05bc1a
cmp dword [ebx + 8], 0
je 0x490ba8
mov edx, 0x4ab71f6b
add edx, 0x1a5f6aa9
mov dword [esp - 0x40], 0x1dcb896d
sub edx, 0x50e3ef7c
add edx, 0x29f63686
sub edx, 0x3e28d11c
cmp dword [ebx + 0xc], 0
mov dword [esp - 0x3c], 0x117c18c5
jne 0x490b84
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov dword [esp - 0x1c], 0x7aebe12
mov dword [ebp - 0xc], eax
cmp eax, 2
jbe 0x490ab0
mov ecx, dword [ecx]
mov edi, edi
mov dword [ebp + 8], ecx
xor ecx, ecx
inc eax
mov ebx, ebx
mul edx
seto cl
neg ecx
or ecx, eax
mov dword [esp - 0x1c], 0x57bf4d1b
push ecx
call fcn.0048b720
mov esi, eax
add esp, 4
mov ecx, ecx
mov eax, dword [ebp - 0xc]
xor edi, edi
mov dword [ebp - 0x1c], esi
test eax, eax
mov dword [esp - 0x34], ebx
je 0x490b4f
sub dword [ebp + 8], esi
mov edx, esi
xchg esi, esi
mov esi, dword [ebp + 8]
mov ebx, eax
lea esp, [esp]
mov ecx, edi
mov edi, edi
lea edx, [edx + 2]
and ecx, 3
mov eax, 0x299dcb45
xor eax, 0x5e3ab626
mov dword [esp - 0x1c], ecx
sub eax, 0x3b0070a1
sub eax, 0x148f0a8c
add eax, 0x4b66220a
shl ecx, 3
mov dword [esp - 0x28], 0x632fa32d
inc edi
sar eax, cl
cbw
xchg esi, esi
xor ax, word [esi + edx - 2]
mov word [edx - 2], ax
cmp edi, ebx
jb 0x490af6
xchg ecx, ecx
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov dword [esp - 0x30], 0x74ad44aa
xor ecx, ecx
push ecx
push dword [ebp + 0xc]
mov word [esi + eax*2], cx
xchg esp, esp
mov eax, dword [0x4baf28]
xor eax, dword [0x4ba958]
push esi
push dword [ebx + 8]
xchg ecx, ecx
call eax
push esi
mov dword [ebx + 0xc], eax
call fcn.0048b6f0
mov dword [esp - 0x38], edi
add esp, 4
cmp dword [ebx + 0xc], 0
je 0x490ba8
mov eax, dword [ebp + 0xc]
mov dword [esp - 0x18], ecx
pop edi
mov word [ebx + 0x10], ax
mov al, 0x1c
add al, 0x48
mov edi, edi
xor al, 0x6e
add al, 0x2a
sub al, 0x33
pop esi
mov dword [esp - 0x38], esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov dword [esp - 0x38], 0x7ff8bc4c
mov esp, ebp
pop ebp
ret 8