Function at 0x4798a0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x174], eax
mov eax, dword [ecx]
mov dword [ebp - 0x170], eax
push ebx
push esi
mov esi, eax
lea ebx, [edx + 8]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x148], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x144]
sub eax, edx
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x140]
sub eax, edx
push edi
mov edi, dword [ecx + 4]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x158], ecx
xor ecx, ecx
sub eax, edx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x14c], eax
mov edx, dword [ebx - 8]
lea ebx, [ebx + 0x14]
mov eax, dword [ebp - 0x150]
xor eax, dword [ebp - 0x148]
mov dword [ebp + ecx*4 - 0x144], edx
and eax, edi
xor eax, dword [ebp - 0x150]
mov ecx, esi
rol ecx, 5
add ecx, edx
rol edi, 0x1e
add eax, ecx
mov edx, dword [ebx - 0x18]
mov ecx, dword [ebp - 0x158]
add ecx, 0x5a827999
add ecx, eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x158], ecx
rol ecx, 5
add ecx, edx
mov dword [ebp + eax*4 - 0x140], edx
mov eax, dword [ebp - 0x148]
xor eax, edi
mov edx, dword [ebx - 0x14]
and eax, esi
rol esi, 0x1e
xor eax, dword [ebp - 0x148]
add eax, ecx
mov ecx, dword [ebp - 0x150]
add ecx, 0x5a827999
add ecx, eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x150], ecx
rol ecx, 5
add ecx, edx
mov dword [ebx + eax - 0x14], edx
mov eax, edi
xor eax, esi
mov edx, dword [ebx - 0x10]
and eax, dword [ebp - 0x158]
xor eax, edi
add eax, ecx
mov ecx, dword [ebp - 0x148]
add ecx, 0x5a827999
add ecx, eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x148], ecx
mov ecx, dword [ebp - 0x15c]
rol eax, 0x1e
mov dword [ebp - 0x158], eax
xor eax, esi
and eax, dword [ebp - 0x150]
rol dword [ebp - 0x150], 0x1e
xor eax, esi
mov dword [ebx + ecx - 0x14], edx
add esi, 0x5a827999
mov ecx, dword [ebp - 0x148]
rol ecx, 5
add ecx, 0x5a827999
add ecx, edx
mov edx, dword [ebx - 0xc]
add eax, ecx
add edi, eax
mov eax, dword [ebp - 0x14c]
mov ecx, edi
rol ecx, 5
add ecx, edx
mov dword [ebx + eax - 0x14], edx
mov eax, dword [ebp - 0x158]
xor eax, dword [ebp - 0x150]
and eax, dword [ebp - 0x148]
xor eax, dword [ebp - 0x158]
mov edx, dword [ebp - 0x148]
add eax, ecx
mov ecx, dword [ebp - 0x154]
add esi, eax
rol edx, 0x1e
add ecx, 5
mov dword [ebp - 0x148], edx
cmp ecx, 0xf
mov dword [ebp - 0x154], ecx
jb 0x479922
mov eax, dword [ebp - 0x150]
mov ecx, esi
xor eax, edx
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x144]
and eax, edi
xor eax, dword [ebp - 0x150]
xor edx, dword [ebp - 0x13c]
mov ebx, dword [ebx + 0x3c]
xor edx, dword [ebp - 0x124]
xor edx, dword [ebp - 0x110]
rol ecx, 5
add ecx, ebx
rol edx, 1
add eax, ecx
rol edi, 0x1e
mov ecx, dword [ebp - 0x158]
add ecx, 0x5a827999
mov dword [ebp - 0x160], edx
add eax, ecx
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x158], eax
mov ecx, eax
mov eax, dword [ebp - 0x148]
xor eax, edi
rol ecx, 5
add ecx, edx
mov dword [ebp - 0x154], edi
mov edx, dword [ebp - 0x140]
and eax, esi
xor eax, dword [ebp - 0x148]
xor edx, dword [ebp - 0x138]
add eax, ecx
mov ecx, dword [ebp - 0x150]
xor edx, dword [ebp - 0x120]
add ecx, 0x5a827999
xor edx, dword [ebp - 0x10c]
add eax, ecx
mov dword [ebp - 0x150], eax
mov ecx, eax
rol esi, 0x1e
mov eax, edi
xor eax, esi
rol edx, 1
and eax, dword [ebp - 0x158]
rol dword [ebp - 0x158], 0x1e
xor eax, edi
mov edi, dword [ebp - 0x158]
rol ecx, 5
add ecx, edx
mov dword [ebp - 0x100], edx
mov edx, dword [ebp - 0x134]
add eax, ecx
mov ecx, dword [ebp - 0x148]
xor edx, dword [ebp - 0x11c]
add ecx, 0x5a827999
xor edx, dword [ebp - 0x13c]
add eax, ecx
mov ecx, eax
mov dword [ebp - 0x15c], eax
xor edx, ebx
mov dword [ebp - 0x108], ebx
mov ebx, dword [ebp - 0x150]
mov eax, edi
xor eax, esi
rol edx, 1
and eax, ebx
rol ecx, 5
add ecx, edx
mov dword [ebp - 0xfc], edx
mov edx, dword [ebp - 0x130]
xor eax, esi
add eax, ecx
rol ebx, 0x1e
mov ecx, dword [ebp - 0x154]
add ecx, 0x5a827999
mov dword [ebp - 0x14c], esi
add eax, ecx
mov dword [ebp - 0x150], ebx
xor edx, dword [ebp - 0x118]
mov dword [ebp - 0x148], eax
xor edx, dword [ebp - 0x138]
mov ecx, eax
xor edx, dword [ebp - 0x160]
mov esi, ebx
mov ebx, dword [ebp - 0x15c]
mov eax, edi
xor eax, esi
rol ecx, 5
and eax, ebx
rol edx, 1
add ecx, edx
mov dword [ebp - 0xf8], edx
xor eax, edi
mov dword [ebp - 0x160], 4
add eax, ecx
mov ecx, dword [ebp - 0x14c]
add ecx, 0x5a827999
add eax, ecx
rol ebx, 0x1e
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x154], ecx
jmp 0x479c36
mov ecx, dword [ebp - 0x154]
mov ebx, dword [ecx - 0x18]
lea eax, [ecx + 0x14]
mov edx, dword [ecx - 0x20]
xor edx, ebx
mov dword [ebp - 0x164], eax
xor edx, dword [eax]
mov eax, esi
xor edx, dword [ecx]
xor eax, dword [ebp - 0x15c]
xor eax, dword [ebp - 0x148]
rol edx, 1
mov dword [ecx + 0x20], edx
mov ecx, dword [ebp - 0x14c]
rol ecx, 5
add ecx, 0x6ed9eba1
rol dword [ebp - 0x148], 0x1e
add ecx, edx
mov dword [ebp - 0x168], edx
add eax, ecx
add edi, eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x158], edi
mov ecx, dword [ebp - 0x158]
rol ecx, 5
mov edx, dword [eax - 0x1c]
xor edx, dword [eax + 0x18]
xor edx, dword [eax + 4]
mov edi, dword [eax - 0x14]
xor edx, edi
rol edx, 1
mov dword [eax + 0x24], edx
add ecx, edx
mov eax, dword [ebp - 0x15c]
xor eax, dword [ebp - 0x148]
xor eax, dword [ebp - 0x14c]
add eax, 0x6ed9eba1
rol dword [ebp - 0x14c], 0x1e
add eax, ecx
mov dword [ebp - 0x16c], edx
add esi, eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x150], esi
mov ecx, dword [ebp - 0x150]
rol ecx, 5
mov edx, dword [eax + 0x1c]
xor edx, dword [eax + 8]
mov esi, dword [eax - 0x10]
xor edx, esi
xor edx, ebx
mov ebx, dword [ebp - 0x158]
rol edx, 1
mov dword [eax + 0x28], edx
add ecx, edx
mov eax, ebx
rol ebx, 0x1e
xor eax, dword [ebp - 0x148]
xor eax, dword [ebp - 0x14c]
add eax, ecx
mov dword [ebp - 0x158], ebx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x6ed9eba1
add ecx, eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x15c], ecx
rol ecx, 5
mov edx, dword [eax - 0xc]
xor edx, dword [eax + 0xc]
xor edx, dword [ebp - 0x168]
xor edx, edi
mov edi, ebx
mov ebx, dword [ebp - 0x150]
rol edx, 1
mov dword [eax + 0x2c], edx
add ecx, edx
mov eax, edi
xor eax, ebx
xor eax, dword [ebp - 0x14c]
add eax, ecx
mov ecx, dword [ebp - 0x148]
add ecx, 0x6ed9eba1
add ecx, eax
mov eax, dword [ebp - 0x154]
rol ebx, 0x1e
mov dword [ebp - 0x148], ecx
rol ecx, 5
mov edx, dword [eax + 0x10]
xor edx, dword [eax - 8]
xor edx, dword [ebp - 0x16c]
xor edx, esi
mov dword [ebp - 0x150], ebx
rol edx, 1
mov esi, ebx
mov dword [eax + 0x30], edx
add ecx, edx
mov edx, dword [ebp - 0x14c]
mov eax, edi
xor eax, esi
add edx, 0x6ed9eba1
xor eax, dword [ebp - 0x15c]
add eax, ecx
mov ecx, dword [ebp - 0x15c]
add edx, eax
rol ecx, 0x1e
dec dword [ebp - 0x160]
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x154], eax
jne 0x479c30
lea ebx, [ebp - 0xc4]
mov dword [ebp - 0x160], 4
mov dword [ebp - 0x154], ebx
lea ebx, [ebx]
or ecx, dword [ebp - 0x148]
lea eax, [ebx + 0x14]
mov ebx, dword [ebx - 0x20]
and ecx, esi
xor ebx, dword [eax]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x154]
rol edx, 5
xor ebx, dword [eax - 0x18]
xor ebx, dword [eax]
rol ebx, 1
mov dword [eax + 0x20], ebx
mov eax, dword [ebp - 0x15c]
and eax, dword [ebp - 0x148]
or ecx, eax
mov dword [ebp - 0x164], ebx
add ecx, ebx
lea eax, [edx - 0x70e44324]
add ecx, edi
mov edi, dword [ebp - 0x148]
add eax, ecx
rol edi, 0x1e
mov ecx, dword [ebp - 0x154]
mov edx, eax
mov dword [ebp - 0x158], eax
mov eax, edi
mov dword [ebp - 0x148], edi
rol edx, 5
mov esi, dword [ecx - 0x1c]
xor esi, dword [ecx + 0x18]
xor esi, dword [ecx + 4]
mov ebx, dword [ecx - 0x14]
xor esi, ebx
rol esi, 1
mov dword [ecx + 0x24], esi
mov ecx, edi
or ecx, dword [ebp - 0x14c]
and ecx, dword [ebp - 0x15c]
mov edi, dword [ebp - 0x14c]
and eax, edi
or eax, ecx
mov dword [ebp - 0x16c], esi
mov ecx, dword [ebp - 0x154]
add esi, 0x8f1bbcdc
add eax, esi
rol edi, 0x1e
add eax, dword [ebp - 0x150]
add eax, edx
mov dword [ebp - 0x14c], edi
mov esi, dword [ecx + 0x1c]
mov edx, eax
xor esi, dword [ecx + 8]
mov edi, dword [ecx - 0x10]
xor esi, edi
xor esi, dword [ecx - 0x18]
rol esi, 1
mov dword [ecx + 0x28], esi
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x158]
mov ecx, eax
or ecx, dword [ebp - 0x14c]
and ecx, dword [ebp - 0x148]
and eax, dword [ebp - 0x14c]
or ecx, eax
rol edx, 5
mov eax, dword [ebp - 0x158]
add ecx, esi
add ecx, dword [ebp - 0x15c]
add edx, 0x8f1bbcdc
add ecx, edx
rol eax, 0x1e
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], eax
mov esi, dword [edx - 0xc]
xor esi, dword [edx + 0xc]
xor esi, dword [ebp - 0x164]
xor esi, ebx
rol esi, 1
mov dword [edx + 0x2c], esi
mov edx, ecx
mov ebx, dword [ebp - 0x150]
mov ecx, eax
or ecx, ebx
rol edx, 5
and ecx, dword [ebp - 0x14c]
and eax, ebx
or ecx, eax
rol ebx, 0x1e
add ecx, esi
mov dword [ebp - 0x150], ebx
add ecx, dword [ebp - 0x148]
lea eax, [edx - 0x70e44324]
add eax, ecx
mov ecx, dword [ebp - 0x154]
mov edx, eax
mov dword [ebp - 0x148], eax
rol edx, 5
mov esi, dword [ecx + 0x10]
xor esi, dword [ecx - 8]
xor esi, dword [ebp - 0x16c]
xor esi, edi
mov edi, dword [ebp - 0x158]
rol esi, 1
mov dword [ecx + 0x30], esi
mov ecx, ebx
or ecx, dword [ebp - 0x15c]
add esi, 0x8f1bbcdc
and ebx, dword [ebp - 0x15c]
and ecx, edi
or ecx, ebx
mov ebx, dword [ebp - 0x168]
add ecx, esi
mov dword [ebp - 0x154], ebx
add ecx, dword [ebp - 0x14c]
mov esi, dword [ebp - 0x150]
add edx, ecx
mov ecx, dword [ebp - 0x15c]
rol ecx, 0x1e
dec dword [ebp - 0x160]
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x15c], ecx
jne 0x479e00
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x160], 4
mov dword [ebp - 0x154], ecx
mov ebx, dword [ecx - 0x18]
lea eax, [ecx + 0x14]
mov edx, dword [ecx - 0x20]
xor edx, ebx
mov dword [ebp - 0x168], eax
xor edx, dword [ecx]
xor edx, dword [eax]
mov eax, dword [ebp - 0x150]
xor eax, dword [ebp - 0x15c]
xor eax, dword [ebp - 0x148]
rol edx, 1
add eax, edx
mov dword [ecx + 0x20], edx
mov ecx, dword [ebp - 0x14c]
add eax, edi
rol dword [ebp - 0x148], 0x1e
rol ecx, 5
add ecx, 0xca62c1d6
mov dword [ebp - 0x164], edx
add eax, ecx
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x158], eax
mov edx, dword [ecx - 0x1c]
xor edx, dword [ecx + 0x18]
xor edx, dword [ecx + 4]
mov edi, dword [ecx - 0x14]
xor edx, edi
rol edx, 1
mov dword [ecx + 0x24], edx
mov ecx, eax
mov eax, dword [ebp - 0x15c]
xor eax, dword [ebp - 0x148]
xor eax, dword [ebp - 0x14c]
add eax, edx
rol dword [ebp - 0x14c], 0x1e
add eax, dword [ebp - 0x150]
rol ecx, 5
add ecx, 0xca62c1d6
mov dword [ebp - 0x16c], edx
add eax, ecx
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x150], eax
mov edx, dword [ecx + 0x1c]
xor edx, dword [ecx + 8]
mov esi, dword [ecx - 0x10]
xor edx, esi
xor edx, ebx
mov ebx, dword [ebp - 0x158]
rol edx, 1
mov dword [ecx + 0x28], edx
mov ecx, eax
mov eax, ebx
rol ecx, 5
xor eax, dword [ebp - 0x148]
xor eax, dword [ebp - 0x14c]
add eax, 0xca62c1d6
rol ebx, 0x1e
add eax, edx
mov dword [ebp - 0x158], ebx
add eax, dword [ebp - 0x15c]
add ecx, eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x15c], ecx
rol ecx, 5
mov edx, dword [eax - 0xc]
xor edx, dword [eax + 0xc]
xor edx, dword [ebp - 0x164]
xor edx, edi
mov edi, ebx
mov ebx, dword [ebp - 0x150]
rol edx, 1
mov dword [eax + 0x2c], edx
mov eax, edi
xor eax, ebx
xor eax, dword [ebp - 0x14c]
add eax, 0xca62c1d6
add eax, edx
add eax, dword [ebp - 0x148]
add ecx, eax
rol ebx, 0x1e
mov dword [ebp - 0x148], ecx
mov eax, dword [ebp - 0x154]
rol ecx, 5
add ecx, 0xca62c1d6
mov dword [ebp - 0x150], ebx
mov edx, dword [eax + 0x10]
xor edx, dword [eax - 8]
xor edx, dword [ebp - 0x16c]
xor edx, esi
mov esi, dword [ebp - 0x15c]
rol edx, 1
mov dword [eax + 0x30], edx
mov eax, edi
xor eax, ebx
xor eax, esi
rol esi, 0x1e
add eax, edx
mov dword [ebp - 0x15c], esi
add eax, dword [ebp - 0x14c]
add eax, ecx
dec dword [ebp - 0x160]
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x154], ecx
jne 0x479ff7
add eax, dword [ebp - 0x170]
mov edx, dword [ebp - 0x174]
mov ecx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ecx + 4]
add eax, dword [ebp - 0x148]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
add eax, esi
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
add eax, ebx
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 4]
add eax, edi
pop edi
pop esi
xor ecx, ebp
mov dword [edx + 0x10], eax
pop ebx
call fcn.0066c98d
mov esp, ebp
pop ebp
ret 0xc