Function at 0x403390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x620330]
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 0x403895
test esi, esi
je 0x403895
test ebx, ebx
je 0x403895
test eax, eax
je 0x403895
test edx, edx
je 0x403895
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x4036c0
test eax, eax
je 0x40340a
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056bc07
mov esp, ebp
pop ebp
ret
cmp ecx, esi
je 0x403563
cmp ebx, 0x10
jb 0x40348c
jmp 0x403420
push dword [ebp - 0x20]
mov edx, esi
call fcn.00402df0
add esp, 4
test eax, eax
jne 0x40387f
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x403460
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x403460
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 0x403450
jmp 0x403470
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 0x403420
test ebx, ebx
je 0x403861
push dword [ebp - 0x20]
lea edx, [ebp - 0x14]
call fcn.00402df0
add esp, 4
test eax, eax
jne 0x40387f
xor edx, edx
test ebx, ebx
je 0x403542
cmp ebx, 0x10
jb 0x403524
lea ecx, [esi - 1]
lea eax, [ebp + ebx - 0x15]
add ecx, ebx
cmp esi, eax
ja 0x4034cd
lea eax, [ebp - 0x14]
cmp ecx, eax
jae 0x403524
lea eax, [edi - 1]
add eax, ebx
cmp esi, eax
ja 0x4034da
cmp ecx, edi
jae 0x403524
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 0x403500
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
cmp edx, ebx
jae 0x403542
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 0x403530
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.0056bc07
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10
jb 0x4035e0
sub edi, esi
lea ebx, [ebx]
push dword [ebp - 0x20]
movdqu xmm2, xmmword [ecx]
mov edx, esi
call fcn.00402df0
add esp, 4
test eax, eax
jne 0x40387f
mov edx, dword [ebp - 0x24]
lea eax, [edx + 0xf]
cmp esi, eax
ja 0x4035b2
lea eax, [esi + 0xf]
cmp eax, edx
jb 0x4035b2
mov ecx, esi
mov edx, 0x10
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x4035a1
mov edx, dword [ebp - 0x24]
jmp 0x4035c2
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 0x403570
test ebx, ebx
je 0x40386c
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.00402df0
add esp, 4
test eax, eax
jne 0x40387f
xor edx, edx
test ebx, ebx
je 0x403682
mov edi, dword [ebp - 0x24]
cmp ebx, 0x10
jb 0x403660
lea eax, [edi - 1]
lea ecx, [esi - 1]
add eax, ebx
add ecx, ebx
cmp esi, eax
ja 0x40362e
cmp ecx, edi
jae 0x403660
mov eax, ebx
mov ecx, ebx
and eax, 0xf
sub ecx, eax
mov eax, esi
sub edi, esi
jmp 0x403640
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 0x403640
mov edi, dword [ebp - 0x24]
cmp edx, ebx
jae 0x403682
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 0x403673
mov ebx, dword [ebp + 8]
cmp ebx, 0x10
jae 0x4036a1
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.005738b0
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.0056bc07
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10
jb 0x403767
lea esp, [esp]
lea eax, [ecx + 0xf]
cmp esi, eax
ja 0x4036de
lea eax, [esi + 0xf]
cmp eax, ecx
jae 0x4036ec
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x403720
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x403720
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 0x403700
mov ebx, dword [ebp + 8]
jmp 0x403730
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.00402820
add esp, 4
test eax, eax
jne 0x40387f
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 0x4036d0
test ebx, ebx
je 0x403861
xor edx, edx
mov dword [ebp - 0x18], edx
test ebx, ebx
je 0x403827
cmp ebx, 0x10
jb 0x4037f8
lea eax, [ecx - 1]
mov dword [ebp - 0x18], edx
add eax, ebx
cmp esi, eax
ja 0x403796
lea eax, [esi - 1]
add eax, ebx
cmp eax, ecx
jae 0x4037f8
lea eax, [edi - 1]
add eax, ebx
cmp esi, eax
ja 0x4037a8
lea eax, [esi - 1]
add eax, ebx
cmp eax, edi
jae 0x4037f8
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 0x4037d0
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
cmp edx, ebx
jae 0x403827
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 0x403811
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
cmp ebx, 0x10
jae 0x40384c
mov edx, 0x10
lea ecx, [esi + ebx]
sub edi, esi
sub edx, ebx
jmp 0x403840
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x403840
push dword [ebp - 0x20]
mov edx, esi
mov ecx, esi
call fcn.00402820
add esp, 4
test eax, eax
jne 0x40387f
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.0056bc07
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.0056bc07
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.0056bc07
mov esp, ebp
pop ebp
ret