Function at 0x622c79c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov eax, ecx
and eax, 0xfffffff7
cmp eax, 0x10
je 0x622c79ea
mov eax, 3
cmp ecx, 0x20
jne 0x622c7da0
test ecx, ecx
lea eax, [ecx + 7]
cmovns eax, ecx
sar eax, 3
lea edi, [eax + eax + 6]
test edx, edx
je 0x622c7a0a
mov eax, 4
cmp edx, edi
jne 0x622c7da0
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x200], edi
mov edx, eax
mov eax, dword [ebx]
bswap eax
mov dword [edx], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 4]
bswap eax
mov dword [edx + 4], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 8]
bswap eax
mov dword [ebp - 0x10], eax
mov dword [edx + 8], eax
mov eax, dword [ebx + 0xc]
bswap eax
mov dword [edx + 0xc], eax
cmp ecx, 0x10
je 0x622c7b90
cmp ecx, 0x18
je 0x622c7db0
cmp ecx, 0x20
jne 0x622c7c36
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x24]
bswap edx
mov dword [ecx + 0x10], edx
mov edx, dword [ebx + 0x14]
bswap edx
mov dword [ecx + 0x14], edx
mov edx, dword [ebx + 0x18]
bswap edx
mov dword [ecx + 0x18], edx
mov edi, dword [ebx + 0x1c]
lea ebx, [ecx + 0x20]
bswap edi
mov dword [ecx + 0x1c], edi
mov ecx, 0x1000000
mov edx, edi
mov dword [ebp - 0x20], ecx
jmp 0x622c7b04
mov ecx, 8
mov edi, dword [ebp - 0x1c]
add ebx, 0x20
ror edi, cl
mov eax, edi
mov ecx, edi
shr ecx, 0x18
movzx eax, al
mov eax, dword [eax*4 + 0x622ddfe0]
xor eax, dword [ecx*4 + 0x622ddbe0]
mov ecx, edi
shr ecx, 0x10
xor eax, dword [ebx - 0x30]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x622de7e0]
mov ecx, edi
movzx edi, ch
xor eax, dword [edi*4 + 0x622de3e0]
mov dword [ebx - 0x10], eax
xor eax, dword [ebx - 0x2c]
mov dword [ebx - 0xc], eax
xor eax, dword [ebx - 0x28]
xor edx, eax
mov dword [ebx - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx - 4], edx
mov eax, dword [eax*4 + 0x622eb1e0]
mov dword [ebp - 0x20], eax
mov edi, edx
movzx eax, dl
inc dword [ebp - 0x14]
shr edi, 0x18
mov eax, dword [eax*4 + 0x622ddfe0]
xor eax, dword [edi*4 + 0x622ddbe0]
mov edi, edx
shr edi, 0x10
mov ecx, edi
movzx edi, cl
xor eax, dword [edi*4 + 0x622de7e0]
movzx edi, dh
xor eax, dword [edi*4 + 0x622de3e0]
xor eax, esi
xor eax, dword [ebp - 0x20]
xor dword [ebp - 0x18], eax
mov dword [ebx], eax
mov esi, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 4], eax
xor dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x14]
cmp eax, 7
jne 0x622c7aa0
mov eax, dword [ebp + 0x14]
lea edx, [eax + 0xe0]
mov eax, dword [eax + 0xe0]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x200]
jmp 0x622c7c36
xor ebx, ebx
mov ecx, edx
mov dword [ebp - 0x1c], 0x1000000
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x14], ebx
add ecx, 0x10
mov ebx, dword [ebp - 0x18]
jmp 0x622c7bbd
mov edx, dword [edx*4 + 0x622eb1e0]
add ecx, 0x10
mov dword [ebp - 0x1c], edx
mov edi, eax
movzx edx, al
inc dword [ebp - 0x14]
shr edi, 0x18
mov edx, dword [edx*4 + 0x622ddfe0]
xor edx, dword [edi*4 + 0x622ddbe0]
mov edi, eax
shr edi, 0x10
mov dword [ebp - 0x18], edx
mov edx, edi
movzx edi, dl
mov edx, dword [ebp - 0x18]
xor edx, dword [edi*4 + 0x622de7e0]
movzx edi, ah
xor edx, dword [edi*4 + 0x622de3e0]
xor edx, esi
mov esi, dword [ebp - 0x1c]
xor esi, edx
xor ebx, esi
xor dword [ebp - 0x10], ebx
mov edx, dword [ebp - 0x10]
mov dword [ecx], esi
xor eax, edx
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x14]
mov dword [ecx + 4], ebx
mov dword [ecx + 0xc], eax
cmp edx, 0xa
jne 0x622c7bb0
mov eax, dword [ebp + 0x14]
lea edx, [eax + 0xa0]
mov eax, dword [eax + 0xa0]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x200]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp + 0x14]
mov dword [eax + 0x100], esi
lea ecx, [eax + 0x100]
mov eax, dword [edx + 4]
mov dword [ebx + 0x104], eax
mov eax, dword [edx + 8]
mov dword [ebx + 0x108], eax
mov eax, dword [edx + 0xc]
mov dword [ebx + 0x10c], eax
cmp edi, 1
jle 0x622c7d86
mov ebx, 1
mov dword [ebp - 0x10], ebx
lea esi, [esi]
nop
mov esi, dword [edx - 0x10]
add ecx, 0x10
sub edx, 0x10
inc dword [ebp - 0x10]
mov ebx, esi
mov eax, esi
movzx edi, bl
shr eax, 0x18
mov eax, dword [eax*4 + 0x622debe0]
xor eax, dword [edi*4 + 0x622df7e0]
mov edi, esi
shr edi, 0x10
mov ebx, edi
movzx edi, bl
mov ebx, esi
movzx esi, bh
xor eax, dword [edi*4 + 0x622defe0]
xor eax, dword [esi*4 + 0x622df3e0]
mov dword [ecx], eax
mov esi, dword [edx + 4]
mov ebx, esi
mov eax, esi
movzx edi, bl
shr eax, 0x18
mov eax, dword [eax*4 + 0x622debe0]
xor eax, dword [edi*4 + 0x622df7e0]
mov edi, esi
shr edi, 0x10
mov ebx, edi
movzx edi, bl
mov ebx, esi
movzx esi, bh
xor eax, dword [edi*4 + 0x622defe0]
xor eax, dword [esi*4 + 0x622df3e0]
mov dword [ecx + 4], eax
mov esi, dword [edx + 8]
mov ebx, esi
mov eax, esi
movzx edi, bl
shr eax, 0x18
mov eax, dword [eax*4 + 0x622debe0]
xor eax, dword [edi*4 + 0x622df7e0]
mov edi, esi
shr edi, 0x10
mov ebx, edi
movzx edi, bl
mov ebx, esi
movzx esi, bh
xor eax, dword [edi*4 + 0x622defe0]
xor eax, dword [esi*4 + 0x622df3e0]
mov dword [ecx + 8], eax
mov esi, dword [edx + 0xc]
mov ebx, esi
mov eax, esi
movzx edi, bl
shr eax, 0x18
mov eax, dword [eax*4 + 0x622debe0]
xor eax, dword [edi*4 + 0x622df7e0]
mov edi, esi
shr edi, 0x10
mov ebx, edi
movzx edi, bl
mov ebx, esi
movzx esi, bh
xor eax, dword [edi*4 + 0x622defe0]
mov ebx, dword [ebp - 0x10]
xor eax, dword [esi*4 + 0x622df3e0]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x200], ebx
jg 0x622c7c80
mov eax, dword [edx - 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [edx - 0xc]
mov dword [ecx + 0x14], eax
mov eax, dword [edx - 8]
mov dword [ecx + 0x18], eax
mov eax, dword [edx - 4]
mov dword [ecx + 0x1c], eax
xor eax, eax
add esp, 0x18
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x20], 0x1000000
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x24]
bswap edx
mov dword [ecx + 0x10], edx
mov ebx, dword [ebx + 0x14]
add ecx, 0x18
bswap ebx
mov dword [ecx - 4], ebx
jmp 0x622c7dfd
mov edx, dword [ecx - 8]
add ecx, 0x18
xor edx, eax
xor ebx, edx
mov dword [ecx - 8], edx
mov edx, dword [ebp - 0x14]
mov dword [ecx - 4], ebx
mov edx, dword [edx*4 + 0x622eb1e0]
mov dword [ebp - 0x20], edx
mov edi, ebx
movzx edx, bl
inc dword [ebp - 0x14]
shr edi, 0x18
mov edx, dword [edx*4 + 0x622ddfe0]
xor edx, dword [edi*4 + 0x622ddbe0]
mov edi, ebx
shr edi, 0x10
mov dword [ebp - 0x1c], edx
mov edx, edi
movzx edi, dl
mov edx, dword [ebp - 0x1c]
xor edx, dword [edi*4 + 0x622de7e0]
movzx edi, bh
xor edx, dword [edi*4 + 0x622de3e0]
xor edx, esi
mov esi, dword [ebp - 0x20]
xor esi, edx
xor dword [ebp - 0x18], esi
mov edx, dword [ebp - 0x18]
xor dword [ebp - 0x10], edx
mov edi, dword [ebp - 0x10]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x14]
xor eax, edi
mov dword [ecx], esi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
cmp edx, 8
jne 0x622c7de0
mov eax, dword [ebp + 0x14]
lea edx, [eax + 0xc0]
mov eax, dword [eax + 0xc0]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0x200]
jmp 0x622c7c36