Function at 0x430044
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor edi, edi
xor esi, esi
mov dword [ebx + 0x6af78], 2
jmp 0x430275
cmp eax, 3
jb 0x4300b7
mov edx, dword [ebx + 0x6af7c]
mov eax, dword [ebx + 0x6af74]
shl eax, 5
xor ecx, ecx
mov cl, byte [ebx + edx + 0x1af6a]
xor eax, ecx
and eax, 0x7fff
mov dword [ebx + 0x6af74], eax
mov edi, dword [ebx + eax*4 + 0x4af68]
mov eax, dword [ebx + 0x6af7c]
and eax, 0x7fff
mov dword [ebx + eax*4 + 0x2af68], edi
mov edx, dword [ebx + 0x6af74]
mov ecx, dword [ebx + 0x6af7c]
mov dword [ebx + edx*4 + 0x4af68], ecx
test edi, edi
je 0x4300f8
mov eax, dword [ebx + 0x6af7c]
sub eax, edi
cmp eax, 0x7efa
ja 0x4300f8
mov eax, dword [ebx + 0x6af88]
mov edx, dword [ebx + 0x6af98]
cmp eax, edx
jae 0x4300e0
mov dword [ebx + 0x6af98], eax
push edi
push ebx
call fcn.0042fce8
add esp, 8
mov esi, eax
mov eax, dword [ebx + 0x6af88]
cmp esi, eax
jbe 0x4300f8
mov esi, eax
cmp esi, 3
jb 0x4301ed
mov eax, esi
sub eax, 3
push eax
mov edx, dword [ebx + 0x6af7c]
mov ecx, dword [ebx + 0x6af80]
sub edx, ecx
push edx
push ebx
call fcn.0042f364
add esp, 0xc
mov dword [ebp - 4], eax
sub dword [ebx + 0x6af88], esi
mov eax, dword [ebx + 0x6af90]
cmp esi, eax
ja 0x4301a0
mov edx, dword [ebx + 0x6af88]
cmp edx, 3
jb 0x4301a0
dec esi
inc dword [ebx + 0x6af7c]
xor ecx, ecx
mov edx, dword [ebx + 0x6af7c]
mov eax, dword [ebx + 0x6af74]
shl eax, 5
mov cl, byte [ebx + edx + 0x1af6a]
xor eax, ecx
and eax, 0x7fff
mov dword [ebx + 0x6af74], eax
mov edi, dword [ebx + eax*4 + 0x4af68]
mov eax, dword [ebx + 0x6af7c]
and eax, 0x7fff
dec esi
mov dword [ebx + eax*4 + 0x2af68], edi
mov edx, dword [ebx + 0x6af74]
mov ecx, dword [ebx + 0x6af7c]
mov dword [ebx + edx*4 + 0x4af68], ecx
jne 0x43013e
inc dword [ebx + 0x6af7c]
jmp 0x430217
add dword [ebx + 0x6af7c], esi
xor esi, esi
mov eax, dword [ebx + 0x6af7c]
movzx eax, byte [ebx + eax + 0x1af68]
mov dword [ebx + 0x6af74], eax
shl eax, 5
mov edx, dword [ebx + 0x6af7c]
xor ecx, ecx
mov cl, byte [ebx + edx + 0x1af69]
xor eax, ecx
and eax, 0x7fff
mov dword [ebx + 0x6af74], eax
push 0x5e9a7f
push 1
push ebx
call fcn.0042e2b8
add esp, 0xc
jmp 0x430217
mov eax, dword [ebx + 0x6af7c]
xor edx, edx
mov dl, byte [ebx + eax + 0x1af68]
push edx
push 0
push ebx
call fcn.0042f364
add esp, 0xc
mov dword [ebp - 4], eax
dec dword [ebx + 0x6af88]
inc dword [ebx + 0x6af7c]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x430260
push 0
mov eax, dword [ebx + 0x6af7c]
mov edx, dword [ebx + 0x6af6c]
sub eax, edx
push eax
mov ecx, dword [ebx + 0x6af6c]
test ecx, ecx
jl 0x430248
mov eax, dword [ebx + 0x6af6c]
add eax, ebx
add eax, 0x1af68
jmp 0x43024a
xor eax, eax
push eax
push ebx
call fcn.0042f0f8
add esp, 0x10
mov edx, dword [ebx + 0x6af7c]
mov dword [ebx + 0x6af6c], edx
mov ecx, dword [ebx + 0x6af88]
cmp ecx, 0x106
jae 0x430275
push ebx
call fcn.0042fedc
pop ecx
mov eax, dword [ebx + 0x6af88]
test eax, eax
jne 0x430061
push 1
mov edx, dword [ebx + 0x6af7c]
mov ecx, dword [ebx + 0x6af6c]
sub edx, ecx
push edx
mov eax, dword [ebx + 0x6af6c]
test eax, eax
jl 0x4302ae
mov edx, dword [ebx + 0x6af6c]
add edx, ebx
add edx, 0x1af68
jmp 0x4302b0
xor edx, edx
push edx
push ebx
call fcn.0042f0f8
add esp, 0x10
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret