Function at 0x417c70
Capabilities:
Encode data using xor
Hash data using sha1
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1b0
cmp dword [esp + 0x1b8], 0
push ebx
push ebp
mov ebp, dword [esp + 0x1bc]
push esi
push edi
jne 0x417c98
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b0
ret
mov esi, dword [esp + 0x1cc]
mov ecx, 8
mov eax, esi
mul ecx
mov ecx, esi
and ecx, 0x3f
mov ebx, eax
mov edi, edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
cmp ecx, 0x38
jae 0x417cd2
mov eax, 0x37
sub eax, ecx
mov dword [esp + 0x24], eax
mov eax, esi
sub eax, ecx
add eax, 0x40
jmp 0x417cf3
jne 0x417ce1
mov dword [esp + 0x24], 0x3f
lea eax, [esi + 0x48]
jmp 0x417cf3
mov eax, 0x77
sub eax, ecx
mov dword [esp + 0x24], eax
mov eax, esi
sub eax, ecx
sub eax, 0xffffff80
shr eax, 2
xor esi, esi
mov dword [esp + 0x3c], eax
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
mov dword [ebp + 0x10], 0xc3d2e1f0
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x28], esi
test eax, eax
jbe 0x41816c
jmp 0x417d40
mov ecx, dword [esp + 0x24]
movzx eax, byte [esp + 0x12]
cmp eax, 0xa
ja case.default.0x417d52
jmp dword [eax*4 + 0x41817c]
mov esi, dword [esp + 0x1cc]
cmp esi, 4
jb 0x417d6a
mov esi, 4
mov edx, dword [esp + 0x1c8]
push esi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004317f0
add dword [esp + 0x1d4], esi
sub dword [esp + 0x1d8], esi
add esp, 0xc
cmp esi, 4
jae 0x417ea7
mov ecx, dword [esp + 0x24]
mov byte [esp + esi + 0x14], 0x80
inc esi
mov byte [esp + 0x12], 2
test ecx, ecx
ja 0x417db1
mov byte [esp + 0x12], 3
jmp 0x417d44
cmp esi, 4
jae 0x417dd6
sub ecx, 1
mov byte [esp + esi + 0x14], 0
jne 0x417dc5
cmp esi, 3
jb 0x417dcd
inc esi
cmp esi, 4
jb 0x417db6
jmp 0x417dd2
mov byte [esp + 0x12], 3
mov dword [esp + 0x24], ecx
cmp esi, 3
jae 0x417ea4
mov byte [esp + 0x12], 3
cmp esi, 3
ja 0x417ea4
mov edx, edi
shr edx, 0x18
mov byte [esp + esi + 0x14], dl
inc esi
mov byte [esp + 0x12], 4
cmp esi, 3
ja 0x417ea4
mov eax, edi
shr eax, 0x10
mov byte [esp + esi + 0x14], al
inc esi
mov byte [esp + 0x12], 5
cmp esi, 3
ja 0x417ea4
mov edx, edi
shr edx, 8
mov byte [esp + esi + 0x14], dl
inc esi
mov byte [esp + 0x12], 6
cmp esi, 3
ja 0x417ea4
mov eax, edi
mov byte [esp + esi + 0x14], al
inc esi
mov byte [esp + 0x12], 7
cmp esi, 3
ja 0x417ea4
mov edx, ebx
mov eax, edi
shrd edx, eax, 0x18
shr eax, 0x18
mov byte [esp + esi + 0x14], dl
inc esi
mov byte [esp + 0x12], 8
cmp esi, 3
ja 0x417ea4
mov edx, ebx
mov eax, edi
shrd edx, eax, 0x10
shr eax, 0x10
mov byte [esp + esi + 0x14], dl
inc esi
mov byte [esp + 0x12], 9
cmp esi, 3
ja 0x417ea4
mov edx, ebx
mov eax, edi
shrd edx, eax, 8
shr eax, 8
mov byte [esp + esi + 0x14], dl
inc esi
mov byte [esp + 0x12], 0xa
cmp esi, 3
ja 0x417ea4
mov byte [esp + esi + 0x14], bl
inc esi
cmp esi, 3
ja 0x417ea4
mov byte [esp + 0x12], 0xb
jmp 0x417d44
cmp esi, 4
ja case.default.0x417d52
mov eax, dword [esp + 0x14]
movzx ecx, al
shl ecx, 8
movzx edx, ah
movzx eax, byte [esp + 0x16]
or ecx, edx
movzx edx, byte [esp + 0x17]
shl ecx, 8
or ecx, eax
mov al, byte [esp + 0x13]
shl ecx, 8
or ecx, edx
movzx edx, al
inc al
xor esi, esi
mov dword [esp + edx*4 + 0x40], ecx
mov dword [esp + 0x2c], esi
mov byte [esp + 0x13], al
cmp al, 0x10
jb 0x418159
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], edx
lea eax, [esp + 0x88]
lea ecx, [esi + 0x40]
lea esp, [esp]
mov edx, dword [eax + 0x2c]
xor edx, dword [eax + 0x18]
add eax, 4
xor edx, dword [eax - 0xc]
xor edx, dword [eax - 4]
rol edx, 1
sub ecx, 1
mov dword [eax + 0x34], edx
jne 0x417fb0
mov edi, dword [ebp]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebp, dword [ebp + 0x10]
lea esi, [esp + 0x80]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0x14
nop
mov ebx, eax
not ebx
and ebx, edx
mov ebp, ecx
and ebp, eax
or ebx, ebp
mov ebp, dword [esp + 0x18]
mov esi, edi
rol esi, 5
add esi, ebx
add esi, dword [ebp]
mov ebx, dword [esp + 0x20]
lea esi, [esi + ebx + 0x5a827999]
ror eax, 2
mov ebx, edx
mov edx, ecx
add ebp, 4
sub dword [esp + 0x1c], 1
mov ecx, eax
mov eax, edi
mov dword [esp + 0x20], ebx
mov edi, esi
mov dword [esp + 0x18], ebp
jne 0x417ff0
lea ebp, [esp + 0xd0]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0x14
mov ebp, edx
xor ebp, ecx
xor ebp, eax
rol esi, 5
add esi, ebp
mov ebp, dword [esp + 0x1c]
add esi, dword [ebp]
ror eax, 2
lea esi, [esi + ebx + 0x6ed9eba1]
mov ebx, edx
mov edx, ecx
add ebp, 4
sub dword [esp + 0x18], 1
mov ecx, eax
mov eax, edi
mov edi, esi
mov dword [esp + 0x1c], ebp
jne 0x418047
mov dword [esp + 0x20], ebx
lea ebx, [esp + 0x120]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x14
mov ebx, ecx
or ebx, eax
and ebx, edx
mov ebp, ecx
and ebp, eax
or ebx, ebp
mov ebp, dword [esp + 0x18]
add ebx, dword [ebp]
add dword [esp + 0x18], 4
rol esi, 5
add esi, dword [esp + 0x20]
ror eax, 2
sub dword [esp + 0x1c], 1
mov dword [esp + 0x20], edx
mov edx, ecx
lea esi, [ebx + esi - 0x70e44324]
mov ecx, eax
mov eax, edi
mov edi, esi
jne 0x418092
lea ebx, [esp + 0x170]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x14
mov ebp, dword [esp + 0x18]
add dword [esp + 0x18], 4
mov ebx, edx
xor ebx, ecx
xor ebx, eax
add ebx, dword [ebp]
rol esi, 5
add esi, dword [esp + 0x20]
ror eax, 2
sub dword [esp + 0x1c], 1
lea esi, [ebx + esi - 0x359d3e2a]
mov ebx, edx
mov edx, ecx
mov ecx, eax
mov eax, edi
mov dword [esp + 0x20], ebx
mov edi, esi
jne 0x4180e1
mov ebp, dword [esp + 0x1c4]
mov edi, dword [ebp]
add edi, esi
mov esi, dword [ebp + 4]
add esi, eax
mov eax, dword [ebp + 8]
add eax, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
add eax, ebx
mov ebx, dword [esp + 0x30]
mov dword [ebp], edi
mov edi, dword [esp + 0x34]
mov dword [ebp + 4], esi
mov esi, dword [esp + 0x2c]
mov dword [ebp + 0x10], eax
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x3c]
jb 0x417d40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1b0
ret