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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffea0
mov dword [esp], eax
lea edx, [esp + 0x20]
mov eax, dword [esp]
add eax, 0x1c
mov ecx, 0x40
call fcn.00402cf4
mov esi, 0x10
lea ebx, [esp + 0x20]
mov eax, dword [ebx]
call fcn.004999d0
mov dword [ebx], eax
add ebx, 4
dec esi
jne 0x499a22
mov esi, 0x40
lea ebx, [esp + 0x54]
mov eax, dword [ebx]
xor eax, dword [ebx - 0x14]
xor eax, dword [ebx - 0x2c]
xor eax, dword [ebx - 0x34]
mov edx, 1
call fcn.00499960
mov dword [ebx + 0xc], eax
add ebx, 4
dec esi
jne 0x499a3a
mov ebx, dword [esp]
mov ebx, dword [ebx]
mov edi, dword [esp]
mov edi, dword [edi + 4]
mov ebp, dword [esp]
mov ebp, dword [ebp + 8]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov dword [esp + 8], eax
mov esi, 0x14
lea eax, [esp + 0x20]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 4]
mov edx, ebp
mov eax, edi
call fcn.004999ac
push eax
mov edx, 5
mov eax, ebx
call fcn.00499960
pop edx
add edx, eax
add edx, dword [esp + 8]
mov eax, dword [esp + 0x10]
add edx, dword [eax]
add edx, 0x5a827999
mov dword [esp + 0xc], edx
mov eax, dword [esp + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov edx, 0x1e
mov eax, edi
call fcn.00499960
mov ebp, eax
mov edi, ebx
mov ebx, dword [esp + 0xc]
add dword [esp + 0x10], 4
dec esi
jne 0x499a8a
mov esi, 0x14
lea eax, [esp + 0x70]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 4]
mov edx, ebp
mov eax, edi
call fcn.004999b8
push eax
mov edx, 5
mov eax, ebx
call fcn.00499960
pop edx
add edx, eax
add edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
add edx, dword [eax]
add edx, 0x6ed9eba1
mov dword [esp + 0xc], edx
mov eax, dword [esp + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov edx, 0x1e
mov eax, edi
call fcn.00499960
mov ebp, eax
mov edi, ebx
mov ebx, dword [esp + 0xc]
add dword [esp + 0x14], 4
dec esi
jne 0x499af0
mov esi, 0x14
lea eax, [esp + 0xc0]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 4]
mov edx, ebp
mov eax, edi
call fcn.004999c0
push eax
mov edx, 5
mov eax, ebx
call fcn.00499960
pop edx
add edx, eax
add edx, dword [esp + 8]
mov eax, dword [esp + 0x18]
add edx, dword [eax]
add edx, 0x8f1bbcdc
mov dword [esp + 0xc], edx
mov eax, dword [esp + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov edx, 0x1e
mov eax, edi
call fcn.00499960
mov ebp, eax
mov edi, ebx
mov ebx, dword [esp + 0xc]
add dword [esp + 0x18], 4
dec esi
jne 0x499b59
mov esi, 0x14
lea eax, [esp + 0x110]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 4]
mov edx, ebp
mov eax, edi
call fcn.004999b8
push eax
mov edx, 5
mov eax, ebx
call fcn.00499960
pop edx
add edx, eax
add edx, dword [esp + 8]
mov eax, dword [esp + 0x1c]
add edx, dword [eax]
add edx, 0xca62c1d6
mov dword [esp + 0xc], edx
mov eax, dword [esp + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov edx, 0x1e
mov eax, edi
call fcn.00499960
mov ebp, eax
mov edi, ebx
mov ebx, dword [esp + 0xc]
add dword [esp + 0x1c], 4
dec esi
jne 0x499bc2
mov eax, dword [esp]
add dword [eax], ebx
mov eax, dword [esp]
add dword [eax + 4], edi
mov eax, dword [esp]
add dword [eax + 8], ebp
mov eax, dword [esp]
mov edx, dword [esp + 4]
add dword [eax + 0xc], edx
mov eax, dword [esp]
mov edx, dword [esp + 8]
add dword [eax + 0x10], edx
lea eax, [esp + 0x20]
xor ecx, ecx
mov edx, 0x140
call fcn.00402f60
mov eax, dword [esp]
add eax, 0x1c
xor ecx, ecx
mov edx, 0x40
call fcn.00402f60
add esp, 0x160
pop ebp
pop edi
pop esi
pop ebx
ret