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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x474718]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x158], ebx
push edi
add eax, 2
nop word [eax + eax]
movzx edx, byte [eax - 2]
lea eax, [eax + 4]
movzx ecx, byte [eax - 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 3]
shl edx, 8
or edx, ecx
mov dword [ebp + esi*4 - 0x144], edx
inc esi
cmp esi, 0x10
jb 0x417e00
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 0x13c]
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x150], edx
mov edx, 0x40
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x148], eax
nop dword [eax + eax]
mov eax, dword [ecx + 0x2c]
lea ecx, [ecx + 4]
xor eax, dword [ecx + 0x14]
xor eax, dword [ecx - 0xc]
xor eax, dword [ecx - 4]
rol eax, 1
mov dword [ecx + 0x34], eax
sub edx, 1
jne 0x417e60
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], edx
mov edx, dword [ebp - 0x150]
nop dword [eax + eax]
mov ecx, eax
mov eax, edi
xor eax, esi
rol ecx, 5
and eax, edx
rol edx, 0x1e
xor eax, edi
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, 0x5a827999
add ecx, dword [ebp + eax*4 - 0x144]
mov eax, esi
add ebx, ecx
xor eax, edx
and eax, dword [ebp - 0x148]
mov ecx, ebx
rol dword [ebp - 0x148], 0x1e
xor eax, esi
rol ecx, 5
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, 0x5a827999
add ecx, dword [ebp + eax*4 - 0x140]
mov eax, edx
xor eax, dword [ebp - 0x148]
add edi, ecx
and eax, ebx
mov ecx, edi
xor eax, edx
rol ecx, 5
add ecx, eax
rol ebx, 0x1e
mov eax, dword [ebp - 0x14c]
add ecx, 0x5a827999
add ecx, dword [ebp + eax*4 - 0x13c]
mov eax, ebx
xor eax, dword [ebp - 0x148]
add esi, ecx
and eax, edi
mov ecx, esi
xor eax, dword [ebp - 0x148]
rol ecx, 5
add ecx, eax
rol edi, 0x1e
mov eax, dword [ebp - 0x14c]
add ecx, 0x5a827999
add ecx, dword [ebp + eax*4 - 0x138]
mov eax, ebx
add edx, ecx
xor eax, edi
and eax, esi
mov ecx, edx
xor eax, ebx
rol ecx, 5
add ecx, eax
rol esi, 0x1e
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + eax*4 - 0x134]
mov eax, dword [ebp - 0x148]
add eax, 0x5a827999
add eax, ecx
mov ecx, dword [ebp - 0x14c]
add ecx, 5
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], ecx
cmp ecx, 0x14
jb 0x417e90
mov dword [ebp - 0x150], edx
cmp ecx, 0x28
jae 0x418092
nop dword [eax]
mov ecx, eax
mov eax, edi
xor eax, esi
rol ecx, 5
xor eax, edx
rol edx, 0x1e
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, 0x6ed9eba1
add ecx, dword [ebp + eax*4 - 0x144]
mov eax, esi
add ebx, ecx
xor eax, edx
xor eax, dword [ebp - 0x148]
mov ecx, ebx
rol dword [ebp - 0x148], 0x1e
rol ecx, 5
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, 0x6ed9eba1
add ecx, dword [ebp + eax*4 - 0x140]
mov eax, ebx
add edi, ecx
rol ebx, 0x1e
xor eax, edx
mov ecx, edi
xor eax, dword [ebp - 0x148]
rol ecx, 5
add ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, 0x6ed9eba1
add ecx, dword [ebp + eax*4 - 0x13c]
mov eax, ebx
add esi, ecx
xor eax, edi
xor eax, dword [ebp - 0x148]
mov ecx, esi
rol ecx, 5
add ecx, eax
rol edi, 0x1e
mov eax, dword [ebp - 0x14c]
add ecx, 0x6ed9eba1
add ecx, dword [ebp + eax*4 - 0x138]
mov eax, ebx
add edx, ecx
xor eax, edi
xor eax, esi
mov ecx, edx
rol ecx, 5
add ecx, eax
rol esi, 0x1e
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + eax*4 - 0x134]
mov eax, dword [ebp - 0x148]
add eax, 0x6ed9eba1
add eax, ecx
mov ecx, dword [ebp - 0x14c]
add ecx, 5
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], ecx
cmp ecx, 0x28
jb 0x417fa0
mov dword [ebp - 0x150], edx
cmp ecx, 0x3c
jae 0x4181db
nop dword [eax + eax]
mov edx, eax
mov ecx, esi
or ecx, dword [ebp - 0x150]
mov eax, esi
and eax, dword [ebp - 0x150]
and ecx, edi
or ecx, eax
rol edx, 5
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x150]
add ecx, ebx
rol eax, 0x1e
lea ebx, [edx - 0x70e44324]
add ebx, ecx
mov dword [ebp - 0x150], eax
mov ecx, eax
mov edx, ebx
or ecx, dword [ebp - 0x148]
and eax, dword [ebp - 0x148]
and ecx, esi
or ecx, eax
rol edx, 5
mov eax, dword [ebp - 0x14c]
add edx, 0x8f1bbcdc
add ecx, dword [ebp + eax*4 - 0x140]
mov eax, dword [ebp - 0x148]
add edi, ecx
rol eax, 0x1e
mov ecx, ebx
or ecx, eax
mov dword [ebp - 0x148], eax
and ecx, dword [ebp - 0x150]
mov eax, ebx
and eax, dword [ebp - 0x148]
add edi, edx
or ecx, eax
rol ebx, 0x1e
mov eax, dword [ebp - 0x14c]
mov edx, edi
rol edx, 5
add edx, 0x8f1bbcdc
add ecx, dword [ebp + eax*4 - 0x13c]
mov eax, ebx
add esi, ecx
and eax, edi
mov ecx, ebx
add esi, edx
or ecx, edi
mov edx, esi
and ecx, dword [ebp - 0x148]
or ecx, eax
rol edx, 5
mov eax, dword [ebp - 0x14c]
rol edi, 0x1e
add ecx, dword [ebp + eax*4 - 0x138]
add ecx, dword [ebp - 0x150]
lea eax, [ecx - 0x70e44324]
mov ecx, edi
add eax, edx
or ecx, esi
mov edx, eax
mov dword [ebp - 0x150], eax
and ecx, ebx
rol edx, 5
mov eax, edi
and eax, esi
rol esi, 0x1e
or ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + eax*4 - 0x134]
add ecx, dword [ebp - 0x148]
lea eax, [ecx - 0x70e44324]
mov ecx, dword [ebp - 0x14c]
add ecx, 5
add eax, edx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], ecx
cmp ecx, 0x3c
jb 0x4180a0
mov edx, dword [ebp - 0x150]
cmp ecx, 0x50
jae 0x418307
mov ecx, eax
mov eax, edi
xor eax, esi
rol ecx, 5
xor eax, edx
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x14c]
rol edx, 0x1e
add eax, dword [ebp + ecx*4 - 0x144]
add eax, ebx
mov ebx, dword [ebp - 0x150]
add ebx, 0xca62c1d6
add ebx, eax
mov eax, esi
xor eax, edx
mov ecx, ebx
xor eax, dword [ebp - 0x148]
rol ecx, 5
rol dword [ebp - 0x148], 0x1e
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x14c]
add eax, dword [ebp + ecx*4 - 0x140]
add eax, edi
mov edi, dword [ebp - 0x150]
add edi, 0xca62c1d6
add edi, eax
mov eax, ebx
xor eax, edx
rol ebx, 0x1e
xor eax, dword [ebp - 0x148]
mov ecx, edi
rol ecx, 5
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x14c]
add eax, dword [ebp + ecx*4 - 0x13c]
add eax, esi
mov esi, dword [ebp - 0x150]
add esi, 0xca62c1d6
add esi, eax
mov eax, ebx
xor eax, edi
mov ecx, esi
xor eax, dword [ebp - 0x148]
rol ecx, 5
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x14c]
rol edi, 0x1e
add eax, dword [ebp + ecx*4 - 0x138]
add eax, edx
mov edx, dword [ebp - 0x150]
add edx, 0xca62c1d6
add edx, eax
mov eax, ebx
mov ecx, edx
mov dword [ebp - 0x150], edx
mov edx, dword [ebp - 0x14c]
xor eax, edi
xor eax, esi
rol ecx, 5
add ecx, 0xca62c1d6
rol esi, 0x1e
add eax, dword [ebp + edx*4 - 0x134]
add eax, dword [ebp - 0x148]
add eax, ecx
mov ecx, edx
mov edx, dword [ebp - 0x150]
add ecx, 5
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], ecx
cmp ecx, 0x50
jb 0x4181e4
mov ecx, dword [ebp - 0x158]
add eax, dword [ebp - 0x154]
add dword [ecx + 0x14], edi
add dword [ecx + 0x10], esi
add dword [ecx + 0x18], ebx
add dword [ecx + 0xc], edx
mov dword [ecx + 8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043efc4
mov esp, ebp
pop ebp
ret