Function at 0x495290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [esp - 0x44], esi
mov edx, dword [ecx + 0xc]
push ebx
xor ebx, ebx
mov dword [esp - 0x40], 0x15731df1
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x495aee
mov dword [esp - 0x30], 0x179bdb1a
push esi
mov esi, dword [ecx + 8]
mov dword [ebp - 0x10], esi
mov dword [esp - 0x38], 0x432f9cc9
lea eax, [esi + edx*4]
mov dword [ebp - 4], eax
cmp esi, eax
je 0x495ae2
mov dword [esp - 0x14], 0xdd18dc4
push edi
lea edi, [ebx + 2]
mov esi, dword [esi]
cmp byte [esi + 0x24], 0
mov dword [esp - 0x34], 0x4ab501ca
jne 0x495ac4
test ebx, ebx
jne 0x495604
lea eax, [esi + 8]
mov ebp, ebp
push eax
push 0x401898
lea eax, [ebp - 0x34]
mov edi, edi
push esi
push eax
call fcn.004850a0
mov dword [esp - 0xc], esp
add esp, 0xc
push eax
lea eax, [ebp - 0x1c]
push eax
xchg edi, edi
call fcn.00484df0
add esp, 0xc
cmp dword [ebp - 0x30], 2
mov ebp, ebp
jbe 0x495344
push dword [ebp - 0x34]
call fcn.00490c60
mov dword [esp - 0x10], edx
add esp, 4
mov eax, dword [ebp - 0x18]
lea ebx, [ebp - 0x1c]
cmp eax, 2
xchg ebx, ebx
mov dword [ebp - 8], eax
pushf
mov ecx, 0x56043e5c
add ecx, 0x5fedc10
xchg ebp, ebp
sub ecx, 0x312febef
add ecx, 0x25b304ec
add ecx, 0x2d172cd5
mov dword [esp - 0x3c], 0x771d3a
add ecx, 0x82629fc1
popf
cmova ebx, dword [ebp - 0x1c]
mov dword [esp - 0x14], 0x60b9afd9
inc eax
mul edi
cmovb eax, ecx
xchg esi, esi
push eax
call fcn.00490c90
mov esi, eax
add esp, 4
xchg esp, esp
mov eax, dword [ebp - 8]
xor edi, edi
mov dword [ebp - 0xc], esi
xchg esp, esp
test eax, eax
je 0x495415
mov edx, esi
sub ebx, esi
mov edx, edx
mov esi, eax
mov ecx, edi
lea edx, [edx + 2]
mov dword [esp - 0x44], esi
and ecx, 3
mov eax, 0x41147eb1
xor eax, 0x131094a
mov dword [esp - 0x38], edi
add eax, 0x593773c
add eax, 0x2a664b2b
xor eax, 0x16aecb9
xor eax, 0xadf922a
xchg esp, esp
shl ecx, 3
inc edi
sar eax, cl
mov dword [esp - 0x28], edi
cbw
xor ax, word [edx + ebx - 2]
mov word [edx - 2], ax
mov dword [esp - 0x1c], ebx
cmp edi, esi
jb 0x4953ba
mov esi, dword [ebp - 0xc]
mov dword [esp - 0x18], 0x1d4b79a6
mov eax, dword [ebp - 8]
xor ecx, ecx
push ecx
mov edi, edi
push ecx
push ecx
push ecx
xchg esi, esi
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x18]
push eax
push esi
mov dword [esp - 0x24], ebp
mov dword [ebp - 8], eax
mov eax, dword [0x4c0b80]
xor eax, dword [0x4c0968]
mov dword [esp - 0x34], 0x2c5750c
push ecx
sub esp, 4
mov dword [esp], 0x6bdb847b
sub dword [esp], 0x62ce778b
mov dword [esp - 0x2c], 0x61fa81ad
add dword [esp], 0x495df79d
sub dword [esp], 0x4b7cddcf
xor dword [esp], 0x4d50bc35
mov dword [esp - 0x34], 0x3425c657
sub dword [esp], 0x1b539ef2
sub dword [esp], 0x3069fdb0
call eax
mov ebx, eax
mov edx, edx
lea edi, [ebx + 1]
push edi
call fcn.00490c90
mov ecx, ecx
mov ecx, dword [0x4c0b80]
add esp, 4
xor ecx, dword [0x4c0968]
xchg ebp, ebp
mov dword [ebp - 0xc], eax
nop
sub esp, 4
xchg edx, edx
mov dword [esp], 0x5ee371fa
sub dword [esp], 0x22fd4299
sub dword [esp], 0x32bfa781
add dword [esp], 0x2e47758e
mov edx, edx
xor dword [esp], 0x376dfd6e
nop
sub esp, 4
mov dword [esp], 0x34faea
xchg edx, edx
add dword [esp], 0x36bf0ac5
xor dword [esp], 0x6f350723
sub dword [esp], 0x399d9b1d
xor dword [esp], 0x72efb7f6
mov ebp, ebp
xor dword [esp], 0x52ccd099
push edi
mov edi, eax
mov dword [esp - 0x20], ebp
push edi
push dword [ebp - 8]
push esi
mov dword [esp - 0x40], 0x10414126
nop
sub esp, 4
mov dword [esp], 0x2649ce28
add dword [esp], 0x4ca830a7
xchg esp, esp
sub dword [esp], 0x1a927c4e
xor dword [esp], 0x36883232
sub dword [esp], 0x6ed7b0b3
mov dword [esp - 0x2c], esp
sub esp, 4
mov dword [esp], 0xdc63bef
add dword [esp], 0x4dc75e97
mov edi, edi
xor dword [esp], 0x50e0d224
xor dword [esp], 0x28475ba3
sub dword [esp], 0x23291518
mov dword [esp - 0x28], 0x7c3e354e
call ecx
push esi
mov byte [edi + ebx], 0x55
sub byte [edi + ebx], 0x16
mov dword [esp - 0x40], 0x663ff849
add byte [edi + ebx], 0x21
sub byte [edi + ebx], 0x2e
sub byte [edi + ebx], 0x25
mov dword [esp - 0x30], esi
sub byte [edi + ebx], 0xd
call fcn.00490c60
mov esi, edi
xchg ecx, ecx
add esp, 4
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
mov esi, esi
test al, al
jne 0x4955b0
sub esi, ecx
mov dword [esp - 0x14], ecx
inc esi
push esi
call fcn.00490c90
mov dword [esp - 0x1c], 0x7f567e04
push edi
mov ebx, eax
push esi
mov dword [esp - 0x1c], 0x4ac86d0a
push ebx
mov dword [ebp - 0xc], ebx
call fcn.00491b70
push edi
mov dword [esp - 0x10], ebp
call fcn.00490c60
add esp, 0x14
cmp dword [ebp - 0x18], 2
jbe 0x495aa2
mov ebp, ebp
push dword [ebp - 0x1c]
jmp 0x495a92
mov dword [ebp - 0x24], 0x68a2eaf3
xor dword [ebp - 0x24], 0x1c40b8e3
mov dword [esp - 0x34], ebx
sub dword [ebp - 0x24], 0x4d1758de
add dword [ebp - 0x24], 0xec76d51
sub dword [ebp - 0x24], 0x36926683
xor eax, eax
mov dword [esp - 0x28], ebx
mov dword [ebp - 0x20], 0x546308f0
xor dword [ebp - 0x20], 0x30b21a8c
xor dword [ebp - 0x20], 0x31111b34
mov dword [esp - 0x3c], esi
xor dword [ebp - 0x20], 0x4565a4
xor dword [ebp - 0x20], 0x677550a3
add dword [ebp - 0x20], 0x4679f6bc
xor dword [ebp - 0x20], 0x796a330a
mov dword [esp - 0x38], 0x16174ba
lea esp, [esp]
mov ecx, eax
mov edx, 0x29c02151
add edx, 0x323ea9c5
xchg ebp, ebp
sub edx, 0x33507005
sub edx, 0x1a0cc7d4
add edx, 0x6d08b1b4
and ecx, 3
mov dword [esp - 0x1c], 0x5832325b
shl ecx, 3
sar edx, cl
movsx cx, dl
xor cx, word [eax*2 + 0x40189c]
mov dword [esp - 0x18], 0x5d995a12
mov word [ebp + eax*2 - 0x24], cx
inc eax
cmp eax, dword [ebp - 0x20]
jb 0x495675
mov edx, edx
lea eax, [esi + 8]
push eax
push 0x401898
push esi
mov ebp, ebp
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
mov dword [esp - 0x40], 0x5ef17412
push eax
call fcn.00484df0
add esp, 0xc
push eax
mov dword [esp - 0xc], ebp
lea eax, [ebp - 0x3c]
push eax
call fcn.004850a0
mov dword [esp - 0x24], 0xc176a2
add esp, 0xc
push eax
lea eax, [ebp - 0x2c]
mov esi, esi
push eax
call fcn.00484df0
add esp, 0xc
mov edx, edx
cmp dword [ebp - 0x38], 2
jbe 0x49572e
push dword [ebp - 0x3c]
call fcn.00490c60
mov dword [esp - 0x34], 0x6ad1ac14
add esp, 4
cmp dword [ebp - 0x40], 2
jbe 0x495747
push dword [ebp - 0x44]
mov dword [esp - 0x44], 0x555d7244
call fcn.00490c60
add esp, 4
cmp dword [ebp - 0x20], 2
mov ecx, ecx
jbe 0x495762
push dword [ebp - 0x24]
call fcn.00490c60
mov dword [esp - 0x38], 0x416c797c
add esp, 4
mov eax, dword [ebp - 0x28]
lea ebx, [ebp - 0x2c]
cmp eax, 2
mov dword [esp - 0xc], 0x36592992
mov dword [ebp - 8], eax
pushf
mov ecx, 0x5a43db1
mov dword [esp - 0xc], ecx
add ecx, 0x5dbb43f6
xor ecx, 0x138f8635
sub ecx, 0x66e9782b
add ecx, 0x36e6011a
xchg ecx, ecx
xor ecx, 0xaf0a2da
add ecx, 0xb5c3cda4
popf
cmova ebx, dword [ebp - 0x2c]
mov dword [esp - 0x1c], 0x774eb61b
inc eax
mul edi
cmovb eax, ecx
mov dword [esp - 0x20], ecx
push eax
call fcn.00490c90
mov esi, eax
add esp, 4
xchg ebx, ebx
mov eax, dword [ebp - 8]
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [esp - 0x30], 0x5ff1e53e
test eax, eax
je 0x495846
mov edx, esi
sub ebx, esi
mov dword [esp - 0x14], 0x2cb6f94a
mov esi, eax
mov ecx, edi
lea edx, [edx + 2]
and ecx, 3
mov dword [esp - 0x28], 0x75eb13c4
mov eax, 0x3bd10ba0
add eax, 0xbed1cc7
sub eax, 0x19c03cba
add eax, 0x23ad5795
mov esp, esp
add eax, 0x29ff01af
shl ecx, 3
inc edi
sar eax, cl
mov dword [esp - 0x28], 0x741df218
cbw
xor ax, word [edx + ebx - 2]
mov word [edx - 2], ax
cmp edi, esi
mov ecx, ecx
jb 0x4957ee
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [esp - 0x24], 0x7db74550
xor ecx, ecx
push ecx
push ecx
push ecx
xchg ebp, ebp
push ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x28]
push eax
mov dword [esp - 0x20], esp
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [0x4c0b80]
xor eax, dword [0x4c0968]
mov dword [esp - 0x44], edx
push ecx
nop
mov dword [esp - 4], 0xfb4ba0a
xor dword [esp - 4], 0x492f6439
xchg esp, esp
sub dword [esp - 4], 0x31231342
xor dword [esp - 4], 0x2f98c6fe
add dword [esp - 4], 0x36bed553
sub dword [esp - 4], 0xcb9c9d6
xchg edx, edx
sub dword [esp - 4], 0x64e419a3
sub esp, 4
call eax
mov ebx, eax
mov ebp, ebp
lea edi, [ebx + 1]
push edi
call fcn.00490c90
mov dword [esp - 0xc], ebx
mov ecx, dword [0x4c0b80]
add esp, 4
xor ecx, dword [0x4c0968]
mov dword [ebp - 8], eax
xchg ecx, ecx
nop
sub esp, 4
mov dword [esp], 0x5d8439e8
add dword [esp], 0x73873ee
mov dword [esp - 0x2c], 0x44e14fae
sub dword [esp], 0x1070e16a
xor dword [esp], 0x1711944c
add dword [esp], 0x26e71ab8
mov esi, esi
sub dword [esp], 0x6a4172d8
nop
mov dword [esp - 4], 0x5d2ec30e
mov dword [esp - 0xc], edx
sub dword [esp - 4], 0x4aaa37e
xor dword [esp - 4], 0x6427150f
xor dword [esp - 4], 0x336ba70a
mov dword [esp - 0x30], 0x43533100
add dword [esp - 4], 0x4217daea
xor dword [esp - 4], 0x51e0887f
sub esp, 4
mov edi, edi
push edi
push eax
push dword [ebp - 0x14]
xchg ebp, ebp
push esi
nop
mov dword [esp - 4], 0x22e7b70f
mov dword [esp - 0x18], edx
sub dword [esp - 4], 0x1fa33197
xor dword [esp - 4], 0x46ffe239
xor dword [esp - 4], 0x776ae430
xor dword [esp - 4], 0x70976592
mov dword [esp - 0x2c], 0x65f85fb3
xor dword [esp - 4], 0x4246e6e3
sub esp, 4
sub esp, 4
mov dword [esp - 0xc], ecx
mov dword [esp], 0x1553fedf
add dword [esp], 0x15e35939
add dword [esp], 0x471381ee
xchg ebp, ebp
xor dword [esp], 0x7b4a16da
add dword [esp], 0x3602b20
sub dword [esp], 0xa60fe68
sub dword [esp], 0x1fefbab
mov esi, esi
call ecx
mov edi, dword [ebp - 8]
push esi
mov byte [edi + ebx], 1
mov dword [esp - 0x18], ebp
add byte [edi + ebx], 0x6d
xor byte [edi + ebx], 0x34
sub byte [edi + ebx], 0x50
mov esp, esp
add byte [edi + ebx], 0x3c
add byte [edi + ebx], 0
xor byte [edi + ebx], 0x46
call fcn.00490c60
xchg edx, edx
mov ebx, dword [ebp - 0xc]
add esp, 4
mov edx, ebx
mov dword [esp - 0x28], 0x1b75da69
lea ecx, [edx + 1]
lea ebx, [ebx]
mov al, byte [edx]
inc edx
mov esi, esi
test al, al
jne 0x495a1b
sub edx, ecx
mov ecx, edi
mov dword [esp - 0x40], esi
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
xchg ecx, ecx
test al, al
jne 0x495a31
sub ecx, esi
lea esi, [ecx + 1]
mov dword [esp - 0x20], 0x1e7b2c58
add esi, edx
push esi
call fcn.00490c90
mov dword [esp - 0x30], esp
push ebx
mov edi, eax
push esi
push edi
mov ecx, ecx
call fcn.00491b70
push dword [ebp - 8]
push esi
push edi
mov dword [esp - 0x14], esi
call fcn.00491a20
push ebx
call fcn.00490c60
xchg esp, esp
push dword [ebp - 8]
mov ebx, edi
mov dword [ebp - 0xc], ebx
mov edi, edi
call fcn.00490c60
add esp, 0x24
cmp dword [ebp - 0x28], 2
jbe 0x495aa2
xchg ecx, ecx
push dword [ebp - 0x2c]
call fcn.00490c60
add esp, 4
mov dword [esp - 0x2c], 0x364f45e2
mov eax, dword [ebp - 4]
mov edi, 0x522b0d41
add edi, 0x751c609
mov edi, edi
sub edi, 0xc00a18
xor edi, 0x515be393
sub edi, 0x9e72a9f
mov esi, dword [ebp - 0x10]
mov dword [esp - 0x24], 0x3dba9fea
add esi, 4
mov dword [ebp - 0x10], esi
cmp esi, eax
mov dword [esp - 0x3c], esi
jne 0x4952e4
pop edi
pop esi
mov edx, edx
mov eax, ebx
pop ebx
mov esp, ebp
mov esi, esi
pop ebp
ret
mov eax, ebx
pop ebx
xchg esp, esp
mov esp, ebp
pop ebp
ret