Function at 0x521400
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call 0x521417
pop ebp
lea ebp, [ebp + 0x4e9]
sub esp, 0x10
and esp, 0xffffffc0
shl eax, 6
add eax, edi
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
jmp 0x521440
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov ecx, dword [edi + 8]
bswap eax
mov edx, dword [edi + 0xc]
bswap ebx
push eax
bswap ecx
push ebx
bswap edx
push ecx
push edx
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
bswap eax
mov edx, dword [edi + 0x1c]
bswap ebx
push eax
bswap ecx
push ebx
bswap edx
push ecx
push edx
mov eax, dword [edi + 0x20]
mov ebx, dword [edi + 0x24]
mov ecx, dword [edi + 0x28]
bswap eax
mov edx, dword [edi + 0x2c]
bswap ebx
push eax
bswap ecx
push ebx
bswap edx
push ecx
push edx
mov eax, dword [edi + 0x30]
mov ebx, dword [edi + 0x34]
mov ecx, dword [edi + 0x38]
bswap eax
mov edx, dword [edi + 0x3c]
bswap ebx
push eax
bswap ecx
push ebx
bswap edx
push ecx
push edx
add edi, 0x40
lea esp, [esp - 0x24]
mov dword [esp + 0x68], edi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov dword [esp + 8], ebx
xor ebx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
mov dword [esp], ebx
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
nop
nop
mov ecx, edx
mov esi, dword [esp + 0x18]
ror ecx, 0xe
mov edi, dword [esp + 0x1c]
xor ecx, edx
xor esi, edi
mov ebx, dword [esp + 0x60]
ror ecx, 5
and esi, edx
mov dword [esp + 0x14], edx
xor edx, ecx
add ebx, dword [esp + 0x20]
xor esi, edi
ror edx, 6
mov ecx, eax
add ebx, esi
ror ecx, 9
add ebx, edx
mov edi, dword [esp + 8]
xor ecx, eax
mov dword [esp + 4], eax
lea esp, [esp - 4]
ror ecx, 0xb
mov esi, dword [ebp]
xor ecx, eax
mov edx, dword [esp + 0x14]
xor eax, edi
ror ecx, 2
add ebx, esi
mov dword [esp], eax
add edx, ebx
and eax, dword [esp + 4]
add ebx, ecx
xor eax, edi
add ebp, 4
add eax, ebx
cmp esi, 0xc19bf174
jne 0x5214e0
mov ecx, dword [esp + 0x9c]
jmp 0x521560
mov ebx, ecx
mov esi, dword [esp + 0x68]
ror ecx, 0xb
mov edi, esi
ror esi, 2
xor ecx, ebx
shr ebx, 3
ror ecx, 7
xor esi, edi
xor ebx, ecx
ror esi, 0x11
add ebx, dword [esp + 0xa0]
shr edi, 0xa
add ebx, dword [esp + 0x7c]
mov ecx, edx
xor edi, esi
mov esi, dword [esp + 0x18]
ror ecx, 0xe
add ebx, edi
mov edi, dword [esp + 0x1c]
xor ecx, edx
xor esi, edi
mov dword [esp + 0x60], ebx
ror ecx, 5
and esi, edx
mov dword [esp + 0x14], edx
xor edx, ecx
add ebx, dword [esp + 0x20]
xor esi, edi
ror edx, 6
mov ecx, eax
add ebx, esi
ror ecx, 9
add ebx, edx
mov edi, dword [esp + 8]
xor ecx, eax
mov dword [esp + 4], eax
lea esp, [esp - 4]
ror ecx, 0xb
mov esi, dword [ebp]
xor ecx, eax
mov edx, dword [esp + 0x14]
xor eax, edi
ror ecx, 2
add ebx, esi
mov dword [esp], eax
add edx, ebx
and eax, dword [esp + 4]
add ebx, ecx
xor eax, edi
mov ecx, dword [esp + 0x9c]
add ebp, 4
add eax, ebx
cmp esi, 0xc67178f2
jne 0x521560
mov esi, dword [esp + 0x164]
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
add eax, dword [esi]
add ebx, dword [esi + 4]
add edi, dword [esi + 8]
add ecx, dword [esi + 0xc]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x168]
add edx, dword [esi + 0x10]
add eax, dword [esi + 0x14]
add ebx, dword [esi + 0x18]
add ecx, dword [esi + 0x1c]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ecx
lea esp, [esp + 0x164]
sub ebp, 0x100
cmp edi, dword [esp + 8]
jb 0x521440
mov esp, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret