Function at 0x462c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62f85d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00409430
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], esi
mov edx, dword [edi + 0x18]
test dl, 1
je 0x462c66
lea edi, [esi + 2]
jmp 0x462df7
xor ebx, ebx
test dl, 2
jne 0x462c9f
mov ecx, dword [ebp + 8]
call fcn.004640b0
xor edx, edx
div dword [edi + 0x10]
mov eax, dword [edi + 0x14]
lea ebx, [eax + edx*4]
mov eax, dword [ebx]
test eax, eax
je 0x462c9c
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
nop dword [eax]
cmp word [eax + 4], cx
je 0x462cc5
mov eax, dword [eax]
test eax, eax
jne 0x462c90
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 8]
cmp dword [edi + 0xc], eax
jb 0x462dae
mov ebx, 2
lea ecx, [eax + eax]
cmp eax, ebx
cmovb ecx, ebx
cmp ecx, dword [edi + 0xc]
jae 0x462ccf
lea edi, [ebx + 1]
jmp 0x462df7
mov edi, 1
jmp 0x462df7
mov eax, dword [edi]
push edx
push edi
push ecx
mov ecx, edi
call dword [eax + 8]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x462dc8
mov al, byte [esi + 0x18]
not al
test al, 1
je 0x462dc8
cmp dword [edi + 0x14], 0
je 0x462d8a
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x18], 0
jbe 0x462d8a
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov eax, dword [edi + 0x14]
mov ebx, dword [ecx + eax]
test ebx, ebx
je 0x462d68
mov eax, dword [ebx]
lea edx, [ebx + 4]
dec dword [edi + 0xc]
mov dword [ebp - 0x28], eax
xor eax, eax
lea esi, [eax + 2]
movzx ecx, byte [edx]
lea edx, [edx + 1]
ror eax, 0x19
xor eax, ecx
sub esi, 1
jne 0x462d32
mov esi, dword [ebp - 0x24]
xor edx, edx
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx], ebx
mov ebx, eax
inc dword [esi + 0xc]
test eax, eax
jne 0x462d22
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [edi + 0x14]
add ecx, 4
mov dword [ebp - 0x1c], ecx
mov dword [edx + eax], 0
add edx, 4
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 0x10]
jb 0x462d18
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004640b0
xor edx, edx
div dword [edi + 0x10]
mov eax, dword [edi + 0x14]
lea ebx, [eax + edx*4]
push ecx
lea ecx, [edi + 4]
push ecx
mov ecx, dword [ecx]
call fcn.00463cf0
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x462dcf
lea edi, [eax + 2]
jmp 0x462df7
mov esi, dword [ebp - 0x14]
mov edi, ebx
jmp 0x462df7
mov eax, dword [ebp + 8]
mov ax, word [eax]
mov word [esi + 4], ax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esi + 6], eax
xor esi, esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
inc dword [edi + 0xc]
xor edi, edi
mov dword [ebp - 0x14], esi
test esi, esi
je 0x462e09
push ecx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.00462a40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc