Function at 0x4033d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x62f490]
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 0x4038d5
test esi, esi
je 0x4038d5
test ebx, ebx
je 0x4038d5
test eax, eax
je 0x4038d5
test edx, edx
je 0x4038d5
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x403700
test eax, eax
je 0x40344a
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00577678
mov esp, ebp
pop ebp
ret
cmp ecx, esi
je 0x4035a3
cmp ebx, 0x10
jb 0x4034cc
jmp 0x403460
push dword [ebp - 0x20]
mov edx, esi
call fcn.00402e30
add esp, 4
test eax, eax
jne 0x4038bf
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x4034a0
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x4034a0
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 0x403490
jmp 0x4034b0
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 0x403460
test ebx, ebx
je 0x4038a1
push dword [ebp - 0x20]
lea edx, [ebp - 0x14]
call fcn.00402e30
add esp, 4
test eax, eax
jne 0x4038bf
xor edx, edx
test ebx, ebx
je 0x403582
cmp ebx, 0x10
jb 0x403564
lea ecx, [esi - 1]
lea eax, [ebp + ebx - 0x15]
add ecx, ebx
cmp esi, eax
ja 0x40350d
lea eax, [ebp - 0x14]
cmp ecx, eax
jae 0x403564
lea eax, [edi - 1]
add eax, ebx
cmp esi, eax
ja 0x40351a
cmp ecx, edi
jae 0x403564
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 0x403540
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
cmp edx, ebx
jae 0x403582
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 0x403570
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.00577678
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10
jb 0x403620
sub edi, esi
lea ebx, [ebx]
push dword [ebp - 0x20]
movdqu xmm2, xmmword [ecx]
mov edx, esi
call fcn.00402e30
add esp, 4
test eax, eax
jne 0x4038bf
mov edx, dword [ebp - 0x24]
lea eax, [edx + 0xf]
cmp esi, eax
ja 0x4035f2
lea eax, [esi + 0xf]
cmp eax, edx
jb 0x4035f2
mov ecx, esi
mov edx, 0x10
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x4035e1
mov edx, dword [ebp - 0x24]
jmp 0x403602
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 0x4035b0
test ebx, ebx
je 0x4038ac
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.00402e30
add esp, 4
test eax, eax
jne 0x4038bf
xor edx, edx
test ebx, ebx
je 0x4036c2
mov edi, dword [ebp - 0x24]
cmp ebx, 0x10
jb 0x4036a0
lea eax, [edi - 1]
lea ecx, [esi - 1]
add eax, ebx
add ecx, ebx
cmp esi, eax
ja 0x40366e
cmp ecx, edi
jae 0x4036a0
mov eax, ebx
mov ecx, ebx
and eax, 0xf
sub ecx, eax
mov eax, esi
sub edi, esi
jmp 0x403680
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 0x403680
mov edi, dword [ebp - 0x24]
cmp edx, ebx
jae 0x4036c2
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 0x4036b3
mov ebx, dword [ebp + 8]
cmp ebx, 0x10
jae 0x4036e1
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.0057bb00
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.00577678
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10
jb 0x4037a7
lea esp, [esp]
lea eax, [ecx + 0xf]
cmp esi, eax
ja 0x40371e
lea eax, [esi + 0xf]
cmp eax, ecx
jae 0x40372c
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x403760
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x403760
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 0x403740
mov ebx, dword [ebp + 8]
jmp 0x403770
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.00402870
add esp, 4
test eax, eax
jne 0x4038bf
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 0x403710
test ebx, ebx
je 0x4038a1
xor edx, edx
mov dword [ebp - 0x18], edx
test ebx, ebx
je 0x403867
cmp ebx, 0x10
jb 0x403838
lea eax, [ecx - 1]
mov dword [ebp - 0x18], edx
add eax, ebx
cmp esi, eax
ja 0x4037d6
lea eax, [esi - 1]
add eax, ebx
cmp eax, ecx
jae 0x403838
lea eax, [edi - 1]
add eax, ebx
cmp esi, eax
ja 0x4037e8
lea eax, [esi - 1]
add eax, ebx
cmp eax, edi
jae 0x403838
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 0x403810
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
cmp edx, ebx
jae 0x403867
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 0x403851
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
cmp ebx, 0x10
jae 0x40388c
mov edx, 0x10
lea ecx, [esi + ebx]
sub edi, esi
sub edx, ebx
jmp 0x403880
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x403880
push dword [ebp - 0x20]
mov edx, esi
mov ecx, esi
call fcn.00402870
add esp, 4
test eax, eax
jne 0x4038bf
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.00577678
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.00577678
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.00577678
mov esp, ebp
pop ebp
ret