Function at 0x4298d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov bx, word [ebp]
mov eax, ebx
and eax, 0xffff
shr eax, 0xd
cmp eax, edx
jl case.default.0x429a96
cmp eax, dword [esp + 0x24]
jg case.default.0x429a96
mov ecx, dword [eax*4 + 0x6d7018]
test ecx, ecx
je case.default.0x429a96
mov dword [0x6737c8], eax
mov di, word [ebp + 2]
mov eax, edi
xor ecx, ecx
mov cx, word [ebp + 4]
and eax, 0x6000
and ebx, 0x3ff
and edi, 0x3ff
lea esi, [ecx + eax*8]
test bh, 2
mov dword [esp + 0x1c], esi
je 0x429939
or bh, 0xfc
test edi, 0x200
je 0x429947
or edi, 0xfc00
mov al, byte [ebp + 6]
add ebx, 0x20
add edi, 0x20
mov dword [esp + 0x24], ebx
test al, 0x80
mov dword [esp + 0x10], edi
jne 0x42997d
mov eax, dword [0x71b900]
mov dx, word [eax + 8]
mov ax, word [eax + 0xa]
sub word [esp + 0x24], dx
sub word [esp + 0x10], ax
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
jmp 0x4299aa
mov eax, dword [0x680b84]
test eax, eax
je 0x4299aa
mov ecx, edi
mov edx, ebx
and ecx, 0xffff
and edx, 0xffff
push ecx
push edx
push esi
push 0x537894
push 1
push 0x3c
call fcn.0043faf0
add esp, 0x18
mov eax, dword [0x66b6c8]
test eax, eax
je 0x429c5d
mov eax, dword [0x68c568]
mov ecx, dword [eax + 0x94]
test ecx, ecx
je 0x429c5d
mov bp, word [ebp + 6]
mov edx, ebp
and ebp, 0x1f
and edx, 0xffff
mov eax, edx
mov ebx, edx
shr eax, 4
and eax, 0xf0
shr ebx, 0xc
add eax, 0x10
inc ebx
shl ebx, 4
shl ebp, 4
cmp eax, 0x10
jne 0x429a6d
cmp ebx, eax
jne 0x429a6d
shr edx, 5
and edx, 3
cmp edx, 3
ja case.default.0x429a96
jmp dword [edx*4 + 0x429c78]
mov edx, dword [esp + 0x24]
push ebp
push edi
mov ecx, esi
call fcn.004292d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov edx, dword [esp + 0x24]
push ebp
push edi
mov ecx, esi
call fcn.00429450
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov edx, dword [esp + 0x24]
push ebp
push edi
mov ecx, esi
call fcn.004295d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov edx, dword [esp + 0x24]
push ebp
push edi
mov ecx, esi
call fcn.00429750
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
movsx edi, word [esp + 0x24]
movsx ecx, word [esp + 0x10]
shr edx, 5
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], ecx
and edx, 3
add edi, eax
add ecx, ebx
cmp edx, 3
mov dword [esp + 0x10], ecx
ja case.default.0x429a96
jmp dword [edx*4 + 0x429c88]
mov eax, dword [esp + 0x24]
cmp eax, ecx
jge case.default.0x429a96
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x14]
cmp ebx, edi
jge 0x429ae5
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x18]
push ebp
push ecx
mov ecx, dword [esp + 0x2c]
xor ecx, esi
mov edx, ebx
and ecx, 0xf
xor ecx, esi
call fcn.004292d0
add ebx, 0x10
mov ecx, dword [esp + 0x24]
inc ecx
cmp ebx, edi
mov dword [esp + 0x24], ecx
jl 0x429ab9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add esi, 0x10
add eax, 0x10
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x429aad
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ebx, dword [esp + 0x24]
cmp ebx, ecx
jge case.default.0x429a96
cdq
and edx, 0xf
mov dword [esp + 0x18], ebx
add eax, edx
sar eax, 4
dec eax
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x14]
cmp ebx, edi
jge 0x429b5d
mov edx, dword [esp + 0x1c]
add edx, esi
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
xor ecx, esi
push ebp
and ecx, 0xf
push eax
mov edx, ebx
xor ecx, esi
call fcn.00429450
add ebx, 0x10
mov ecx, dword [esp + 0x24]
dec ecx
cmp ebx, edi
mov dword [esp + 0x24], ecx
jl 0x429b31
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add esi, 0x10
add eax, 0x10
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x429b1f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x24], eax
lea ebx, [ebx + edx - 0x10]
jge case.default.0x429a96
mov esi, dword [esp + 0x14]
cmp esi, edi
jge 0x429bc9
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x18]
push ebp
xor ecx, ebx
push eax
and ecx, 0xf
mov edx, esi
xor ecx, ebx
call fcn.004295d0
add esi, 0x10
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
inc ecx
cmp esi, edi
mov dword [esp + 0x18], ecx
jl 0x429b9d
mov ecx, dword [esp + 0x10]
add eax, 0x10
sub ebx, 0x10
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x429b91
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea ebx, [ebx + ecx - 0x10]
mov ecx, dword [esp + 0x24]
cmp ecx, edx
mov dword [esp + 0x24], ecx
jge case.default.0x429a96
cdq
and edx, 0xf
add eax, edx
sar eax, 4
dec eax
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x14]
cmp esi, edi
jge 0x429c41
mov edx, dword [esp + 0x1c]
add edx, ebx
mov dword [esp + 0x18], edx
push ebp
push ecx
mov ecx, dword [esp + 0x20]
mov edx, esi
xor ecx, ebx
and ecx, 0xf
xor ecx, ebx
call fcn.00429750
add esi, 0x10
mov ecx, dword [esp + 0x18]
dec ecx
cmp esi, edi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
jl 0x429c19
mov eax, dword [esp + 0x10]
add ecx, 0x10
sub ebx, 0x10
cmp ecx, eax
mov dword [esp + 0x24], ecx
jl 0x429c07
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ax, word [ebp + 6]
mov edx, ebx
push eax
push edi
mov ecx, esi
call fcn.00428000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4