Function at 0x6309a490
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x6309a780
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test ecx, ecx
not eax
je 0x6309a4df
test bl, 3
je 0x6309a4f4
mov ecx, dword [esp + 0x1c]
jmp 0x6309a4c5
test bl, 3
je 0x6309a4f0
add ebx, 1
mov edx, eax
shr eax, 8
xor dl, byte [ebx - 1]
movzx edx, dl
xor eax, dword [edx*4 + 0x630c8740]
sub ecx, 1
jne 0x6309a4c0
pop ebx
not eax
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x1c], 0x1f
jbe 0x6309a6c9
mov esi, dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x18], ebx
lea esi, [esi]
xor eax, dword [ecx]
mov ebp, eax
movzx edi, al
mov edx, eax
shr ebp, 0x18
mov edi, dword [edi*4 + 0x630c9340]
shr edx, 0x10
xor edi, dword [ebp*4 + 0x630c8740]
movzx eax, ah
movzx edx, dl
xor edi, dword [ecx + 4]
xor edi, dword [eax*4 + 0x630c8f40]
mov eax, dword [edx*4 + 0x630c8b40]
xor eax, edi
mov edx, eax
mov ebp, eax
shr edx, 0x10
shr ebp, 0x18
movzx edi, dl
movzx edx, al
movzx eax, ah
mov edx, dword [edx*4 + 0x630c9340]
xor edx, dword [ebp*4 + 0x630c8740]
xor edx, dword [ecx + 8]
xor edx, dword [eax*4 + 0x630c8f40]
xor edx, dword [edi*4 + 0x630c8b40]
mov eax, edx
mov ebp, edx
shr eax, 0x10
shr ebp, 0x18
movzx edi, al
movzx eax, dl
movzx edx, dh
mov eax, dword [eax*4 + 0x630c9340]
xor eax, dword [ebp*4 + 0x630c8740]
xor eax, dword [ecx + 0xc]
xor eax, dword [edx*4 + 0x630c8f40]
xor eax, dword [edi*4 + 0x630c8b40]
mov edx, eax
mov ebp, eax
shr edx, 0x10
shr ebp, 0x18
movzx edi, dl
movzx edx, al
movzx eax, ah
mov edx, dword [edx*4 + 0x630c9340]
xor edx, dword [ebp*4 + 0x630c8740]
xor edx, dword [ecx + 0x10]
xor edx, dword [eax*4 + 0x630c8f40]
xor edx, dword [edi*4 + 0x630c8b40]
mov eax, edx
mov ebp, edx
shr eax, 0x10
shr ebp, 0x18
movzx edi, al
movzx eax, dl
movzx edx, dh
mov eax, dword [eax*4 + 0x630c9340]
xor eax, dword [ebp*4 + 0x630c8740]
xor eax, dword [ecx + 0x14]
xor eax, dword [edx*4 + 0x630c8f40]
xor eax, dword [edi*4 + 0x630c8b40]
mov ebp, eax
mov edx, eax
movzx edi, al
shr ebp, 0x18
shr edx, 0x10
mov edi, dword [edi*4 + 0x630c9340]
xor edi, dword [ebp*4 + 0x630c8740]
movzx eax, ah
movzx edx, dl
xor edi, dword [ecx + 0x18]
mov ebx, dword [edx*4 + 0x630c8b40]
add ecx, 0x20
xor edi, dword [eax*4 + 0x630c8f40]
sub esi, 0x20
xor ebx, edi
mov ebp, ebx
movzx edx, bl
mov eax, ebx
shr ebp, 0x18
mov edx, dword [edx*4 + 0x630c9340]
shr eax, 0x10
xor edx, dword [ebp*4 + 0x630c8740]
movzx edi, bh
movzx eax, al
xor edx, dword [ecx - 4]
xor edx, dword [edi*4 + 0x630c8f40]
xor edx, dword [eax*4 + 0x630c8b40]
mov eax, edx
movzx ebp, dl
shr eax, 0x10
movzx edi, al
mov eax, edx
movzx edx, dh
shr eax, 0x18
mov eax, dword [eax*4 + 0x630c8740]
xor eax, dword [ebp*4 + 0x630c9340]
xor eax, dword [edx*4 + 0x630c8f40]
xor eax, dword [edi*4 + 0x630c8b40]
cmp esi, 0x1f
ja 0x6309a510
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
and dword [esp + 0x1c], 0x1f
lea edx, [esi - 0x20]
and edx, 0xffffffe0
lea ebx, [ebx + edx + 0x20]
cmp dword [esp + 0x1c], 3
jbe 0x6309a787
mov esi, dword [esp + 0x1c]
lea edx, [esi - 4]
shr edx, 2
lea ecx, [ebx + edx*4 + 4]
add ebx, 4
xor eax, dword [ebx - 4]
mov edx, eax
mov esi, eax
shr edx, 0x10
shr esi, 0x18
movzx edi, dl
movzx edx, al
mov esi, dword [esi*4 + 0x630c8740]
xor esi, dword [edx*4 + 0x630c9340]
movzx edx, ah
mov eax, dword [edx*4 + 0x630c8f40]
xor eax, esi
xor eax, dword [edi*4 + 0x630c8b40]
cmp ebx, ecx
jne 0x6309a6e2
and dword [esp + 0x1c], 3
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x6309a4df
mov edx, eax
xor dl, byte [ecx]
shr eax, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x630c8740]
cmp dword [esp + 0x1c], 1
je 0x6309a4df
mov edx, eax
xor dl, byte [ecx + 1]
shr eax, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x630c8740]
cmp dword [esp + 0x1c], 2
je 0x6309a4df
mov edx, eax
xor dl, byte [ecx + 2]
shr eax, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x630c8740]
jmp 0x6309a4df
pop ebx
xor eax, eax
pop esi
pop edi
pop ebp
ret
mov ecx, ebx
jmp 0x6309a722