Function at 0x405a40
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
mov ecx, dword [esp + 8]
je 0x406058
push ebx
push ebp
push esi
add eax, 0x38
push edi
mov edx, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
mov edi, dword [ecx + 0xc]
dec dword [esp + 0x1c]
mov ecx, dword [ecx + 8]
mov ebx, dword [eax - 0x38]
mov ebp, edx
xor ebp, esi
and ebp, edi
xor ebp, edx
add ebp, ebx
lea ecx, [ecx + ebp - 0x28955b88]
mov ebx, dword [eax - 0x34]
rol ecx, 7
add ecx, edi
mov ebp, esi
xor ebp, edi
and ebp, ecx
xor ebp, esi
add ebp, ebx
lea edx, [edx + ebp - 0x173848aa]
mov ebx, dword [eax - 0x30]
rol edx, 0xc
add edx, ecx
mov ebp, edi
xor ebp, ecx
and ebp, edx
xor ebp, edi
add ebp, ebx
lea esi, [esi + ebp + 0x242070db]
mov ebx, dword [eax - 0x2c]
rol esi, 0x11
add esi, edx
mov ebp, edx
xor ebp, ecx
and ebp, esi
xor ebp, ecx
add ebp, ebx
lea edi, [edi + ebp - 0x3e423112]
mov ebx, dword [eax - 0x28]
rol edi, 0x16
add edi, esi
mov ebp, edx
xor ebp, esi
and ebp, edi
xor ebp, edx
add ebp, ebx
mov ebx, dword [eax - 0x24]
lea ecx, [ecx + ebp - 0xa83f051]
rol ecx, 7
add ecx, edi
mov ebp, esi
xor ebp, edi
and ebp, ecx
xor ebp, esi
add ebp, ebx
mov ebx, dword [eax - 0x20]
lea edx, [edx + ebp + 0x4787c62a]
rol edx, 0xc
add edx, ecx
mov ebp, edi
xor ebp, ecx
and ebp, edx
xor ebp, edi
add ebp, ebx
mov ebx, dword [eax - 0x1c]
lea esi, [esi + ebp - 0x57cfb9ed]
rol esi, 0x11
add esi, edx
mov ebp, edx
xor ebp, ecx
and ebp, esi
xor ebp, ecx
add ebp, ebx
mov ebx, dword [eax - 0x18]
lea edi, [edi + ebp - 0x2b96aff]
rol edi, 0x16
mov ebp, edx
add edi, esi
xor ebp, esi
and ebp, edi
xor ebp, edx
add ebp, ebx
lea ecx, [ecx + ebp + 0x698098d8]
mov ebx, dword [eax - 0x14]
rol ecx, 7
add ecx, edi
mov ebp, esi
xor ebp, edi
and ebp, ecx
xor ebp, esi
add ebp, ebx
lea edx, [edx + ebp - 0x74bb0851]
mov ebx, dword [eax - 0x10]
rol edx, 0xc
add edx, ecx
mov ebp, edi
xor ebp, ecx
and ebp, edx
xor ebp, edi
add ebp, ebx
lea esi, [esi + ebp - 0xa44f]
mov ebx, dword [eax - 0xc]
rol esi, 0x11
add esi, edx
mov ebp, edx
xor ebp, ecx
and ebp, esi
xor ebp, ecx
add ebp, ebx
mov ebx, dword [eax - 8]
lea edi, [edi + ebp - 0x76a32842]
rol edi, 0x16
add edi, esi
mov ebp, edx
xor ebp, esi
and ebp, edi
xor ebp, edx
add ebp, ebx
mov ebx, dword [eax - 4]
lea ecx, [ecx + ebp + 0x6b901122]
rol ecx, 7
add ecx, edi
mov ebp, esi
xor ebp, edi
and ebp, ecx
xor ebp, esi
add ebp, ebx
mov ebx, dword [eax]
lea edx, [edx + ebp - 0x2678e6d]
rol edx, 0xc
add edx, ecx
mov ebp, edi
xor ebp, ecx
and ebp, edx
xor ebp, edi
add ebp, ebx
mov ebx, dword [eax + 4]
lea esi, [esi + ebp - 0x5986bc72]
rol esi, 0x11
add esi, edx
mov ebp, edx
xor ebp, ecx
and ebp, esi
xor ebp, ecx
add ebp, ebx
lea edi, [edi + ebp + 0x49b40821]
rol edi, 0x16
add edi, esi
mov ebx, esi
xor ebx, edi
and ebx, edx
xor ebx, esi
add ebx, dword [eax - 0x34]
lea ecx, [ebx + ecx - 0x9e1da9e]
rol ecx, 5
add ecx, edi
mov ebx, edi
xor ebx, ecx
and ebx, esi
xor ebx, edi
add ebx, dword [eax - 0x20]
lea edx, [ebx + edx - 0x3fbf4cc0]
rol edx, 9
add edx, ecx
mov ebx, edx
xor ebx, ecx
and ebx, edi
xor ebx, ecx
add ebx, dword [eax - 0xc]
lea esi, [ebx + esi + 0x265e5a51]
rol esi, 0xe
add esi, edx
mov ebx, edx
xor ebx, esi
and ebx, ecx
xor ebx, edx
add ebx, dword [eax - 0x38]
lea edi, [ebx + edi - 0x16493856]
rol edi, 0x14
add edi, esi
mov ebx, esi
xor ebx, edi
and ebx, edx
xor ebx, esi
add ebx, dword [eax - 0x24]
lea ecx, [ebx + ecx - 0x29d0efa3]
rol ecx, 5
add ecx, edi
mov ebx, edi
xor ebx, ecx
and ebx, esi
xor ebx, edi
add ebx, dword [eax - 0x10]
lea edx, [ebx + edx + 0x2441453]
rol edx, 9
add edx, ecx
mov ebx, edx
xor ebx, ecx
and ebx, edi
xor ebx, ecx
add ebx, dword [eax + 4]
lea esi, [ebx + esi - 0x275e197f]
rol esi, 0xe
add esi, edx
mov ebx, edx
xor ebx, esi
and ebx, ecx
xor ebx, edx
add ebx, dword [eax - 0x28]
lea edi, [ebx + edi - 0x182c0438]
rol edi, 0x14
add edi, esi
mov ebx, esi
xor ebx, edi
and ebx, edx
xor ebx, esi
add ebx, dword [eax - 0x14]
lea ecx, [ebx + ecx + 0x21e1cde6]
rol ecx, 5
add ecx, edi
mov ebx, edi
xor ebx, ecx
and ebx, esi
xor ebx, edi
add ebx, dword [eax]
lea edx, [ebx + edx - 0x3cc8f82a]
rol edx, 9
add edx, ecx
mov ebx, edx
xor ebx, ecx
and ebx, edi
xor ebx, ecx
add ebx, dword [eax - 0x2c]
lea esi, [ebx + esi - 0xb2af279]
rol esi, 0xe
add esi, edx
mov ebx, edx
xor ebx, esi
and ebx, ecx
xor ebx, edx
add ebx, dword [eax - 0x18]
lea edi, [ebx + edi + 0x455a14ed]
rol edi, 0x14
add edi, esi
mov ebx, esi
xor ebx, edi
and ebx, edx
xor ebx, esi
add ebx, dword [eax - 4]
lea ecx, [ebx + ecx - 0x561c16fb]
rol ecx, 5
add ecx, edi
mov ebx, edi
xor ebx, ecx
and ebx, esi
xor ebx, edi
add ebx, dword [eax - 0x30]
lea edx, [ebx + edx - 0x3105c08]
rol edx, 9
add edx, ecx
mov ebx, edx
xor ebx, ecx
and ebx, edi
xor ebx, ecx
add ebx, dword [eax - 0x1c]
lea esi, [ebx + esi + 0x676f02d9]
rol esi, 0xe
add esi, edx
mov ebx, edx
xor ebx, esi
mov dword [esp + 0x10], ebx
and ebx, ecx
xor ebx, edx
add ebx, dword [eax - 8]
lea edi, [ebx + edi - 0x72d5b376]
mov ebx, dword [esp + 0x10]
rol edi, 0x14
add edi, esi
xor ebx, edi
add ebx, dword [eax - 0x24]
lea ecx, [ebx + ecx - 0x5c6be]
rol ecx, 4
add ecx, edi
mov ebx, esi
xor ebx, edi
xor ebx, ecx
add ebx, dword [eax - 0x18]
lea edx, [ebx + edx - 0x788e097f]
rol edx, 0xb
add edx, ecx
mov ebx, edx
xor ebx, edi
xor ebx, ecx
add ebx, dword [eax - 0xc]
mov ebp, edx
lea ebx, [ebx + esi + 0x6d9d6122]
rol ebx, 0x10
add ebx, edx
xor ebp, ebx
mov esi, ebp
xor esi, ecx
add esi, dword [eax]
lea esi, [esi + edi - 0x21ac7f4]
rol esi, 0x17
add esi, ebx
xor ebp, esi
add ebp, dword [eax - 0x34]
mov edi, ebx
lea ecx, [ecx + ebp - 0x5b4115bc]
xor edi, esi
rol ecx, 4
add ecx, esi
xor edi, ecx
add edi, dword [eax - 0x28]
lea edi, [edi + edx + 0x4bdecfa9]
rol edi, 0xb
add edi, ecx
mov edx, edi
xor edx, esi
xor edx, ecx
add edx, dword [eax - 0x1c]
lea ebx, [edx + ebx - 0x944b4a0]
rol ebx, 0x10
add ebx, edi
mov ebp, edi
xor ebp, ebx
mov edx, ebp
xor edx, ecx
add edx, dword [eax - 0x10]
lea edx, [edx + esi - 0x41404390]
mov esi, ebx
rol edx, 0x17
add edx, ebx
xor ebp, edx
add ebp, dword [eax - 4]
xor esi, edx
lea ecx, [ecx + ebp + 0x289b7ec6]
rol ecx, 4
add ecx, edx
xor esi, ecx
add esi, dword [eax - 0x38]
lea esi, [esi + edi - 0x155ed806]
rol esi, 0xb
add esi, ecx
mov edi, esi
xor edi, edx
xor edi, ecx
add edi, dword [eax - 0x2c]
lea edi, [edi + ebx - 0x2b10cf7b]
rol edi, 0x10
add edi, esi
mov ebx, esi
xor ebx, edi
mov ebp, ebx
xor ebp, ecx
add ebp, dword [eax - 0x20]
lea edx, [edx + ebp + 0x4881d05]
rol edx, 0x17
add edx, edi
xor ebx, edx
add ebx, dword [eax - 0x14]
mov ebp, dword [eax - 0x30]
lea ecx, [ebx + ecx - 0x262b2fc7]
rol ecx, 4
add ecx, edx
mov ebx, edi
xor ebx, edx
xor ebx, ecx
add ebx, dword [eax - 8]
lea esi, [ebx + esi - 0x1924661b]
rol esi, 0xb
add esi, ecx
mov ebx, esi
xor ebx, edx
xor ebx, ecx
add ebx, dword [eax + 4]
lea edi, [ebx + edi + 0x1fa27cf8]
rol edi, 0x10
add edi, esi
mov ebx, esi
xor ebx, edi
xor ebx, ecx
add ebx, ebp
lea edx, [ebx + edx - 0x3b53a99b]
rol edx, 0x17
add edx, edi
mov ebx, esi
not ebx
or ebx, edx
xor ebx, edi
add ebx, dword [eax - 0x38]
lea ecx, [ebx + ecx - 0xbd6ddbc]
rol ecx, 6
add ecx, edx
mov ebx, edi
not ebx
or ebx, ecx
xor ebx, edx
add ebx, dword [eax - 0x1c]
lea esi, [ebx + esi + 0x432aff97]
rol esi, 0xa
mov ebx, edx
add esi, ecx
not ebx
or ebx, esi
xor ebx, ecx
add ebx, dword [eax]
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 [eax - 0x24]
lea edx, [ebx + edx - 0x36c5fc7]
rol edx, 0x15
add edx, edi
mov ebx, esi
not ebx
or ebx, edx
xor ebx, edi
add ebx, dword [eax - 8]
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 [eax - 0x2c]
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 [eax - 0x10]
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 [eax - 0x34]
lea edx, [ebx + edx - 0x7a7ba22f]
rol edx, 0x15
add edx, edi
mov ebx, esi
not ebx
or ebx, edx
xor ebx, edi
add ebx, dword [eax - 0x18]
lea ecx, [ebx + ecx + 0x6fa87e4f]
rol ecx, 6
add ecx, edx
mov ebx, edi
not ebx
or ebx, ecx
xor ebx, edx
add ebx, dword [eax + 4]
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 [eax - 0x20]
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 [eax - 4]
lea edx, [ebx + edx + 0x4e0811a1]
rol edx, 0x15
mov ebx, esi
add edx, edi
not ebx
or ebx, edx
xor ebx, edi
add ebx, dword [eax - 0x28]
add eax, 0x40
lea ebx, [ebx + ecx - 0x8ac817e]
rol ebx, 6
add ebx, edx
mov ecx, edi
not ecx
or ecx, ebx
xor ecx, edx
add ecx, dword [eax - 0x4c]
lea esi, [ecx + esi - 0x42c50dcb]
mov ecx, edx
not ecx
rol esi, 0xa
add esi, ebx
or ecx, esi
xor ecx, ebx
add ecx, ebp
lea edi, [ecx + edi + 0x2ad7d2bb]
rol edi, 0xf
add edi, esi
mov ecx, ebx
not ecx
or ecx, edi
xor ecx, esi
add ecx, dword [eax - 0x54]
lea edx, [ecx + edx - 0x14792c6f]
mov ecx, dword [esp + 0x18]
mov ebp, dword [ecx + 8]
rol edx, 0x15
add edx, edi
add ebp, ebx
mov ebx, dword [ecx + 0xc]
add ebx, edx
mov edx, dword [ecx + 0x10]
add edx, edi
mov dword [ecx + 0x10], edx
mov edx, dword [ecx + 0x14]
add edx, esi
cmp dword [esp + 0x1c], 0
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edx
jne 0x405a57
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8