Function at 0x402a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
push ebx
push esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
lea esi, [eax + 0x20]
mov dword [ebp - 0x30], esi
lea esi, [eax + 0x30]
mov dword [ebp - 0x34], esi
mov esi, dword [eax]
add eax, 4
push edi
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], 3
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 0x28]
mov eax, dword [eax - 8]
add eax, ecx
mov esi, eax
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0xc], ecx
mov ecx, eax
mov dword [ebp - 0x48], edx
mov edx, eax
shr eax, 3
and eax, 0x11111111
add eax, 0x77777777
xor eax, 0x77777777
mov dword [ebp - 0x24], eax
shr ecx, 1
and edx, 0x11111111
and ecx, 0x11111111
add edx, 0x77777777
xor edx, 0x77777777
add ecx, 0x77777777
xor ecx, 0x77777777
mov eax, ecx
and eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add eax, 4
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [eax - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 8]
mov eax, edx
and eax, dword [ebx]
mov ebx, dword [ebp - 0xc]
xor dword [ebp - 0x18], eax
mov eax, dword [edi + 4]
and eax, edx
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
and eax, edx
xor dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
add dword [ebp - 8], 4
and ebx, edx
mov edx, dword [ebp - 4]
and eax, ecx
xor eax, ebx
xor eax, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
mov edx, dword [ebp - 0x20]
shr esi, 2
and esi, 0x11111111
add esi, 0x77777777
and ebx, edx
xor esi, 0x77777777
and eax, esi
xor eax, ebx
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
and ebx, ecx
xor eax, ebx
xor eax, dword [ebp - 0x10]
mov ebx, dword [edi + 0xc]
and eax, dword [ebp - 0x24]
mov edi, dword [edi + 8]
and ebx, edx
and edi, ecx
xor ebx, edi
xor ebx, dword [ebp - 0x14]
and ebx, esi
mov esi, dword [ebp - 8]
and ecx, dword [esi]
mov edi, dword [esi + 4]
xor eax, ebx
and edi, edx
xor eax, edi
xor eax, ecx
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
rol eax, 0xb
xor eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
add eax, dword [ecx - 4]
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + 0x20]
mov esi, eax
mov edi, eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x30], edx
lea edx, [ecx + 0x30]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x34], edx
mov edx, eax
shr eax, 3
and eax, 0x11111111
add eax, 0x77777777
xor eax, 0x77777777
shr edx, 1
mov dword [ebp - 0x24], eax
lea ebx, [ecx + 0x10]
and edx, 0x11111111
and esi, 0x11111111
add ecx, 4
add edx, 0x77777777
xor edx, 0x77777777
add esi, 0x77777777
xor esi, 0x77777777
mov dword [ebp - 0x3c], ecx
mov eax, edx
and eax, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov eax, ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
add dword [ebp - 4], 4
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
add dword [ebp - 0xc], 4
mov dword [ebp - 8], eax
add dword [ebp - 8], 4
mov dword [ebp - 0x1c], ecx
mov ecx, esi
and ecx, dword [eax]
mov eax, dword [ebx + 4]
xor dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
and eax, esi
xor dword [ebp - 0x14], eax
mov eax, dword [ecx]
and eax, esi
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
shr edi, 2
and edi, 0x11111111
add edi, 0x77777777
xor edi, 0x77777777
and ecx, edx
mov dword [ebp - 0x2c], ebx
and eax, esi
xor ecx, eax
xor ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x20]
and ecx, edi
and esi, eax
xor ecx, esi
mov esi, dword [ebp - 4]
mov esi, dword [esi]
and esi, edx
xor ecx, esi
xor ecx, dword [ebp - 0x10]
mov esi, dword [ebx + 0xc]
and ecx, dword [ebp - 0x24]
mov ebx, dword [ebx + 8]
and esi, eax
and ebx, edx
xor esi, ebx
xor esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
and esi, edi
xor ecx, esi
mov esi, dword [ebp - 8]
and edx, dword [esi]
mov edi, dword [esi + 4]
and edi, eax
xor ecx, edi
mov eax, dword [ebp - 0x28]
xor ecx, edx
xor ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x4c]
rol ecx, 0xb
xor ecx, dword [ebp - 0x58]
mov dword [ebp - 0x48], edx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], ecx
add ecx, dword [eax]
mov eax, dword [ebp - 0x30]
mov esi, ecx
mov edi, ecx
mov dword [ebp - 0xc], edx
mov edx, ecx
shr ecx, 3
and ecx, 0x11111111
add ecx, 0x77777777
xor ecx, 0x77777777
shr edx, 1
and edx, 0x11111111
mov dword [ebp - 0x24], ecx
and esi, 0x11111111
add edx, 0x77777777
add esi, 0x77777777
xor edx, 0x77777777
xor esi, 0x77777777
mov ecx, edx
and ecx, esi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 8], ecx
mov ecx, dword [ebx]
add eax, 4
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
add eax, 4
shr edi, 2
and edi, 0x11111111
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
mov eax, esi
and eax, dword [ecx]
add edi, 0x77777777
xor edi, 0x77777777
xor dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
and eax, esi
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
and eax, esi
xor dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
add dword [ebp - 4], 4
and eax, edx
and ecx, esi
xor eax, ecx
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov esi, dword [ecx + 4]
mov ecx, dword [ebp - 0x20]
and eax, edi
and esi, ecx
xor eax, esi
mov esi, dword [ebp - 4]
mov esi, dword [esi]
add dword [ebp - 8], 4
and esi, edx
xor eax, esi
xor eax, dword [ebp - 0x10]
mov esi, dword [ebx + 0xc]
and eax, dword [ebp - 0x24]
mov ebx, dword [ebx + 8]
and esi, ecx
and ebx, edx
xor esi, ebx
xor esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
and esi, edi
xor eax, esi
mov esi, dword [ebp - 8]
and edx, dword [esi]
mov edi, dword [esi + 4]
and edi, ecx
mov ecx, dword [ebp - 0x28]
xor eax, edi
xor eax, edx
xor eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x4c]
rol eax, 0xb
xor eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], edx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
add eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x30]
mov esi, eax
mov edi, eax
mov dword [ebp - 0xc], edx
mov edx, eax
shr eax, 3
and eax, 0x11111111
shr edx, 1
add eax, 0x77777777
and edx, 0x11111111
shr edi, 2
xor eax, 0x77777777
and esi, 0x11111111
add edx, 0x77777777
and edi, 0x11111111
mov dword [ebp - 0x24], eax
add esi, 0x77777777
xor edx, 0x77777777
add edi, 0x77777777
xor esi, 0x77777777
mov eax, edx
xor edi, 0x77777777
and eax, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
add ecx, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ecx - 4]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
add eax, 4
mov dword [ebp - 0xc], eax
mov eax, esi
and eax, dword [ecx]
mov ecx, dword [ebp - 4]
xor dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
add dword [ebp - 4], 4
and eax, esi
xor dword [ebp - 0x14], eax
mov eax, dword [ecx]
and eax, esi
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
and ecx, edx
and eax, esi
xor ecx, eax
xor ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], 4
and ecx, edi
and esi, eax
xor ecx, esi
mov esi, dword [ebp - 4]
mov esi, dword [esi]
and esi, edx
xor ecx, esi
mov esi, dword [ebx + 0xc]
xor ecx, dword [ebp - 0x10]
mov ebx, dword [ebx + 8]
and ecx, dword [ebp - 0x24]
add dword [ebp - 0x28], 0x10
and esi, eax
and ebx, edx
xor esi, ebx
xor esi, dword [ebp - 0x14]
mov ebx, 1
and esi, edi
xor ecx, esi
mov esi, dword [ebp - 8]
mov edi, dword [esi + 4]
and edx, dword [esi]
and edi, eax
xor ecx, edi
xor ecx, edx
xor ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x4c]
rol ecx, 0xb
xor ecx, dword [ebp - 0x48]
sub dword [ebp - 0x40], ebx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
jne 0x402ace
sub dword [ebp - 0x44], ebx
jne 0x402abe
mov esi, dword [ebp + 0xc]
add esi, 0x1c
lea edi, [ebx + 7]
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov eax, esi
call fcn.00402950
add esp, 8
sub esi, 4
sub edi, ebx
mov ecx, eax
jne 0x402f85
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret