Function at 0x425a90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
mov esi, eax
movsx eax, byte [esi + 0x16d]
mov ecx, dword [esi + 0xe8]
xor edx, edx
shl eax, 6
cmp byte [esi + 0x166], 6
push edi
sete dl
lea edi, [eax + ecx + 0x24]
mov eax, dword [esi + 0xec]
xor ebp, ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edx
xor dl, dl
cmp eax, ebp
mov byte [esp + 0x17], dl
je 0x425aeb
add dword [eax + 0x140], ebx
adc dword [eax + 0x144], ebp
cmp byte [esi + 0x167], 5
jne 0x425b43
mov ecx, dword [esi + 0xdc]
test ecx, 0x8000
je 0x425b43
and ecx, 0xffff7fff
lea eax, [edi + 8]
mov dword [esi + 0xdc], ecx
cmp dword [eax], ebp
je 0x425b2a
mov ecx, dword [eax]
cmp ecx, esi
je 0x425b25
cmp dword [ecx + 0x34], ebp
lea eax, [ecx + 0x34]
jne 0x425b15
jmp 0x425b2a
mov ecx, dword [esi + 0x34]
mov dword [eax], ecx
movzx ecx, byte [esi + 0xd9]
and ecx, 0xc0
or ecx, 2
mov dword [esi + 0x34], ebp
mov dword [esp + 0x3c], ecx
jmp 0x425b47
mov ecx, dword [esp + 0x3c]
cmp ecx, 3
je 0x425daa
cmp ecx, 7
je 0x425da1
cmp ecx, 8
je 0x425da1
mov al, byte [esi + 0x167]
cmp al, 5
je 0x425b83
cmp al, 8
je 0x425b74
cmp al, 9
jne 0x425b79
cmp ecx, 4
je 0x425b83
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esi + 0xdc]
test al, 0x10
jne 0x425d26
or eax, 0x20
cmp ecx, 4
mov dword [esi + 0xdc], eax
mov eax, dword [esp + 0x34]
mov edi, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
jl 0x425bb6
cmp ecx, 6
jle 0x425c94
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x15
call fcn.00427250
add esp, 8
test eax, eax
jl 0x425e73
je 0x425c0a
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x425c40
mov eax, dword [esp + 0x20]
or dword [esi + 0xdc], 0x8000
mov ecx, dword [eax + 8]
mov dword [esi + 0x34], ecx
mov dword [eax + 8], esi
mov eax, esi
call fcn.004207c0
mov eax, dword [esp + 0x3c]
mov byte [esi + 0xd9], al
or eax, 0x40
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x425c40
mov eax, dword [esi + 0xdc]
test eax, 0x2000
je 0x425c40
movzx edx, byte [esi + 0xd8]
and eax, 0xffffdfff
mov dword [esi + 0xdc], eax
mov eax, dword [esp + 0x3c]
and eax, 0xc0
or edx, eax
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x34], eax
je 0x425c8c
mov edx, dword [esp + 0x38]
test edx, edx
je 0x425c85
test edi, edi
jne 0x425c85
mov eax, dword [esi + 0xdc]
test eax, 0x2000
jne 0x425c70
mov cl, byte [esp + 0x3c]
and cl, 0x3f
mov byte [esi + 0xd8], cl
or eax, 0x2000
mov dword [esi + 0xdc], eax
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
and dword [esi + 0xdc], 0xffffffdf
mov ecx, dword [esp + 0x3c]
mov dl, byte [esp + 0x17]
cmp byte [esi + 0x165], 0xd
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
jne 0x425d22
cmp dword [esp + 0x1c], ebp
je 0x425cc0
lea edx, [eax - 4]
mov byte [esp + 0x17], 0x80
mov dword [esp + 0x18], edx
mov dl, byte [esp + 0x17]
mov ebp, 4
and ecx, 0xf
cmp ecx, 6
ja case.0x425ccc.3
jmp dword [ecx*4 + 0x425ec8]
mov ecx, 1
jmp 0x425cf8
mov ecx, 2
jmp 0x425cf8
xor ecx, ecx
jmp 0x425cf8
mov ecx, 8
jmp 0x425cf8
mov ecx, 9
jmp 0x425cf8
mov ecx, 0xa
test byte [esp + 0x3c], 0x40
jne 0x425d05
or ecx, 0x80
cmp edi, 0x7e
jae 0x425dd0
add ebp, 2
sub eax, ebp
mov byte [eax], cl
mov cl, byte [esp + 0x38]
or cl, dl
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
cmp dword [esp + 0x1c], 0
je 0x425da1
test byte [esi + 0xdc], 0x10
jne 0x425d5a
xor edi, edi
call fcn.004bb93e
mov byte [edi + esi + 0x40], al
add edi, 1
cmp edi, 4
jl 0x425d38
jne 0x425e44
mov ecx, dword [esp + 0x3c]
mov byte [esi + 0xd2], 0
cmp dword [esp + 0x18], 0
je 0x425da1
mov eax, 4
lea ecx, [ebx + 4]
cmp ecx, eax
jle 0x425d94
lea ecx, [ecx]
movzx edx, byte [esi + 0xd2]
mov edi, dword [esp + 0x18]
and edx, 3
movzx edx, byte [edx + esi + 0x40]
xor byte [eax + edi], dl
add byte [esi + 0xd2], 1
add eax, 1
cmp eax, ecx
jl 0x425d70
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x40]
mov dword [ecx], eax
mov ecx, dword [esp + 0x3c]
cmp ecx, 3
jl 0x425e7e
cmp ecx, 8
jg 0x425e7e
mov eax, dword [esp + 0x34]
lea edx, [ebx + ebp]
push edx
sub eax, ebp
push eax
mov edi, esi
call fcn.004258e0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp edi, 0x10000
mov ebx, dword [esp + 0x38]
jae 0x425dff
add ebp, 4
sub eax, ebp
mov byte [eax], cl
or dl, 0x7e
mov byte [eax + 1], dl
mov ecx, ebx
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x3c]
jmp 0x425d26
or dl, 0x7f
add ebp, 0xa
sub eax, ebp
mov byte [eax], cl
mov ecx, dword [esp + 0x38]
mov byte [eax + 1], dl
mov byte [eax + 2], 0
mov byte [eax + 3], 0
mov byte [eax + 4], 0
mov edx, ecx
shr edx, 0x18
mov byte [eax + 5], 0
mov byte [eax + 6], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 7], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 8], dl
mov byte [eax + 9], cl
mov ecx, dword [esp + 0x3c]
jmp 0x425d26
push str.frame_mask_generation_failed_n
mov esi, 1
call fcn.004214d0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push str.lws_write:_unknown_write_opc___wp_n
mov esi, 2
call fcn.004214d0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x34]
lea edi, [ebx + ebp]
sub eax, ebp
push edi
push eax
mov eax, esi
call fcn.00427350
or dword [esi + 0xdc], 0x10
mov ecx, dword [esi + 0xdc]
add esp, 8
test eax, eax
jle 0x425ebf
cmp eax, edi
jne 0x425ebd
mov eax, dword [esp + 0x24]
and ecx, 0xffffffef
mov dword [esi + 0xdc], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
sub eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret