Function at 0x460920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ecx]
test esi, esi
je 0x46095f
test eax, eax
je 0x46095f
nop
mov ecx, dword [ebp + 0x1c]
movzx ecx, byte [ecx + esi]
xor cl, byte [edx]
inc edx
mov byte [ebx], cl
inc ebx
lea edi, [eax - 1]
inc esi
and esi, 0xf
je 0x460961
cmp eax, 1
mov eax, edi
jne 0x460940
jmp 0x460961
mov edi, eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0xc]
bswap eax
mov dword [ebp - 0x10], eax
cmp edi, 0x10
jae 0x460a8c
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ebx
test edi, edi
je 0x460b66
xorps xmm0, xmm0
mov ebx, dword [ebp + 0x1c]
movups xmmword [ebx], xmm0
mov ecx, dword [ebp + 0x24]
call dword [section..00cfg]
mov esi, dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push 1
push ebx
push ebx
call ecx
mov edx, esi
add esp, 0x14
mov eax, dword [ebp - 0x10]
inc eax
bswap eax
mov dword [esi + 0xc], eax
mov esi, dword [ebp - 0x1c]
jne 0x460a3e
movzx eax, byte [edx + 0xb]
inc eax
mov byte [edx + 0xb], al
shr eax, 8
movzx ecx, byte [edx + 0xa]
add ecx, eax
mov byte [edx + 0xa], cl
shr ecx, 8
movzx eax, byte [edx + 9]
add eax, ecx
mov byte [edx + 9], al
shr eax, 8
movzx ecx, byte [edx + 8]
add ecx, eax
mov byte [edx + 8], cl
shr ecx, 8
movzx eax, byte [edx + 7]
add eax, ecx
mov byte [edx + 7], al
shr eax, 8
movzx ecx, byte [edx + 6]
add ecx, eax
mov byte [edx + 6], cl
shr ecx, 8
movzx eax, byte [edx + 5]
add eax, ecx
mov byte [edx + 5], al
shr eax, 8
movzx ecx, byte [edx + 4]
add ecx, eax
mov byte [edx + 4], cl
shr ecx, 8
movzx eax, byte [edx + 3]
add eax, ecx
mov byte [edx + 3], al
shr eax, 8
movzx ecx, byte [edx + 2]
add ecx, eax
mov byte [edx + 2], cl
shr ecx, 8
movzx eax, byte [edx + 1]
add eax, ecx
mov byte [edx + 1], al
add byte [edx], ah
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
nop word cs:[eax + eax]
movzx eax, byte [ebx + esi]
xor al, byte [edx + esi]
mov byte [ecx + esi], al
lea eax, [esi + 1]
mov esi, eax
dec edi
jne 0x460a50
jmp 0x460b69
shl edi, 4
mov eax, dword [ebp - 0x20]
sub eax, edi
mov ebx, dword [ebp - 0x18]
add ebx, edi
add esi, edi
cmp eax, 0xf
mov edi, eax
mov edx, esi
jbe 0x460978
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], edi
mov eax, edi
shr eax, 4
mov esi, ebx
mov ebx, dword [ebp - 0x10]
mov edi, ebx
neg edi
add ebx, eax
mov ecx, 0
cmovb ebx, ecx
cmovae edi, eax
mov ecx, dword [ebp + 0x24]
call dword [section..00cfg]
mov eax, dword [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push edi
mov dword [ebp - 0x18], esi
push esi
mov esi, dword [ebp - 0x14]
push esi
call ecx
add esp, 0x14
mov eax, ebx
bswap eax
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x460a70
mov edx, dword [ebp + 0x18]
movzx eax, byte [edx + 0xb]
inc eax
mov byte [edx + 0xb], al
shr eax, 8
movzx ecx, byte [edx + 0xa]
add ecx, eax
mov byte [edx + 0xa], cl
shr ecx, 8
movzx eax, byte [edx + 9]
add eax, ecx
mov byte [edx + 9], al
shr eax, 8
movzx ecx, byte [edx + 8]
add ecx, eax
mov byte [edx + 8], cl
shr ecx, 8
movzx eax, byte [edx + 7]
add eax, ecx
mov byte [edx + 7], al
shr eax, 8
movzx ecx, byte [edx + 6]
add ecx, eax
mov byte [edx + 6], cl
shr ecx, 8
movzx eax, byte [edx + 5]
add eax, ecx
mov byte [edx + 5], al
shr eax, 8
movzx ecx, byte [edx + 4]
add ecx, eax
mov byte [edx + 4], cl
shr ecx, 8
movzx eax, byte [edx + 3]
add eax, ecx
mov byte [edx + 3], al
shr eax, 8
movzx ecx, byte [edx + 2]
add ecx, eax
mov byte [edx + 2], cl
shr ecx, 8
movzx eax, byte [edx + 1]
add eax, ecx
mov byte [edx + 1], al
add byte [edx], ah
jmp 0x460a70
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret