Function at 0x463740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ebx
movzx ebx, byte [esi + 0x175]
and ebx, 0x20
shr ebx, 5
mov dword [ebp - 8], edi
test ebx, ebx
mov eax, dword [edx]
mov ecx, dword [edx + 8]
je 0x463821
lea edx, [ecx - 5]
cmp edx, 0xc
ja 0x463821
mov edx, dword [ebp + 0x10]
mov esi, edx
shr esi, 0x1f
add esi, edx
sar esi, 1
test esi, esi
jle 0x463812
mov edi, esi
shr edi, 0x1f
add edi, esi
sar edi, 1
test edi, edi
jbe 0x4639a0
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
lea ebx, [eax + edx]
xor edx, edx
mov esi, dword [ebp - 0x14]
movzx eax, byte [edx + ebx - 1]
movzx edi, byte [esi + ecx*2]
xor edi, eax
mov byte [esi + ecx*2], al
mov eax, edi
xor byte [edx + ebx - 1], al
movzx eax, byte [edx + ebx - 2]
movzx edi, byte [esi + ecx*2 + 1]
xor edi, eax
mov byte [esi + ecx*2 + 1], al
inc ecx
mov eax, edi
xor byte [edx + ebx - 2], al
add edx, 0xfffffffe
cmp ecx, dword [ebp - 0x18]
jb 0x4637b3
mov esi, dword [ebp - 0x1c]
lea ecx, [ecx + ecx + 1]
mov eax, dword [ebp - 0x14]
lea edx, [ecx - 1]
cmp esi, edx
jbe 0x463812
mov esi, dword [ebp + 0x10]
movzx ebx, byte [ecx + eax - 1]
lea edi, [esi + eax]
sub edi, ecx
movzx edx, byte [edi]
xor ebx, edx
mov byte [ecx + eax - 1], dl
xor byte [edi], bl
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
movsx edx, byte [esi + 0x160]
lea esi, [ecx - 0x19]
cmp esi, 6
jbe 0x463840
lea esi, [ecx - 0x32]
cmp esi, 2
jbe 0x463840
lea esi, [ecx - 0x28]
cmp esi, 8
ja 0x463812
test ebx, ebx
je 0x4638f9
test edx, edx
je 0x46385a
cmp ecx, 0x34
je 0x46385a
cmp ecx, 0x32
jne 0x4638f9
mov ebx, dword [ebp + 0x10]
mov esi, ebx
shr esi, 0x1f
add esi, ebx
sar esi, 1
test esi, esi
jle 0x4638f9
mov edi, esi
shr edi, 0x1f
add edi, esi
sar edi, 1
test edi, edi
jbe 0x4639aa
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], esi
add ecx, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov edi, ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [edi + ecx - 1]
movzx eax, byte [esi + ebx*2]
xor eax, edx
mov byte [esi + ebx*2], dl
xor byte [edi + ecx - 1], al
movzx edx, byte [edi + ecx - 2]
movzx eax, byte [esi + ebx*2 + 1]
xor eax, edx
mov byte [esi + ebx*2 + 1], dl
inc ebx
xor byte [edi + ecx - 2], al
add edi, 0xfffffffe
cmp ebx, dword [ebp - 0x10]
jb 0x463894
mov esi, dword [ebp - 0x1c]
lea ecx, [ebx + ebx + 1]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
lea ebx, [ecx - 1]
cmp esi, ebx
jbe 0x4638f3
mov esi, dword [ebp + 0x10]
movzx edi, byte [eax + ecx - 1]
add esi, eax
sub esi, ecx
movzx ebx, byte [esi]
xor edi, ebx
mov byte [eax + ecx - 1], bl
mov ecx, edi
xor byte [esi], cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov ebx, dword [ecx*4 + 0x4b23dc]
cmp ebx, 0xffffffff
je 0x46398e
lea ecx, [ebx*4]
shl ebx, 5
sub ebx, ecx
mov ecx, dword [ebx + edx*4 + 0x4b24c0]
test ecx, ecx
je 0x463812
lea edx, [ebp - 0x1c]
push edx
push 0
push eax
call ecx
add esp, 0xc
cmp eax, 1
jne 0x46398e
cmp dword [ebp + 0x10], 4
jne 0x46394a
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [ecx], edx
jmp 0x463812
cmp dword [ebp + 0x10], 8
jne 0x463967
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov dword [edx], eax
mov esi, dword [ecx]
mov ebx, dword [ebp - 0x18]
mov dword [esi + 4], ebx
jmp 0x463812
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [ecx], edx
mov esi, dword [eax]
mov ebx, dword [ebp - 0x18]
mov dword [esi + 4], ebx
mov edx, dword [eax]
mov edi, dword [ebp - 0x14]
mov dword [edx + 8], edi
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
jmp 0x463812
mov eax, 0x5f
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov ecx, 1
jmp 0x4637f3
mov ecx, 1
jmp 0x4638d3