Function at 0x403260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x619490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], edx
push edi
mov edi, edx
test ecx, ecx
je 0x403765
test esi, esi
je 0x403765
test ebx, ebx
je 0x403765
test eax, eax
je 0x403765
test edx, edx
je 0x403765
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x403590
test eax, eax
je 0x4032da
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00565bf6
mov esp, ebp
pop ebp
ret
cmp ecx, esi
je 0x403433
cmp ebx, 0x10
jb 0x40335c
jmp 0x4032f0
push dword [ebp - 0x20]
mov edx, esi
call fcn.00402cc0
add esp, 4
test eax, eax
jne 0x40374f
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x403330
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x403330
mov ecx, esi
sub edi, esi
mov edx, 0x10
lea esp, [esp]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x403320
jmp 0x403340
movdqu xmm1, xmmword [esi]
movdqu xmm0, xmmword [edi]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
mov ecx, dword [ebp - 0x18]
sub ebx, 0x10
mov edi, ecx
mov dword [ebp + 8], ebx
add ecx, 0x10
add esi, 0x10
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], esi
cmp ebx, 0x10
jae 0x4032f0
test ebx, ebx
je 0x403731
push dword [ebp - 0x20]
lea edx, [ebp - 0x14]
call fcn.00402cc0
add esp, 4
test eax, eax
jne 0x40374f
xor edx, edx
test ebx, ebx
je 0x403412
cmp ebx, 0x10
jb 0x4033f4
lea ecx, [esi - 1]
lea eax, [ebp + ebx - 0x15]
add ecx, ebx
cmp esi, eax
ja 0x40339d
lea eax, [ebp - 0x14]
cmp ecx, eax
jae 0x4033f4
lea eax, [edi - 1]
add eax, ebx
cmp esi, eax
ja 0x4033aa
cmp ecx, edi
jae 0x4033f4
mov eax, ebx
mov ecx, ebx
and eax, 0xf
sub ecx, eax
mov eax, edi
mov dword [ebp - 0x28], ecx
mov ecx, esi
sub ecx, edi
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x14]
mov esi, dword [ebp - 0x20]
sub ecx, edi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
movdqu xmm0, xmmword [eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm1, xmmword [ebx + eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax + esi - 0x10], xmm1
cmp edx, ecx
jb 0x4033d0
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
cmp edx, ebx
jae 0x403412
lea eax, [ebp - 0x14]
sub edi, eax
sub esi, eax
nop
lea ecx, [ebp - 0x14]
add ecx, edx
inc edx
mov al, byte [ecx + edi]
xor al, byte [ecx]
mov byte [ecx + esi], al
cmp edx, ebx
jb 0x403400
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
movdqu xmm0, xmmword [edi]
pop edi
pop esi
movdqu xmmword [eax], xmm0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00565bf6
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10
jb 0x4034b0
sub edi, esi
lea ebx, [ebx]
push dword [ebp - 0x20]
movdqu xmm2, xmmword [ecx]
mov edx, esi
call fcn.00402cc0
add esp, 4
test eax, eax
jne 0x40374f
mov edx, dword [ebp - 0x24]
lea eax, [edx + 0xf]
cmp esi, eax
ja 0x403482
lea eax, [esi + 0xf]
cmp eax, edx
jb 0x403482
mov ecx, esi
mov edx, 0x10
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x403471
mov edx, dword [ebp - 0x24]
jmp 0x403492
movdqu xmm1, xmmword [edx]
movdqu xmm0, xmmword [esi]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
mov ecx, dword [ebp - 0x18]
sub ebx, 0x10
add ecx, 0x10
mov dword [ebp + 8], ebx
add esi, 0x10
mov dword [ebp - 0x18], ecx
sub edi, 0x10
movdqu xmmword [edx], xmm2
cmp ebx, 0x10
jae 0x403440
test ebx, ebx
je 0x40373c
movdqu xmm0, xmmword [ecx]
mov edx, esi
lea ecx, [ebp - 0x14]
push dword [ebp - 0x20]
movdqu xmmword [ebp - 0x40], xmm0
movdqu xmmword [ebp - 0x14], xmm0
call fcn.00402cc0
add esp, 4
test eax, eax
jne 0x40374f
xor edx, edx
test ebx, ebx
je 0x403552
mov edi, dword [ebp - 0x24]
cmp ebx, 0x10
jb 0x403530
lea eax, [edi - 1]
lea ecx, [esi - 1]
add eax, ebx
add ecx, ebx
cmp esi, eax
ja 0x4034fe
cmp ecx, edi
jae 0x403530
mov eax, ebx
mov ecx, ebx
and eax, 0xf
sub ecx, eax
mov eax, esi
sub edi, esi
jmp 0x403510
movdqu xmm1, xmmword [eax + edi]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x403510
mov edi, dword [ebp - 0x24]
cmp edx, ebx
jae 0x403552
sub edi, esi
lea ecx, [esi + edx]
mov dword [ebp - 0x1c], edi
mov edi, ebx
mov ebx, dword [ebp - 0x1c]
sub edi, edx
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edi
jne 0x403543
mov ebx, dword [ebp + 8]
cmp ebx, 0x10
jae 0x403571
mov eax, 0x10
lea ecx, [ebp - 0x14]
sub eax, ebx
lea edx, [esi + ebx]
push eax
add ecx, ebx
push ecx
push edx
call fcn.00569fd0
add esp, 0xc
mov eax, dword [ebp - 0x24]
movdqu xmm0, xmmword [ebp - 0x40]
pop edi
pop esi
movdqu xmmword [eax], xmm0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00565bf6
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10
jb 0x403637
lea esp, [esp]
lea eax, [ecx + 0xf]
cmp esi, eax
ja 0x4035ae
lea eax, [esi + 0xf]
cmp eax, ecx
jae 0x4035bc
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x4035f0
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x4035f0
sub edi, dword [ebp - 0x18]
mov edx, esi
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov edx, 0x10
mov ebx, dword [ebp - 0x1c]
nop
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
dec edx
jne 0x4035d0
mov ebx, dword [ebp + 8]
jmp 0x403600
movdqu xmm1, xmmword [edi]
movdqu xmm0, xmmword [ecx]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
push dword [ebp - 0x20]
mov edx, esi
mov ecx, esi
call fcn.004026e0
add esp, 4
test eax, eax
jne 0x40374f
mov ecx, dword [ebp - 0x18]
sub ebx, 0x10
mov edi, esi
mov dword [ebp + 8], ebx
add ecx, 0x10
add esi, 0x10
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], esi
cmp ebx, 0x10
jae 0x4035a0
test ebx, ebx
je 0x403731
xor edx, edx
mov dword [ebp - 0x18], edx
test ebx, ebx
je 0x4036f7
cmp ebx, 0x10
jb 0x4036c8
lea eax, [ecx - 1]
mov dword [ebp - 0x18], edx
add eax, ebx
cmp esi, eax
ja 0x403666
lea eax, [esi - 1]
add eax, ebx
cmp eax, ecx
jae 0x4036c8
lea eax, [edi - 1]
add eax, ebx
cmp esi, eax
ja 0x403678
lea eax, [esi - 1]
add eax, ebx
cmp eax, edi
jae 0x4036c8
mov edx, esi
mov dword [ebp - 0x28], ebx
sub edx, edi
mov eax, ebx
mov dword [ebp - 0x1c], edx
and eax, 0xf
sub dword [ebp - 0x28], eax
mov edx, ecx
mov esi, dword [ebp - 0x1c]
sub edx, edi
mov dword [ebp - 0x30], edx
mov eax, edi
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
lea esp, [esp]
movdqu xmm1, xmmword [ebx + eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [esi + eax - 0x10], xmm1
cmp edx, dword [ebp - 0x28]
jb 0x4036a0
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
cmp edx, ebx
jae 0x4036f7
mov eax, edi
sub esi, ecx
sub eax, ecx
mov dword [ebp - 0x1c], esi
add edx, ecx
mov dword [ebp - 0x30], eax
mov ecx, ebx
mov ebx, eax
sub ecx, dword [ebp - 0x18]
mov al, byte [edx + ebx]
lea edx, [edx + 1]
xor al, byte [edx - 1]
mov byte [edx + esi - 1], al
dec ecx
jne 0x4036e1
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
cmp ebx, 0x10
jae 0x40371c
mov edx, 0x10
lea ecx, [esi + ebx]
sub edi, esi
sub edx, ebx
jmp 0x403710
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x403710
push dword [ebp - 0x20]
mov edx, esi
mov ecx, esi
call fcn.004026e0
add esp, 4
test eax, eax
jne 0x40374f
mov edi, esi
mov eax, dword [ebp - 0x24]
movdqu xmm0, xmmword [edi]
movdqu xmmword [eax], xmm0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00565bf6
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00565bf6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00565bf6
mov esp, ebp
pop ebp
ret