Function at 0x428580
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
xor ebx, ebx
xor ebp, ebp
cmp dword [esi + 0x6af90], ebx
push edi
mov dword [esi + 0x6af80], 2
je 0x42854d
cmp dword [esi + 0x6af90], 3
jb 0x4283c4
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 0x428403
mov edx, dword [esi + 0x6af84]
sub edx, ebp
cmp edx, 0x7efa
ja 0x428403
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4283ec
mov dword [esi + 0x6afa0], eax
push ebp
call fcn.004265e0
mov ebx, eax
mov eax, dword [esi + 0x6af90]
add esp, 4
cmp ebx, eax
jbe 0x428403
mov ebx, eax
cmp ebx, 3
mov eax, dword [esi + 0x6af84]
mov ecx, esi
jb 0x4284d8
sub eax, dword [esi + 0x6af88]
lea edx, [ebx - 3]
call fcn.00426c20
sub dword [esi + 0x6af90], ebx
cmp ebx, dword [esi + 0x6af98]
mov ecx, dword [esi + 0x6af90]
ja 0x4284a0
cmp ecx, 3
jb 0x4284a0
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 0x428442
add dword [esi + 0x6af84], edi
jmp 0x4284f5
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 0x4284f5
movzx edx, byte [eax + esi + 0x1af70]
xor eax, eax
call fcn.00426c20
add dword [esi + 0x6af90], 0xffffffff
add dword [esi + 0x6af84], 1
test eax, eax
je 0x42852f
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x42850c
lea edx, [ecx + esi + 0x1af70]
jmp 0x42850e
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
xor edi, edi
mov ecx, esi
call fcn.004281a0
mov ecx, dword [esi + 0x6af84]
add esp, 4
mov dword [esi + 0x6af74], ecx
cmp dword [esi + 0x6af90], 0x106
jae 0x428540
call fcn.004264a0
cmp dword [esi + 0x6af90], 0
jne 0x428370
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x428560
lea edx, [ecx + esi + 0x1af70]
jmp 0x428562
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
mov edi, 1
mov ecx, esi
call fcn.004281a0
add esp, 4
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 0x4285ac
pop esi
pop ebx
add esp, 8
jmp 0x428350
cmp dword [esi + 0x6af90], 0
push edi
je 0x42885a
push ebp
jmp 0x4285c0
cmp dword [esi + 0x6af90], 3
jb 0x428618
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]
test ecx, ecx
mov ebp, dword [esi + 0x6af88]
mov dword [esi + 0x6af80], ebx
mov ebx, 2
je 0x428697
mov edx, dword [esi + 0x6af80]
cmp edx, dword [esi + 0x6af98]
jae 0x428697
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x428697
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x428662
mov dword [esi + 0x6afa0], eax
push ecx
call fcn.004265e0
mov ebx, eax
mov eax, dword [esi + 0x6af90]
add esp, 4
cmp ebx, eax
jbe 0x428679
mov ebx, eax
cmp ebx, 3
jne 0x428697
mov ecx, dword [esi + 0x6af84]
sub ecx, dword [esi + 0x6af88]
cmp ecx, 0x1000
jbe 0x428697
mov ebx, 2
mov ecx, dword [esi + 0x6af80]
cmp ecx, 3
jb 0x4287a6
cmp ebx, ecx
ja 0x4287a6
mov eax, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af90]
lea edi, [eax + edx - 3]
sub eax, ebp
lea edx, [ecx - 3]
mov ebx, 1
sub eax, ebx
mov ecx, esi
call fcn.00426c20
mov ecx, dword [esi + 0x6af80]
mov ebp, eax
mov eax, ebx
sub eax, ecx
add dword [esi + 0x6af90], eax
add ecx, 0xfffffffe
mov dword [esi + 0x6af80], ecx
lea esp, [esp]
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
cmp edx, edi
ja 0x42874a
movzx ecx, byte [edx + esi + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
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 0x4286f0
add dword [esi + 0x6af84], ebx
test ebp, ebp
mov eax, dword [esi + 0x6af84]
mov dword [esp + 0x10], 0
mov ebx, 2
je 0x42881d
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x428787
lea edx, [ecx + esi + 0x1af70]
jmp 0x428789
xor edx, edx
sub eax, ecx
push edx
xor edi, edi
mov ecx, esi
call fcn.004281a0
mov eax, dword [esi + 0x6af84]
add esp, 4
mov dword [esi + 0x6af74], eax
jmp 0x42881d
cmp dword [esp + 0x10], 0
je 0x428807
mov ecx, dword [esi + 0x6af84]
movzx edx, byte [ecx + esi + 0x1af6f]
xor eax, eax
mov ecx, esi
call fcn.00426c20
test eax, eax
je 0x4287fe
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x4287db
lea edx, [ecx + esi + 0x1af70]
jmp 0x4287dd
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
xor edi, edi
mov ecx, esi
call fcn.004281a0
mov edx, dword [esi + 0x6af84]
add esp, 4
mov dword [esi + 0x6af74], edx
add dword [esi + 0x6af84], 1
jmp 0x428816
mov eax, 1
add dword [esi + 0x6af84], eax
mov dword [esp + 0x10], eax
add dword [esi + 0x6af90], 0xffffffff
cmp dword [esi + 0x6af90], 0x106
jae 0x42882e
call fcn.004264a0
cmp dword [esi + 0x6af90], 0
jne 0x4285c0
cmp dword [esp + 0x10], 0
pop ebp
je 0x42885a
mov eax, dword [esi + 0x6af84]
movzx edx, byte [eax + esi + 0x1af6f]
xor eax, eax
mov ecx, esi
call fcn.00426c20
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x42886d
lea edx, [ecx + esi + 0x1af70]
jmp 0x42886f
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
mov edi, 1
mov ecx, esi
call fcn.004281a0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret