Function at 0x40d640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, ebx
shr edx, 2
lea edx, [eax + edx*4]
mov dword [ebp - 0x58], edx
mov edx, dword [ecx]
push esi
mov esi, dword [ecx + 8]
mov dword [ebp - 0x50], ecx
push edi
mov edi, dword [ecx + 4]
mov dword [ebp - 0x48], edx
mov edx, dword [ecx + 0xc]
or ecx, 0xffffffff
sub ecx, ebx
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x4c], edi
cmp ecx, dword [ebp - 0x54]
jbe 0x40d69a
inc dword [ebx + 0x14]
mov ebx, dword [ebp + 0xc]
lea ecx, [ecx + ebx + 1]
mov ebx, dword [ebp - 0x50]
jmp 0x40d69d
add ecx, dword [ebp + 0xc]
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp - 0x58]
cmp eax, ecx
mov ecx, dword [ebp - 0x48]
jae 0x40dd30
mov edi, edi
mov ebx, edx
xor ebx, esi
and ebx, edi
xor ebx, edx
mov dword [ebp - 0x54], ecx
mov ecx, dword [eax]
add ebx, ecx
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x48]
lea ecx, [ebx + ecx - 0x28955b88]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x40], ebx
rol ecx, 7
add ecx, edi
mov ebx, esi
xor ebx, edi
and ebx, ecx
xor ebx, esi
add ebx, dword [ebp - 0x40]
mov dword [ebp - 0x64], edi
mov edi, dword [eax + 8]
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x60], edx
lea edx, [ebx + edx - 0x173848aa]
rol edx, 0xc
add edx, ecx
mov ebx, edi
xor ebx, ecx
and ebx, edx
xor ebx, edi
add ebx, dword [ebp - 0x3c]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x5c], esi
lea esi, [ebx + esi + 0x242070db]
ror esi, 0xf
add esi, edx
mov ebx, edx
xor ebx, ecx
and ebx, esi
xor ebx, ecx
add ebx, edi
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x4c]
lea edi, [ebx + edi - 0x3e423112]
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x34], ebx
ror edi, 0xa
add edi, esi
mov ebx, edx
xor ebx, esi
and ebx, edi
xor ebx, edx
add ebx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], edi
lea ecx, [ebx + ecx - 0xa83f051]
mov ebx, dword [eax + 0x14]
mov dword [ebp - 0x30], ebx
rol ecx, 7
add ecx, edi
mov ebx, esi
xor ebx, edi
mov edi, dword [eax + 0x18]
and ebx, ecx
xor ebx, esi
add ebx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x4c]
lea edx, [ebx + edx + 0x4787c62a]
rol edx, 0xc
mov ebx, edi
xor ebx, ecx
add edx, ecx
and ebx, edx
xor ebx, edi
add ebx, dword [ebp - 0x2c]
mov edi, dword [eax + 0x1c]
lea esi, [ebx + esi - 0x57cfb9ed]
ror esi, 0xf
add esi, edx
mov dword [ebp - 0x28], edi
mov ebx, edx
xor ebx, ecx
and ebx, esi
xor ebx, ecx
add ebx, edi
mov edi, dword [ebp - 0x4c]
lea edi, [ebx + edi - 0x2b96aff]
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0x24], ebx
ror edi, 0xa
add edi, esi
mov ebx, edx
xor ebx, esi
and ebx, edi
xor ebx, edx
add ebx, dword [ebp - 0x24]
mov dword [ebp - 0x4c], edi
lea ecx, [ebx + ecx + 0x698098d8]
mov ebx, dword [eax + 0x24]
mov dword [ebp - 0x20], ebx
rol ecx, 7
add ecx, edi
mov ebx, esi
xor ebx, edi
and ebx, ecx
xor ebx, esi
add ebx, dword [ebp - 0x20]
mov edi, dword [eax + 0x28]
lea edx, [ebx + edx - 0x74bb0851]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x4c]
rol edx, 0xc
add edx, ecx
mov ebx, edi
xor ebx, ecx
and ebx, edx
xor ebx, edi
add ebx, dword [ebp - 0x1c]
mov edi, dword [eax + 0x2c]
lea esi, [ebx + esi - 0xa44f]
ror esi, 0xf
add esi, edx
mov ebx, edx
xor ebx, ecx
and ebx, esi
xor ebx, ecx
add ebx, edi
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x4c]
lea edi, [ebx + edi - 0x76a32842]
mov ebx, dword [eax + 0x30]
mov dword [ebp - 0x14], ebx
ror edi, 0xa
add edi, esi
mov ebx, edx
xor ebx, esi
and ebx, edi
xor ebx, edx
add ebx, dword [ebp - 0x14]
mov dword [ebp - 0x4c], edi
lea ecx, [ebx + ecx + 0x6b901122]
mov ebx, dword [eax + 0x34]
mov dword [ebp - 0x10], ebx
rol ecx, 7
add ecx, edi
mov ebx, esi
xor ebx, edi
mov edi, dword [eax + 0x38]
and ebx, ecx
xor ebx, esi
add ebx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x4c]
lea edx, [ebx + edx - 0x2678e6d]
rol edx, 0xc
add edx, ecx
mov ebx, edi
xor ebx, ecx
and ebx, edx
mov dword [ebp - 0x48], edx
xor ebx, edi
add ebx, dword [ebp - 0xc]
mov edi, dword [eax + 0x3c]
lea esi, [ebx + esi - 0x5986bc72]
mov ebx, edx
xor ebx, ecx
ror esi, 0xf
add esi, edx
and ebx, esi
xor ebx, ecx
add ebx, edi
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0x4c]
lea edi, [ebx + edi + 0x49b40821]
ror edi, 0xa
add edi, esi
mov ebx, esi
xor ebx, edi
and ebx, edx
xor ebx, esi
add ebx, dword [ebp - 0x40]
add eax, 0x40
lea ecx, [ebx + ecx - 0x9e1da9e]
mov ebx, dword [ebp - 0x48]
rol ecx, 5
add ecx, edi
mov edx, edi
xor edx, ecx
and edx, esi
xor edx, edi
add edx, dword [ebp - 0x2c]
lea edx, [edx + ebx - 0x3fbf4cc0]
rol edx, 9
add edx, ecx
mov dword [ebp - 0x48], edx
xor edx, ecx
and edx, edi
xor edx, ecx
add edx, dword [ebp - 0x18]
lea esi, [edx + esi + 0x265e5a51]
mov edx, dword [ebp - 0x48]
mov ebx, edx
rol esi, 0xe
add esi, edx
xor ebx, esi
and ebx, ecx
xor ebx, edx
add ebx, dword [ebp - 0x44]
mov edx, esi
lea edi, [ebx + edi - 0x16493856]
mov ebx, dword [ebp - 0x48]
ror edi, 0xc
add edi, esi
xor edx, edi
and edx, dword [ebp - 0x48]
xor edx, esi
add edx, dword [ebp - 0x30]
lea ecx, [edx + ecx - 0x29d0efa3]
rol ecx, 5
add ecx, edi
mov edx, edi
xor edx, ecx
and edx, esi
xor edx, edi
add edx, dword [ebp - 0x1c]
lea edx, [edx + ebx + 0x2441453]
rol edx, 9
add edx, ecx
mov dword [ebp - 0x48], edx
xor edx, ecx
and edx, edi
xor edx, ecx
add edx, dword [ebp - 8]
lea esi, [edx + esi - 0x275e197f]
mov edx, dword [ebp - 0x48]
rol esi, 0xe
add esi, edx
mov ebx, edx
xor ebx, esi
and ebx, ecx
xor ebx, edx
add ebx, dword [ebp - 0x34]
lea edi, [ebx + edi - 0x182c0438]
ror edi, 0xc
add edi, esi
mov ebx, dword [ebp - 0x48]
mov edx, esi
xor edx, edi
and edx, dword [ebp - 0x48]
xor edx, esi
add edx, dword [ebp - 0x20]
lea ecx, [edx + ecx + 0x21e1cde6]
rol ecx, 5
add ecx, edi
mov edx, edi
xor edx, ecx
and edx, esi
xor edx, edi
add edx, dword [ebp - 0xc]
lea edx, [edx + ebx - 0x3cc8f82a]
rol edx, 9
add edx, ecx
mov dword [ebp - 0x48], edx
xor edx, ecx
and edx, edi
xor edx, ecx
add edx, dword [ebp - 0x38]
lea esi, [edx + esi - 0xb2af279]
mov edx, dword [ebp - 0x48]
mov ebx, edx
rol esi, 0xe
add esi, edx
xor ebx, esi
and ebx, ecx
xor ebx, edx
add ebx, dword [ebp - 0x24]
mov edx, esi
lea edi, [ebx + edi + 0x455a14ed]
ror edi, 0xc
add edi, esi
xor edx, edi
and edx, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x48]
xor edx, esi
add edx, dword [ebp - 0x10]
lea ecx, [edx + ecx - 0x561c16fb]
rol ecx, 5
add ecx, edi
mov edx, edi
xor edx, ecx
and edx, esi
xor edx, edi
add edx, dword [ebp - 0x3c]
lea edx, [edx + ebx - 0x3105c08]
rol edx, 9
add edx, ecx
mov dword [ebp - 0x48], edx
xor edx, ecx
and edx, edi
xor edx, ecx
add edx, dword [ebp - 0x28]
lea esi, [edx + esi + 0x676f02d9]
mov edx, dword [ebp - 0x48]
mov ebx, edx
rol esi, 0xe
add esi, edx
xor ebx, esi
mov dword [ebp - 0x4c], ebx
and ebx, ecx
xor ebx, edx
add ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x4c]
lea edi, [ebx + edi - 0x72d5b376]
ror edi, 0xc
add edi, esi
xor edx, edi
add edx, dword [ebp - 0x30]
lea ecx, [edx + ecx - 0x5c6be]
rol ecx, 4
mov edx, esi
add ecx, edi
xor edx, edi
xor edx, ecx
add edx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x48]
lea ebx, [edx + ebx - 0x788e097f]
rol ebx, 0xb
add ebx, ecx
mov edx, ebx
xor edx, edi
xor edx, ecx
add edx, dword [ebp - 0x18]
lea esi, [edx + esi + 0x6d9d6122]
rol esi, 0x10
add esi, ebx
mov edx, ebx
xor edx, esi
mov dword [ebp - 0x4c], edx
xor edx, ecx
add edx, dword [ebp - 0xc]
lea edx, [edx + edi - 0x21ac7f4]
mov edi, dword [ebp - 0x4c]
ror edx, 9
add edx, esi
xor edi, edx
add edi, dword [ebp - 0x40]
lea ecx, [edi + ecx - 0x5b4115bc]
rol ecx, 4
add ecx, edx
mov edi, esi
xor edi, edx
xor edi, ecx
add edi, dword [ebp - 0x34]
lea ebx, [edi + ebx + 0x4bdecfa9]
rol ebx, 0xb
add ebx, ecx
mov edi, ebx
xor edi, edx
xor edi, ecx
add edi, dword [ebp - 0x28]
lea esi, [edi + esi - 0x944b4a0]
rol esi, 0x10
add esi, ebx
mov edi, ebx
xor edi, esi
mov dword [ebp - 0x4c], edi
xor edi, ecx
add edi, dword [ebp - 0x1c]
lea edx, [edi + edx - 0x41404390]
mov edi, dword [ebp - 0x4c]
ror edx, 9
add edx, esi
xor edi, edx
add edi, dword [ebp - 0x10]
lea ecx, [edi + ecx + 0x289b7ec6]
rol ecx, 4
add ecx, edx
mov edi, esi
xor edi, edx
xor edi, ecx
add edi, dword [ebp - 0x44]
lea ebx, [edi + ebx - 0x155ed806]
rol ebx, 0xb
add ebx, ecx
mov edi, ebx
xor edi, edx
xor edi, ecx
add edi, dword [ebp - 0x38]
lea esi, [edi + esi - 0x2b10cf7b]
rol esi, 0x10
add esi, ebx
mov edi, ebx
xor edi, esi
mov dword [ebp - 0x4c], edi
xor edi, ecx
add edi, dword [ebp - 0x2c]
mov dword [ebp - 0x48], esi
lea edx, [edi + edx + 0x4881d05]
mov edi, dword [ebp - 0x4c]
ror edx, 9
add edx, esi
xor edi, edx
add edi, dword [ebp - 0x20]
lea ecx, [edi + ecx - 0x262b2fc7]
xor esi, edx
rol ecx, 4
add ecx, edx
xor esi, ecx
add esi, dword [ebp - 0x14]
lea esi, [esi + ebx - 0x1924661b]
mov ebx, dword [ebp - 0x48]
rol esi, 0xb
add esi, ecx
mov edi, esi
xor edi, edx
xor edi, ecx
add edi, dword [ebp - 8]
lea edi, [edi + ebx + 0x1fa27cf8]
rol edi, 0x10
add edi, esi
mov ebx, esi
xor ebx, edi
xor ebx, ecx
add ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x48], edi
lea edx, [ebx + edx - 0x3b53a99b]
ror edx, 9
add edx, edi
mov edi, esi
not edi
or edi, edx
xor edi, dword [ebp - 0x48]
add edi, dword [ebp - 0x44]
lea ecx, [edi + ecx - 0xbd6ddbc]
mov edi, dword [ebp - 0x48]
rol ecx, 6
add ecx, edx
mov ebx, edi
not ebx
or ebx, ecx
xor ebx, edx
add ebx, dword [ebp - 0x28]
lea esi, [ebx + esi + 0x432aff97]
rol esi, 0xa
add esi, ecx
mov ebx, edx
not ebx
or ebx, esi
xor ebx, ecx
add ebx, dword [ebp - 0xc]
lea edi, [ebx + edi - 0x546bdc59]
rol edi, 0xf
add edi, esi
mov ebx, ecx
not ebx
or ebx, edi
xor ebx, esi
add ebx, dword [ebp - 0x30]
lea edx, [ebx + edx - 0x36c5fc7]
ror edx, 0xb
add edx, edi
mov ebx, esi
not ebx
or ebx, edx
xor ebx, edi
add ebx, dword [ebp - 0x14]
lea ecx, [ebx + ecx + 0x655b59c3]
rol ecx, 6
add ecx, edx
mov ebx, edi
not ebx
or ebx, ecx
xor ebx, edx
add ebx, dword [ebp - 0x38]
lea esi, [ebx + esi - 0x70f3336e]
rol esi, 0xa
add esi, ecx
mov ebx, edx
not ebx
or ebx, esi
xor ebx, ecx
add ebx, dword [ebp - 0x1c]
lea edi, [ebx + edi - 0x100b83]
rol edi, 0xf
add edi, esi
mov ebx, ecx
not ebx
or ebx, edi
xor ebx, esi
add ebx, dword [ebp - 0x40]
lea edx, [ebx + edx - 0x7a7ba22f]
ror edx, 0xb
add edx, edi
mov ebx, esi
not ebx
or ebx, edx
xor ebx, edi
add ebx, dword [ebp - 0x24]
lea ecx, [ebx + ecx + 0x6fa87e4f]
mov ebx, edi
not ebx
rol ecx, 6
add ecx, edx
or ebx, ecx
xor ebx, edx
add ebx, dword [ebp - 8]
lea esi, [ebx + esi - 0x1d31920]
rol esi, 0xa
add esi, ecx
mov ebx, edx
not ebx
or ebx, esi
xor ebx, ecx
add ebx, dword [ebp - 0x2c]
lea edi, [ebx + edi - 0x5cfebcec]
rol edi, 0xf
add edi, esi
mov ebx, ecx
not ebx
or ebx, edi
xor ebx, esi
add ebx, dword [ebp - 0x10]
lea ebx, [ebx + edx + 0x4e0811a1]
mov edx, esi
not edx
ror ebx, 0xb
add ebx, edi
or edx, ebx
xor edx, edi
add edx, dword [ebp - 0x34]
lea ecx, [edx + ecx - 0x8ac817e]
mov edx, edi
rol ecx, 6
add ecx, ebx
not edx
or edx, ecx
xor edx, ebx
add edx, dword [ebp - 0x18]
lea edx, [edx + esi - 0x42c50dcb]
rol edx, 0xa
add edx, ecx
mov esi, ebx
not esi
or esi, edx
xor esi, ecx
add esi, dword [ebp - 0x3c]
lea esi, [esi + edi + 0x2ad7d2bb]
rol esi, 0xf
add esi, edx
mov edi, ecx
add ecx, dword [ebp - 0x54]
not edi
or edi, esi
xor edi, edx
add edi, dword [ebp - 0x20]
add edx, dword [ebp - 0x60]
lea edi, [edi + ebx - 0x14792c6f]
ror edi, 0xb
add edi, esi
add edi, dword [ebp - 0x64]
add esi, dword [ebp - 0x5c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edi
cmp eax, dword [ebp - 0x58]
jb 0x40d6b0
mov eax, dword [ebp - 0x50]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 4], edi
pop edi
mov dword [eax + 8], esi
pop esi
xor ecx, ebp
mov dword [eax + 0xc], edx
pop ebx
call fcn.00410f26
mov esp, ebp
pop ebp
ret