Function at 0x421af0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
xor ebx, ebx
xor ebp, ebp
push edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x421ac1
cmp dword [esi + 0x6af90], 3
jb 0x421934
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebp, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebp
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebp, ebp
je 0x421973
mov edx, dword [esi + 0x6af84]
sub edx, ebp
cmp edx, 0x7efa
ja 0x421973
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x42195c
mov dword [esi + 0x6afa0], eax
push ebp
call fcn.004215e0
mov ebx, eax
mov eax, dword [esi + 0x6af90]
add esp, 4
cmp ebx, eax
jbe 0x421973
mov ebx, eax
mov ecx, esi
cmp ebx, 3
jb 0x421a48
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea eax, [ebx - 3]
call fcn.00420da0
sub dword [esi + 0x6af90], ebx
mov ecx, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x421a10
cmp ecx, 3
jb 0x421a10
mov edi, 1
sub ebx, edi
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov ebp, dword [esi + 0x6af7c]
shl ebp, 5
xor ecx, ebp
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebp, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub ebx, edi
mov dword [esi + edx*4 + 0x2af70], ebp
mov ecx, dword [esi + 0x6af7c]
mov edx, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], edx
jne 0x4219b2
add dword [esi + 0x6af84], edi
jmp 0x421a69
add dword [esi + 0x6af84], ebx
mov ecx, dword [esi + 0x6af84]
lea edx, [ecx + esi]
movzx ecx, byte [edx + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x421a69
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
xor edx, edx
call fcn.00420da0
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x421aa3
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x421a80
lea ecx, [eax + esi + 0x1af70]
jmp 0x421a82
xor ecx, ecx
mov edi, dword [esi + 0x6af84]
push 0
sub edi, eax
push ecx
mov eax, esi
call fcn.00420be0
mov ecx, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], ecx
cmp dword [esi + 0x6af90], 0x106
jae 0x421ab4
call fcn.00421780
cmp dword [esi + 0x6af90], 0
jne 0x4218e0
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x421ad4
lea ecx, [eax + esi + 0x1af70]
jmp 0x421ad6
xor ecx, ecx
mov edi, dword [esi + 0x6af84]
push 1
sub edi, eax
push ecx
mov eax, esi
call fcn.00420be0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
sub esp, 8
push ebx
push esi
mov esi, eax
cmp dword [esi + 4], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov ebx, 2
jg 0x421b1c
pop esi
pop ebx
add esp, 8
jmp 0x4218c0
cmp dword [esi + 0x6af90], 0
push edi
je 0x421dc8
push ebp
jmp 0x421b30
cmp dword [esi + 0x6af90], 3
jb 0x421b88
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
mov ecx, dword [esp + 0x14]
mov ebp, dword [esi + 0x6af88]
mov dword [esi + 0x6af80], ebx
mov ebx, 2
test ecx, ecx
je 0x421c07
mov edx, dword [esi + 0x6af80]
cmp edx, dword [esi + 0x6af98]
jae 0x421c07
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x421c07
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x421bd2
mov dword [esi + 0x6afa0], eax
push ecx
call fcn.004215e0
mov ebx, eax
mov eax, dword [esi + 0x6af90]
add esp, 4
cmp ebx, eax
jbe 0x421be9
mov ebx, eax
cmp ebx, 3
jne 0x421c07
mov ecx, dword [esi + 0x6af84]
sub ecx, dword [esi + 0x6af88]
cmp ecx, 0x1000
jbe 0x421c07
mov ebx, 2
mov eax, dword [esi + 0x6af80]
cmp eax, 3
jb 0x421d16
cmp ebx, eax
ja 0x421d16
mov edx, dword [esi + 0x6af84]
mov ecx, dword [esi + 0x6af90]
lea edi, [edx + ecx - 3]
sub edx, ebp
mov ebx, 1
add eax, 0xfffffffd
sub edx, ebx
mov ecx, esi
call fcn.00420da0
mov ecx, dword [esi + 0x6af80]
mov edx, ebx
sub edx, ecx
add dword [esi + 0x6af90], edx
add ecx, 0xfffffffe
mov dword [esi + 0x6af80], ecx
lea ebx, [ebx]
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
cmp edx, edi
ja 0x421cba
movzx ecx, byte [edx + esi + 0x1af72]
mov ebp, dword [esi + 0x6af7c]
shl ebp, 5
xor ecx, ebp
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
mov dword [esi + edx*4 + 0x2af70], ecx
mov edx, dword [esi + 0x6af84]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x6af7c]
mov dword [esi + ecx*4 + 0x4af70], edx
add dword [esi + 0x6af80], 0xffffffff
jne 0x421c60
add dword [esi + 0x6af84], ebx
mov edi, dword [esi + 0x6af84]
mov dword [esp + 0x10], 0
mov ebx, 2
test eax, eax
je 0x421d8b
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x421cf7
lea ecx, [eax + esi + 0x1af70]
jmp 0x421cf9
xor ecx, ecx
push 0
sub edi, eax
push ecx
mov eax, esi
call fcn.00420be0
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
jmp 0x421d8b
cmp dword [esp + 0x10], 0
je 0x421d76
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af6f]
xor edx, edx
mov ecx, esi
call fcn.00420da0
test eax, eax
je 0x421d6e
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x421d4b
lea ecx, [eax + esi + 0x1af70]
jmp 0x421d4d
xor ecx, ecx
mov edi, dword [esi + 0x6af84]
push 0
sub edi, eax
push ecx
mov eax, esi
call fcn.00420be0
mov edx, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], edx
inc dword [esi + 0x6af84]
jmp 0x421d85
mov eax, 1
add dword [esi + 0x6af84], eax
mov dword [esp + 0x10], eax
dec dword [esi + 0x6af90]
cmp dword [esi + 0x6af90], 0x106
jae 0x421d9c
call fcn.00421780
cmp dword [esi + 0x6af90], 0
jne 0x421b30
cmp dword [esp + 0x10], 0
pop ebp
je 0x421dc8
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af6f]
xor edx, edx
mov ecx, esi
call fcn.00420da0
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x421ddb
lea ecx, [eax + esi + 0x1af70]
jmp 0x421ddd
xor ecx, ecx
mov edi, dword [esi + 0x6af84]
push 1
sub edi, eax
push ecx
mov eax, esi
call fcn.00420be0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 8
ret