Function at 0x404875
Capabilities:
Encode data using xor
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x80]
xor esi, esi
sub edi, eax
lea eax, [edi + esi*4]
lea eax, [ebp + eax - 0x80]
push eax
call fcn.004047d9
mov dword [ebp + esi*4 - 0x80], eax
inc esi
cmp esi, 0x10
jb 0x40488a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xf8]
mov esi, dword [edx + 0xf4]
push 8
pop ecx
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [edx + 0xfc]
mov edx, dword [eax]
mov eax, dword [eax + 4]
xor eax, 0x5be0cd19
xor edx, 0x1f83d9ab
xor ecx, 0x510e527f
xor esi, 0x9b05688c
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0x6a09e667
mov dword [ebp - 0x1c], 0xbb67ae85
mov dword [ebp - 0x18], 0x3c6ef372
mov dword [ebp - 0x14], 0xa54ff53a
mov dword [ebp - 8], edx
xor eax, eax
jmp 0x404908
mov ecx, dword [ebp - 0x10]
movzx edx, byte [eax + 0x4264a0]
mov edx, dword [ebp + edx*4 - 0x80]
add edx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x40]
add ebx, edx
movzx edi, byte [eax + 0x4264a1]
mov edi, dword [ebp + edi*4 - 0x80]
mov edx, ebx
xor edx, ecx
ror edx, 0x10
add dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x30]
xor ecx, dword [ebp - 0x20]
ror ecx, 0xc
add edi, ecx
add ebx, edi
mov dword [ebp - 0x40], ebx
xor ebx, edx
movzx edx, byte [eax + 0x4264a2]
mov edx, dword [ebp + edx*4 - 0x80]
add edx, dword [ebp - 0x2c]
ror ebx, 8
add dword [ebp - 0x3c], edx
add dword [ebp - 0x20], ebx
xor ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
xor edx, esi
movzx esi, byte [eax + 0x4264a3]
mov esi, dword [ebp + esi*4 - 0x80]
ror ecx, 7
ror edx, 0x10
add dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x2c]
xor edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
ror edx, 0xc
add esi, edx
add dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x3c]
xor esi, dword [ebp - 0xc]
ror esi, 8
add dword [ebp - 0x1c], esi
xor edx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x28]
ror edx, 7
mov dword [ebp - 0x2c], edx
movzx edx, byte [eax + 0x4264a4]
mov edx, dword [ebp + edx*4 - 0x80]
add edx, esi
add dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x38]
xor edx, dword [ebp - 8]
ror edx, 0x10
add dword [ebp - 0x18], edx
xor esi, dword [ebp - 0x18]
mov dword [ebp - 8], edx
movzx edx, byte [eax + 0x4264a5]
mov edx, dword [ebp + edx*4 - 0x80]
ror esi, 0xc
add edx, esi
add dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x38]
xor edx, dword [ebp - 8]
ror edx, 8
add dword [ebp - 0x18], edx
xor esi, dword [ebp - 0x18]
mov dword [ebp - 8], edx
movzx edx, byte [eax + 0x4264a6]
mov edx, dword [ebp + edx*4 - 0x80]
add edx, edi
add dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x34]
xor edx, dword [ebp - 4]
ror esi, 7
ror edx, 0x10
add dword [ebp - 0x14], edx
xor edi, dword [ebp - 0x14]
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], edx
movzx edx, byte [eax + 0x4264a7]
mov edx, dword [ebp + edx*4 - 0x80]
ror edi, 0xc
add edx, edi
add dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x34]
xor edx, dword [ebp - 4]
ror edx, 8
add dword [ebp - 0x14], edx
xor edi, dword [ebp - 0x14]
mov dword [ebp - 4], edx
movzx edx, byte [eax + 0x4264a8]
mov esi, dword [ebp + edx*4 - 0x80]
mov edx, dword [ebp - 0x2c]
add esi, edx
add dword [ebp - 0x40], esi
mov esi, dword [ebp - 0x40]
xor esi, dword [ebp - 4]
ror edi, 7
ror esi, 0x10
add dword [ebp - 0x18], esi
xor edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edi
movzx edi, byte [eax + 0x4264a9]
mov edi, dword [ebp + edi*4 - 0x80]
ror edx, 0xc
add edi, edx
add dword [ebp - 0x40], edi
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x40]
xor edx, esi
ror edx, 8
add dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x2c]
xor edx, dword [ebp - 0x18]
movzx edi, byte [eax + 0x4264ab]
mov edi, dword [ebp + edi*4 - 0x80]
ror edx, 7
mov dword [ebp - 0x2c], edx
movzx edx, byte [eax + 0x4264aa]
mov esi, dword [ebp + edx*4 - 0x80]
mov edx, dword [ebp - 0x28]
add esi, edx
add dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x3c]
xor esi, ebx
ror esi, 0x10
add dword [ebp - 0x14], esi
xor edx, dword [ebp - 0x14]
ror edx, 0xc
add edi, edx
add dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x3c]
xor edi, esi
ror edi, 8
mov esi, edi
add dword [ebp - 0x14], esi
xor edx, dword [ebp - 0x14]
movzx edi, byte [eax + 0x4264ad]
mov edi, dword [ebp + edi*4 - 0x80]
ror edx, 7
mov dword [ebp - 0x28], edx
movzx edx, byte [eax + 0x4264ac]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + edx*4 - 0x80]
mov edx, dword [ebp - 0x24]
add esi, edx
add dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x38]
xor esi, dword [ebp - 0xc]
ror esi, 0x10
add dword [ebp - 0x20], esi
xor edx, dword [ebp - 0x20]
ror edx, 0xc
add edi, edx
add dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x38]
xor edi, esi
ror edi, 8
mov esi, edi
add dword [ebp - 0x20], esi
xor edx, dword [ebp - 0x20]
movzx edi, byte [eax + 0x4264af]
mov edi, dword [ebp + edi*4 - 0x80]
ror edx, 7
mov dword [ebp - 0x24], edx
movzx edx, byte [eax + 0x4264ae]
mov edx, dword [ebp + edx*4 - 0x80]
add edx, ecx
add dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x34]
xor edx, dword [ebp - 8]
add eax, 0x10
ror edx, 0x10
add dword [ebp - 0x1c], edx
xor ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], esi
ror ecx, 0xc
add edi, ecx
add dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x34]
xor edi, edx
ror edi, 8
mov edx, edi
add dword [ebp - 0x1c], edx
xor ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
ror ecx, 7
mov dword [ebp - 0x30], ecx
cmp eax, 0x90
jbe 0x404905
pop edi
pop esi
xor ecx, ecx
pop ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xf4]
mov edx, dword [ebp + ecx - 0x20]
add eax, ecx
xor edx, dword [eax]
add ecx, 4
xor edx, dword [ebp + ecx - 0x44]
mov dword [eax], edx
cmp ecx, 0x20
jb 0x404b89
leave
ret 4