Function at 0x462630
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x3c]
push esi
push edi
mov edi, dword [esp + 0x48]
mov esi, ecx
mov dword [esp + 0x10], ebp
test edi, edi
jbe 0x462aaf
shr edi, 4
cmp byte [esi], 0
je 0x462669
push eax
push edi
push ebp
call fcn.00461d10
pop edi
pop esi
pop ebp
add esp, 0x34
ret 0xc
lea edx, [esi + 8]
mov dword [esp + 0x1c], edx
mov ecx, edx
mov dword [esp + 0x14], edi
test edi, edi
jbe 0x462a99
push ebx
nop
cmp byte [esi + 1], 0
mov edi, dword [ebp + 4]
je 0x4626a7
mov ebx, dword [ebp + 8]
xor ebx, dword [ecx + 8]
mov edx, dword [ecx]
xor edx, dword [ebp]
xor edi, dword [ecx + 4]
mov dword [esp + 0x3c], ebx
mov ebx, dword [ebp + 0xc]
xor ebx, dword [ecx + 0xc]
mov dword [esp + 0x40], ebx
jmp 0x4626b8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x18]
xor ecx, edx
mov edx, dword [esi + 0x1c]
xor edx, edi
mov edi, dword [esi + 0x20]
xor edi, dword [esp + 0x3c]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x2c], edi
mov edi, dword [esi + 0x24]
xor edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x30], edi
shr ebx, 0x10
shr edi, 0x18
mov edi, dword [edi*4 + 0x5311a0]
movzx ebx, bl
xor edi, dword [ebx*4 + 0x5315a0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x5319a0]
movzx ebx, cl
xor edi, dword [ebx*4 + 0x531da0]
mov ebx, dword [esp + 0x30]
mov dword [eax], edi
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x5315a0]
mov ebx, dword [esp + 0x2c]
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x5319a0]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5311a0]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x531da0]
mov ebx, dword [esp + 0x30]
mov dword [eax + 4], edi
shr ebx, 8
movzx edi, bl
mov edi, dword [edi*4 + 0x5319a0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5311a0]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x5315a0]
movzx ebx, byte [esp + 0x2c]
xor edi, dword [ebx*4 + 0x531da0]
shr edx, 0x10
mov dword [eax + 8], edi
mov edi, dword [esp + 0x2c]
shr edi, 0x18
mov edi, dword [edi*4 + 0x5311a0]
shr ecx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x5315a0]
movzx edx, byte [esp + 0x30]
movzx ecx, cl
xor edi, dword [ecx*4 + 0x5319a0]
xor edi, dword [edx*4 + 0x531da0]
mov dword [eax + 0xc], edi
mov ecx, dword [esi + 4]
dec ecx
cmp ecx, 1
jle 0x462915
lea edi, [esi + 0x30]
mov dword [esp + 0x10], edi
jmp 0x4627e0
mov edx, dword [edi - 8]
mov ecx, dword [edi - 4]
mov ebx, dword [esp + 0x10]
mov edi, dword [eax + 8]
xor edi, dword [ebx]
xor ecx, dword [eax + 4]
xor edx, dword [eax]
mov dword [esp + 0x2c], edi
mov edi, ebx
mov ebp, dword [edi + 4]
xor ebp, dword [eax + 0xc]
mov ebx, dword [esp + 0x2c]
shr ebx, 0x10
movzx ebx, bl
mov dword [esp + 0x30], ebp
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x5311a0]
xor ebp, dword [ebx*4 + 0x5315a0]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor ebp, dword [ebx*4 + 0x5319a0]
movzx ebx, dl
xor ebp, dword [ebx*4 + 0x531da0]
mov ebx, dword [esp + 0x30]
mov dword [eax], ebp
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x5315a0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
shr eax, 8
movzx ebp, al
xor ebx, dword [ebp*4 + 0x5319a0]
mov eax, dword [esp + 0x10]
mov ebp, edx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x5311a0]
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x531da0]
mov ebp, ecx
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x30]
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x5319a0]
mov dword [esp + 0x10], edx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x5311a0]
shr edx, 0x10
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x5315a0]
movzx ebp, byte [esp + 0x2c]
xor ebx, dword [ebp*4 + 0x531da0]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
shr ecx, 0x10
mov dword [eax + 8], ebx
movzx ecx, cl
shr edx, 8
shr ebp, 0x18
mov ebx, dword [ebp*4 + 0x5311a0]
xor ebx, dword [ecx*4 + 0x5315a0]
movzx ecx, byte [esp + 0x30]
movzx edx, dl
xor ebx, dword [edx*4 + 0x5319a0]
add edi, 0x10
xor ebx, dword [ecx*4 + 0x531da0]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], ebx
mov edx, dword [esi + 4]
inc ecx
dec edx
cmp ecx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edi
jl 0x4627e0
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 4]
shl ecx, 4
mov edx, dword [ecx + esi + 0xc]
mov ebx, dword [ecx + esi + 0x10]
xor ebx, dword [eax + 8]
xor edx, dword [eax + 4]
lea edi, [ecx + esi + 8]
mov ecx, dword [eax]
xor ecx, dword [edi]
mov edi, dword [edi + 0xc]
xor edi, dword [eax + 0xc]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
movzx edi, cl
movzx ebx, byte [edi*4 + 0x531da1]
mov byte [eax], bl
mov ebx, edx
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi*4 + 0x531da1]
mov byte [eax + 1], bl
mov ebx, dword [esp + 0x2c]
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi*4 + 0x531da1]
mov edi, dword [esp + 0x30]
mov byte [eax + 2], bl
shr edi, 0x18
movzx ebx, byte [edi*4 + 0x531da1]
mov byte [eax + 3], bl
movzx edi, dl
movzx ebx, byte [edi*4 + 0x531da1]
mov byte [eax + 4], bl
mov ebx, dword [esp + 0x2c]
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi*4 + 0x531da1]
mov byte [eax + 5], bl
mov ebx, dword [esp + 0x30]
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi*4 + 0x531da1]
mov byte [eax + 6], bl
mov edi, ecx
shr edi, 0x18
movzx ebx, byte [edi*4 + 0x531da1]
movzx edi, byte [esp + 0x2c]
mov byte [eax + 7], bl
movzx ebx, byte [edi*4 + 0x531da1]
mov byte [eax + 8], bl
mov ebx, dword [esp + 0x30]
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi*4 + 0x531da1]
mov byte [eax + 9], bl
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi*4 + 0x531da1]
mov edi, edx
mov byte [eax + 0xa], bl
shr edi, 0x18
movzx ebx, byte [edi*4 + 0x531da1]
movzx edi, byte [esp + 0x30]
shr ecx, 8
mov byte [eax + 0xb], bl
movzx ebx, byte [edi*4 + 0x531da1]
movzx ecx, cl
mov byte [eax + 0xc], bl
movzx ecx, byte [ecx*4 + 0x531da1]
shr edx, 0x10
mov byte [eax + 0xd], cl
movzx edx, dl
movzx ecx, byte [edx*4 + 0x531da1]
mov byte [eax + 0xe], cl
mov ecx, dword [esp + 0x2c]
shr ecx, 0x18
mov dl, byte [ecx*4 + 0x531da1]
mov byte [eax + 0xf], dl
mov ecx, dword [esi + 4]
shl ecx, 4
mov edx, dword [ecx + esi + 0x18]
xor dword [eax], edx
mov edx, dword [ecx + esi + 0x1c]
xor dword [eax + 4], edx
mov edx, dword [ecx + esi + 0x20]
xor dword [eax + 8], edx
lea ecx, [ecx + esi + 0x18]
mov ecx, dword [ecx + 0xc]
xor dword [eax + 0xc], ecx
mov ecx, eax
add ebp, 0x10
add eax, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], ebp
jne 0x462680
mov edx, dword [esp + 0x20]
pop ebx
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret 0xc