Function at 0x403430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x627490]
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 0x403935
test esi, esi
je 0x403935
test ebx, ebx
je 0x403935
test eax, eax
je 0x403935
test edx, edx
je 0x403935
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x403760
test eax, eax
je 0x4034aa
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570aac
mov esp, ebp
pop ebp
ret
cmp ecx, esi
je 0x403603
cmp ebx, 0x10
jb 0x40352c
jmp 0x4034c0
push dword [ebp - 0x20]
mov edx, esi
call fcn.00402e90
add esp, 4
test eax, eax
jne 0x40391f
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x403500
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x403500
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 0x4034f0
jmp 0x403510
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 0x4034c0
test ebx, ebx
je 0x403901
push dword [ebp - 0x20]
lea edx, [ebp - 0x14]
call fcn.00402e90
add esp, 4
test eax, eax
jne 0x40391f
xor edx, edx
test ebx, ebx
je 0x4035e2
cmp ebx, 0x10
jb 0x4035c4
lea ecx, [esi - 1]
lea eax, [ebp + ebx - 0x15]
add ecx, ebx
cmp esi, eax
ja 0x40356d
lea eax, [ebp - 0x14]
cmp ecx, eax
jae 0x4035c4
lea eax, [edi - 1]
add eax, ebx
cmp esi, eax
ja 0x40357a
cmp ecx, edi
jae 0x4035c4
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 0x4035a0
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
cmp edx, ebx
jae 0x4035e2
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 0x4035d0
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.00570aac
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10
jb 0x403680
sub edi, esi
lea ebx, [ebx]
push dword [ebp - 0x20]
movdqu xmm2, xmmword [ecx]
mov edx, esi
call fcn.00402e90
add esp, 4
test eax, eax
jne 0x40391f
mov edx, dword [ebp - 0x24]
lea eax, [edx + 0xf]
cmp esi, eax
ja 0x403652
lea eax, [esi + 0xf]
cmp eax, edx
jb 0x403652
mov ecx, esi
mov edx, 0x10
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x403641
mov edx, dword [ebp - 0x24]
jmp 0x403662
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 0x403610
test ebx, ebx
je 0x40390c
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.00402e90
add esp, 4
test eax, eax
jne 0x40391f
xor edx, edx
test ebx, ebx
je 0x403722
mov edi, dword [ebp - 0x24]
cmp ebx, 0x10
jb 0x403700
lea eax, [edi - 1]
lea ecx, [esi - 1]
add eax, ebx
add ecx, ebx
cmp esi, eax
ja 0x4036ce
cmp ecx, edi
jae 0x403700
mov eax, ebx
mov ecx, ebx
and eax, 0xf
sub ecx, eax
mov eax, esi
sub edi, esi
jmp 0x4036e0
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 0x4036e0
mov edi, dword [ebp - 0x24]
cmp edx, ebx
jae 0x403722
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 0x403713
mov ebx, dword [ebp + 8]
cmp ebx, 0x10
jae 0x403741
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.00574e80
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.00570aac
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10
jb 0x403807
lea esp, [esp]
lea eax, [ecx + 0xf]
cmp esi, eax
ja 0x40377e
lea eax, [esi + 0xf]
cmp eax, ecx
jae 0x40378c
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x4037c0
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x4037c0
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 0x4037a0
mov ebx, dword [ebp + 8]
jmp 0x4037d0
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.004028d0
add esp, 4
test eax, eax
jne 0x40391f
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 0x403770
test ebx, ebx
je 0x403901
xor edx, edx
mov dword [ebp - 0x18], edx
test ebx, ebx
je 0x4038c7
cmp ebx, 0x10
jb 0x403898
lea eax, [ecx - 1]
mov dword [ebp - 0x18], edx
add eax, ebx
cmp esi, eax
ja 0x403836
lea eax, [esi - 1]
add eax, ebx
cmp eax, ecx
jae 0x403898
lea eax, [edi - 1]
add eax, ebx
cmp esi, eax
ja 0x403848
lea eax, [esi - 1]
add eax, ebx
cmp eax, edi
jae 0x403898
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 0x403870
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
cmp edx, ebx
jae 0x4038c7
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 0x4038b1
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
cmp ebx, 0x10
jae 0x4038ec
mov edx, 0x10
lea ecx, [esi + ebx]
sub edi, esi
sub edx, ebx
jmp 0x4038e0
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x4038e0
push dword [ebp - 0x20]
mov edx, esi
mov ecx, esi
call fcn.004028d0
add esp, 4
test eax, eax
jne 0x40391f
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.00570aac
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.00570aac
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.00570aac
mov esp, ebp
pop ebp
ret